Explainer
Why Modbus writes cannot update a DL-06 PLC program
Short answer
Your Android Modbus transactions on a DL-05 or DL-06 can read and write data memory only; replacing the program is a separate DirectNET service. The supported field route is DNLoader, a PC utility that uploads and downloads programs without DirectSOFT. An Android updater would be your own development against the documented DirectNET protocol, not a larger Modbus write.

On this page
Your Android app already reads and writes a DL-05 or DL-06 over Modbus, and that is exactly why it cannot replace the program. On these controllers Modbus maps to data memory — the V and C addresses your diagnostics already touch — while the executable program is served by a separate upload and download function that runs over DirectNET. More register writes, a larger block, or a different cable will not close that gap. The supported field route is DNLoader, a PC utility that uploads and downloads PLC programs without DirectSOFT. An Android updater is a custom development against the documented DirectNET protocol, and this article tells you when that project is worth building.
Modbus stops at data memory #
A PLC keeps two different things: the executable program the CPU runs, and the data values that program reads and writes. Modbus on the DL-05 and DL-06 reaches only the second. The V-memory words and C-memory bits your app writes are operands; changing them changes what the running program sees, never the program itself. No Modbus function code on these controllers addresses program memory, so there is no write large enough and no register block that turns data access into a program transfer. This is the same wall behind why Modbus cannot transfer a PLC ladder program over TCP. Keep the Modbus diagnostics you have: they remain the right tool for recording machine state before and after an update.
DirectNET is the program-transfer protocol #
Program upload and download on these controllers run over DirectNET, not Modbus. The protocol is public: the DirectNET manual includes a chapter aimed at engineers writing their own host software or driver, so building a client is feasible work — but framing packets is the easy part of a loader.
DirectNET moves data in blocks, and the manual's host-communications chapter gives the ceiling per request.
Worked example, with the arithmetic shown:
- 256 blocks × 256 bytes = 65,536 bytes
- 65,536 + 255 additional bytes = 65,791 bytes, the most one request can carry
- A hypothetical 200,000-byte program file needs 200,000 ÷ 65,791 ≈ 3.04, so 4 requests.
The file size in that example is illustrative, not a statement about any real DL-06 program. The design point for an Android client: a loader sequences multiple block requests at the boundaries the protocol expects, in the order the controller's program service expects, and verifies each one before the next.
What a loader does beyond the protocol #
A working DirectNET data session proves you can talk to the controller; it does not prove you can update it. Any loader, DNLoader or your own, has to handle:
- The program-file format the controller accepts, prepared by the engineering workflow.
- Compatibility checks between that file and the exact controller model.
- Controller mode control during the transfer.
- The multi-request sequence with completion verification.
- The behavior when a transfer is interrupted, and how the controller recovers.
Keep the direction straight in the service procedure: an upload reads the program out of the PLC to your device; a download writes the replacement program in. Swapping those words in a work order can overwrite the program maintenance meant to preserve.
The port configuration matters before any service call. A port already carrying Modbus RTU to an HMI or a drive is set up for that traffic, and its settings are as unforgiving as they are when a DL-05 Modbus RTU slave answers only with ODD parity. Confirm which port is configured for DirectNET and whether anything else occupies it.
The supported route: DNLoader on a service PC #
DNLoader, from Host Engineering, uploads and downloads PLC programs and memory without DirectSOFT. For a machine you ship to customers, the near-term answer is a prepared update file plus a service laptop running DNLoader.
The service sequence: stop the machine and isolate hazardous energy under the site's procedure — a controller mode change is not energy isolation. Upload the existing program as a backup, download the prepared file, verify the installed revision, restore any device disconnected from the service port, and run controlled functional checks before releasing the machine to production. Qualify the whole sequence on a bench controller of the same model before the first customer visit.
If Android is a hard requirement #
Treat it as a product-development project, not a scripting task. You would implement DirectNET client framing from the protocol chapter, the program-file handling, the mode control and the recovery path — the parts DNLoader already contains — and then validate repeatable recovery on real hardware. The documentation points custom host software to the DirectNET protocol chapter; it names no ready-made mobile library. The decision rule: if your technicians can carry a laptop, do not build it. Build it only when the Android-only requirement is a product commitment that justifies the development and validation, and prototype the program-transfer sequence on a bench DL-06 first, where a failed transfer costs nothing.
The decision for each case #
- Prepared field updates by traveling technicians: a service laptop with DNLoader and a prepared file, with the known-good rollback file shipped alongside the machine.
- Field edits and diagnostics, not just updates: DirectSOFT on the service PC, because editing and deeper troubleshooting need the programming environment, not only the loader.
- Android-only update requirement: a custom loader built against the documented DirectNET protocol, validated for transfer and recovery on real controllers before deployment.
- Unattended off-site updates: none of the above covers this; it needs a PC at the machine, authorized remote access, coordination with site personnel and a rehearsed recovery plan, designed as its own system.
Questions asked
Can a different Modbus function code reach DL-06 program memory?
No. On the DL-05 and DL-06 the Modbus map covers data areas such as V memory and C memory, and the function codes read and write those operands. None of them addresses program memory, so changing the function code, the register count or the slave address cannot turn a data write into a program transfer. Program replacement needs the DirectNET upload and download service.
Does DNLoader require a DirectSOFT license on the service laptop?
No. DNLoader is a standalone utility from Host Engineering built to upload and download programs and memory without DirectSOFT, so the service laptop needs only DNLoader, the connection the utility documents and the prepared program file. DirectSOFT belongs on the engineering seat where the project is edited and the update file is prepared, not on every technician's machine.
How do I back up a customer's DL-06 before downloading?
Run DNLoader's upload first and keep that file with the machine record. Treat two artifacts as the rollback package: the uploaded program from the controller and the engineering project that produced it. Record machine-specific retentive values, such as setpoints held in V memory, with your Modbus diagnostics before the download, because which values a download preserves must be verified on a bench unit of the same model.
What happens if power drops during a DirectNET download?
That recovery behavior is exactly what you must establish on a bench controller before fielding any loader, DNLoader or your own. Keep the machine stopped and on stable power for the whole transfer, keep the rollback file at the machine, and define in advance who authorizes a re-download. An interrupted transfer is recoverable only through a procedure you have already rehearsed, never through improvisation at the customer site.


