Home

gk2 & 1336-gm2 df1 messaging (full duplex / point-to

image

Contents

1. Allen Bradley Rockwell sEnce DoQce Automation Hine Bringing Together Leading Brands in Industrial Automation BULLETIN 1203 GD2 GK2 amp 1336 GM2 DF1 MESSAGING FULL DUPLEX POINT TO POINT APPLICATION NOTE OCTOBER 20 1999 PURPOSE The purpose of this document is to provide information on using the DF1 Full Duplex Point to Point protocol and Programmable Controller Communications Commands PCCC with the 1203 GD2 GK2 or 1336 GM2 This document is provides information only Users must ensure that installations using DF 1 and PCCC meet applicable codes and are suitable for the existing conditions WHAT THIS NOTE CONTAINS This document contains information on the DF1 Full Duplex Point to Point protocol and PCCC commands INTENDED AUDIENCE This application note should be used by personnel familiar with the hardware components and programming procedures necessary to operate SCANport devices It is also assumed that the user has some familiarity with serial communications and the programming required to implement serial protocols WHERE IT IS USED The information contained in this application note is intended to address issues in many different applications Some changes by the user may be necessary to apply the concepts of this document to a specific application APPLICATION CONSIDERATIONS SCANport devices may assign different meanings to bits in the Logic Command and Status words The usage of the Reference a
2. NAK the responder should resend the number of retries is generally programmable with a default of three retries After the responder receives an ACK message or reaches the enquiry or retry limit the message transaction is complete The data contained in these messages is a PCCC command or response 1 An 8 bit BCC or a 16 bit CRC may be used Refer to the section on checksum calculation Faxback Document 3301 http www ab com drives Page 4 of 11 Allen Bradley Rockwell sEnceE DoQce Automation Sarva od Bringing Together Leading Brands in Industrial Automation PCCC COMMAND LISTING AND EXAMPLES The table below shows all of the PCCC messages supported by the 1203 Gx2 Examples showing the structures of the message packets for some of these commands are shown on the following pages For more information about PCCC messages refer to Publication 1770 6 5 16 For more information about data table addresses inside the 1203 Gx2 refer to Publication 1203 5 5 Code Code a RS ia eae Oth Read Diagnostic Counters PLC 2 02h Set Variables Status 04h SetTimeout a 07h Reset Diagnostic Counters na 09h Read Link Parameters LogicalAddress_ _ Z OAh SetLink Parameters LogicalAddress_ o Z C oo e o o E Rae E A Pee a PLC 2 System Logical Binary Logical ASCII Not Symbolic Lee eee eee PLC 2 System Logical Binary Logical ASCII Not Symbolic s ges PLC 2 System Logic
3. 0 OFF Offset 00 OFF 00 TRANS in words 00 MASK Address Mask Byte _ 30 ADDR o S O PSA ADDR fs 00 ADDR Null Terminator ___ 00 DATAhi Lo Hi order Message BCC Checksum or 2 byte CRC DLE Message was ACK received correctly Message command message End of Message Checksum or 2 byte CRC 0 00 00 L Message was 06 ACK received correctly 1 All numbers shown in hexadecimal 2 Transaction Size Number of Words to write Faxback Document 3301 http www ab com drives Page 8 of 11 Allen Bradley Rockwell sEnceE DoQce Automation Hiie Bringing Together Leading Brands in Industrial Automation DF1 PCCC Word Range Read CMD OFh FNC 01h Full Duplex Point to Point Read the value of Parameter 5 from the SCANport device connected to the Gx2 at address 1 PLC 0 From Sender From Responder 1203 Gx2 Message 00 SRC Source 00 STS Status s00 o Unique Transaction ID number 00 OFF Offset 00 OFF 00 TRANS in words 00 MASK __ Address Mask Byte _ 30 ADDR 0 S 3A ADDR o C CC idzr 00 ADDR__ Null Terminator Cd End of Message PE BCC Checksum or 2 byte CRC Message was 06 ACK received correctly Message command message Hi byte order End of Message Checksum or 2 byte CRC 00 00 00 Ll Mess
4. 1 uses 8 bit characters which may be transmitted over any serial communications medium DF1 uses certain ASCII characters to form symbols that are embedded in the serial data stream Control Characters ASCII Hex Value Character 1 May be an Redundan daa si Single byte data characters DLE aa Message received OK DLE DLE Represents data of 10h 8 bit Block Check Character 2 s complement modulo 256 checksum or a 16 bit Cyclic cy Check CRC 16 Refer to the section on checksum calculation Faxback Document 3301 http www ab com drives Page 2 of 11 Allen Bradley Pme DOOGE lt Maximum Message Size Rockwell nl Automation a Bringing Together Leading Brands in Industrial Automation lt Minimum Message Size gt Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Message from Application Layer N 7 DF1 DATA LINK LAYER MESSAGE PACKET FIELDS DLE STX Start of message flag DST Destination address where this message packet is going SRC Source address where this message packet is from CMD The command or response to a command this message packet contains STS The status of the device this message packet is from TNS Transaction ID number a response message will have the same transaction ID number as the command message it is responding to FNC Function Code an additional command code included in certain command messages If used this is always the fir
5. age was 06 ACK _ received correctly 1 All numbers shown in hexadecimal 2 Transaction Size Number of Words to read 3 Size Number of bytes to read Faxback Document 3301 http www ab com drives Page 9 of 11 Allen Bradley Rockwell sEnceE DoQce Automation Sarva od Bringing Together Leading Brands in Industrial Automation DF1 PCCC Typed Write CMD OFh FNC 67h Full Duplex Point to Point Write a value of 5 into Parameter 5 of the SCANport device connected to the Gx2 at address 1 PLC 0 From Sender From Responder 1203 Gx2 Message oo SRC Source SS oo STS Status s b0 oS Unique Transaction ID number 00 OFF Offset 00 OFF 00 TRANS in words 00 MASK __ Address Mask Byte _ 30 ADDR 0 S PSA ADDR 00 ADDR Null Terminator _ _ 99 TYPE DataType Extended 09 EXT Data Type Array _ _ O Data in 00 DATAhi Lo Hi order Message BCC Checksum or 2 byte CRC Message was 106 ACK received correctly Message 00 DST Destination _ 00 STS_ Status sb 0 i TNS lo Same number as in TNS hi command message End of Message BCC Checksum or 2 byte CRC Message was 106 ACK received correctly 1 All numbers shown in hexadecimal 2 Transaction Size Number of Words to write 3 Data Type Size 1 2 Transaction Size Faxback Document 3301 http www ab c
6. al Binary Logical ASCII Not Symbolic See System Logical Binary Logical ASCII Not Symbolic Ath Protected Typed Logical SLCSCO Read with Two Address File Type Element Fields A2h Protected Typed Logical SLC500 Read with Three Address File Type Element Sub element Fields A9h Protected Typed Logical SLC500 Write with Two Address File Type Element Fields AAh Protected Typed Logical SLC500 Write with Three Address File Type Element Sub element Fields ABh Protected Typed Logical SLC500 Write with Four Address File Type Element Sub element Bit Mask Fields FRN2 02 and later firmware only Faxback Document 3301 http www ab com drives Page 5 of 11 Allen Bradley Rockwell sEnceE DoQce Automation Pale Bringing Together Leading Brands in Industrial Automation DF1 PCCC Unprotected Read CMD 01h Full Duplex Point to Point Read Parameter 5 from the SCANport device connected to the Gx2 at address 1 PLC 0 From Sender From Responder 1203 Gx2 Message oo SRC Source oo sts Status Unique Transaction ID number PLC 2 Address Message BCC Checksum or 2 byte CRC DLE Message was ACK received correctly Start of Message Command amp 40h Status s b 0 command message in Lo Hi format End of Message Checksum or 2 byte CRC i Oo 00 00 00 Ll Message was 06 ACK received correctly 1 All numbers shown in hexadecimal Faxbac
7. k Document 3301 http www ab com drives Page 6 of 11 Allen Bradley DOGE Hine yt lett Fad ELECTAIC DF1 PCCC Unprotected Write CMD 08h Rockwell Automation Bringing Together Leading Brands in Industrial Automation Full Duplex Point to Point Write a value of 5 into Parameter 5 of the SCANport device connected to the Gx2 at address 1 PLC 0 From Sender Message 00 SRC Source S O 08 CMD Command ___ __ 00 STS Status s00 oo Unique Transaction ID number PLC 2 Address Data in 00 DATAhi Lo Hi order End of Message PE BCC Checksum or 2 byte CRO i Message was 06 ACK _ received correctly 1 All numbers shown in hexadecimal Faxback Document 3301 From Responder 1203 Gx2 DLE Message was ACK received correctly Message command message End of Message Checksum or 2 byte CRC Oo 0 00_ 00 L http www ab com drives Page 7 of 11 Allen Bradley Rockwell sEnceE DoQce Automation Hiie Bringing Together Leading Brands in Industrial Automation DF1 PCCC Word Range Write CMD OFh FNC 00h Full Duplex Point to Point Write a value of 5 into Parameter 5 of the SCANport device connected to the Gx2 at address 1 PLC 0 From Sender From Responder 1203 Gx2 Message 00 SRC Source S O 00 STS Status s00 S O Unique Transaction ID number 00 FNC Function i O 0
8. nd Feedback words may also vary Consult the manual for your SCANport device for more information FOR MORE INFORMATION DF1 amp PCCC Data Highway Data Highway Plus DH 485 Communication Protocol and Command Set Reference Manual Publication 1770 6 5 16 1203 Gx2 Bulletin 1203 Serial Communications Module RS232 422 485 Using DF1 Protocol DH485 User Manual Publication 1203 5 5 Faxback Document 3301 http www ab com drives Page 1 of 11 ELECTAIC Allen Bradley Roc kwell mney DOGE Automation Pale Bringing Together Leading Brands in Industrial Automation NS DEFINITIO 1203 Gx2 DF1 Full Duplex Half Duplex PCCC Sender Responder A 1203 GD2 120 230vac 1203 GK2 24vdc or 1336 GM2 internal mount Serial Communications Module A serial communications protocol defined in ANSI X3 28 subparagraphs D1 and F1 Two way simultaneous transmission between two devices sometimes referred to as Point to Point Two way non simultaneous transmission between two or more devices sometimes referred to as Multi Drop Programmable Controller Communications Commands the commands transmitted over DF1 that are used to control Allen Bradley PLC s SLC s and other devices Sometimes referred to as PC Cubed A device capable of sending a command message the device that transmits first in each message transaction A device that replies to a command message DF1 SYMBOLS USED DF
9. of the two DLE s should be included in the CRC DF1 BASIC MESSAGE TRANSACTION A DF1 message transaction begins when the sender transmits a command message DLE STX data DLE ETX BCC If the responder receives the message correctly it will transmit an ACK DLE ACK If the responder receives the message incorrectly it will transmit a NAK F F n m If the responder does not transmit ACK or NAK the sender may transmit an enquiry DLE The number of times the sender will transmit an enquiry before giving up is generally programmable with a default value of three When the responder receives an enquiry it transmits an ACK or NAK depending on the status of the last message it received If the responder transmits a NAK it will take no further action on the sender s message The sender may retransmit or go on to the next message If the responder transmits an ACK it continues processing the sender s message and some time later will transmit a response message DLE STX data DLE ETX BCC If the sender device receives the message correctly it will transmit an ACK DLE ACK If the sender device receives the message incorrectly it will transmit a NAK DLE If the sender does not transmit ACK or NAK the responder may transmit an enquiry DLE The number of times the responder will transmit an enquiry before giving up is generally programmable with a default value of three If the sender transmits a
10. om drives Page 10 of 11 Allen Bradley Rockwell sEnceE DoQce Automation Sarva od Bringing Together Leading Brands in Industrial Automation DF1 PCCC Typed Read CMD OFh FNC 68h Full Duplex Point to Point Read the value of Parameter 5 from the SCANport device connected to the Gx2 at address 1 PLC 0 From Sender From Responder 1203 Gx2 Message oo SRC Source oo STS Status s00 o Unique Transaction ID number 68 FNC Function Cd 00 OFF Offset 00 OFF 00 TRANS in words 00 MASK __ Address Mask Byte _ 30 ADDR 0 S 3A ADDR o 00 ADDR___ Null Terminator Cd 00 Size hi Words Message BCC Checksum or 2 byte CRC DLE Message was ACK received correctly Message command message Hi byte order End of Message Checksum or 2 byte CRC lt i Oo 00 00 99 09 00 Ll Message was received correctly All numbers shown in hexadecimal Transaction Size Number of Words to read Size Number of Words to read Data Type Size 1 2 Number of Words read Ron AUN 3 Faxback Document 3301 http www ab com drives Page 11 of 11
11. st byte in the data block EXT STS Extended Status an additional status code included in response messages where the STS byte s upper nibble is set to Fh If used this is always the first byte in the data block ADDR Data table address inside the 1203 Gx2 Refer to the 1203 Gx2 manual for more information The structure of the address fields within the data block varies depending on the message type DLE ETX End of message flag BCC Checksum may be an 8 bit Block Check Character or a 16 bit Cyclic Redundancy Check Refer to the section on checksum calculation Faxback Document 3301 http www ab com drives Page 3 of 11 Allen Bradley Rockwell sEnceE DoQce Automation Pale Bringing Together Leading Brands in Industrial Automation DLE STUFFING When the control character DLE 10h appears between the DLE STX and DLE ETX of a message it must be replaced with DLE DLE before transmission When decoding such a message only one of the DLE bytes should be included in the BCC or CRC calculation CHECKSUM CALCULATION BCC Add all bytes between DLE STX start of message and DLE ETX end of message using modulo 256 Then perform a two s complement If DLE stuffing was used in the message data only one of the two DLE s should be included in the BCC CRC ACRC 16 that includes all bytes between DLE STX start of message and DLE ETX end of message and the ETX byte If DLE stuffing was used in the message data only one

Download Pdf Manuals

image

Related Search

Related Contents

Hotpoint RGB780REHSS Use and Care Manual  Kenroy Home 50284SL Installation Guide  Acu-Rite 00305TG User's Manual  Télécharger le numéro complet - Revue suisse de viticulture  Topcom SOLOGIC B-931  AN11664 QN9020 Quick Start Guide  eco,purc - Leroy Merlin  haga clic aquí    EZ-EYE Set-up & User Guide  

Copyright © All rights reserved.
Failed to retrieve file