Rockwell-automation 1770, D17706.5.16 Ref Mnl DF1 Protocol Command Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Ekwipunek Rockwell-automation 1770, D17706.5.16 Ref Mnl DF1 Protocol Command. Rockwell Automation 1770, D17706.5.16 Ref Mnl DF1 Protocol Command User Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 251
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów

Podsumowanie treści

Strona 1 - Reference

ReferenceManualDF1 Protocol andCommand SetAllenBradley

Strona 2 - Information

Table of Contents vii1785LT (PLC5/15) and 6008LTV (PLC5 VME) Status Bytes 10-20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1785

Strona 3 - Document

7–13Communication CommandsPublication 17706.5.16 - October 1996open fileOpens a file in an SLC 500 processor. If the file is successfullyopened, a T

Strona 4 - Table of Contents

7–14 Communication CommandsPublication 17706.5.16 - October 1996physical write Downloads data into the PLC data table or program memory. Use this

Strona 5 - Table of Contentsii

7–15Communication CommandsPublication 17706.5.16 - October 1996protected bit write Sets or resets individual bits within limited areas of the PLC da

Strona 6 - Table of Contents iii

7–16 Communication CommandsPublication 17706.5.16 - October 1996protected typed file readReads data from an open file in a MicroLogix 1000 or an SLC

Strona 7 - Table of Contentsiv

7–17Communication CommandsPublication 17706.5.16 - October 1996protected typed logical read with three address fields Reads data from a logical addre

Strona 8 - Table of Contents v

7–18 Communication CommandsPublication 17706.5.16 - October 1996protected typed logical write with three address fields Writes data to a logical addr

Strona 9 - Table of Contentsvi

7–19Communication CommandsPublication 17706.5.16 - October 1996protected write Writes words of data into limited areas of the PLC data tablememory.

Strona 10 - Encoding

7–20 Communication CommandsPublication 17706.5.16 - October 1996read link parameters Reads the DH485 parameter, Maximum Solicit Address. This parame

Strona 11 - Table of Contentsviii

7–21Communication CommandsPublication 17706.5.16 - October 1996readmodifywrite N Sets or resets specified bits in specified words of data table me

Strona 12 - About This Manual

7–22 Communication CommandsPublication 17706.5.16 - October 1996read section sizeReads the size of the section most fully addressed by the systemaddr

Strona 13 - Contains

Table of ContentsviiiDownloading to an SLC 500 Processor 12-10. . . . . . . . . . . . . . Procedure 1  SLC 500, SLC 5/01 and SLC 5/02 Processors

Strona 14 - Related Publications

7–23Communication CommandsPublication 17706.5.16 - October 1996restart request (restart)Terminates an upload or a download. The computer cannot issu

Strona 15 - Related Products

7–24 Communication CommandsPublication 17706.5.16 - October 1996return edit resource Returns the edit resource (sole access) of the processor when ed

Strona 16 - Conventions Used in This

7–25Communication CommandsPublication 17706.5.16 - October 1996set ENQs Sets the maximum number of ENQs that the asynchronous interfacemodule issues

Strona 17 - Network Basics

7–26 Communication CommandsPublication 17706.5.16 - October 1996set CPU mode Sets the operating mode of the processor at the next I/O scan. The oper

Strona 18 - Network Layers

7–27Communication CommandsPublication 17706.5.16 - October 1996set timeout Sets the maximum amount of time that the asynchronous interfacemodule wai

Strona 19 - Physical Layer

