BULLETIN 1203-GD2, -GK2 & 1336-GM2 DF1 MESSAGING (FULL DUPLEX / POINT-TO-POINT)

Similar documents
FPU-16 A-B PROTOCOL/DATA LOGGER MANUAL

ALLEN-BRADLEY MICROLOGIX / SLC500 & EASON 2000 FAMILY

MPU-32 AND FPU-32 TIA-485 NETWORK

DirectNET Host. Communications Programs. In This Chapter...

EWBS Receiving Module Communication specifications

Control Characters used in DirectNET

UNPROTECTED BLOCK READ: 01H (see pages 5, 9-18) format p. 7

ControlLogix Multi-Vendor Interface Module DF1 API

Allen-Bradley DF1 Driver PTC Inc. All Rights Reserved.

SCA Transport Protocol Driver

S-Series Sensor ASCII Protocol v8.1.0

INTELLIS. Modbus Direct Network Monitor

VIGOR PROGRAMMABLE LOGICAL CONTROLLERS VIGOR ELECTRIC CORP.

PLX51-DF1-MSG. DF1 Messenger DF1 to EtherNet/IP TM Messenger USER MANUAL

Data Link Technology. Suguru Yamaguchi Nara Institute of Science and Technology Department of Information Science

User Guide. Modbus Module. For Digistart soft starters. Part Number: Issue: 3.

OPERATION MANUAL Card Reader Communication

11 Serial Communications

Data link layer functions. 2 Computer Networks Data Communications. Framing (1) Framing (2) Parity Checking (1) Error Detection

It is the installer's responsibility to follow all instructions in this manual and to follow correct electrical practice.

Allen-Bradley SLC5 Driver Configuration Manual

Overview. Data Link Technology. Role of the data-link layer. Role of the data-link layer. Function of the physical layer

User Manual. Allen-Bradley. Bulletin 1203 Serial Communications Module (Series B) efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive

Inst: Chris Davison

EQ-DCM User Manual Revision 1.02 Sep 10, 2013

RS-485 DF1 Adapter. 20-COMM-S FRN 1.xxx. User Manual

CS 4453 Computer Networks Winter

DB-II Serial Communication Protocol Revision 0.2(English)

THT-500-A/R (C5) 1. System Configuration COMMUNICATION INSTRUCTION MANUAL. No. THT5CE

Example 1: Read N7:1, N7:2, N7:3 into IntegersRead[] table, offset for starting index is 2. Fig.1 Source data, MicroLogix 1500.

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY COMPUTER NETWORKS UNIT - II DATA LINK LAYER

DriveExplorer Software. Easy-to-Use Software for Allen-Bradley Drives

The data link layer has a number of specific functions it can carry out. These functions include. Figure 2-1. Relationship between packets and frames.

Data Link Layer. Overview. Links. Shivkumar Kalyanaraman

Flex Series User Guide

Chapter 3. The Data Link Layer. Wesam A. Hatamleh

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

Allen-Bradley. Application Guide. SCADA System. (Publication AG-6.5.8)

Logix5000 Data Access

Positional Number System

DL3500-DH-485/MODBUS COMMUNICATION CONTROLLER APPLICATION NOTE

MELSEC iq-f FX5 User's Manual (MELSEC Communication Protocol)

Communications Protocol

DATA LINK LAYER UNIT 7.

EtherNet /IP User Guide

DH-485/RS-232C Interface Module. Catalog Number 1747-KE. User Manual. AB Parts

1. Introduction. 2. Installation MODBUS INTERFACE

Quick Talking to ControlLogix (PCCC-style)

RSLogix500 Project Report

RS485 DF1 Communications Module

Data Link Layer: Overview, operations

1. SELECTING NEW PROTOCOLS

Problem Max. Points Act. Points Grader

RS485 INSTRUCTION MANUAL. DM4500 Series. Page 1 of 6

PLX51-DF1-ENI. DF1 Router DF1 to EtherNet/IP TM Router USER MANUAL

1.1. INTRODUCTION 1.2. NUMBER SYSTEMS

TECHNICAL BULLETIN [ 1 / 8 ]

ProSoft Technology, Inc. RTU-5/03 Processor for Allen-Bradley SLC Modular Racks Inside this Manual

