Troubleshooting
Fix PLC-5 connection broken when polling ASCII scales via Digi IAP
Short answer
Fix it at the encoding, not the wiring: run Digi One IAP firmware F or newer, read each scale with a "PLC-5 Typed Read to SLC" message, and prove ports 1 and 2 one transaction at a time. Firmware E rarely parses a real PLC-5's layered addressing; validate the poll write separately with a packet capture.
On this page
- Why does the PLC-5 report "connection broken" when polling ASCII scales through the Digi One IAP?
- Which firmware revision does the Digi One IAP need for a real PLC-5?
- What PLC-5 message type reads the scale data?
- What message type sends the poll command to the scales?
- How do you route each scale poll to serial port 1 or serial port 2?
- How do you prove whether the fault is the command or the serial port?
- When is the repair finished?
- Questions asked
Your PLC-5/40E Series E Revision G reports "connection broken" because the Digi One IAP cannot parse the layered addressing a real PLC-5 processor builds into its DF1 command families — not because the scales or the Ethernet link are down. The repair has two moves: run firmware F or newer in the converter, and read each scale with a "PLC-5 Typed Read to SLC" message, the one selection with a field report of success on a Series E Revision B processor. Validate the poll write separately with a packet capture, then prove serial ports 1 and 2 one transaction at a time.
Why does the PLC-5 report "connection broken" when polling ASCII scales through the Digi One IAP? #
The error is a command-encoding mismatch: the converter implements DF1 subfunctions 0x67 and 0x68 (typed read and write) plus 0x00 and 0x01 (word-range read and write), but a real PLC-5 wraps its own layered addressing inside those commands in a form the parser rejects. That rejection surfaces at the processor as "connection broken".
Digi's release notes are blunt about the root cause: the converter's PLC-5 command handling was built assuming PLC-5-style traffic looks like what an SLC 5/05, a MicroLogix or a ControlLogix emits when it uses PLC-5 commands. A genuine PLC-5/40E does not emit identical bytes — it adds its own layered addressing inside the supported command families — and a parser tuned to the SLC form rejects those bytes. Nothing in this failure implicates the scale, its cable, or the IP path; treat those as good until the command form is fixed and the error survives.
The device class matters here. A protocol converter terminates the command, decodes it, and generates the ASCII request on the serial side. A raw terminal server tunnels bytes and converts nothing, which is the same limit behind why an EDS file will not add EtherNet/IP to a terminal server. If someone proposes swapping the IAP for a plain port server, that swap removes the one piece doing the protocol work.
Which firmware revision does the Digi One IAP need for a real PLC-5? #
Run firmware F or newer: Digi's release notes state that firmware E rarely works with PLC-5 processors because its handling of the PLC-5 system address is too generic, and a later release in this product family rewrote the PLC-5 typed-read parser outright. Read the installed revision in the converter's web interface before changing anything else, then upgrade and retest one read.
The order matters. Firmware first, message type second, port routing third: each step changes the bytes on the wire, and mixing changes hides which one fixed or broke the transaction. If F still rejects the typed read, load the newest available release before spending an afternoon on packet analysis, because the parser rewrite targets exactly this failure class.
What PLC-5 message type reads the scale data? #
Use "PLC-5 Typed Read to SLC" as the read message: it is the only selection field-proven through this converter — one field report shows it working on a Series E Revision B processor — and it matches the converter's design, which presents every serial device as an SLC-class DF1 target.
Why it is the right move: the converter's documented bridging pattern has newer controllers reading its serial devices with SLC-form typed reads and writes, and asking the PLC-5 to build that same SLC-form request removes the variable its native layered addressing introduces. Your Revision G is a different revision than the reported Revision B, so confirm by test — but the evidence points at firmware and command form, not at the processor series, as the deciding variables. SCADA packages ride the same converter for the same reason, and connecting Ignition to an SLC 5/03 through a Digi One IAP protocol converter works because the SLC side emits exactly the command forms the converter was built to parse.
Digi documents typed reads through this converter at 118 words, or 1,888 bits, per transaction — under the 2,000 bits a maximum Modbus read can carry: 118 words × 16 bits per word = 1,888 bits, while 2,000 bits ÷ 16 = 125 words, seven words more than the converter returns.
Now size your poll (worked example, illustrative frame length). Say each scale answers with a 24-character ASCII frame. 24 characters ÷ 2 characters per word = 12 words per poll, and both scales together move 2 × 12 = 24 words = 384 bits. That leaves 1,888 − 384 = 1,504 bits of headroom, or 24 ÷ 118 ≈ 20% of one transaction's budget. A 12-word read failing with "connection broken" is failing on encoding, not on length.
What message type sends the poll command to the scales? #
Send the poll as the matching typed write in the family you proved on the read — subfunction 0x68 is the typed write the converter implements — and accept it only when a capture shows its layered-address bytes carry the same form the accepted read carried. Your error sits on this write transaction, and the evidence holds no field-proven PLC-5 write selection, so the committed play is to mirror the read: select the SLC-form typed write to the SLC-class target, one scale at a time, and prove it on the wire before enabling both.
Run these tests with the scales isolated from any batching or filling logic that acts on weight, because test messages land in live data-table addresses the rest of your program reads.
How do you route each scale poll to serial port 1 or serial port 2? #
Routing is an address mapping, not a field in the message: in the converter's serial-port configuration you assign each port its own block of the emulated data table, and the destination address your message targets decides which port the ASCII request leaves. The Digi application note for this exact topology — one processor polling ASCII devices on ports 1 and 2 — is built on that mapping, so the poll's target address is your port selector.
Prove the routing one port at a time:
- Map port 1 and port 2 to separate blocks of the emulated data table, one block per scale.
- Disable the port 2 poll and run only the port 1 transaction until it repeats cleanly with no "connection broken".
- Swap: disable port 1, run only port 2, same pass bar.
- Enable both and alternate them; confirm each response lands in its assigned destination address.
- Verify the physical port from the converter's own port counters or a serial-side tap — an Ethernet-side trace cannot show which serial port the bytes left.
How do you prove whether the fault is the command or the serial port? #
Capture the TCP session between the PLC-5 and the converter and read the embedded command bytes: a parse failure dies before any serial traffic exists, while a serial-side fault shows the request forwarded and nothing returned. In the capture, check the command subfunction byte — 0x67 for the typed read your poll depends on — and the layered-address bytes that follow it, against the form the converter documents. If the request never reaches the serial side, you are still in the encoding fault; if it forwards and the scale stays silent, chase that port's baud, parity and framing, after the command form is proven.
Rule out the converter's other failure modes before concluding encoding: an SLC 5/04 losing communication during RSLogix online sessions through this same device shows it can drop sessions under concurrent access, which mimics a parse failure that is really a session conflict. Keep the programming software offline while the poll test runs.
When is the repair finished? #
The repair is finished when repeated polls to both scales complete with no "connection broken" error, each response lands in its assigned data-table destination, and alternating transactions never cross between serial ports. Record one line per transaction — message type selected, subfunction seen on the wire, converter firmware revision, target port, destination address, result — so the configuration is reproducible after the next firmware load.
Decide by the case you are in:
| Case | Action | Pass condition |
|---|---|---|
| Series E Rev G, converter on firmware E | Upgrade to F or newer; read as "PLC-5 Typed Read to SLC" | Repeated 12-word reads return frames, no error |
| Read works, write still fails | Capture the write, match its layered-address form to the accepted read, load the newest firmware | Scale answers the poll and bytes land in the mapped block |
| Newest firmware rejects both forms | Stop encoding work; put a ControlLogix or SLC-class controller in front of the converter and reach the PLC-5 as covered for ControlLogix MSG reads and writes to a PLC-5 | Scale data reaches the PLC-5 data path through the added controller |
The third row is the documented pattern, not a defeat: Digi's own bridging material puts ControlLogix and SLC processors in front of this converter using SLC-form typed reads and writes, because those are the command forms it was built to parse.
Questions asked
Does the 118-word typed-read limit matter with two ASCII scales?
It is per transaction, not per port or per polling cycle. Each typed read through the converter tops out at 118 words, or 1,888 bits, and two 12-word polls consume 24 words combined. The limit only bites if you map one large block meant to carry many frames in a single read, which is also where the 112-bit shortfall against a full 2,000-bit Modbus read becomes visible.
Will the newest Digi firmware fix a processor that still fails on F?
It is the next step, not a promise. Release notes for a later build in this product family describe a rewritten PLC-5 typed-read parser, aimed at exactly the layered-address failures that firmware E suffered. Load the newest release, rerun the single-read test, and move to packet analysis only if the error survives the upgrade.
Why do SLC and ControlLogix controllers work with this converter when a PLC-5 does not?
The converter's PLC-5 command handling was built around the bytes that SLC 5/05, MicroLogix and ControlLogix processors emit when they use PLC-5-style commands. Those controllers build SLC-form typed requests. A real PLC-5 adds its own layered addressing inside the same command families, and a parser tuned to the SLC form rejects those bytes with the connection error you see.
Can a plain terminal server replace the Digi One IAP here?
No. A terminal server tunnels serial bytes over TCP and parses nothing, so the PLC-5 would have to build and frame each scale's ASCII request inside its own message instructions, reply timing included. The converter does that work: it decodes the command, generates the ASCII request, and handles the reply, which is the entire reason it sits in this path.