7–28 Communication CommandsPublication 17706.5.16 - October 1996shutdownAsks the interface module to initiate either a PLC-3 shutdown (if the compute

Strona 20

7–29Communication CommandsPublication 17706.5.16 - October 1996Data Type ID (Bits 47) Data Type Size (Bits 03)The following table contains a list o

Strona 21 - 1–4 Network Layers

7–30 Communication CommandsPublication 17706.5.16 - October 1996typed write (write block) Writes a block of data to the processor starting at the PLC

Strona 22

7–31Communication CommandsPublication 17706.5.16 - October 1996Important: The interface module at the receiving PLC nodeexecutes this command by firs

Strona 23 - 1–6 Network Layers

7–32 Communication CommandsPublication 17706.5.16 - October 1996unprotected write 1774-PLC, PLC-2, PLC-3, PLC-5Writes words of data into any area o

Strona 24 - Software Layers

Preface17706.5.16  October, 1996About This ManualRead this preface to familiarize yourself with this manual. This preface includes information on:

Strona 25

7–33Communication CommandsPublication 17706.5.16 - October 1996upload all request (upload)Places a PLC-5 processor in Upload mode before uploading ac

Strona 26 - Message Packet Structure

7–34 Communication CommandsPublication 17706.5.16 - October 1996upload completedAfter uploading a complete system, use to return the processor to the

Strona 27

7–35Communication CommandsPublication 17706.5.16 - October 1996word range write (write block) Writes to a word or file starting at a specified addres

Strona 28

7–36 Communication CommandsPublication 17706.5.16 - October 1996The type/data parameter is a variable length field. The mostsignificant bit of each

Strona 29 - Protocol

7–37Communication CommandsPublication 17706.5.16 - October 1996Example 2: Type/data parameter for writing or reading integer dataThis example shows

Strona 30 - Understanding DF1 Protocol

7–38 Communication CommandsPublication 17706.5.16 - October 1996Important: There are also some limitations on the basic commands SLC 500 family nodes

Strona 31 - DF1 Protocol

7–39Communication CommandsPublication 17706.5.16 - October 1996You can map the SLC 500 CIF file to PLC-2 memory as shown inthe following example. Th

Strona 32 - • data-terminal-ready (DTR)

7–40 Communication CommandsPublication 17706.5.16 - October 1996Example: Reading the 18th and 19th bytes shown in the example on page 7-39These exam

Strona 33 - Fullduplex Protocol

Chapter 8Publication 17706.5.16 - October 1996Message Packet Status Codes(STS, EXT STS)Use this chapter to help interpret status codes that appear i

Strona 34 - Character Transmission

8–2 Message Packet Status Codes (STS, EXT STS)Publication 17706.5.16 - October 1996The STS byte provides information about the execution or failure o

Strona 35 - Transmission Symbols

About This ManualP–217706.5.16  October, 1996This manual is divided into five units:Chapter 3, Using HalfduplexProtocol to Send andReceive Message

Strona 36 - See APP DATA

8–3Message Packet Status Codes (STS, EXT STS)Publication 17706.5.16 - October 1996Remote STS Error CodesThe remote STS error code nibble contains err

Strona 37

8–4 Message Packet Status Codes (STS, EXT STS)Publication 17706.5.16 - October 1996EXT STS Codes for CMD 0FHex Code Explanation0 Not used1 A field ha

Strona 38 - Send and Receive Messages

8–5Message Packet Status Codes (STS, EXT STS)Publication 17706.5.16 - October 1996DH485 EXT STS Codes Hex Code Explanation07H Insufficient memory mod

Strona 39 - Transmission

8–6 Message Packet Status Codes (STS, EXT STS)Publication 17706.5.16 - October 1996Remote STS and EXT STS Codes from a PLC3 ProcessorA PLC-3 interfa

Strona 40 - Environment

8–7Message Packet Status Codes (STS, EXT STS)Publication 17706.5.16 - October 1996Command ExplanationSTS CodeEXT STS CodePLC/PLC2 read- 10•The requi

Strona 41

8–8 Message Packet Status Codes (STS, EXT STS)Publication 17706.5.16 - October 1996Command ExplanationSTS CodeEXT STS CodePLC3 word write- 10•There

Strona 42

8–9Message Packet Status Codes (STS, EXT STS)Publication 17706.5.16 - October 1996Command ExplanationSTS CodeEXT STS CodePLC3 physical reads- 10•The

Strona 43

8–10 Message Packet Status Codes (STS, EXT STS)Publication 17706.5.16 - October 1996Command ExplanationSTS CodeEXT STS CodePLC3 bit write- 10 More t

Strona 44 - 5HVSRQVLELOLWLHV

Module DiagnosticsDiagnostic Counters  Chapter 9Diagnostic Status Information  Chapter 10

Strona 45 - 6LPSOLILHG 1HWZRUN /D\HU

Chapter 9Publication 17706.5.16 - October 1996Diagnostic CountersDiagnostic counters are bytes of information stored in RAM in eachmodule. The coun

Strona 46 - 6ODYH 7UDQVFHLYHU $FWLRQV

About This Manual P–317706.5.16  October, 1996Term Definitionlocal node The node sending the commandnode The point at which devices, such as progra

Strona 47

9–2 Diagnostic CountersPublication 17706.5.16 - October 1996Reading diagnostic countersTo read diagnostic counters, you issue a diagnostic read comma

Strona 48 - 'LDJUDPV

9–3Diagnostic CountersPublication 17706.5.16 - October 1996Cat. Nos. Link Pages1747KE DH485 9-31747L20, L30, L40, L511, L514, L524, L532ÀDH48

Strona 49

9–4 Diagnostic CountersPublication 17706.5.16 - October 19961747L541, L542, and L543 (SLC 5/04 processors) DH+Diagnostic CountersThis counter byte

Strona 50

9–5Diagnostic CountersPublication 17706.5.16 - October 19961747L541, L542, and L543 (SLC 5/03 and 5/04 processors)DH485 Diagnostic CountersThis co

Strona 51 - 3ROO ZLWK 0HVVDJH 5HWXUQHG

9–6 Diagnostic CountersPublication 17706.5.16 - October 19961747L541, L542, and L543 (SLC 5/03 and SLC 5/04 processors)DF1 Diagnostic CountersThis

Strona 52

9–7Diagnostic CountersPublication 17706.5.16 - October 1996Cat. Nos. Link Pages1761L16AWA, L16BBB, L16BWB, L32AWA, L32BWA,DH485 9-71761 L16AWA,

Strona 53 - 0HVVDJH 6LQN )XOO &DVH 

9–8 Diagnostic CountersPublication 17706.5.16 - October 1996Cat. Nos. Link Pages1770 KF2DH 9-81770KF2DH+9-111770KF3 DH485 9-31770KFC DF1 9-131770

Strona 54 - 0HVVDJH 6LQN )XOO &DVH 

9–9Diagnostic CountersPublication 17706.5.16 - October 1996This counter byte Counts the number of9Frames that were rejected because they were less th

Strona 55 - Using Fullduplex Protocol to

9–10 Diagnostic CountersPublication 17706.5.16 - October 1996This counter byte Counts the number of21, 22 Times the node attempted to send a message.

Strona 56 - Message Transmission

9–11Diagnostic CountersPublication 17706.5.16 - October 19961770KF2 and 1785KE DH+ and Asynchronous Link DiagnosticCountersThis counter byte Count

Strona 57

About This ManualP–417706.5.16  October, 1996 Allen-Bradley offers a wide range of interfaces for the DH, DH+,and DH485 networks, including:Catalo

Strona 58 - Transfer

9–12 Diagnostic CountersPublication 17706.5.16 - October 1996This counter byte Counts the number of35, 36 Times node attempted to send a message.37,

Strona 59 - How the Transmitter Operates

9–13Diagnostic CountersPublication 17706.5.16 - October 19961770KFC DF1 Diagnostic CountersThis counter byte Counts the number of1 Total DF1 packets

Strona 60

9–14 Diagnostic CountersPublication 17706.5.16 - October 1996Cat. Nos. Link Pages1771KA, 1771KA2, and 1774KA DH 9-14, 9-151771KC DH 9-16, 9-18177

Strona 61

9–15Diagnostic CountersPublication 17706.5.16 - October 1996This counter byte Counts the number of9 Frames that were rejected because the header was

Strona 62

9–16 Diagnostic CountersPublication 17706.5.16 - October 1996This counter byte Counts the number of30 Replies lost because they could not be delivere

Strona 63