COMLI. System Description

2D BARCODE SCANNER CA-SC-20200B

Lecture (09) x86 programming 8

PayLink-IP/232 Configuration Guide 2005 Lava Computer MFG Inc.

D I G I M A X BINARY COMMUNICATIONS PROTOCOL SYSTEM COMMAND AND CONTROL LANGUAGE APPLICATION MANUAL. Revision B1 April 30, 1993

Telematics. 5rd Tutorial - LLC vs. MAC, HDLC, Flow Control, E2E-Arguments

ALLEN-BRADLEY DF1 INTEGRATION KIT FOR OPTOCONTROL USER S GUIDE

Appendix. Pioneering Protocols

Lecture / The Data Link Layer: Framing and Error Detection

IBM Library/Drive Interface Specification

Fundamentals of Programming (C)

DATA LINK LAYER: NEED

Mounting Dimensions / Viewing 2 Mounting Options 3. Wiring Configuration 4. Quick Set up Procedure 5. Changing Intensity 6.

RS485/RS232 Communications Interface

MicroLogix Ethernet Interface (ENI)

DL4000-DMX DF1 Full Duplex to Modbus (Master or Slave) Application Note

The RS-485 user manual for B800 series communication

Serial I/O. 4: Serial I/O. CET360 Microprocessor Engineering. J. Sumey

EZ Protocol. Communication Protocol for EZPLC. For use of EZAutomation and AVG Customers with EZPLC Products. Copyright 2005 AVG

1. System Configuration

750/760 COMMUNICATIONS GUIDE. Digital Energy Multilin. Feeder Management Relay

EITF25 Internet Techniques and Applications L3: Data Link layer. Stefan Höst

Network Port. Introduction Page 3. Engineering 9. Installation Procedures 13. Commissioning Procedures 17. Defining Objects 21

Allen-Bradley Driver for DeltaV Series 2 Programmable Serial Interface Card With Redundancy

2.1 CHANNEL ALLOCATION 2.2 MULTIPLE ACCESS PROTOCOLS Collision Free Protocols 2.3 FDDI 2.4 DATA LINK LAYER DESIGN ISSUES 2.5 FRAMING & STUFFING

EtherNet /IP User Guide

8.2 User Defined Protocol Communication

A GUIDE TO RS-232 COMMUNICATION WITH FX PLCS

II. Principles of Computer Communications Network and Transport Layer

TOA IC-100 Institutional Intercom. Remote Control and Monitoring Programmer's Guide

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Map

ALLEN-BRADLEY DF1 INTEGRATION KIT FOR iocontrol USER S GUIDE

NOKIA M2M SYSTEM PROTOCOL 2 SPECIFICATION. Copyright 2004 Nokia. All rights reserved. Issue

COMPUTER NETWORKS UNIT I. 1. What are the three criteria necessary for an effective and efficient networks?

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala Set 4. September 09 CMSC417 Set 4 1

THERMO-CON. Model No. HECR002-A5. Keep available whenever necessary.

Number Representations

Number Systems for Computers. Outline of Introduction. Binary, Octal and Hexadecimal numbers. Issues for Binary Representation of Numbers

16.682: Communication Systems Engineering. Lecture 17. ARQ Protocols

PureScan - ML1. Configuration Guide. Wireless Linear Imager Wireless Laser scanner - 1 -

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. Nov 1,

GE MDS, LLC. NETio Series. Protocol Communications Supplement. March 2013 Part No A01, Rev. C

Transcription:

BULLETIN 1203-GD2, -GK2 & 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 DF1 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 and Feedback words may also vary. Consult the manual for your SCANport device for more information. FOR MORE INFORMATION DF1 & PCCC 1203-Gx2 Data Highway/Data Highway Plus/DH-485 Communication Protocol and Command Set Reference Manual Publication 1770-6.5.16 Bulletin 1203 Serial Communications Module RS232/422/485 (Using DF1 Protocol) DH485 User Manual Publication 1203-5.5 Page1of11

