Manual · Allen-Bradley
DF1 Protocol and Command Set Reference Manual
Manual251 pagesPDF 2.1 MB
Allen-Bradley reference manual for the DF1 protocol and command set, with DH+ diagnostic counters for the 5250-LP1 to LP4 processors.
What this file really is
The old site listed this file as a manual for the Allen-Bradley 5250-LP and 5250-MLP1. This is Allen-Bradley's general DF1 Protocol and Command Set Reference Manual, not a 5250-LP user manual; the 5250-LP processors appear only in its diagnostic counter tables.
Filed with · 2 models
Also filed with these models on the old site
Summary
What is in it
Allen-Bradley's DF1 Protocol and Command Set Reference Manual. It explains network layers, half-duplex and full-duplex DF1 message transfer, data-link frames with BCC and CRC fields, application message packets, the communication commands, status codes, diagnostic counters and status information by catalog number, data encoding, uploading and downloading, PLC addressing and line monitor examples. The diagnostic counters chapter includes the 5250-LP1, LP2, LP3 and LP4 (PLC-5/250) DH+ counters.
Its parts
- Network Layers
- Understanding DF1 Protocol
- Using Half-duplex Protocols to Send and Receive Messages
- Using Full-duplex Protocol to Send and Receive Messages
- Data-link Layer Message Frames
- Application Layer Message Packets
- Communication Commands
- Message Packet Status Codes (STS, EXT STS)
- Diagnostic Counters
- Diagnostic Status Information
- Data Encoding
- Uploading and Downloading with A-B Processors
- PLC Addressing
- Line Monitor Examples
- ASCII Codes
From the manual
Key facts from this manual
Some pages are scans or cannot be read; this says only what the readable text supports. Each line names its page in the PDF.
Allen-Bradley DF1 Protocol and Command Set Reference Manual (October 1996), for writing a computer driver that talks to Allen-Bradley processors over a DF1 serial link and for troubleshooting the network. It explains half-duplex and full-duplex DF1, message frames and packets, the command set, status codes, diagnostic counters and PLC addressing. It is a general reference: the PLC-5/250 processors 5250-LP1, -LP2, -LP3 and -LP4 appear only in its lists, for example their DH+ diagnostic counters, and the 5250-MLP1 is not named.
- Document
- Reference for the DF1 serial protocol and the Allen-Bradley processor command set, publication 1770-6.5.16, October 1996 p. 3, 12
- DF1 link
- RS-232 or RS-422-A serial link from a computer to an interface module on a DH, DH+, DH485 or ControlNet network p. 19
- Protocol types
- Half-duplex (master-slave) and full-duplex (peer-to-peer) p. 31
- Half-duplex settings
- 8 bits per character, no parity, 1 stop bit; 2 to 255 nodes on one link; slave node numbers 0 to 254 p. 31, 32
- Error checking
- Full-duplex: BCC or CRC on each command and reply; the receiver returns ACK or NAK p. 31
- Modem signals
- Half-duplex modems must support RTS, CTS, DCD, DSR and DTR; without DCD and DSR, jumper them to DTR p. 32
- PLC-5/250 on DH+
- PLC-5/250: connects through the Resource Manager module 5130-KA, -RM1 or -RM2; 57.6 and 115.2K bits p. 22
- 5250 counters
- 5250-LP1, -LP2, -LP3, -LP4: DH+ diagnostic counters for messages sent and received, timeouts, NAKs, retries, CRC errors, token pass retries and duplicate tokens p. 171
- DH+ link
- 64 devices; 57.6, 115.2 or 230.4K bits; best for about 15 nodes maximum p. 22
- Local STS codes
- 00 success; 01 destination out of buffer space; 02 remote node does not ACK; 03 duplicate token holder; 04 local port disconnected; 05 application layer timeout; 06 duplicate node; 07 station offline; 08 hardware fault p. 129
- Remote STS codes
- Include 10 illegal command or format; 30 remote host missing or shut down; 50 addressing problem or memory protect rungs; 70 processor in Program mode; F0 see EXT STS byte p. 130
- Command codes
- Include echo (CMD 06, FNC 00), diagnostic status (06, 03), disable outputs (07, 00), enable outputs (07, 01); values in hex p. 88, 89
- Interface modules
- 1770-KF2 DH or DH+ asynchronous (RS-232 or RS-422-A); 1770-KF3 DH485 (RS-232); 1785-KE DH+ RS-232; 1747-KE DH485/RS-232 p. 15
- DH link
- 64 devices at 57.6 K bits per second; trunk up to 10,000 feet (3,048 meters), drops up to 100 feet; station connector 1770-SC p. 20
What this manual walks you through
- Writing a DF1 driver for a computer or serial device p. 12
- Choosing between DH, DH+, DH485 and ControlNet links p. 19, 20, 22
- Setting up half-duplex master-slave links with modems p. 31, 32
- Using full-duplex links, including dial-up modems p. 33
- Formatting communication commands for each processor p. 88, 89
- Decoding STS and EXT STS status codes in replies p. 129, 130, 131
- Using diagnostic counters to find bad cabling or a noisy link p. 139
- Uploading and downloading with PLC-2, PLC-3 and PLC-5 processors p. 13
Good to know
- Command codes not listed in the manual produce unpredictable results. p. 89
- Switch settings on an interface module can disable a command at a PLC/SLC node. p. 88
- Only one half-duplex master is allowed, except a backup that stays silent unless the primary is shut down. p. 32
- A half-duplex link needs modems unless only one slave is connected directly to the master. p. 32
- On full-duplex dial-up, a carrier must be sensed at least every 10 seconds or the module drops DTR to hang up. p. 33
Questions this manual answers
What serial settings does DF1 half-duplex use?
8 bits per character, no parity and 1 stop bit. p. 31
What does STS code 70 mean in a DF1 reply?
It is a remote error: the processor is in Program mode. p. 130
How does a PLC-5/250 connect to a DH+ network?
Through the Resource Manager module (5130-KA, -RM1 or -RM2), at 57.6 or 115.2K bits. p. 22
What is the difference between DF1 half-duplex and full-duplex?
Half-duplex is master-slave on a multidrop link of up to 255 nodes; full-duplex is peer-to-peer with two-way simultaneous transmission. p. 31, 33
Which DH+ diagnostic counters do 5250-LP processors keep?
The 5250-LP1 to -LP4 count messages sent and received, undeliverable messages, response timeouts, NAKs, retries, CRC errors, token pass retries and duplicate tokens, among others. p. 171
Contents
Chapters and sections
Each line opens the PDF at its page.
- 1770-6.5.16, DF1 Protocol and Command Set, Reference Manual1
- Inside Cover2
- Summary of Changes - What's Changed in This Document3
- Preface - About This Manual12
- 1 - Network Layers18
- 2 - Understanding DF1 Protocol30
- 3 - Using Half-duplex Protocols to Send and Receive Messages38
- 4 - Using Full-duplex Protocol to Send and Receive Messages55
- 5 - Data-link Layer Message Frames73
48 more lines, from page 76 on
- BCC and CRC Fields76
- 6 - Application Layer Message Packets80
- 7 - Communication Commands88
- 8 - Message Packet Status Codes (STS, EXT STS)128
- 9 - Diagnostic Counters139
- 10 - Diagnostic Status Information172
- 11 - Data Encoding197
- 12 - Uploading and Downloading with A-B Processors204
- 13 - PLC Addressing216
- 14 - Line Monitor Examples233
- 15 - ASCII Codes241
- Index244
- Publication Problem Report249
- Back Cover251
The whole text · 31 parts
Read the manual here as text
Its text as extracted from the PDF, unedited, in parts; each page opens the PDF at that page.
- Pages 1 to 31-3
- Table of Contents4-11
- Preface - About This Manual12-17
- 1 - Network Layers18-29
- 2 - Understanding DF1 Protocol30-37
- 3 - Using Half-duplex Protocols to Send and Receive Messages, pages 38 to 4638-46
- 3 - Using Half-duplex Protocols to Send and Receive Messages, pages 47 to 5447-54
- 4 - Using Full-duplex Protocol to Send and Receive Messages, pages 55 to 6355-63
- 4 - Using Full-duplex Protocol to Send and Receive Messages, pages 64 to 7264-72
- 5 - Data-link Layer Message Frames73-79
- 6 - Application Layer Message Packets80-87
- 7 - Communication Commands, pages 88 to 9788-97
- 7 - Communication Commands, pages 98 to 10798-107
- 7 - Communication Commands, pages 108 to 117108-117
- 7 - Communication Commands, pages 118 to 127118-127
- 8 - Message Packet Status Codes (STS, EXT STS)128-138
- 9 - Diagnostic Counters, pages 139 to 147139-147
- 9 - Diagnostic Counters, pages 148 to 156148-156
- 9 - Diagnostic Counters, pages 157 to 165157-165
- 9 - Diagnostic Counters, pages 166 to 171166-171
- 10 - Diagnostic Status Information, pages 172 to 180172-180
- 10 - Diagnostic Status Information, pages 181 to 189181-189
- 10 - Diagnostic Status Information, pages 190 to 196190-196
- 11 - Data Encoding197-203
- 12 - Uploading and Downloading with A-B Processors204-215
- 13 - PLC Addressing, pages 216 to 224216-224
- 13 - PLC Addressing, pages 225 to 232225-232
- 14 - Line Monitor Examples233-240
- 15 - ASCII Codes241-243
- Index244-248
- Pages 249 to 251249-251
The file

