Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact
Page 1 of DF1 Protocol and Command Set Reference Manual

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.

Download the PDF2.1 MB

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

  1. Network Layers
  2. Understanding DF1 Protocol
  3. Using Half-duplex Protocols to Send and Receive Messages
  4. Using Full-duplex Protocol to Send and Receive Messages
  5. Data-link Layer Message Frames
  6. Application Layer Message Packets
  7. Communication Commands
  8. Message Packet Status Codes (STS, EXT STS)
  9. Diagnostic Counters
  10. Diagnostic Status Information
  11. Data Encoding
  12. Uploading and Downloading with A-B Processors
  13. PLC Addressing
  14. Line Monitor Examples
  15. 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.

Read for this summary: pages 1 to 3, 12 to 15, 19 to 20, 22, 31 to 33, 88 to 89, 129 to 131, 139 and 171 of 251.

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.

  1. 1770-6.5.16, DF1 Protocol and Command Set, Reference Manual1
  2. Inside Cover2
    1. Important User Information2
  3. Summary of Changes - What's Changed in This Document3
    1. About This Document3
    2. Changes to This Document3
  4. Preface - About This Manual12
    1. Purpose of This Manual12
    2. Who Should Use This Manual12
    3. What This Manual Contains13
    4. Terms and Abbreviations14
    5. Related Publications14
    6. Related Products15
    7. Conventions Used in This Manual16
  5. 1 - Network Layers18
    1. Physical Layer19
    2. Software Layers24
    3. Message Packet Structure26
  6. 2 - Understanding DF1 Protocol30
    1. DF1 Protocol31
    2. Character Transmission34
    3. Transmission Symbols35
  7. 3 - Using Half-duplex Protocols to Send and Receive Messages38
    1. Half duplex Protocol Message Transmission39
    2. Transmitter and Receiver Message Transfer40
    3. Half duplex Protocol Environment40
    4. Message Characteristics44
    5. Master Polling Responsibilities44
    6. Slave Transceiver Actions46
    7. Half-Duplex Protocol Diagrams48
  8. 4 - Using Full-duplex Protocol to Send and Receive Messages55
    1. Full-duplex Protocol Message Transmission56
    2. Full duplex Protocol Environment57
    3. Message Characteristics58
    4. Transmitter and Receiver Message Transfer58
    5. Full duplex Protocol Diagrams64
  9. 5 - Data-link Layer Message Frames73
    1. Half duplex Protocol Message Frames74
    2. Full duplex Protocol Message Frames75
48 more lines, from page 76 on
  1. BCC and CRC Fields76
  2. 6 - Application Layer Message Packets80
    1. How Your Application Program Sends and Receives Messages81
    2. Message Packet Format82
  3. 7 - Communication Commands88
    1. PLC 5 Type/Data Parameter Examples123
    2. SLC 500 Information125
    3. Reading and Writing SLC 500 Data125
    4. Reading and Writing SLC 500 Data (using PLC-2 terminology)125
  4. 8 - Message Packet Status Codes (STS, EXT STS)128
    1. STS Byte129
    2. EXT STS Byte130
    3. Remote STS and EXT STS Codes132
  5. 9 - Diagnostic Counters139
    1. 1770 Cat. Nos.146
    2. 1747 Cat. Nos.141
    3. 1761 Cat. Nos.145
    4. 1771 Cat. Nos.152
    5. 1775 Cat. Nos.159
    6. 1779 Cat. Nos.162
    7. 1784 Cat. Nos.163
    8. 1785 Cat. Nos.164
    9. 5250 Cat. Nos.171
  6. 10 - Diagnostic Status Information172
    1. 1747 Cat. Nos.173
    2. 1761, 1770, and 1771 Cat. Nos.176
    3. 1773, 1775, and 1779 Cat. Nos.182
    4. 1784 Cat. Nos.186
    5. 1785 Cat. Nos.187
    6. 5130 Cat. Nos.194
  7. 11 - Data Encoding197
    1. Numbering Systems198
    2. Order of Transmission202
  8. 12 - Uploading and Downloading with A-B Processors204
    1. Uploading from the Processor205
    2. Downloading to the Processor209
  9. 13 - PLC Addressing216
    1. PLC 2/1774 PLC Addressing217
    2. PLC 3 Addressing219
    3. PLC 5 Addressing224
  10. 14 - Line Monitor Examples233
    1. Half duplex Line Monitor Example234
    2. Full duplex PLC 2 Line Monitor Example235
    3. Full duplex PLC 3 Line Monitor Example238
  11. 15 - ASCII Codes241
  12. Index244
  13. Publication Problem Report249
  14. Back Cover251

From the PDF’s own bookmarks.

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.

  1. Pages 1 to 31-3
  2. Table of Contents4-11
  3. Preface - About This Manual12-17
  4. 1 - Network Layers18-29
  5. 2 - Understanding DF1 Protocol30-37
  6. 3 - Using Half-duplex Protocols to Send and Receive Messages, pages 38 to 4638-46
  7. 3 - Using Half-duplex Protocols to Send and Receive Messages, pages 47 to 5447-54
  8. 4 - Using Full-duplex Protocol to Send and Receive Messages, pages 55 to 6355-63
  9. 4 - Using Full-duplex Protocol to Send and Receive Messages, pages 64 to 7264-72
  10. 5 - Data-link Layer Message Frames73-79
  11. 6 - Application Layer Message Packets80-87
  12. 7 - Communication Commands, pages 88 to 9788-97
  13. 7 - Communication Commands, pages 98 to 10798-107
  14. 7 - Communication Commands, pages 108 to 117108-117
  15. 7 - Communication Commands, pages 118 to 127118-127
  16. 8 - Message Packet Status Codes (STS, EXT STS)128-138
  17. 9 - Diagnostic Counters, pages 139 to 147139-147
  18. 9 - Diagnostic Counters, pages 148 to 156148-156
  19. 9 - Diagnostic Counters, pages 157 to 165157-165
  20. 9 - Diagnostic Counters, pages 166 to 171166-171
  21. 10 - Diagnostic Status Information, pages 172 to 180172-180
  22. 10 - Diagnostic Status Information, pages 181 to 189181-189
  23. 10 - Diagnostic Status Information, pages 190 to 196190-196
  24. 11 - Data Encoding197-203
  25. 12 - Uploading and Downloading with A-B Processors204-215
  26. 13 - PLC Addressing, pages 216 to 224216-224
  27. 13 - PLC Addressing, pages 225 to 232225-232
  28. 14 - Line Monitor Examples233-240
  29. 15 - ASCII Codes241-243
  30. Index244-248
  31. Pages 249 to 251249-251

The file

Revision and size

Part no.1770-6.5.16
RevisionOctober 1996
PublisherAllen-Bradley
Pages251
PDF2.1 MB
TextText from the PDF itself; pages 17 and 138 are scans, read by OCR, which may hold reading errors.
1770-6.5.16

The first pages · 3 of 251

Look before you download

Each page opens the PDF at that page.

Page 1
Page 1of 251
Page 2
Page 2of 251
Page 3
Page 3of 251