DEFINITIONS 1203-Gx2 A 1203-GD2 (120/230vac), 1203-GK2 (24vdc) or 1336-GM2 (internal mount) Serial Communications Module. DF1 A serial communications protocol defined in ANSI X3.28 subparagraphs D1 and F1. Full Duplex Half Duplex PCCC Sender Responder 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 DF1 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 Symbol Type Meaning Character STX 02h data Data Single byte data characters ETX 03h DLE ACK Control Message received OK ENQ 05h DLE DLE Data Represents data of 10h ACK 06h DLE ENQ Control Retransmit ACK or NAK DLE 10h DLE ETX BCC 1 Control End of a message NAK 15h DLE NAK Control Bad message received DLE STX Control Start of a new message 1 May be an 8-bit Block Check Character (2 s complement modulo 256 checksum) or a 16-bit Cyclic Redundancy Check (CRC-16). Refer to the section on checksum calculation. Page2of11

Maximum Message Size Minimum Message Size Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 DST SRC CMD STS TNS Data (0-250 Bytes) DLE STX Message from Application Layer DLE ETX BCC DF1 DATA LINK LAYER MESSAGE PACKET FIELDS DLE STX DST SRC CMD STS TNS FNC EXT STS ADDR DLE ETX BCC Start of message flag. Destination address -- where this message packet is going. Source address -- where this message packet is from. The command (or response to a command) this message packet contains. The status of the device this message packet is from. Transaction ID number -- a response message will have the same transaction ID number as the command message it is responding to. Function Code -- an additional command code included in certain command messages. If used, this is always the first byte in the data block. 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. 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. End of message flag. Checksum -- may be an 8-bit Block Check Character or a 16-bit Cyclic Redundancy Check. Refer to the section on checksum calculation. Page3of11

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 CRC 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. A CRC-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 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 1 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: DLE NAK If the responder does not transmit ACK or NAK the sender may transmit an enquiry: DLE ENQ 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 1 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 NAK If the sender does not transmit ACK or NAK the responder may transmit an enquiry: DLE ENQ 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 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. Page4of11

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. CMD FNC Command Name PLC Addressing Style Code Code 01h n/a Unprotected Read PLC-2 06h 00h Echo n/a 01h Read Diagnostic Counters PLC-2 02h Set Variables n/a 03h Identify Host and Some n/a Status 04h Set Timeout n/a 07h Reset Diagnostic Counters n/a 09h Read Link Parameters Logical Address 0Ah Set Link Parameters Logical Address 08h n/a Unprotected Write PLC-2 0Fh 00 * Word Range Write PLC-2 System, Logical Binary, Logical ASCII (Not Symbolic) 01 * Word Range Read PLC-2 System, Logical Binary, Logical ASCII (Not Symbolic) 67h Typed Write PLC-2 System, Logical Binary, Logical ASCII (Not Symbolic) 68h Typed Read PLC-2 System, Logical Binary, Logical ASCII (Not Symbolic) A1h A2h A9h AAh ABh Protected Typed Logical Read with Two Address Fields Protected Typed Logical Read with Three Address Fields Protected Typed Logical Write with Two Address Fields Protected Typed Logical Write with Three Address Fields Protected Typed Logical Write with Four Address Fields * FRN2.02 and later firmware only SLC500 File/Type/Element SLC500 File/Type/Element/Sub-element SLC500 File/Type/Element SLC500 File/Type/Element/Sub-element SLC500 File/Type/Element/Sub-element/Bit Mask Page5of11

DF1 PCCC Unprotected Read (CMD = 01h) Read Parameter 5 from the SCANport device connected to the Gx2 at address 1. (PLC = 0) 01 CMD Command 00 STS Status 01 TNS lo Unique Transaction 03 TNS hi ID number 0A ADDR lo PLC-2 04 ADDR hi Address 02 SIZE Size in bytes 41 CMD Command & 40h 01 TNS lo (Same number as in 03 TNS hi command message) 05 DATA lo Two bytes of data 00 DATA hi in Lo/Hi format 1. All numbers shown in hexadecimal Page6of11

DF1 PCCC Unprotected Write (CMD = 08h) Write a value of 5 into Parameter 5 of the SCANport device connected to the Gx2 at address 1. (PLC = 0) 08 CMD Command 21 TNS lo Unique Transaction 03 TNS hi ID number 0A ADDR lo PLC-2 04 ADDR hi Address 05 DATA lo Data in 00 DATA hi Lo/Hi order 48 CMD Command & 40h 21 TNS lo (Same number as in 03 TNS hi command message) 1. All numbers shown in hexadecimal Page7of11

