Explainer
What a DF1 message instruction needs to link two PLCs
Short answer
Yes: a direct serial link between a PLC-5 and a MicroLogix runs DF1 full-duplex with a message instruction in the initiating ladder. Both ports need the same protocol and matching serial settings, because the PLC-5 serial port does not speak DH-485 and the MicroLogix has no DH+ port. Cross between DH+ and DH-485 only through a gateway that routes messages, and the message instruction still applies.
On this page
Yes — a PLC-5 and a MicroLogix exchange data over a direct serial link when both ports are configured for DF1 full-duplex and the ladder that needs the data carries a message (MSG) instruction. DF1 is the only protocol the two families share on their serial ports: the PLC-5 speaks DF1 and DH+, the MicroLogix speaks DF1 and DH-485, and neither family offers the other's network. Program the message instruction in whichever controller owns the transfer; the peer answers with nothing more than a configured port and its own station address. Where the link must ride DH+ or DH-485 instead, a routing gateway replaces the cable and the message instruction still applies with the gateway named in its path. The sections below give the port settings, the message setup, the line-time arithmetic, and the decision for each path.
Why DF1 is the only protocol both serial ports share #
A protocol name does not make a link; the port has to support it. The PLC-5 serial port runs DF1 full-duplex, DF1 half-duplex or ASCII, and its network side is DH+ — there is no DH-485 anywhere on a PLC-5. The MicroLogix serial port is configured for DF1 or DH-485, and the family has no DH+ port at all. Set the two option lists side by side and DF1 is the only overlap, which is why a cable between these two controllers runs DF1 on both ends and why changing the protocol at one end alone cannot work.
The same lists decide the converter question. DH+ at the PLC-5 and DH-485 at the MicroLogix differ in voltage levels, wiring, data rate and link protocol, so nothing passive between them can help: the device in the middle must receive a complete message on one network and re-transmit it on the other. That is routing. The serial-to-DH+ interfaces of the same era, the 1770-KF-2 among them, work the same way one layer down — DF1 frames in on the serial side, DH+ traffic out the other — which is why a connector adapter is never enough.
Cross-family message setup has its own traps, and the article on why DF1 reads work on an SLC 500 but not a PLC-5 walks through one link that passes in one direction and fails in the other.
Set both serial ports to DF1 full-duplex #
Every item below is checked in both port configuration screens, because a mismatch on any one of them stops the link regardless of how correct the ladder is:
- Protocol: DF1 full-duplex selected on each port. Full-duplex is the point-to-point setting for a two-controller cable; half-duplex is reserved for polled multidrop lines.
- Station address: a different address on each controller — 1 on the PLC-5 and 2 on the MicroLogix, for instance.
- Serial settings: the same baud rate, data bits, parity and stop bits on both ends. The top rate these serial ports offer is 19200 bit/s, and the worked example below assumes 19200 bit/s with 8 data bits, no parity and one stop bit.
- Handshaking: both ports set for no modem handshaking, or the control lines wired straight through the cable as each manual specifies.
- Cable: the ports use different connectors — a D-shell on the PLC-5 serial side, a small round DIN on the MicroLogix — so build the cable to each controller's documented pinout with transmit and receive crossed and the shield carried through.
DF1 full-duplex protects every frame with a CRC-16 check, so a wiring or setting fault shows up as rejected frames rather than silently corrupted data. That makes the port screens the first place to look, ahead of the ladder, whenever a message will not complete.
Program the message instruction #
The message instruction is programmed once, in the controller that should own the transfer, and every value below is entered from the peer's actual configuration — never copied from a different model:
- Choose read or write: a read pulls the peer's data into the local data table, a write pushes local data out.
- Select the message type that matches the target family: the PLC-5 message instruction offers typed read and write commands for PLC-5-family targets and separate commands for SLC-family targets such as the MicroLogix, so the target decides the type.
- Enter the target station address — the peer's DF1 station address from its port screen — then the source and destination file addresses and the element count, keeping integer transfers element for element and inside the bounds of both files.
- Trigger the instruction deliberately: a momentary condition that starts one transfer per event, never an unconditional rung that restarts the message every scan.
- Check the message control block's completion and error status before the logic uses the data, and test each direction separately when the link must carry both reads and writes.
One boundary to keep: each controller's interlocks stay local to its own ladder, and the message link is never the only path that carries a stop command to a running machine.
Example: line time for a 100-word read at 19200 baud #
Illustrative numbers with assumed inputs, not a measured result: both ports on DF1 full-duplex at 19200 bit/s, 8 data bits, no parity, one stop bit, so each character occupies 10 bit times — 1 start, 8 data, 1 stop.
A read of 100 integer words carries 100 × 2 = 200 bytes of payload, or 200 characters on the wire. Allow about 10 characters of framing per frame — station addresses, control byte, transaction pair and the CRC bytes — and one frame is roughly 210 characters, which is 210 × 10 = 2100 bits. At 19200 bit/s the frame takes 2100 ÷ 19200 = 0.109 s, about 110 ms on the line one way. A read is a command plus a response, so the line is busy about 220 ms per read, before either controller's scan time is added.
At 9600 bit/s the same two frames take twice as long, about 440 ms per read.
The decision: polling this read once per second fits at either rate. Four reads per second consume 4 × 220 ms = 880 ms of every second, so about four polls per second is the ceiling for this block at 19200 bit/s; at 9600 bit/s the ceiling drops to about two. Ten polls per second of this size fits neither rate — shrink the block or move the data onto a network.
When DH+ and DH-485 earn their hardware #
Both native networks carry the same read and write message commands, so the message instruction survives the move; only the path changes. On DH+ the PLC-5 runs at 57.6 kbit/s with up to 64 stations on a trunk up to 3048 m (10,000 ft) long. On DH-485 the MicroLogix runs at 115.2 kbit/s with up to 32 stations and a network span up to 1219 m (4000 ft). Neither network talks to the other directly, so bridging them takes a gateway with a port on each network, and the message names the gateway's station as the first stop on the path.
Gateway routing is a pattern this library covers on the same generation of hardware: a CompactLogix MSG reaches an SLC 5/04 through a DH+ gateway, and separately a ControlLogix MSG is routed to a PLC-5 over DH+, both with the path fields doing the work. For the DH-485 side without any gateway in it, the case of an SLC 5/05 and a MicroLogix 1100 linked over DH-485 shows the native network on its own.
The distance numbers decide when the extra hardware pays. RS-232 is a short-reach interface — 15 m is the figure the standard gives — so a direct DF1 cable covers the bench and the panel. Beyond that, DF1 half-duplex over RS-485 multidrop extends a serial DF1 link between the same two controllers with no new networks at all. DH+ and DH-485 earn their cost when a trunk already exists, or when several stations must share one network rather than one point-to-point link.
What a failing link points to #
Work from the cable upward, because a ladder edit cannot fix a physical fault:
- Error status set immediately on every trigger: wrong message type, wrong target station address, or the peer port is not actually set to DF1.
- Enable, then a long wait, then error, every time: a crossed cable, a mismatched serial setting, or a peer that is not answering on that station address.
- Intermittent errors that clear on retry: noise or grounding on the cable — check the shield bond and separation from power wiring before touching the program.
- Completion status sets but the data is wrong: the peer's own logic writes the same addresses, or the source and destination ranges overlap.
- Still nothing: halve the baud rate and retest, then halve the transfer size — the pair separates line quality from message setup.
The decision for each path #
- Two controllers within RS-232 reach — the bench, one panel, an adjacent cabinet: DF1 full-duplex on a direct cable at 19200 bit/s, one message instruction in the owning ladder. No extra hardware.
- Two controllers tens to hundreds of metres apart, still just the pair: DF1 half-duplex over RS-485 multidrop — same instruction, the port configuration and wiring change, no gateway.
- An existing DH+ trunk at the PLC-5 or existing DH-485 wiring at the MicroLogix, or several stations sharing one network: keep each controller on its native network, bridge with a routing gateway, and put the gateway in the message path.
- Both controllers Ethernet-capable: Ethernet models of the PLC-5 exist and the MicroLogix 1100 and 1400 have Ethernet built in, so the message targets the peer's IP address and the serial question disappears.
And the one combination that fails in every case: DH+ at one end, DH-485 at the other, with only an adapter between — the networks cannot meet without a device that routes.
Questions asked
Do both controllers need a message instruction for the link to work?
No. Only the controller that starts a transfer carries the message instruction; the peer answers at the protocol level with nothing more than a configured port. DF1 full-duplex is peer to peer, so either side can start reads or writes independently, and each direction can be owned by a different ladder. Give the two stations different addresses: a duplicated address makes both claim the same frames and the link stalls.
Can the serial port carry DF1 messages and Modbus RTU at the same time?
No. A serial port runs one protocol at a time, set in its configuration, so a port mapped for Modbus RTU does not answer DF1 frames and every message to it errors out. Put the Modbus devices on a second serial port where the model has one, or behind a protocol converter, and leave the DF1 link on its own port.
What changes if I use DF1 half-duplex instead of full-duplex?
Half-duplex is the multidrop variant: several stations share one cable, one station acts as the master that polls the others, and the handshaking lines become part of the wiring rather than an option. The message instruction itself is programmed the same way. For a single PLC-5 to a single MicroLogix over one cable, full-duplex stays the simpler setting.
How large a block can one message transfer between a PLC-5 and a MicroLogix?
The limit depends on the message type and the data file sizes at both ends, and the two families document different figures, so no single element count applies across models. Size the transfer to fit inside both files, prove it with a small block, and let the message error status catch an oversized or misaddressed request before scaling up.