Explainer
What a gateway can map from DF1 serial to Modbus TCP
Short answer
A protocol gateway can put a DF1 serial PLC on Modbus TCP with only the gateway configured, if the serial side runs DF1 Full-Duplex or Radio-Modem, the map stays within 250 16-bit data-table words, and no 16-to-32-bit conversion is needed. Half-Duplex serial or float translation means a different product.
On this page
A protocol gateway can put a DF1 serial PLC on Modbus TCP with only the gateway configured, and you can decide whether yours qualifies from three facts: the serial side must already run DF1 Full-Duplex or DF1 Radio-Modem, the data you expose must fit in 250 16-bit data-table words mapped to Modbus holding registers, and the gateway does no 16-to-32-bit conversion of any kind. If all three hold, configure the gateway and nothing else. If any one fails, you are changing the PLC configuration, the serial architecture, or the product.
Why the gateway approach works at all #
A DF1-to-Modbus bridge does not translate protocols on the fly, request by request. Instead it polls the PLC over its serial port, copies a defined block of data-table words into its own memory, and serves that block as ordinary Modbus TCP holding registers to any client on the Ethernet side. The Modbus client never speaks DF1 and never knows a serial PLC is behind the map. The PLC never speaks Modbus and needs no program change. That is why the HMI on the serial side and the PLC both stay untouched: the only device with a new configuration is the gateway.
The cost of that design is the fixed map. The gateway serves exactly the words you told it to copy, in the order you mapped them, as 16-bit values. Anything that does not fit that model — a different serial mode, more than the map's capacity, or a value that needs reassembly across words — is out of scope for the device, not a setting you have missed.
Which DF1 modes the gateway accepts #
The serial port must be configured for DF1 Full-Duplex or DF1 Radio-Modem. These two modes use the point-to-point, acknowledged framing the gateway's firmware implements for this role. DF1 Half-Duplex, the mode used on multi-drop and polled party-line serial networks, is not supported in this bridging role, and no mapping you build will make a Half-Duplex network answer.
This matters more than it looks, because Half-Duplex is common on older radio and multidrop installations. Check the PLC channel configuration for the serial mode before you plan anything else. If the port says Full-Duplex or Radio-Modem, proceed. If it says Half-Duplex, the decision is already made: either change the PLC's serial mode to Full-Duplex, which is a PLC configuration change and defeats the configure-nothing goal, or select a gateway whose documentation explicitly lists DF1 Half-Duplex support. A related failure mode appears when a driver reaches an SLC-class PLC through the wrong path; the same lesson applies in the article on why a DF1 driver cannot reach an SLC 5/04 through a DH+ gateway: the mode and the path must be supported end to end, not just at the ends.
The 250-word map and what fits in it #
The gateway maps up to 250 16-bit data-table words into Modbus holding registers. The PLC's data tables are 16-bit oriented — an integer file is a run of 16-bit words — so integer, timer and counter words map directly. In Modbus terms, 250 mapped words occupy holding registers 40001 through 40250 if you start the map at the first register.
That number decides the architecture for you. A file of 256 16-bit words does not fit in one map: you must select the 250 words you actually need, split the data across two maps or devices, or reduce what the client reads. There is no compression or paging. Count the words you need before you buy, not after.
Worked example: mapping an integer file #
Suppose the client needs 160 integer words from the PLC, starting at the first word of an integer file. The map has room for 250 words, and 160 ≤ 250, so the whole block fits in one map with 90 words of spare capacity for later points.
Lay the map out in PLC order so the client's addressing stays predictable:
| Map position | PLC word | Holding register | Client reads |
|---|---|---|---|
| 1 | first word of the integer file | 40001 | 16-bit integer |
| 2 | second word | 40002 | 16-bit integer |
| ... | ... | ... | ... |
| 160 | 160th word | 40160 | 16-bit integer |
| 161–250 | spare capacity | 40161–40250 | unused |
The client polls the block as one Modbus read of 160 registers starting at address 0 (register 40001) and receives the PLC words in file order. If the requirement grows past 250 words, this design stops: no amount of configuration creates a 251st register, and the second data path has to come from another device or map.
What the gateway cannot convert #
The gateway performs no 16-to-32-bit mapping. Every value it serves is one 16-bit word from the map, taken as it is. Two consequences follow:
- A 32-bit value stored in the PLC as two consecutive 16-bit words (a long integer, or a float split across words) must be reassembled by the Modbus client from two registers. Plan the map so the two halves sit at consecutive positions, then combine them in the client's logic.
- Values that need an actual format translation — the classic case is F-file floating-point data exposed as Enron-style 32-bit floats — cannot be produced by this device. If the client needs Enron floats, you need a different gateway or an intermediate conversion layer.
Do not map an F-file float word into the register map and hope: the client will read one 16-bit piece of a 32-bit value, and the number will be wrong in a way that looks like noise. If your data consists mainly of floats, count them now — each one consumes two map positions — and check the total against 250 before committing.
The decision for each case #
| Your situation | Decision |
|---|---|
| Serial side is DF1 Full-Duplex or Radio-Modem, needs ≤ 250 16-bit words, integers and word data only | Use the gateway; configure only the gateway. |
| Same modes, but a 32-bit value or Enron float is needed | Use the gateway for word data and reassemble or convert in the client, or pick a gateway that documents the conversion. |
| Map requirement exceeds 250 words | Add a second map or device, or trim the point list to 250 words. |
| Serial side is DF1 Half-Duplex | The gateway cannot bridge it: change the PLC serial mode to Full-Duplex or choose a gateway with documented Half-Duplex support. |
One safety note: the gateway adds a path to process data, not a safety function. Anything the client does with the mapped words — alarming, shutdown logic, operator actions — must still satisfy your risk assessment on the equipment that actually controls the machine.
Verifying the map before you depend on it #
After configuring the gateway, prove the map rather than assume it. Write a known value into a mapped PLC word — for example, put the value 12345 into the word mapped at register 40001 — then read 40001 from a Modbus TCP client and confirm you receive 12345. Repeat at the last mapped register, and at one unmapped register to confirm it returns nothing useful. This five-minute check catches byte order, offset and address-base errors, which are the most common failures when a client first talks to a bridged serial PLC. The register-side configuration you must get right on the client is the same discipline covered in the article on what you must configure on the PLC side for Modbus TCP: address base, function codes, word order and poll rate, all agreed on both ends.
Questions asked
Can a Modbus TCP client read a DF1 serial PLC through a gateway without touching the PLC or the HMI?
Yes, when the serial network already runs DF1 Full-Duplex or Radio-Modem and the data you need fits the gateway's 250-word holding-register map as plain 16-bit words. You configure only the gateway. Half-Duplex serial or a need for 16-to-32-bit float translation breaks both conditions, and then the PLC, the serial architecture or the gateway itself has to change.
How many DF1 data-table words fit in one gateway register map?
250 words of 16 bits each. A 256-word N-file does not fit in one map; you must select the 250 words that matter, or split the application across a second map or device. That ceiling also sets the Modbus span: from holding register 40001, the mapped block covers 40001 through 40250.
Can the gateway convert F-file floating-point values into 32-bit Modbus registers?
No. The gateway maps 16-bit words directly and performs no 16-to-32-bit translation, so an F-file float read as a single 16-bit word is garbage. Read the float as two consecutive 16-bit words and reassemble it in the client, or use a gateway that documents the float conversion you need.
What happens if my serial network uses DF1 Half-Duplex?
The gateway cannot bridge it in this role, so no mapping and no polling result. Your options are to move the PLC port to DF1 Full-Duplex or Radio-Modem, which is a PLC configuration change, or to pick a gateway whose documentation lists DF1 Half-Duplex support. Check the vendor's own documentation for the exact mode support before ordering.