DF1 PCCC Word Range Write (CMD = 0Fh, FNC = 00h) Write a value of 5 into Parameter 5 of the SCANport device connected to the Gx2 at address 1. (PLC = 0) 0F CMD Command E1 TNS lo Unique Transaction 03 TNS hi ID number 00 FNC Function 00 OFF Offset 00 OFF 01 TRANS 2 Transaction Size 00 TRANS 2 in words 00 MASK Address Mask Byte 24 ADDR $ - Logical ASCII 4E ADDR N 31 ADDR 1 30 ADDR 0 3A ADDR : 35 ADDR 5 00 ADDR Null Terminator 05 DATA lo Data in 00 DATA hi Lo/Hi order 4F CMD Command & 40h E1 TNS lo (Same number as in 03 TNS hi command message) 1. All numbers shown in hexadecimal. 2. Transaction Size = Number of Words to write Page8of11

DF1 PCCC Word Range Read (CMD = 0Fh, FNC = 01h) Read the value of Parameter 5 from the SCANport device connected to the Gx2 at address 1. (PLC = 0) 0F CMD Command 01 TNS lo Unique Transaction 04 TNS hi ID number 01 FNC Function 00 OFF Offset 00 OFF 01 TRANS 2 Transaction Size 00 TRANS 2 in words 00 MASK Address Mask Byte 24 ADDR $ - Logical ASCII 4E ADDR N 31 ADDR 1 30 ADDR 0 3A ADDR : 35 ADDR 5 00 ADDR Null Terminator 02 SIZE 3 Size in bytes 4F CMD Command & 40h 01 TNS lo (Same number as in 04 TNS hi command message) 05 DATA Data in Lo byte 00 DATA / Hi byte order 1. All numbers shown in hexadecimal. 2. Transaction Size = Number of Words to read 3. Size = Number of bytes to read Page9of11

DF1 PCCC Typed Write (CMD = 0Fh, FNC = 67h) Write a value of 5 into Parameter 5 of the SCANport device connected to the Gx2 at address 1. (PLC = 0) 0F CMD Command 41 TNS lo Unique Transaction 03 TNS hi ID number 67 FNC Function 00 OFF Offset 00 OFF 01 TRANS 2 Transaction Size 00 TRANS 2 in words 00 MASK Address Mask Byte 24 ADDR $ - Logical ASCII 4E ADDR N 31 ADDR 1 30 ADDR 0 3A ADDR : 35 ADDR 5 00 ADDR Null Terminator 99 TYPE Data Type - Extended 09 EXT Data Type - Array 03 EXT 3 Data Type - Size 42 EXT Data Type - Integer 05 DATA lo Data in 00 DATA hi Lo/Hi order 4F CMD Command & 40h 41 TNS lo (Same number as in 03 TNS hi command message) 1. All numbers shown in hexadecimal. 2. Transaction Size = Number of Words to write 3. Data Type - Size = 1 + 2 * Transaction Size Page 10 of 11

DF1 PCCC Typed Read (CMD = 0Fh, FNC = 68h) Read the value of Parameter 5 from the SCANport device connected to the Gx2 at address 1. (PLC = 0) 0F CMD Command 61 TNS lo Unique Transaction 03 TNS hi ID number 68 FNC Function 00 OFF Offset 00 OFF 01 TRANS 2 Transaction Size 00 TRANS 2 in words 00 MASK Address Mask Byte 24 ADDR $ - Logical ASCII 4E ADDR N 31 ADDR 1 30 ADDR 0 3A ADDR : 35 ADDR 5 00 ADDR Null Terminator 01 SIZE lo 3 Size in 00 Size hi 3 Words 4F CMD Command & 40h 61 TNS lo (Same number as in 03 TNS hi command message) 99 TYPE Data Type - Extended 09 EXT Data Type - Array 03 EXT 4 Data Type - Size 42 EXT Data Type - Integer 05 DATA Data in Lo byte 00 DATA / Hi byte order 1. All numbers shown in hexadecimal. 2. Transaction Size = Number of Words to read 3. Size = Number of Words to read 4. Data Type Size = 1 + 2 * Number of Words read Page 11 of 11