Page 1
Bulletin 1203 Serial Communications Module RS232/422/485 (Using DF1 Protocol) Catalog Number 1203-GD2, -GK2, -GM2 User Manual...
Page 2
In no event will Allen-Bradley Company be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment.
Page 3
Summary of Changes Summary Information These changes have been made since any preliminary photocopy documents were issued: Chapter 1 A trademark symbol has been added to 1336 PLUS on page 1-1. Chapter 2 The word “board” has been changed to “module” in the last sentence of paragraph four on page 2-1.
Page 4
Summary of Changes This Page Intentionally Left Blank...
Table of Contents Introduction Chapter 1 Manual Objectives ........Who Should Use This Manual .
Page 6
Allen-Bradley Company, Inc. SMC, PLC-2/30, PLC-5/10, PLC-5/15, PLC-5/25, PLC-5/30, PLC-5/40, PLC-5/40L, PLC-5/60L, PLC-5/80, and PLC-5/250 are trademarks of Allen-Bradley Company, Inc. SCANport is a registered trademark of Allen-Bradley Company, Inc. SLC 500, SLC-5/02, and SLC-5/03 are registered trademarks of Allen-Bradley Company, Inc.
Serial Communications Module. For information on specific features of Allen-Bradley products mentioned herein, refer to the product user manual. IMPORTANT: This manual should be read in its entirety before installing, operating, servicing, or initializing the Serial Communications Module.
Component damage may result if ESD control procedures are not followed. If you are not familiar with static control procedures, reference Allen-Bradley Publication 8000–4.5.2, Guarding Against Electrostatic Damage or any other applicable ESD protection handbook.
Chapter 1 Component Test Procedures Serial Device Compatibility This Communications Module is intended for use with devices that communicate via the following protocols: Hardware Standard Communications Protocol RS232 RS422 RS485 IMPORTANT: “DF1” protocol is typically used with Allen-Bradley PLC programmable controllers.
Page 10
Chapter 1 Introduction This Page Intentionally Left Blank.
Chapter Product Description Chapter Objectives In this chapter, you will read about: S Communications Module features S Location of configuration switches Module Description The Serial Communications Module is an optional interface device designed to provide a direct, digital link between serial communications devices and any device that uses SCANport.
Chapter 2 Product Description SCANport Device Compatibility The SCANport Serial Communications Module is compatible with the following Allen-Bradley devices: Device Firmware Revision 1336 PLUS 1336 FORCE 1305 MicroDrive 2.0 or newer Figure 2.1 Open Style Communications Module SW1.1 – SW1.2 = Serial Mode Select SW1.3 –...
Page 13
Chapter 2 Product Description Figure 2.2 Enclosed Style Serial-to-SCANport Communications Module SCANport Connector Serial Channel D-Shell Connector Power Connection SCANport Status Diagnostic Serial Status LEDS AB0395C Switch SW2 Switch SW3 – Baud Rate Selection – Logic Command/Status and – Parity Enable Reference/Feedback –...
Page 14
Chapter 2 Product Description Figure 2.3 Typical Serial Communications/SCANport Device Interconnect Open Style Comm Module 1336 PLUS Serial Port 1305* Micro Drive IBM PC SCANport Serial Comm Link Communication Module SLC 5/03 . . . SMP 3 SCANport Communication Module Other Serial Devices AB0396C...
Chapter 2 Product Description Configuration Switches The Serial Communications Module contains three DIP Switches: SW1, SW2, and SW3 (Figure 2.1 and Figure 2.2). Switches are set ON or OFF as detailed in Figure 2.4. For a detailed explanation of switch configuration, refer to Chapter 3.
Page 16
Chapter 2 Product Description This Page Intentionally Left Blank.
Chapter Installation Chapter Objectives In this chapter you will learn how to: S Mount the Communications Module S Configure the Communications Module S Connect power S Connect SCANport and serial communications cables Read this chapter completely before you attempt to install or configure your Communications Module.
Chapter 3 Installation Switch SW2 Switch SW2 is used to select: S Baud rate S Parity S Number of Stop Bits S Point-to-Point or Multi-Drop S Checksum mode (CRC or BCC) Parity Baud Rate Setting Selection Stop Bits Point-to-Point/Multi-Drop Checksum Mode AB0399A Table 3.C Switch SW2 Settings for BCC/CRC Selection...
Page 23
Chapter 3 Installation Table 3.F Switch SW2 Settings for Parity Selection SW2-5 SW2-4 Function Don’t Care Parity Disabled Even Parity Odd Parity Table 3.G Switch SW2 Settings for Baud Rate Switch Value SW2-3 SW2-2 SW2-1 Baud Rate (Decimal) 1200 2400 4800 9600 19200...
Chapter 3 Installation Switch SW3 Switch SW3 is used to select: S Logic Command/Status and Reference/Feedback S DataLinks (up to four DataLinks) S Stop Bits (1 or 2) S Application Timeout Default Value Datalink Message Application Timeout Enables Default Values Logic Command/ Duplicate Message Status and...
Page 25
Chapter 3 Installation Table 3.L Switch SW3 Settings for Datalink D SW3-5 Function Disable Datalink D Messaging Enable Datalink D Messaging Table 3.M Switch SW3 Settings for Duplicate Message Detection SW3-6 Duplicate Message Detection Disable Duplicate Message Detection Enable Duplicate Message Detection Table 3.N Switch SW3 Settings for Application Timeout Default Value SW3-8...
Chapter 3 Installation Mounting the The Communications Module can be provided in three Communications Module mounting configurations: S Open style board, factory installed in a drive (not available for all drives) S Open style board as a separate kit S Enclosed style for panel mount or DIN rail mount This section provides mounting information for the Enclosed style and the Open style kit.
Page 27
Chapter 3 Installation Figure 3.2 Enclosed Style Communications Module Mounting Location (1336 FORCE and 1336 PLUS Drives) 1336 FORCE SCANport 2 SCANport Cable Communication Module AB0405B 3-11...
Chapter 3 Installation Enclosed Style Communications Module Dimensions Figure 3.3 Enclosed Style Communications Module Dimensions 44mm NOTES: (1.75) DIN RAIL DIN RAIL 1. The enclosure requires clearance at the top and bottom for proper cooling. Additional space will be required if access to DIP switches is desired without having to remove the device.
Page 30
Chapter 3 Installation Figure 3.5 IBM PC Compatible Serial Connections RS485/RS422/RS232 Communications Adapter to IBM AT Compatible Computer RS232 Serial Port Connection Diagram IBM AT Compatible Communications Module Personal Computer Computer Internal 9-Pin D-Shell RS232 Serial Port Jumper Connectors N.C. N.C.
Expander must be subtracted from the cable length used to connect the device to the expander (B1 + C = max 10 meters). 1305 Drive An Allen-Bradley SCANport link cable is used to make the connection between the Communications Module and the drive (Figure 3.9). Figure 3.9...
1336 PLUS and FORCE drives with an open Communications Module mounted in the drive, no separate SCANport cable connection is required. SMP 3 An Allen-Bradley SCANport cable is used to make the connection between the Communications Module and an SMP3. Figure 3.10 SCANport Connection on Communications Module...
Chapter 3 Installation Power Supply Connections The Enclosed Communications Module is powered from a separate 24V DC or 115V AC power supply (Figure 3.11). With the Open style Communications Module board mounted in the drive, no separate power supply connections are required. Figure 3.11 Typical Power Supply Connection 115/230V...
Chapter SCANport Datalink Operation Chapter Objectives In this chapter, you will read about: S Configuring the SCANport device Datalinks. S Datalink Operation. SCANport Datalinks A Datalink is a type of pointer used by some SCANport devices to transfer information to the drive. Datalinks allow parameter values to be written when the Logic Command and Reference are sent to the drive.
Page 36
Chapter 4 Configuration and Interfacing This Page Intentionally Left Blank.
Page 37
Chapter Configuration and Interfacing Chapter Objectives The purpose of this chapter is to provide you with information on how the Communications Module communicates with a serial device. The following topics will be explained: S Communications Module data table structure S Data transfer through the Communications Module S Block transfer emulation ATTENTION: It is recommended that when a system is configured for the first time, that the motor be disconnected from...
Page 38
Chapter 5 Configuration and Interfacing Table 5.A PCCC Commands Supported by the Communications Module Command Name PLC Addressing Method Code Code Unprotected Read PLC-2 Address Echo Read Diagnostic Counters Variable (modified PLC-2 addresses) Set Variables (#ENQs, #NAKs, TIMEOUT) Identify Host and Some Status Set Timeout Set #NAKs Set #ENQs...
Page 39
Chapter 5 Configuration and Interfacing Table 5.B Data Table Structure for PLC-5 Style Addressing Parameter Description of PLC-5 Style Address Number Location’s Purpose 1 – 999 N10:1 – 999 1000 – 1999 N11:0 – 999 Parameter Value 8000 – 8999 N18:0 –...
Page 40
Chapter 5 Configuration and Interfacing Table 5.C Data Table Structure for PLC-2 Style Addressing Parameter PLC-2 Style Address Description of Number Decimal (Octal) Location’s Purpose 512 + Parm # 1 – 7039 Parameter Value Read (1001 to 16577) (16600 to 16777) Status of Last Parameter Write 7680 + Parm # 1 –...
Page 41
Chapter 5 Configuration and Interfacing Table 5.D Data Table Structure for SLC-500 Style Addressing Parameter Description of SLC-500 Style Address Number Location’s Purpose 1 – 249 N50:1 – 249 250 – 499 N51:0 – 249 500 – 749 N52:0 – 249 Parameter Value 9250 –...
Page 42
Chapter 5 Configuration and Interfacing The data tables have up to eight areas, each having a different purpose. 1. Parameter Value Read or Write. Reading data from files in this area will cause the Communications Module to read parameter values from the SCANport device and send those values as the response to the read message.
Page 43
Chapter 5 Configuration and Interfacing 6. Communications Module Parameters. Each of the four elements in this area can be read or written and affects the operation of the Communications Module as follows: – Number of ENQ’s. The number of ENQ’s sent by the module before giving up on receiving ACK or NAK.
Page 44
Chapter 5 Configuration and Interfacing Configuration Examples DF1 Messaging with a PLC-5/80 Example (Read Parameters 1 through 50) Ladder rung example for Gx2 manual Rung 2:0 | I:000 MG20:0 +MSG––––––––––––––––––––+ +––] [–––]/[–––[ONS]––––––––––––––––––––––––––––+SEND/RECEIVE MESSAGE +–(EN)–+ |Control block MG20:0+–(DN) | +–(ER) | +–––––––––––––––––––––––+ Data Table Report MESSAGE INSTRUCTION DATA MONITOR FOR CONTROL BLOCK MG20:0...
Page 45
Chapter 5 Configuration and Interfacing Notes: 1. I:000/00 is any application related conditioning logic. 2. MG20:0.EN is the “enabled” status bit from the message block. 3. B3/2 is a one-shot and causes the message to be resent each time the message block completes or errors (as long as I:000/00 is true).
Page 46
Chapter 5 Configuration and Interfacing DF1 Messaging with a 1746-BAS Module Example (Write 10 Parameters then read 10 parameters) REM –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– REM This file is a program for the 1746–BAS module. REM It performs a PLC2 Unprotected Write (08) followed by REM a PLC2 Unprotected Read (01) over the DF1 link on port #2 REM ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––...
Page 47
Chapter 5 Configuration and Interfacing 530 PUSH 2 : REM Data Source (2 = Internal String) 540 PUSH 0 : REM Offset in M0 file (Not used in this example) 550 PUSH 1 : REM Internal String Number 560 CALL 123 570 POP S 580 IF (S<>0) THEN PRINT ”Unsuccessful PLC2 Unprotected Write”...
Page 48
Chapter 5 Configuration and Interfacing This Page Intentionally Left Blank. 5-12...
Page 49
LED indicators on the front of the device (Figure 6.1). The Communications Module is a non-serviceable device that should be returned to Allen-Bradley for replacement when a major fault exists that is attributable to the Communications Module itself.
Page 50
Chapter 6 Troubleshooting ATTENTION: Do not attempt to defeat or override fault circuits. The cause of a fault indication must be determined and corrected before attempting operation. Failure to correct a drive or system malfunction may result in personal injury and/or equipment damage due to uncontrolled machine system operation.
Page 51
This module is intended for use with devices that communicate via RS232, RS422, or RS485 hardware standards using the DF1 protocol. It is intended to provide a means for transmitting messages between these serial- communications devices and Allen-Bradley SCANport devices.
Page 52
Chapter 7 Specifications This Page Intentionally Left Blank.
Page 63
By filling out this form you can help us provide the most useful, thorough, and accurate manuals available. Please take a few minutes to tell us what you think. Then mail this form, FAX it, or send comments via E-Mail. FAX: to your local Allen-Bradley Sales Office or 414/512-8579 E-Mail: via Internet to “SEPATTERSON@ra.rockwell.com” PUBLICATION NAME PUBLICATION NUMBER, DATE AND PART NUMBER (IF PRESENT) CHECK THE FUNCTION THAT MOST CLEARLY DESCRIBES YOUR JOB.
Page 64
FOLD HERE FOLD HERE NO POSTAGE NECESSARY IF MAILED IN THE UNITED STATES BUSINESS REPLY MAIL FIRST CLASS PERMIT NO. 413 MEQUON, WI POSTAGE WILL BE PAID BY ADDRESSEE ALLEN-BRADLEY Attn: Marketing Communications P.O. Box 760 Mequon, WI 53092-9907...
Page 67
SCANport is a trademark of Allen-Bradley Company, Inc.
Page 68
Publication 1203-5.2 May, 1995 P/N 74001-014-01(B) Supersedes 1203-5.2 April, 1995 Copyright 1994, Allen-Bradley Company, Inc. Printed in USA...