Bulletin 1203 Serial Communications Module RS232/422/485 (Using DF1 Protocol) Catalog Number 1203-GD2, -GK2, -GM2 User Manual
Important User Information Because of the variety of uses for this equipment and because of the differences between this solid-state equipment and electromechanical equipment, the user of and those responsible for applying this equipment must satisfy themselves as to the acceptability of each application and use of the equipment. 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.
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. • The word “Default” has been added to the description of SW3.7, SW3.8 in, and DH-485 has been removed from, Figure 2.1 on page 2-2. • The SLC 5/03 illustration in Figure 2.
Summary of Changes This Page Intentionally Left Blank
Table of Contents Introduction Chapter 1 Manual Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Who Should Use This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Vocabulary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Firmware Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Manual Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents Configuration and Interfacing Chapter 5 Chapter Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 Basic Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 Communications Module Data Table Structure and Supported PCCC Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 Configuration Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 1 Introduction Manual Objectives The purpose of this manual is to provide you with the necessary information to apply the Serial Communications Module which is available for products that include the SCANportt communications port. Described in this manual are methods for installing, configuring, and troubleshooting the Serial Communications Module. For information on specific features of Allen-Bradley products mentioned herein, refer to the product user manual.
Chapter 1 Introduction Manual Organization This manual is divided into chapters as detailed in Table 1.A. Table 1.
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 RS232 RS422 RS485 Communications Protocol DF1 DF1 DF1 IMPORTANT: “DF1” protocol is typically used with Allen-Bradley PLC programmable controllers.
Chapter 1 Introduction This Page Intentionally Left Blank.
Chapter 2 Product Description Chapter Objectives In this chapter, you will read about: Communications Module features 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. The current list of products that use SCANport includes: 1305, 1336 PLUS, 1336 FORCE, and SMP3 controllers.
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 All 1336 FORCE All 1305 MicroDrive 2.0 or newer SMC SMP Figure 2.1 Open Style Communications Module J4 SW1.1 – SW1.2 = Serial Mode Select SW1.3 – SW1.8 = Adapter Address 1 2 3 4 5 6 7 8 SW2.1 – SW2.3 = Baud Rate Selection SW2.4 = Parity Enable SW2.5 = Parity Sense (Even/Odd) SW2.6 = Stop Bits SW2.
Chapter 2 Product Description Figure 2.
Chapter 2 Product Description Figure 2.3 Typical Serial Communications/SCANport Device Interconnect PLC Open Style Comm Module .. . 1336 PLUS Serial Port 1305* Micro Drive IBM PC SCANport Serial Comm Link Communication Module SLC 5/03 ..
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. Figure 2.
Chapter 2 Product Description This Page Intentionally Left Blank.
Chapter 3 Installation Chapter Objectives In this chapter you will learn how to: Mount the Communications Module Configure the Communications Module Connect power Connect SCANport and serial communications cables Read this chapter completely before you attempt to install or configure your Communications Module. Double check all connections and option selections before you apply power. IMPORTANT: Switch selections take effect only on power-up.
Chapter 3 Installation Factory Switch Settings 3-2 Switch Setting Communication Mode SW1-8 Off Module Address = 1 SW1-7 Off SW1-6 Off SW1-5 Off SW1-4 Off SW1-3 On SW1-2 Off SW1-1 Off SW2-8 Off BCC Checksum SW2-7 Off Point-to-Point SW2-6 Off 1 Stop Bit SW2-5 Off Parity Disabled SW2-4 Off Even Parity (if enabled) SW2-3 On 9600 Baud SW2-2 On SW2-1 Off SW3-8 Off SW3-7 Off SW3-6 On Duplicate Message Detection Enabled SW3-5 Off Disable Datalink D SW3-4 Off
Chapter 3 Installation Switch SW1 Switch SW1 is used to select: Serial communications mode (RS232/RS422/RS485) Communications Module address SW1 O F F O N 8 7 6 5 4 Communications Module Address 3 2 1 Communications Mode Selection AB0398B Table 3.
Chapter 3 Installation Table 3.
Chapter 3 Installation ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁ
Chapter 3 Installation Switch SW2 Switch SW2 is used to select: Baud rate Parity Number of Stop Bits Point-to-Point or Multi-Drop Checksum mode (CRC or BCC) SW2 O F F O N 8 7 6 5 4 Parity Setting 3 2 1 Baud Rate Selection Stop Bits Point-to-Point/Multi-Drop Checksum Mode AB0399A ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ Table 3.
Chapter 3 Installation Table 3.F Switch SW2 Settings for Parity Selection ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁ SW2-5 SW2-4 Function Don’t Care Off Parity Disabled Off On Even Parity On On Odd Parity Table 3.
Chapter 3 Installation Switch SW3 Switch SW3 is used to select: Logic Command/Status and Reference/Feedback DataLinks (up to four DataLinks) Stop Bits (1 or 2) Application Timeout Default Value SW3 O F F O N 8 7 6 5 4 3 2 1 Datalink Message Application Timeout Enables Default Values Logic Command/ Duplicate Message Status and Detection Reference/ Feedback AB0400B Table 3.
Chapter 3 Installation Table 3.
Chapter 3 Installation Mounting the Communications Module The Communications Module can be provided in three mounting configurations: Open style board, factory installed in a drive (not available for all drives) Open style board as a separate kit Enclosed style for panel mount or DIN rail mount This section provides mounting information for the Enclosed style and the Open style kit. Figure 3.1 Open Style Communications Module Mounting Location (1336 PLUS 7.
Chapter 3 Installation Figure 3.
Chapter 3 Installation Enclosed Style Communications Module Dimensions Figure 3.3 Enclosed Style Communications Module Dimensions 44mm (1.75) DIN DINRAIL RAIL NOTES: 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. 2. All dimensions in millimeters and (inches). 70mm (2.7) DIN RAIL 45mm (1.8) DIN Rail Mounting Clip TOP VIEW BACK VIEW 45mm (1.8) 25mm (1) 76mm (3.
Chapter 3 Installation Cable Connections RS485/RS422/RS232 Connection Examples Figure 3.4 1746-BAS Module Serial Connections Communications Module to 1746-BAS Module PRT1, PRT2 RS232 Mode Port Connection Diagram Communications Module 9-Pin D-Shell 1 COM N.C. TX N.C. RX N.C. N.C. N.C. COM 1746-BAS Module Port Connection 6 2 7 3 8 4 9 5 5 4 9 3 8 TX 2 7 RX 1 6 N.C. COM N.C.
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 Communications Module 9-Pin D-Shell 1 COM N.C. 6 2 TX N.C. 7 3 RX N.C. 8 4 N.C. N.C. 9 5 COM IBM AT Compatible Personal Computer Computer Internal RS232 Serial Port Jumper Connectors 5 4 9 3 8 2 1 7 6 COM RI DTR CTS TX RTS RX DSR DCD AB0409D Figure 3.
Chapter 3 Installation Figure 3.7 SLC 5/03 Serial Connection Options SLC 5/03 CPU 1747-AIC Link Coupler 1 2 3 4 5 6 7 8 Option #1 1 2 3 4 5 6 7 8 or or 1 2 3 4 5 6 7 8 Option #2 J4 SW1 SW2 Communications Module SW3 LED Indicators J2 9-Pin D-Shell or 6 7 8 9 or 1 2 3 4 RS232 Option #3 SLC 5/03 Connection Options 5 AB0412C Figure 3.8 SLC 5/03 Cable Option #3 RS232 using DF1 Protocol Communications Module 9-Pin D-Shell 1 COM N.C. TX N.C. RX N.C. N.C. N.C.
Chapter 3 Installation SCANport Link Connection Cable Requirements SCANport cables are available in either Male to Male or Male to Female configuration. Cables of up to 10 meters (33 feet) can be connected from the master to the SCANport device (A in Figure 3.9). If a Port Expander is used as shown in Figure 3.9, the cable length from the master to the Port Expander must be subtracted from the cable length used to connect the device to the expander (B1 + C = max 10 meters).
Chapter 3 Installation 1336 PLUS and 1336 FORCE Refer to the product manual for connection information. On larger horsepower 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.
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.
Chapter 4 SCANport Datalink Operation Chapter Objectives In this chapter, you will read about: Configuring the SCANport device Datalinks. 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. Datalinks also allow parameter values to be read whenever the Logic Status and Feedback are read.
Chapter 4 Configuration and Interfacing This Page Intentionally Left Blank.
Chapter 5 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.
Chapter 5 Configuration and Interfacing Table 5.
Chapter 5 Configuration and Interfacing Table 5.
Chapter 5 Configuration and Interfacing Table 5.
Chapter 5 Configuration and Interfacing Table 5.
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. Writing data to files in this area will cause the Communications Module to write that data into SCANport device parameters. 2. Status of Last Parameter Write.
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. (Default = 3) – Number of NAK’s. The number of times the module will resend a message if the response is always NAK. (Default = 3) – Message Timeout.
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 B3 +MSG––––––––––––––––––––+ +––] [–––]/[–––[ONS]––––––––––––––––––––––––––––+SEND/RECEIVE MESSAGE | 00 EN 2 |Control block | +–(EN)–+ MG20:0+–(DN) | | | | +–––––––––––––––––––––––+ +–(ER) | | Data Table Report MESSAGE INSTRUCTION DATA MONITOR FOR CONTROL BLOCK MG20:0 Communication Command: PLC–5 TYPED
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). 4. The DF1 address of the PLC-5 is the same as its DH+ address (set by dip switch SW1 on the PLC-5). 5. Refer to Publication 6200–6.4.11, Instruction Set Reference, for information on the MSG block. 6.
Chapter 5 Configuration and Interfacing DF1 Messaging with a 1746-BAS Module Example (Write 10 Parameters then read 10 parameters) 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 5-10 REM –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– REM REM This file is a program for the 1746–BAS module.
Chapter 5 Configuration and Interfacing 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 690 700 710 720 730 740 750 760 PUSH 2 : REM Data Source (2 = Internal String) PUSH 0 : REM Offset in M0 file (Not used in this example) PUSH 1 : REM Internal String Number CALL 123 POP S IF (S<>0) THEN PRINT ”Unsuccessful PLC2 Unprotected Write” PUSH 123 CALL 29 REM DF1 PLC REMOTE READ COMMAND PUSH 2 : REM PLC2 Unprotected Read PUSH 1 : REM Communications Module Node Address PUSH 10 : REM File Number (
Chapter 5 Configuration and Interfacing This Page Intentionally Left Blank.
Chapter Chapter 6 Troubleshooting Chapter Objectives Use this chapter to help you troubleshoot your Serial Communications system using the 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. Figure 6.
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. Table 6.
Chapter 7 Specifications Chapter Objectives The purpose of this chapter is to provide you with background information and specifications that may be necessary when installing or applying your Communications Module.
Chapter 7 Specifications This Page Intentionally Left Blank.
Notes N-1
Notes N-2
Notes N-3
Notes N-4
Notes N-5
Notes N-6
Notes N-7
Notes N-8
Notes N-9
Notes N-10
We Want Our Manuals to be the Best! You can help! Our manuals must meet the needs of you, the user. This is your opportunity to make sure they do just that. 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.
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.
Index Index C Cable Connections, 3-13 Cable Requirements, 3-16 Communications Module Basic Operation, 5-1 Compatibility, 7-1 Configuration Examples, 5-8 Configuration Switches, 2-5 Configurations, 2-1 Data Table Structure, 5-1 Definitions, 5-6 PLC-2 Style Addressing, 5-4 PLC-5 Style Addressing, 5-3 SLC-500 Style Addressing, 5-5 Device Compatibility, 2-2 Enclosed Style, 2-3 Enclosed Style Dimensions, 3-12 Mounting Configurations, 3-10 Open Style, 2-2 Product Description, 2-1 Product Specifications, 7-1 Sett
Index Serial Device Compatibility, 1-3 Configurations, 2-1 Setting Configuration Switches, 3-1 SLC-500 Style Addressing, Data Table Structure, 5-5 Special Terms, 1-1 Specifications, 7-1 Switch SW1 Settings Communications Mode, 3-3 Functions, 3-3 Serial Device Addressing, 3-4 Switch SW2 Settings Baud Rate, 3-7 BCC Selection, 3-6 CRC Selection, 3-6 Functions, 3-6 Multi-Drop Selection, 3-6 Number of Stop Bits, 3-6 I-2 Parity Selection, 3-7 Point-to-Point Selection, 3-6 Switch SW3 Settings Application Timeou
SCANport is a trademark of Allen-Bradley Company, Inc.
Publication 1203-5.2 May, 1995 Supersedes 1203-5.2 April, 1995 P/N 74001-014-01(B) Copyright 1994, Allen-Bradley Company, Inc.