9–17Diagnostic CountersPublication 17706.5.16 - October 1996This counter byte Counts the number of8 Times the receiver received a status frame instea

Strona 64 - Diagrams

9–18 Diagnostic CountersPublication 17706.5.16 - October 1996This counter byte Counts the number of15 Duplicate frames received.A duplicate frame is

Strona 65 - Message Transfer with NAK

9–19Diagnostic CountersPublication 17706.5.16 - October 19961771KG,KGM Diagnostic CountersAsynchronous Link Diagnostic CountersThis counter byte Co

Strona 66

9–20 Diagnostic CountersPublication 17706.5.16 - October 1996Internal Event CountersThis counter byte Counts the number of35 Messages routed to RS23

Strona 67

9–21Diagnostic CountersPublication 17706.5.16 - October 1996Cat. Nos. Link Pages1775KAÀDH 9-211775S5, SR5 DH+ 9-21ÀPLC3 processors1775KA,S5,SR

Strona 68

About This Manual P–517706.5.16  October, 1996Communication, diagnostic, and driver softwareDH 6001-NET Network Communications Software (Series 600

Strona 69 - In this transfer:

9–22 Diagnostic CountersPublication 17706.5.16 - October 1996Asynchronous Link Counters (1775KA only)This counter byte Counts the number of29, 30 Co

Strona 70

9–23Diagnostic CountersPublication 17706.5.16 - October 19961775S5,SR5 DH+ Diagnostic CountersThis counter byte Counts the number of0, 1 Messages s

Strona 71

9–24 Diagnostic CountersPublication 17706.5.16 - October 1996Cat. Nos. Link Pages1779KP5 DH+ 9-241779KP5 DH+ Diagnostic CountersThis counter byte C

Strona 72 - Message Packets

9–25Diagnostic CountersPublication 17706.5.16 - October 1996Cat. Nos. Link Pages1784KR DH485 9-31784KT, KT2 DH+ 9-251784KT and 1784KT2 DH+ Diagn

Strona 73 - Datalink Layer Message

9–26 Diagnostic CountersPublication 17706.5.16 - October 1996Cat. Nos. Link Pages1785KE DH+ 9-111785KA3 DH+ 9-281785KA DH 9-261785KA DH+ 9-271785

Strona 74 - Message Frames

9–27Diagnostic CountersPublication 17706.5.16 - October 19961785KA DH+ Diagnostic CountersThis counter byte Counts the number of0 Times received ACK

Strona 75

9–28 Diagnostic CountersPublication 17706.5.16 - October 19961785KA3 DH+ Diagnostic CountersThis counter byte Counts the number of0 Received ACKs wi

Strona 76 - BCC and CRC Fields

9–29Diagnostic CountersPublication 17706.5.16 - October 19961785KA5 DH+ Diagnostic CountersThis counter byteCounts the number of➀01 Timeouts that ex

Strona 77 - Full-duplex protocol example

9–30 Diagnostic CountersPublication 17706.5.16 - October 19961785KA5 DH485 Diagnostic CountersThis counter byte Counts the number of0, 1 Total packe

Strona 78 - CRC Field

9–31Diagnostic CountersPublication 17706.5.16 - October 1996Below are diagnostic counters for the channel 0 serial port. These counters vary dependi

Strona 79

Network BasicsNetwork Layers  Chapter 1

Strona 80 - Application Layer Message

9–32 Diagnostic CountersPublication 17706.5.16 - October 19961785L20E, L40E, L40L, L60L, L80E DH+ Diagnostic CountersThis counter byte Counts th

Strona 81 - Receives Messages

9–33Diagnostic CountersPublication 17706.5.16 - October 1996Cat. Nos. Link Pages5250LP1, LP2, LP3, LP4À processorsDH+ 9-33ÀPLC5/250 processors52

Strona 82 - Message Packet Format

Chapter 10Publication 17706.5.16 - October 1996Diagnostic Status InformationIn chapter 8, we showed you the diagnostic status message packetformat.

Strona 83 - DST and SRC

10–2 Diagnostic Status InformationPublication 17706.5.16 - October 1996For status information from these cat. nos. See page1747KE 10-21747L20, L30

Strona 84 - CMD and FNC

10–3Diagnostic Status InformationPublication 17706.5.16 - October 19961747L20, L30, L40, L511, L514, L524 (SLC 500, SLC 5/01 andSLC 5/02 proces

Strona 85 - STS and EXT STS

10–4 Diagnostic Status InformationPublication 17706.5.16 - October 19961747L532, L541, L542, L543 (SLC 5/03 and SLC 5/04processors) Status Bytes

Strona 86

10–5Diagnostic Status InformationPublication 17706.5.16 - October 1996Bytes DescriptionContentsBits240 directory file corrupted1 not used = 027 prog

Strona 87

10–6 Diagnostic Status InformationPublication 17706.5.16 - October 19961761L16AWA, L16BBB, L16BWB, L32AWA, L32BWA,L32BWB (MicroLogix 1000 proce

Strona 88 - Communication Commands

10–7Diagnostic Status InformationPublication 17706.5.16 - October 19961770KF3 Status Bytes Bytes Bits Contents Description1 1 Mode/Status 00 (no mod

Strona 89 - 7–2 Communication Commands

10–8 Diagnostic Status InformationPublication 17706.5.16 - October 1996Bytes DescriptionContentsBits 90 - 4Series and revision level of interface mod

Strona 90 - 7–3Communication Commands

Chapter 1Publication 17706.5.16 - October 1996Network LayersYour network is made up of several layers, including:Physical layer transmits bits betwe

Strona 91 - 7–4 Communication Commands

10–9Diagnostic Status InformationPublication 17706.5.16 - October 1996Bytes Bits Contents Description1771KG Module (Series B)1 0 = second module; 1

Strona 92 - 7–5Communication Commands

10–10 Diagnostic Status InformationPublication 17706.5.16 - October 1996Bytes DescriptionContentsBits10 Settings of the option switches on the1771KG

Strona 93 - 7–6 Communication Commands

10–11Diagnostic Status InformationPublication 17706.5.16 - October 1996For status information from these cat. nos. See page1773KA 10-111775KA, 1775

Strona 94 - 7–7Communication Commands

10–12 Diagnostic Status InformationPublication 17706.5.16 - October 1996Bytes DescriptionContentsBits90 - 4Module series and revision level0 = Revisi

Strona 95 - 7–8 Communication Commands

10–13Diagnostic Status InformationPublication 17706.5.16 - October 19961775KA, S5 and SR5 Status Bytes Bytes Bits Contents Description10 - 1Operat

Strona 96

10–14 Diagnostic Status InformationPublication 17706.5.16 - October 19961779KP5 Status Bytes Bytes Bits Contents Description1 all 00 Not used2 all I

Strona 97 - 7–10 Communication Commands

10–15Diagnostic Status InformationPublication 17706.5.16 - October 1996For status information from these cat. nos. See page1784KR 10-151784KT,KT2

Strona 98

10–16 Diagnostic Status InformationPublication 17706.5.16 - October 1996For status information from these cat. nos. See page1785KA 10-161785KA3 10-

Strona 99 - 7–12 Communication Commands

10–17Diagnostic Status InformationPublication 17706.5.16 - October 19961785KA5 Status Bytes DH+ Status BytesBytes Bits Contents Description0 all mod

Strona 100 - phys. address

10–18 Diagnostic Status InformationPublication 17706.5.16 - October 1996Bytes DescriptionContentsBits3 - 4 all Octal address of the start of the PLC

Strona 101 - 7–14 Communication Commands

1–2 Network LayersPublication 17706.5.16 - October 1996The physical layer is a set of cables and interface modules thatprovides a channel for communi

Strona 102 - to 60 masks of this form

10–19Diagnostic Status InformationPublication 17706.5.16 - October 19961785KE Status Bytes Bytes Bits Contents Description1 all Operating status of

Strona 103

10–20 Diagnostic Status InformationPublication 17706.5.16 - October 19961785LT (PLC5/15) and 6008LTV (PLC5 VME) Status Bytes Bytes Bits Contents

Strona 104

10–21Diagnostic Status InformationPublication 17706.5.16 - October 19961785LT3 (PLC5/12) and 1785LT2 (PLC5/25) Status Bytes Bytes Bits Contents D

Strona 105

10–22 Diagnostic Status InformationPublication 17706.5.16 - October 19961785L11B, L20B, L20E, L30B, L40B, L40E, L40L, L60B,L60L Status Byte

Strona 106 - 7–19Communication Commands

10–23Diagnostic Status InformationPublication 17706.5.16 - October 1996Bytes DescriptionContentsBits19 all Debug mode = 0, OFF0 0, ON20 - 21 all Hold

Strona 107 - 7–20 Communication Commands

10–24 Diagnostic Status InformationPublication 17706.5.16 - October 1996Bytes DescriptionContentsBits6 - 7 all Program Change Sequence Count 1 word8

Strona 108 - 7–21Communication Commands

ReferenceData Encoding  Chapter 11Uploading and Downloading with AB Processors Chapter 12PLC Addressing  Chapter 13Line Monitor Examples  Chapter

Strona 109 - 7–22 Communication Commands

Chapter 11Publication 17706.5.16 - October 1996Data EncodingThis chapter provides:• definitions of numbering systems you can use in your application

Strona 110 - 7–23Communication Commands

11–2 Data EncodingPublication 17706.5.16 - October 1996In general, PLC processors store binary data (1s and 0s) in 16-bitgroups called words. If you

Strona 111

11–3Data EncodingPublication 17706.5.16 - October 1996BinaryThe binary numbering system is a simple method for computer andPLC applications because i

Strona 112 - 7–25Communication Commands

Because of the variety of uses for the products described in thispublication, those responsible for the application and use of thiscontrol equipment m

Strona 113

1–3Network LayersPublication 17706.5.16 - October 1996DH Link A DH link is a local area network (LAN) designed for factory-floorapplications. This l

Strona 114 - 7–27Communication Commands

11–4 Data EncodingPublication 17706.5.16 - October 1996Hexadecimal The hexadecimal (hex) numbering system is the most compact wayto represent binary

Strona 115 - PLC5 sys. address

11–5Data EncodingPublication 17706.5.16 - October 1996 OctalThe octal number system is another easy way to represent binarydata. This system uses th

Strona 116 - 17706.5.16 - October 1996

11–6 Data EncodingPublication 17706.5.16 - October 1996PLC processors store data in 16-bit (2-byte) words. The bits in thesewords are numbered (addr

Strona 117 - Set Reset

11–7Data EncodingPublication 17706.5.16 - October 1996A 16-Bit Word in PLC Memory10 100101 1 1 0 1 1 00117 16 15 14 13 12 11 10 7 6 5 4 3 2 1 0Bit(Oc

Strona 118 - 7–31Communication Commands

Chapter 12Publication 17706.5.16 - October 1996Uploading and Downloadingwith AB ProcessorsRead this chapter to help you perform uploads from and do

Strona 119 - 7–32 Communication Commands

12–2 Uploading and Downloading with A-B ProcessorsPublication 17706.5.16 - October 1996To make sure the program image is stable during an upload, the

Strona 120

12–3Uploading and Downloading with A-B ProcessorsPublication 17706.5.16 - October 1996Uploading from a PLC5 ProcessorImportant: Uploads cannot be pe

Strona 121 - PLC sys. address

12–4 Uploading and Downloading with A-B ProcessorsPublication 17706.5.16 - October 1996Procedure 1 — PLC-5/15/B processors, revision E and earlier1.

Strona 122

12–5Uploading and Downloading with A-B ProcessorsPublication 17706.5.16 - October 1996Procedure 2The processor can be in any mode while uploading.1.

Strona 123 - Parameter Examples

12–6 Uploading and Downloading with A-B ProcessorsPublication 17706.5.16 - October 1996Uploading from an SLC 500 Processor1. Open the directory to be

Strona 124 - 7–37Communication Commands

1–4 Network LayersPublication 17706.5.16 - October 1996Unlike a master/slave relationship, a floating master relationshipdoes not require the current

Strona 125

12–7Uploading and Downloading with A-B ProcessorsPublication 17706.5.16 - October 1996Downloading to a PLC2 Processor1. Place the PLC-2 processor in

Strona 126 - Example:

12–8 Uploading and Downloading with A-B ProcessorsPublication 17706.5.16 - October 1996Downloading to a PLC3 Processor1. Determine if the destinatio

Strona 127 - 7–40 Communication Commands

12–9Uploading and Downloading with A-B ProcessorsPublication 17706.5.16 - October 1996Procedure 1 (PLC-5/15/B rev E and earlier)1. Place the PLC-5 pr

Strona 128 - (STS, EXT STS)

12–10 Uploading and Downloading with A-B ProcessorsPublication 17706.5.16 - October 1996Procedure 21. Verify the processor type using diagnostic stat

Strona 129 - STS Byte

12–11Uploading and Downloading with A-B ProcessorsPublication 17706.5.16 - October 1996Procedure 1 — SLC 500, SLC 5/01 and SLC 5/02 Processors1. Dete

Strona 130 - EXT STS Byte

12–12 Uploading and Downloading with A-B ProcessorsPublication 17706.5.16 - October 1996Procedure 2 — SLC 5/03 and SLC 5/04 Processors1. Make sure th

Strona 131

Chapter 13Publication 17706.5.16 - October 1996PLC AddressingPLC processors support these types of addressing:Type of Addressing Descriptionlogical

Strona 132 - EXT STS Codes

13–2 PLC AddressingPublication 17706.5.16 - October 1996PLC-2 and 1774-PLC processors support logical and physicaladdressing:For information on See p

Strona 133

13–3PLC AddressingPublication 17706.5.16 - October 1996PLC2 Physical AddressingPLC-2 processors use physical addresses that are directly related tot

Strona 134

13–4 PLC AddressingPublication 17706.5.16 - October 1996PLC-3 family controllers support logical, physical, and symbolicaddressing.For information on

Strona 135

1–5Network LayersPublication 17706.5.16 - October 1996DH+ LinkA DH+ link is similar to a DH link, but is optimally used for smallernetworks consistin

Strona 136

13–5PLC AddressingPublication 17706.5.16 - October 1996PLC3 Logical AddressingPLC-3 processors use a form of logical addressing known asextended add

Strona 137

13–6 PLC AddressingPublication 17706.5.16 - October 1996Example: PLC3 logical binary addressing formatE3 1 8 260 0Data table area = level 10Context

Strona 138 - Module Diagnostics

13–7PLC AddressingPublication 17706.5.16 - October 1996PLC3 Physical AddressingPLC-3 processors use physical addresses that are related to logicalad

Strona 139 - Diagnostic Counters

13–8 PLC AddressingPublication 17706.5.16 - October 1996PLC3 Symbolic AddressingSymbolic addressing uses ASCII symbols to represent a logicaladdress

Strona 140 - 9–2 Diagnostic Counters

13–9PLC AddressingPublication 17706.5.16 - October 1996PLC-5 processors support logical and physical addressing:For information on See pagelogical ad

Strona 141 - 1747 Cat. Nos

13–10 PLC AddressingPublication 17706.5.16 - October 1996PLC5 Logical AddressingPLC-5 processors, like PLC-3 processors, use a form of logicaladdres

Strona 142

13–11PLC AddressingPublication 17706.5.16 - October 1996PLC-5 Logical Binary AddressingByte Contents1 the mask byteThis byte determines which four le

Strona 143 - DH485 Diagnostic Counters

13–12 PLC AddressingPublication 17706.5.16 - October 1996PLC5 Logical Binary Address to Access the Address N7:30level 1 (value = 0); data table07301

Strona 144 - DF1 Diagnostic Counters

13–13PLC AddressingPublication 17706.5.16 - October 1996PLC5 Memory (for use with figures on page 13-12 )level 1level 2 level 3 level 40 (data table

Strona 145 - 1761 Cat. Nos

13–14 PLC AddressingPublication 17706.5.16 - October 1996Important: If the value of the mask or a level of the address isgreater than or equal to 255

Strona 146 - 1770 Cat. Nos

1–6 Network LayersPublication 17706.5.16 - October 1996DH485 LinkA DH485 link is a low cost, peer-to-peer programming and data-acquisition link for a

Strona 147

13–15PLC AddressingPublication 17706.5.16 - October 1996PLC5/250 RM/LP Memory (for use with figures on page 13-14)level 1 level 2 level 3 level 4 le

Strona 148

13–16 PLC AddressingPublication 17706.5.16 - October 1996PLC5 Physical AddressingPLC-5 processors use physical addresses that are related to logical

Strona 149 - Counters

13–17PLC AddressingPublication 17706.5.16 - October 1996PLC5 Floating PointPLC-5 type reads and type writes use the IEEE floating point. (This is t

Strona 150

Chapter 14Publication 17706.5.16 - October 1996Line Monitor ExamplesThis chapter contains line monitor examples for DF1 protocol. Each example show

Strona 151

14–2 Line Monitor ExamplesPublication 17706.5.16 - October 1996When monitoring half-duplex protocol in two-wire mode, you needto monitor only one lin

Strona 152 - 1771 Cat. Nos

14–3Line Monitor ExamplesPublication 17706.5.16 - October 1996In the following example an unprotected read (CMD 01 hex) is sent:• from a computer con

Strona 153

14–4 Line Monitor ExamplesPublication 17706.5.16 - October 1996CommandField Value FunctionDLE STX (2 bytes) 10 02 Indicates the start of a messageDST

Strona 154

14–5Line Monitor ExamplesPublication 17706.5.16 - October 1996ReplyField Value FunctionDLE STX (2 bytes) 10 02 Indicates the start of the reply messa

Strona 155

14–6 Line Monitor ExamplesPublication 17706.5.16 - October 1996In this example three word range reads (CMD 0F, FNC 01) are sent:• from a computer con

Strona 156

14–7Line Monitor ExamplesPublication 17706.5.16 - October 1996CommandField Value FunctionDLE STX (2 bytes) 10 02 Indicates the start of a messageDST

Strona 157

1–7Network LayersPublication 17706.5.16 - October 1996Your DF1 links and network links (DH, DH+, and DH485) each usetwo layers of software to enable

Strona 158

14–8 Line Monitor ExamplesPublication 17706.5.16 - October 1996ReplyField Value FunctionDLE STX (2 bytes) 10 02 Indicates the start of the reply mess

Strona 159 - 1775 Cat. Nos

Chapter 15Publication 17706.5.16  July 1996ASCII CodesASCII Hex Binary DecimalNUL00 00000000 0SOH 01 00000001 1STX 02 00000010 2ETX 03 00000011 3EO

Strona 160

15-2 ASCII CodesPublication 17706.5.16  July 1996ASCII Hex Binary DecimalR52 01010010 82S 53 01010011 83T 54 01010100 84U 55 01010101 85V 56 0101011

Strona 161

15-3ASCII CodesPublication 17706.5.16  July 1996ASCII Hex Binary DecimalAC 10101100 172AD 10101101 173AE 10101110 174AF 10101111 175B0 10110000 176B

Strona 162 - 1779 Cat. Nos

Symbols**Empty**, P-1, P-2, P-4, P-5, 2-2, 2-3, 6-1, 6-2, 6-3, 7-1Numbers16-bit computer word, 11-716-bit PLC word, 11-71747,

Strona 163 - 1784 Cat. Nos

IndexI–2Application layer, 1-7description of, 1-8Application layer protocol, 6-1Application program, how it sends andreceives messages, 6-2Ap

Strona 164 - 1785 Cat. Nos

IndexI–3Data link layer protocols, 2-4Data type ID, 7-29Data type size, 7-29Decimal, 11-2DH+ diagnostic counters, 1747-L542, 9-4, 9-5, 9-

Strona 165

IndexI–4MManualpurpose, P-1who should read, P-1Master, 2-3Master packet, 5-2Messagepriority, 1-10reply, 1-9Message bytes, data bytes,

Strona 166

IndexI–5Protocol environmentdefinition, 4-3message characteristics, 4-4message sink, 4-3message source, 4-3transmitter operation, 4-5RRecei

Strona 167

AllenBradleyPublication Problem ReportIf you find a problem with our documentation, please complete and return this form.Pub. NameCat. No.Pub. No. Pu

Strona 168

1–8 Network LayersPublication 17706.5.16 - October 1996Application LayerThis layer controls and executes the actual commands specified inthe communic

Strona 169 - • half-duplex master

Other CommentsPLEASE FOLD HERENO POSTAGE NECESSARY IF MAILED IN THE UNITED STATESBUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO. 18235 CLEVELAND OHPOST

Strona 170

Publication 17706.5.16  July 1996AllenBradley, a Rockwell Automation Business, has been helping its customers improveproductivity and quality for m

Strona 171 - 5250 Cat. Nos

1–9Network LayersPublication 17706.5.16 - October 1996MessagesSee Chapter 7, “Communication Commands,” for:• a description of the command messages fo

Strona 172 - Diagnostic Status Information

1–10 Network LayersPublication 17706.5.16 - October 1996Message PriorityYou specify the priority level for each DH command in the messagecommand code

Strona 173

1–11Network LayersPublication 17706.5.16 - October 1996Types of CommandsFrom your computer on a DF1 link to a node on a DH, DH+ orDH485 link, you can

Strona 174 - SLC 5/02 processors only

ProtocolUnderstanding DF1 Protocol  Chapter 2Using Halfduplex Protocols to Send and ReceiveMessages  Chapter 3Using Fullduplex Protocols to Send a

Strona 175

Summary of ChangesPublication 17706.5.16 - October 1996What's Changed in ThisDocumentThis document contains important information concerning the

Strona 176 - Cat. Nos

Chapter 2Publication 17706.5.16 - October 1996Understanding DF1 ProtocolIf you are connecting an interface module to a computer, you mustprogram the

Strona 177

2–2 Understanding DF1 ProtocolPublication 17706.5.16 - October 1996A link protocol is a set of programming rules for interpreting thesignals transmit

Strona 178 - 1770KF3 Status Bytes

2–3Understanding DF1 ProtocolPublication 17706.5.16 - October 1996Using half-duplex protocolWhen you use half-duplex protocol, the intended environme

Strona 179

2–4 Understanding DF1 ProtocolPublication 17706.5.16 - October 1996Fullduplex ProtocolUse full-duplex protocol:• over a point-to-point link that all

Strona 180

2–5Understanding DF1 ProtocolPublication 17706.5.16 - October 1996Allen-Bradley interface modules send data serially over theRS-232-C/RS-422-A interf

Strona 181

2–6 Understanding DF1 ProtocolPublication 17706.5.16 - October 1996Both half-duplex and full-duplex protocols are character-oriented.They use the ASC

Strona 182 - 1773, 1775, and 1779

2–7Understanding DF1 ProtocolPublication 17706.5.16 - October 1996Table 2.C Halfduplex Transmission SymbolsSymbolType MeaningDLE SOH control symbolS

Strona 183

2–8 Understanding DF1 ProtocolPublication 17706.5.16 - October 1996Table 2.D Fullduplex Transmission SymbolsSymbolType MeaningDLE STX control symbol

Strona 184

Chapter 3Publication 17706.5.16 - October 1996Using Halfduplex Protocols toSend and Receive MessagesIn half-duplex protocol, devices share the same

Strona 185 - 1779KP5 Status Bytes

3–2 Using Half-duplex Protocols to Send and Receive MessagesPublication 17706.5.16 - October 1996Half-duplex protocol:• is a multidrop protocol for o

Strona 186

What's Changed in This Document soc-i. . . . . . . . . . . . . . About This Document soc-i. . . . . . . . . . . . . . . . . . . . . . . . .

Strona 187

3–3Using Half-duplex Protocols to Send and Receive MessagesPublication 17706.5.16 - October 1996Each node on a multidrop link contains a software rou

Strona 188 - 1785KA3 Status Bytes

3–4 Using Half-duplex Protocols to Send and Receive MessagesPublication 17706.5.16 - October 1996The following program describes the actions of the t

Strona 189

3–5Using Half-duplex Protocols to Send and Receive MessagesPublication 17706.5.16 - October 1996GETMESSAGE is defined asGET-CODEwhile it is data code

Strona 190 - 1785KE Status Bytes

3–6 Using Half-duplex Protocols to Send and Receive MessagesPublication 17706.5.16 - October 1996The following flowchart shows the software logic for

Strona 191

ï8VLQJ +DOIGXSOH[ 3URWRFROV WR 6HQG DQG 5HFHLYH 0HVVDJHV3XEOLFDWLRQ  ï 2FWREHU ,GHDOO\ WKH GDWDOLQN OD\HU SURWRFRO LV QRW FRQFHUQH

Strona 192

ï8VLQJ +DOIGXSOH[ 3URWRFROV WR 6HQG DQG 5HFHLYH 0HVVDJHV3XEOLFDWLRQ  ï 2FWREHU )XOO 6LQNV:KHQ D QRGH WLPHV RXW WR D PHVVDJH FRPPDQG

Strona 193 - L60L Status Bytes

ï8VLQJ +DOIGXSOH[ 3URWRFROV WR 6HQG DQG 5HFHLYH 0HVVDJHV3XEOLFDWLRQ  ï 2FWREHU 6LQFH LQSXW VHQW WR WKH WUDQVFHLYHU FDQ RIWHQ EH DIIH

Strona 194 - 5130 Cat. Nos

ï8VLQJ +DOIGXSOH[ 3URWRFROV WR 6HQG DQG 5HFHLYH 0HVVDJHV3XEOLFDWLRQ  ï 2FWREHU ,I DQ\ FRQWURO V\PERO RWKHU WKDQ D '/( (7; %&am

Strona 195

ï8VLQJ +DOIGXSOH[ 3URWRFROV WR 6HQG DQG 5HFHLYH 0HVVDJHV3XEOLFDWLRQ  ï 2FWREHU :KHQ D PHVVDJH LV WUDQVPLWWHG DIWHU UHFHLYLQJ D SROO

Strona 196

ï8VLQJ +DOIGXSOH[ 3URWRFROV WR 6HQG DQG 5HFHLYH 0HVVDJHV3XEOLFDWLRQ  ï 2FWREHU 1RUPDO 0HVVDJH 7UDQVIHU,Q WKLV WUDQVIHU GDWD E\WHV

Strona 197 - Data Encoding

Table of ContentsiiUsing Halfduplex Protocols to Send and Receive Messages 3-1. . . . . . . . . . . . . . . . . . . . . . . Halfduplex Protocol Me

Strona 198 - Numbering Systems

ï8VLQJ +DOIGXSOH[ 3URWRFROV WR 6HQG DQG 5HFHLYH 0HVVDJHV3XEOLFDWLRQ  ï 2FWREHU 0HVVDJH 7UDQVIHU ZLWK $&. 'HVWUR\HG,Q WKLV

Strona 199 - Binary Coded Decimal

ï8VLQJ +DOIGXSOH[ 3URWRFROV WR 6HQG DQG 5HFHLYH 0HVVDJHV3XEOLFDWLRQ  ï 2FWREHU 3ROO ZLWK 0HVVDJH 5HWXUQHG,Q WKLV WUDQVIHU WKH PDV

Strona 200 - Hexadecimal

ï8VLQJ +DOIGXSOH[ 3URWRFROV WR 6HQG DQG 5HFHLYH 0HVVDJHV3XEOLFDWLRQ  ï 2FWREHU 'XSOLFDWH 0HVVDJH 7UDQVPLVVLRQ,Q WKLV WUDQVIHU

Strona 201 - Binary Floatingpoint

ï8VLQJ +DOIGXSOH[ 3URWRFROV WR 6HQG DQG 5HFHLYH 0HVVDJHV3XEOLFDWLRQ  ï 2FWREHU 0HVVDJH 6LQN )XOO &DVH ,Q WKLV WUDQVIHU WKH V

Strona 202 - Order of Transmission

ï8VLQJ +DOIGXSOH[ 3URWRFROV WR 6HQG DQG 5HFHLYH 0HVVDJHV3XEOLFDWLRQ  ï 2FWREHU 0HVVDJH 6LQN )XOO &DVH ,Q WKLV WUDQVIHU WKH V

Strona 203 - Right-to-Left Bit Order

Chapter 4Publication 17706.5.16 - October 1996Using Fullduplex Protocol toSend and Receive MessagesIn full-duplex protocol, devices share the same

Strona 204 - Uploading and Downloading

4–2 Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996With full-duplex protocol, a link uses two physical c

Strona 205 - Processor

4–3Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996Figure 4.2 Software implementation of data pathsSoftwa

Strona 206

4–4 Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996Figure 4.3 shows the protocol environment for message

Strona 207

4–5Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996How the Transmitter OperatesThe following program desc

Strona 208

Table of Contents iiiDatalink Layer Message Frames 5-1. . . . . . . . . . . . . . . . Halfduplex Protocol Message Frames 5-2. . . . . . . . . .

Strona 209 - Downloading to the

4–6 Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996The following flowcharts the software logic for imple

Strona 210

4–7Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996How the Receiver OperatesThe receiver must be capable

Strona 211

4–8 Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996The following program describes the actions of the re

Strona 212

4–9Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996The following flowchart is the software logic for impl

Strona 213

4–10 Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996These transfer diagrams show events that occur on va

Strona 214

4–11Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996Message Transfer with NAKIn this transfer:• the trans

Strona 215

4–12 Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996Message Transfer with Timeout and ENQIn this transfe

Strona 216 - PLC Addressing

4–13Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996Message Transfer with ReTransmissionIn this transfer

Strona 217 - Addressing

4–14 Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996Message Transfer with Message Sink FullIn this trans

Strona 218 - 1774PLC Physical Addressing

4–15Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996Message Transfer with NAK on ReplyIn this transfer:•

Strona 219 - PLC3 Addressing

Table of Contentsivecho 7-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . enable outputs 7-9. . . . . . . . . .

Strona 220 - PLC3 Logical Addressing

4–16 Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996Message Transfer with Timeout and ENQ for the ReplyI

Strona 221

4–17Using Full-duplex Protocol to Send and Receive MessagesPublication 17706.5.16 - October 1996Message Transfer with Message Source Full on the Repl

Strona 222 - PLC3 Physical Addressing

Message PacketsDatalink Layer Message Frames  Chapter 5Application Layer Message Packets  Chapter 6Communication Commands  Chapter 7Message Packet

Strona 223 - • and so on

Chapter 5Publication 17706.5.16 - October 1996Datalink Layer MessageFramesIn the data-link layer of a message frame:• half-duplex protocol uses thr

Strona 224 - PLC5 Addressing

5–2 Data-link Layer Message FramesPublication 17706.5.16 - October 1996Half-duplex protocol uses three types of transmissions:• polling frame• master

Strona 225 - PLC5 Logical Addressing

5–3Data-link Layer Message FramesPublication 17706.5.16 - October 1996Full-duplex protocol implements different message frames,depending on the netwo

Strona 226

5–4 Data-link Layer Message FramesPublication 17706.5.16 - October 1996At the end of each polling frame and each message frame, there is a one-byte B

Strona 227 - 13–12 PLC Addressing

5–5Data-link Layer Message FramesPublication 17706.5.16 - October 1996Full-duplex protocol exampleIf a message frame contained the data 08. 09, 06, 0

Strona 228

5–6 Data-link Layer Message FramesPublication 17706.5.16 - October 1996CRC FieldFor these protocolsYou calculate the CRC value➀fullduplex using the

Strona 229 - 13–14 PLC Addressing

5–7Data-link Layer Message FramesPublication 17706.5.16 - October 1996The full-duplex and half-duplex slave and master protocol examplesbelow provide

Strona 230

Table of Contents vword range read (read block) 7-34. . . . . . . . . . . . . . . . . . . . . . word range write (write block) 7-35. . . . . .

Strona 231 - PLC5 Physical Addressing

Chapter 6Publication 17706.5.16 - October 1996Application Layer MessagePacketsRead this chapter to help learn about the application layer for youras

Strona 232 - • low byte then high byte

6–2 Application Layer Message PacketsPublication 17706.5.16 - October 1996There are two types of application programs:• command initiators• command e

Strona 233 - Line Monitor Examples

6–3Application Layer Message PacketsPublication 17706.5.16 - October 1996Most devices send and receive messages using this message packet format:DST

Strona 234 - Halfduplex Line Monitor

6–4 Application Layer Message PacketsPublication 17706.5.16 - October 1996DST and SRCForm the DST and SRC bytes of a reply message by interchangingth

Strona 235 - Monitor Example

6–5Application Layer Message PacketsPublication 17706.5.16 - October 1996CMD and FNCThese bytes work together to define the activity that is to beper

Strona 236

6–6 Application Layer Message PacketsPublication 17706.5.16 - October 1996STS and EXT STSThese bytes work together to indicate the status of the mess

Strona 237

6–7Application Layer Message PacketsPublication 17706.5.16 - October 1996TNSThe TNS (transaction) bytes contain a unique 16-bit transactionidentifier

Strona 238 - Fullduplex PLC3 Line

6–8 Application Layer Message PacketsPublication 17706.5.16 - October 1996ADDRThe ADDR (address) bytes contain the byte address of a memorylocation i

Strona 239 - TOTAL TRANS

Chapter 7Publication 17706.5.16 - October 1996Communication CommandsThis chapter contains the format you should use when sendingcommunication comman

Strona 240 - DLE ETX (2

7–2 Communication CommandsPublication 17706.5.16 - October 1996Use this table to locate commands you want to use. For additionalinformation on the c

Strona 241 - ASCII Codes

Table of Contentsvi1775 Cat. Nos. 9-21. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1775KA,S5,SR5 DH Diagnostic Counters 9

Strona 242 - 17706.5.16  July 1996

7–3Communication CommandsPublication 17706.5.16 - October 1996Command PageProcessorsFNCCMDMicroLogix1000SLC500ÃSLC5/03SLC5/041774PLCPLC2 PLC3 PLC

Strona 243

7–4 Communication CommandsPublication 17706.5.16 - October 1996apply port configurationChanges the configuration of some or all ports. If there are

Strona 244

7–5Communication CommandsPublication 17706.5.16 - October 1996change modeMicroLogix 1000Changes the mode of the MicroLogix processor.FNC3ADST SRCSRC

Strona 245

7–6 Communication CommandsPublication 17706.5.16 - October 1996diagnostic status Reads a block of status information from an interface module. The

Strona 246

7–7Communication CommandsPublication 17706.5.16 - October 1996download all request (download) Places a PLC-5 processor in Download mode before downlo

Strona 247

7–8 Communication CommandsPublication 17706.5.16 - October 1996download request (download privilege)Used by a computer to inform an interface module

Strona 248

7–9Communication CommandsPublication 17706.5.16 - October 1996enable outputsReturns control of the outputs to the 1774-PLC ladder diagramprogram. Us

Strona 249 - Publication Problem Report

7–10 Communication CommandsPublication 17706.5.16 - October 1996enter upload mode Puts the PLC-2 processor in Upload mode. Use this command on aPLC

Strona 250 - BUSINESS REPLY MAIL

7–11Communication CommandsPublication 17706.5.16 - October 1996file write (write file)Writes data, starting at a file symbol or block address. This

Strona 251 - , Inc. Printed in USA

7–12 Communication CommandsPublication 17706.5.16 - October 1996initialize memory Resets the processor’s memory to the default directory (the direct

Komentarze do niniejszej Instrukcji

Brak uwag