On this page
DF1 serial
This plugin reads and writes Allen-Bradley PLC file-table addresses through DF1. It is named DF1 serial in the device selector.
See Collection Configuration for common channel, device, variable, and data-format settings. This page covers only DF1 nodes, checksum, addresses, and debug.
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| SLC 500; MicroLogix 1100, 1400 | Configure the controller serial port for the DF1 mode used by this plugin, with matching node addresses, baud rate and CRC/BCC. Serial-to-TCP devices must transparently forward DF1 frames. |
Prepare the DF1 serial interface
This entry sends DF1 half-duplex master frames beginning with DLE SOH + station. The controller must provide the matching half-duplex slave service. A successful RSLinx RS-232 DF1 Devices / Auto-Configure connection does not establish compatibility with a full-duplex configuration. DH-485, ASCII, Modbus and EtherNet/IP are different services.
- In an RSLogix 500 project matching the CPU and firmware, open Channel Configuration for the connected serial channel. Select DF1 Half Duplex Slave where supported. Record node, baud rate, checksum and control-line settings; do not configure both ends as masters.
- Use the CPU-specific RS-232 programming/communication cable. Check TX, RX, signal ground and control lines. MicroLogix round connectors and SLC DB9 connectors have different pinouts; RS-232 cannot connect directly to RS-485 A/B. Modem/multidrop systems also require the documented RTS/CTS, DCD, DSR and DTR behavior.
- This example uses 19200, 8 data bits, None, 1 stop bit, PLC node 1, CRC. These are example settings, not universal factory defaults. The DF1 reference specifies 8N1 for half-duplex; supported baud rates depend on the CPU.
- Under Data Files → N7, ensure
N7:0exists and monitor an independent value such as1234. Adding a gateway variable does not create a PLC data file. Release the COM port from engineering/serial tools before gateway communication.
Rockwell’s DF1 Protocol and Command Set , printed pages 2–2, 2–3, 2–7 and chapter 3, explains half-duplex framing, 8N1, station addressing and polling. Pages 7–17/7–18 describe file reads/writes and model-specific limits. Use the target CPU manual for actual channel capabilities.
In Channel Configuration → Chan. 0 - System, select Driver = DF1 Half Duplex Slave, Node Address = 1 (decimal) and Error Detection = CRC. The manufacturer example below uses 1200 baud. To follow this page’s 19200-baud gateway example, change the controller’s Baud setting to 19200 as well. Parity = NONE and Stop Bits = 1 correspond to gateway 8N1. Use No Handshaking only when appropriate for the direct cable; configure modem control lines for the actual connection.

Source: Rockwell, SLC 500 Instruction Set Reference Manual, 1747-RM001G-EN-P (November 2008), printed page 13-70 (PDF page 400), RSLogix 500 SLC channel configuration.
Check integer file capacity in RSLogix 500
Open Properties for the target integer file under Data Files. Check File, Type, Elements and Last. The manufacturer window shows File 9, Type N, Elements 51 and Last N9:50: 51 zero-based integer elements whose first address is N9:0. For this page’s N7:0 and N7:1 examples, select the actual N7 file and ensure it contains at least two elements. Keep the file number in the gateway address consistent with the selected file.

After configuring the project, open N7 and monitor N7:0 in decimal, then compare it with gateway Int16. Web View Disable controls the built-in web data-table display; it does not need to be changed for gateway collection. Source: Rockwell 1747-RM001G-EN-P (November 2008), printed page A-17 (PDF page 515), RSLogix 500 SLC file properties.
Create the gateway connection
Open Development Configuration → Collection Configuration. Add a SerialPort channel with the actual COM port and matching settings. For example, use COM1 / 19200 / 8 / None / 1.

Create a DF1 serial device and select this channel; the example interval is 1000 ms.

TCP client/server channels are for transparent serial servers or DTUs, using their configured network ports. They still carry DF1 bytes; PLC EtherNet/IP port 44818 does not replace the serial service. UDP is unsupported. Requests on a physical connection are serialized.
Device properties
| Setting | Meaning and selection |
|---|---|
| Link station | Default 0. Outer half-duplex destination station; use 1 for this direct example. Normal slave addresses are 0–254; 255 is broadcast and unsuitable for cyclic response-based reads. |
| Destination node | Default 0. DST inside the file-table command; use 1 here. Through a bridge, use the final PLC node and distinguish it from the outer station. |
| Source node | Default 0. Command originator SRC. Keep 0 in this example, distinct from PLC node 1 and other link nodes. |
| Checksum | Default CRC16; BCC is also available. Match the PLC. This is independent of the serial parity setting. |
| Maximum packet length | Default 236; valid 1–236 bytes, not registers. Packing groups by file type, file number and interval. A variable must fit. Older SLC 5/01/5/02 A2/AA commands allow only 82 data bytes; older SLC 5/03/5/04 AA writes may allow only 234. Apply the lower controller limit. |
| DTU ID | Empty by default. Only set the real registration ID for TCP server DTU matching. Direct serial and active TCP connections do not need an invented ID. |
| Heartbeat content | Empty by default. Applies to TCP server default DTU mode; nonempty overrides channel heartbeat, empty inherits it. It is not DF1 polling. |
| Heartbeat as hex | Default off: UTF-8 text; on: hexadecimal bytes. Match what the DTU sends. |
| Read/write timeout | Default 3000 ms for a response, including serial/DTU/device delays. Does not fix mode, checksum or address errors. |
| Pre-frame delay | Default 0 ms before sending. Set only for required endpoint/adapter spacing; not a collection interval. |
| Reverse string byte words | Default off. Exchanges adjacent character bytes within words, not numeric sign or file elements. Verify actual character storage. |
| Data order | Default DCBA, little endian. Verify known INT/REAL values; changing order does not change file type. |
| Failure retries | Default 3. Correct port ownership, mode, nodes, file bounds and checksum before increasing retries. |
| Read/write duty cycle | Default 3, minimum 1. Arrange a read after n writes during continuous writing; not a percentage or sample rate. |
| Write priority | Default off. Allows writes to cancel active reads; keep off for initial read-only commissioning. |


