Troubleshooting
Why a DL05 Modbus RTU slave answers only with ODD parity
Short answer
Set the Modbus master to the DL05 port's factory combination of 9600 baud, ODD parity, 8 data bits and 1 stop bit, and the slave answers. Connect on Port 2 with the cable your programming software uses, keep a minimal program containing an END instruction in the PLC, leave the mode switch in TERM, and cycle to RUN and back if the port stays dead.
On this page
A DL05 that refuses to answer a Modbus RTU master almost always has a parity mismatch, and the mismatch is on the host side. The DL05's serial ports leave the factory set for ODD parity, 8 data bits and 1 stop bit, and a master configured for NONE sends frames the port's UART discards before the Modbus engine ever sees them: no exception response, no error code, just a timeout on the master. The fix is to set the master to the port's factory combination of 9600 baud, ODD parity, 8 data bits and 1 stop bit, connect on Port 2 with the cable your programming software already uses, keep a minimal program containing an END instruction in the PLC, and leave the mode switch in TERM.
Why the wrong parity gives silence instead of an exception #
Modbus RTU is an asynchronous frame format: every character travels with a start bit, 8 data bits, the parity bit the port was configured for, and a stop bit. If the master sends with NONE while the DL05 port expects ODD, the parity bit in every character is wrong from the receiver's point of view, the UART raises a parity error, and the port throws the frame away. A frame rejected at that level never reaches the protocol layer, so the DL05 never produces the exception response that a correctly framed but invalid request would earn. The master simply waits out its timeout.
The tell that it is the link and not your code is that a separate test master fails identically. When both your own application and a generic polling tool time out against the same cable and the same station address, what remains is the serial parameters, the cable, and the PLC's program state, in roughly that order of likelihood.
The two ports and where the host belongs #
Both DL05 ports are 6-pin RJ12, RS-232 connections described in the communications chapter of the DL05 user manual. Port 1 is the programming and display port; it runs K-sequence, DirectNET or Modbus RTU, but only as a slave. Port 2 can act as a Modbus RTU master or slave and supports DirectNET and K-sequence as well. Put the data host on Port 2 and leave Port 1 for the programming session, so the two never contend for one port.
Do not expect the Port 2 protocol field to say anything about slave duty. That field selects what the DL05 does when it is the master on the line. As a slave, the port answers any correctly framed Modbus RTU request regardless of what that field shows, so K-sequence or DirectNET sitting in the box does not block your host. This is why a port setup screen that looks "wrong" can still be perfectly serviceable.
Work through the checks in this order #
- Set the master's serial parameters to the port's factory combination: 9600 baud, ODD parity, 8 data bits, 1 stop bit. This one change clears most dead DL05 slaves.
- Move the host cable to Port 2 and use the same RS-232 cable your programming software uses. It crosses transmit and receive the way a null-modem cable does; a straight-through PC cable leaves each end driving the other's transmit pin, and the port sees nothing.
- Confirm the station address in the request matches the port's slave address and lies between 1 and 247. Address 0 is the RTU broadcast address, which no slave answers; the article on why Modbus RTU sends to slave address 0 instead of your device covers that trap.
- Write a minimal program to the PLC containing only an END instruction, so the scan is well formed and the serial service runs under a valid program.
- Put the RUN-TERM-STOP switch in TERM, confirm the power indicator is steady and the run indication behaves as expected, and cycle the switch to RUN and back if the port still does not answer.
Example: the silence between frames at 9600 baud #
A Modbus RTU character is 11 bits long: 1 start bit, 8 data bits, 1 parity bit and 1 stop bit. At 9600 baud each character therefore occupies the line for 11 bits ÷ 9600 bits per second = 1.146 ms. The RTU framing rule sets the gap separating one frame from the next at 3.5 character times, so the required silence is 3.5 × 1.146 ms = 4.01 ms. Those two numbers set your master's timing: an 8-byte request holds the line for 8 × 1.146 ms ≈ 9.2 ms, and the master should not declare the slave dead until its timeout is comfortably past the request time, the silence windows on both sides, and the slave's scan-time response, which on a PLC scanning real logic can be tens of milliseconds or more.
When the parameters match and the port stays dead #
Two DL05-side conditions produce the same silence even with matching parameters. First, a PLC with no valid resident program: without an END instruction terminating the scan, the controller is not in a state that services the port reliably, so write the one-rung END program before you test. Second, the mode switch: TERM is the position that accepts the serial session, and a port that stays dead after a correct setup usually wakes once you cycle the switch to RUN and back to TERM while watching the indicators.
One caution before you start writing from the host: confirm the register-to-V-memory map in the communications chapter of the DL05 user manual, because a write to the wrong word disturbs controller data that the ladder program also uses.
The decision, case by case #
For a host PC, a .NET Modbus library or a test master tool that cannot reach the DL05: set the master to the port's factory serial combination, connect on Port 2 with the programming cable, and it answers. Nothing on the DL05 itself needs configuring for slave duty beyond a valid program and the switch in TERM.
If your host hardware cannot generate ODD parity, move both ends to no parity with 2 stop bits in the same edit, and treat any port still at factory defaults as expecting ODD.
If the parameters match and there is still silence, load the END program and cycle the switch from RUN to TERM; that combination recovers the port.
Once the slave answers but reads feel slow, the cause is the poll cycle on the shared serial line, not the parity. The article on why Modbus RTU drive polling on one serial port is slow gives the timing budget behind that.
Questions asked
Can I run the DL05 slave with no parity instead of ODD?
Yes. The RTU framing rules allow no parity when every character carries 2 stop bits instead of 1. Change the DL05 port and the master to that combination in the same edit and the slave answers normally. Treat any port still at its factory settings as expecting ODD parity with 1 stop bit, which is the combination to try first on a PLC nobody has reconfigured.
Can Port 1 and Port 2 both answer as Modbus RTU slaves?
Yes. Port 1 runs K-sequence, DirectNET or Modbus RTU as a slave, and Port 2 adds Modbus RTU master capability on top of the same slave options. Both ports are RS-232, so each serves one point-to-point device; there is no RS-485 multidrop wiring on them. Putting the data host on Port 2 keeps it clear of programming sessions on Port 1.
Does the inter-frame silence change if I raise the baud rate?
Yes. The 3.5-character gap scales with character time, so doubling the bit rate halves it. Above 19200 baud the Modbus serial-line recommendation fixes the gap at 1.75 ms regardless of rate, because implementations there stop deriving timing from character counts. At any rate in between, recompute the gap as 3.5 times the new character time before you set master timeouts.