See Collection Configuration for common channel/device/variable options. There are no additional plugin-specific variable properties.
Map a PLC file element
Add N7_0, address N7:0, Int16, array length 1, Read Only. A monitored PLC value of 1234 should read as 1234. N7:1 is the next 16-bit element; array length 2 means two elements, not two bytes.

Open Field Editor and confirm each part before filling the address back:
| Address field | Meaning and limit |
|---|---|
| File type | A/B/C/F/I/L/N/O/R/S/ST/T: ASCII, bit, counter, floating point, input, long integer, integer, output, control, status, string and timer. The CPU must actually provide the type. |
| File number | Decimal file number, 7 here. Required explicitly for N/B/F/A/C/T/R/L; use explicit I/O/S/ST numbers too to avoid parser defaults. |
| Element | Zero-based decimal element, 0 here. Editor storage is 0–65535; the actual file size is the meaningful boundary. Not a byte offset. |
| Bit | Optional 0–15, Boolean only. N7:0/3 and N7:0.3 identify bit 3; the editor emits /3. Compare a complete UInt16 first, especially for high bits or arrays crossing words; accepted syntax does not establish sufficient read coverage. |
| Byte order override | Unset inherits device DCBA. Changes this variable’s conversion, not its file type. |
| Encoding override | Actual character encoding for strings; leave unset for numeric values. |
| String byte length | Default conversion capacity 100 bytes, not ST element count. Set actual capacity and include the length header in the packet budget. |
| BCD override | 8421, 5421, 2421, excess-3 or Gray only for data actually stored that way; leave unset for ordinary N/F values. |
| Variable string length override | Length-header conversion by default; disable for a verified fixed byte buffer. ST and plain ASCII layouts are different. |

| PLC object | Gateway example | Interpretation |
|---|---|---|
| First N7 integer | N7:0, Int16, 1 | Signed 16-bit value; UInt16 interprets negative values differently. |
| First B3 word | B3:0, UInt16, 1 | Value 8 sets bit 3; this address denotes a word, not one bit. |
| First F8 REAL | F8:0, Float, 1 | Known 12.5 must remain 12.5. Verify nonzero-element and array layout separately. |
| Bit in a word | N7:0/3, Boolean | Writes use a 16-bit mask. Test only an authorized independent bit and confirm the complete word afterward. |
| First string | ST9:0, String | Verify the two-byte length, capacity, byte swap and element stride. This DF1 entry does not have PCCC’s dedicated two-read string procedure; do not apply Logix’s four-byte LEN/DATA layout. |
| Timer/counter member | T4:0.PRE, T4:0.ACC, C5:0.DN are unsupported | The editor has no subelement field and commands use subelement 0. Map required members to independent N-file values in the PLC. |
Cyclic packing uses two-byte word offsets. Verify F/L/ST and timer/counter element structures separately. Available Int32/Int64/Double/Decimal editor choices do not create corresponding native PLC files. A variable exceeding the packet budget is not automatically fragmented.
Check communication
Save and inspect the complete address and type, then enable the channel and device.

Compare the known PLC value and advancing timestamps. An open COM/TCP connection is insufficient. Protocol Debug → Messages helps distinguish the outer station, DST/SRC, transaction, A2/AA/AB commands and checksum.
| Symptom | Check |
|---|---|
| No received frame | COM ownership, model-specific cable, 8N1, half-duplex slave mode and transparent forwarding. |
| ACK then timeout | ACK is link confirmation, not a data response. Check the controller’s polling/response handshake requirements. |
| Rejected checksum/node | Match outer station, reversed response nodes and CRC/BCC independently of serial parity. |
| File/protection error | Existing downloaded file, bounds, CPU mode/protection and the model’s lower byte limit. |
For authorized write checks, use an independent N-file value, monitor it online, read back and restore it. Do not start with physical I/O, status or active timers.