Rockwell Automation Allen-Bradley Compact 5000 Series User Manual

Rockwell Automation Allen-Bradley Compact 5000 Series User Manual

Table of Contents

Advertisement

User Manual
Original Instructions
Compact 5000 I/O Serial Module
Catalog Numbers 5069-SERIAL

Advertisement

Table of Contents
loading

Summary of Contents for Rockwell Automation Allen-Bradley Compact 5000 Series

  • Page 1 User Manual Original Instructions Compact 5000 I/O Serial Module Catalog Numbers 5069-SERIAL...
  • Page 2 If this equipment is used in a manner not specified by the manufacturer, the protection provided by the equipment may be impaired. In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment.
  • Page 3: Table Of Contents

    Modbus Slave Functions ........40 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 4 View the Module Tags........105 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 5 Input Tags ..........129 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 6 Index ............153 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 7: Preface

    Added channel configuration for DF1 Point to Point Added channel configuration for DF1 Master Added channel configuration for DF1 Slave Added channel configuration for DF1 Radio Modem Added channel configuration for DH-485 Added DF1 sample code configuration Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 8: Additional Resources

    Provides general guidelines for installing a Rockwell publication 1770-4.1 Automation industrial system. Product Certifications website: rok.auto/certifications Provides declarations of conformity, certificates, and other certification details. You can view or download publications at http://www.rockwellautomation.com/global/literature-library/overview.page. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 9 DF1 and DH-485 must use Channel 1 and be local. The serial module with firmware revision 2.011 and later with Add-On profile version 2.01 supports DH-485 and DF1 protocols DF1 Point to Point, DF1 Master, DF1 Slave, and DF1 Radio modem. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 10: Controller And Software Compatibility

    5069-L350ERS2K, 5069-L350ERMS2, 5069-L350ERMS2K, 5069-L380ERS2, 5069-L380ERMS2, 5069-L3100ERS2, 5069-L3100ERMS2 ControlLogix® 5580 1756-L83E, 1756-L85E, 1756-L81E, 1756-L82E, 1756-L84E Version 31.00.00 or later GuardLogix 5580 1756-L81ES, 1756-L82ES, 1756-L83ES, 1756-L84ES Version 31.00.00 or later (1) Serial module is not compatible with 5069-AEN2TR. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 11: Module Overview

    Pass system-side and field-side power across the internal circuitry of the I/O Power bus connectors modules in a Compact 5000 I/O system. The connectors are isolated from each other. Channel 0 Channel 0 isolated serial port. Channel 1 Channel 1 isolated serial port. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 12: Local I/O Or Remote I/O Modules

    • CompactLogix 5380 control systems • Compact GuardLogix 5380 control systems • CompactLogix 5480 control systems Figure 2 - Compact 5000 I/O Serial Module as Local I/O Module Local Compact 5000 I/O Standard Modules CompactLogix 5380 Controller Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 13: Remote I/O Module

    Figure 3 - Compact 5000 I/O Serial Module as Remote I/O Module CompactLogix 5380 Controller Compact 5000 I/O Modules Compact 5000 EtherNet/IP Adapter Compact 5000 I/O Modules ™ PanelView Plus 7 Terminal Stratix 5400 Switch ® PowerFlex 527 Drive Compact 5000 I/O Modules Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 14 Chapter 1 Compact 5000 I/O Serial Module Overview Notes: Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 15: Ownership

    • Sends the I/O module configuration data to define module behavior and begin operation in the control system. Each Compact 5000 I/O serial module must continuously maintain communication with its owner-controller during normal operation. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 16: Construct A System

    Compact GuardLogix 5380 control system covers the exposed interconnection on the last module on the DIN rail. If you do not install an end cap on the last module on the DIN rail, equipment damage or injury can occur. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 17: Remote I/O Modules

    Compact GuardLogix 5380 control system covers the exposed interconnection on the last module on the DIN rail. If you do not install an end cap on the last module on the DIN rail, equipment damage or injury can occur. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 18: 5069-Arm Address Reserve Module

    Configuration tree in the project, you add an address reserve module at the node address that matches the physical module location. Figure 4 - Compact 5000 I/O System with 5069-ARM Address Reserve Module 5069-ARM Address Reserve Module Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 19: Power The Module

    Manual, publication 5069-UM001 • CompactLogix 5480 Controller User Manual, publication 5069-UM002 For more information on how to power remote Compact 5000 I/O modules, see the Compact 5000 EtherNet/IP Adapters User Manual, publication 5069-UM007. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 20: 5069-Fpd Field Potential Distributor

    Manual, publication 5069-UM001 • CompactLogix 5480 Controller User Manual, publication 5069-UM002 For more information on how to power remote Compact 5000 I/O modules, see the Compact 5000 EtherNet/IP Adapters User Manual, publication 5069-UM007. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 21: Configure Modules

    The owner-controller monitors its connection with a module. Any break in the connection, for example, the loss of power to the system, causes a fault. The Logix Designer application monitors the fault status tags to indicate when a fault occurs on a module. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 22 • Input Data • Output Data For example, consider the following examples: • Channel 0 = Generic ASCII, Channel 1 = Modbus Slave - Two connections are made between the owner-controller and the module. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 23 1 connection 2 connections 2 connections 3 connections DH-485 1 connection 2 connections 2 connections 3 connections (1) The Modbus Master can have 1 or 2 connections depending on the command list configuration. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 24 Chapter 2 Compact 5000 I/O Serial Module Operation Notes: Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 25: General

    • Product code • Vendor • Error and fault information • Diagnostic information By minimizing the need for tasks, such as setting hardware switches and jumpers, the software makes module configuration easier and more reliable. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 26: Requested Packet Interval

    • Depending on the software version, you can set each channel value separately. • When using Immediate Output (IOT) instruction, remember to add a 1 ms execution dwell time before each subsequent execution. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 27: Fault And Status Reporting

    You do not want the controller to look for a module that does not yet exist. In this case, you can inhibit the module in your program until it physically resides in the proper slot. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 28: Electronic Keying

    • If an I/O connection to a device is interrupted, the result can be a loss of data. More Information For more detailed information on Electronic Keying, see Electronic Keying in Logix 5000 Control Systems Application Technique, publication LOGIX-AT001. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 29: Status Indicators

    You access updated firmware files through the Product Compatibility and Download Center (PCDC). At the PCDC, you can use the module catalog number to check for firmware updates. If the catalog number is not available, no updates exist. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 30: Common Module Functions

    The number of seconds to wait before lowering the DCD modem line. When DCD is high, the controller is in the • 0…255 middle of transmitting data. This delay may be needed because of the latency in the sending radio transmissions. (default = 1) Selecting Functions in Logix Designer Application Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 31: Control Line Menu

    TxBuffer TxID Binary Consume Data The Latest Data Update Data UART Transmit Data TxFIFO TxID Transmit Data RPI Comes Non-Update Binary Data Ignore The Oldest Data Data Send Receive Data Data Controller Target Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 32: Generic Ascii Transmit Functions

    ASCII.TxID output tag. While doing this, keep the TxDataLength output tag at 0. TIP Include transmits the packet with termination delimiter characters, and exclude does not. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 33: Data Received From The Serial Port

    Figure 7 - Data Received from the Serial Port in Immediate Mode 5069-SERIAL RxBuffer The Latest Decision RxFIFO UART Produce Data Record Latest Record Binary Binary Data Data comes Receive Data Send Data Controller Target Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 34 The Latest Record Data Send Receive Data Data Comes Controller Target IMPORTANT If Master/Slave Handshake is selected, dispose additional receiving data from the serial port for saved data in the receiving buffer of the firmware. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 35: Generic Ascii Receive Functions

    • 2 = Printer - receives DEL character, echoes ‘/’ followed by previous character Read Buffer Size Max buffer length supported. • 1…256 (default = 256) Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 36: Generic Ascii Receive Methods

    Command List Interpreter Data to Slave Consumed Data Modbus Data Modbus Data Input Tag Input Modbus RTU/ASCII Data from Slave Produced Data Produced Data Modbus Data Command with Response Write Data Modbus Slave Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 37: Modbus Master Functions

    This parameter specifies the number of times a command is retried if it fails. If • 0…127 (default = 0) Master Port does not receive a response after the last retry, the Slave devices communication is suspended on the port for Error Delay Counter scans. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 38: Command Disable Function

    Modbus Master command. A disabled command would have the corresponding Ixx.CommandXX.Disabled bit set. To disable a Modbus command, turn ON the disable corresponding bit in the output array. Example: Command 0 disable bit is referring to the Oxx.Command00Disable bit. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 39: Modbus Slave Data Exchange

    Config Data Output Tag Output Mapping Table Consumed Data Consumed Data Data to Master Input Tag Input Modbus RTU/ASCII Produced Data Data from Master Produced Data Response with Command Read Data Modbus Master Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 40: Modbus Slave Functions

    Read Discrete Inputs 0x03 Read Holding Registers 0x04 Read Input Register 0x05 Write Single Coil 0x06 Write Single Register 0x16 Mask Write Register 0x17 Read/Write Multiple Registers 0x0F Write Multiple Coil 0x10 Write Multiple Registers Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 41: Df1 Protocols

    When the 5069-SERIAL is the initiator of the dial-up connection, use the native tag similar to the Generic ASCII mode to send out the ‘AT’ dial-up string (example: ATDT 555-1212). To hang up the connection, use the DTR signal in the output tag. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 42 DF1 full-duplex protocol. In a point-to-multipoint line driver topology, configure the serial module for DF1 half-duplex master or slave protocol. If these line drivers require RTS/CTS handshaking, configure the control line parameter to “Half-Duplex Modem without Continuous Carrier.” Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 43: Modem Control Line Operation

    • Half-Duplex Modem without Continuous Carrier Selected—This is the same as Half-Duplex Modem with Continuous Carrier except monitoring of DCD is not performed. DCD is still required for receptions, but is not required for transmissions. Transmissions still require CTS and DSR. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 44 If DSR goes inactive, RTS is dropped. While DSR is inactive, neither receptions or transmissions are performed. Reception requires DSR to be active. Transmission requires two inputs, CTS and DSR, to be active. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 45: Configuration Considerations For Rts Send And Off Delays

    IMPORTANT • For almost all modem applications, the RTS Off Delay should be left at 0. Never Select an RTS Off Delay that is greater than the RTS Send Delay in the other devices on the network, or you can incur two devices that try to transmit simultaneously Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 46: Df1 Point-To-Point Protocol

    DF1 Controller (or device) Studio 5000 PCCC Message Modem Modem Telephone or Direct Line MLX, PLC5 (Only one station), SLC, and so on. IMPORTANT DF1 and DH-485 protocols use channel 1 only and must be local. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 47: Df1 Master Protocol

    1. Open the Logix Designer project that includes the serial module. 2. Right-click the module and choose Properties. Configure Channel 1 to DF1 Master if it is not configured to DF1 Master Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 48 1 to DF1 Master if it is not configured to DF1 Master. 4. Click Channel 1 and configure the parameters as necessary. 5. Click DF1 Master and configure the parameters as necessary. 6. Click General in Module properties. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 49 7. Click Change under General Module Properties. 8. Click Channel 1 under Module Definition. 9. Configure the polling settings as necessary. 10. Click OK to accept the changes and click Yes to close the dialog box. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 50 CRC—the serial module sends and accepts messages with a 2-byte CRC for error checking. CRC is a more effective error detection algorithm. Enable Duplicate Select whether the serial module should detect and ignore duplicate messages. Enabled Detection Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 51: Minimum Df1 Half-Duplex Master Ack Timeout

    3 in the box, the RTS Send Delay time would be 20 ms multiplied by 3. Using this value (60 ms) for our example, and assuming that the Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 52 Example Values (in ms) Max message transmission time Average program scan time RTS Send Delay Use only the largest of these two values modem turnaround time calculated ACK Timeout round up to nearest 20 ms Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 53: Create Polling Lists

    3. Enter the station addresses of the slave stations you want in the poll list. Put them in the order you want them polled. Enter the total number of slave station addresses in the Local:x:O1:DF1Master.MaxNormalPollNode and/or Local:x:O1:DF1Master.MaxPriorityPollNode Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 54: Monitor Active Stations

    With message-based mode, you do not have an active station file that you can use to monitor station status. Also, you cannot implement slave station-to-slave station messaging over the telemetry network. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 55: Configuring A Master Station For Message-Based Polling Mode

    4. Click Channel 1 and configure the parameters as necessary. 5. Click DF1 Master under the Channel 1 category on the Module Properties dialog box to configure DF1 Master port settings. See Master Parameters on page 66 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 56 Chapter 3 Compact 5000 I/O Serial Module Features 6. Click General in Module properties. 7. Click Change under General Module Properties. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 57 Compact 5000 I/O Serial Module Features Chapter 3 8. Click Channel 1 under Module Definition. 9. Configure the polling settings as necessary. 10. Click OK to accept the changes and click Yes to close the dialog box. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 58 CRC—the serial module sends and accepts messages with a 2-byte CRC for error checking. CRC is a more effective error detection algorithm. Enable Duplicate Select whether the serial module should detect and ignore duplicate messages. Enabled Detection Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 59: Df1 Slave Protocol

    To configure the controller as a slave station, do the following using your programming software: 1. Open the Logix Designer project that includes the serial module. 2. Right-click the module and choose Properties. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 60 4. Click Channel 1 and configure the parameters as necessary. 5. Click DF1 Slave under the Channel 1 category on the Module Properties dialog box to configure DF1 Slave port settings. 6. To close the Module Definition dialog box, click OK. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 61: Df1 Radio Modem Protocol

    Studio 5000 Radio Radio Radio Modem Modem Modem MLX, PLC5, SLC, and so on. MLX, PLC5, SLC, and so on. IMPORTANT DF1 and DH-485 protocols use channel 1 only and must be local. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 62: Designing Communication For Df1 Radio Modem Protocol

    (store) and then rebroadcast (forward). The following section explains how the Store and Forward function is configured. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 63 • DF1 driver formats command packet Data Table • Send command packet • Start reply timer Reply packet received • Wait for reply (or timeout) return data Reply timeout received Return error indication Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 64 SRC byte equal to the receiving node’s station add retransmitted. Note 4—To prevent Node 3 from retransmitting a duplicate packet, the link layer of Node 3 updates the duplicate packet table with the last 20 packets received. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 65: Df1 Data Exchange

    MSG Instruction PLC5 Typed Read Consumed Data PLC3 Typed Read Heartbeat PCCC Object PLC2 Unprotected Read SLC Type Read Produced Data Run/Program Mode Another Protocol Response with Command Read Data PLC2 PLC5 SLC5 PLC3 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 66: Df1 Point To Point Parameters

    Error Detection Detects error protocols. • 0 = BCC • 1 = CRC (default) Enable Duplicate Detection When enabled, duplicate messages are acknowledged and discarded. • 0 = Disabled • 1 = Enabled (default) Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 67: Df1 Slave Parameters

    • 1 = CRC (default) Enable Duplicate Detection When enabled, duplicate messages are acknowledged and • 0 = Disabled (default) discarded. • 1 = Enabled For Example MSG Control Blocks, see page 147. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 68: Dh-485 Data Exchange

    PLC5 Typed Read Consumed Data PLC3 Typed Read Heartbeat PCCC Object PLC2 Unprotected Read SLC Type Read Produced Data Run/Program Mode DH-485/485CIF Another Protocol Response with Command Read Data DH-485 PLC2 PLC5 SLC5 PLC3 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 69: Dh-485 Functions

    When enabled, duplicate messages are acknowledged and • 0 = Disabled (default) discarded. • 1 = Enabled For Example MSG Control Blocks, see page 147. IMPORTANT DF1 and DH-485 protocols use channel 1 only and must be local. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 70 Chapter 3 Compact 5000 I/O Serial Module Features Notes: Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 71: Compact 5000 I/O Serial Module Configuration

    Modbus Slave. Serial firmware revision 2.011 and later with Add-On Profile 2.01 supports Generic ASCII, Modbus Master, Modbus Slave, DF1 and DH-485 protocols. DF1 and DH-485 are only supported locally on Channel 1. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 72: Add A New Module

    3. Select your module and click Create to add the discovered module to the project. TIP Selecting close on create will close windows when module creation is complete. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 73 5. At the warning dialog box, click Yes. TIP If you inhibit the module connection, you must remember to uninhibit the connection later. See Connection Category on page 89 6. Close the Select Module Type dialog box. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 74: Discover Remote I/O Modules

    2. Right-click the Compact 5000 EtherNet/IP adapter and choose Discover Modules. The Logix Designer application automatically detects available modules that are connected to the backplane. 3. Click Create to add the discovered module to your project. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 75 Yes. TIP If you inhibit the module connection, you must remember to uninhibit the connection later. See Connection Category on page 89 6. Close the Select Module Type dialog box. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 76: New Local I/O Modules

    72. One exception is that, in step 1, you choose New Module instead of Discover Modules. 1. Right-click the 5069 Backplane and choose New Module. 2. Select the module and click create. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 77 Compact 5000 I/O Serial Module Configuration Chapter 4 3. Enter the module properties and click OK. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 78: New Remote I/O Module

    New Module. 2. Select the module and click Create. The New Module dialog box appears with a list of categories on the left side. The number and type of categories varies by module type. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 79 Compact 5000 I/O Serial Module Configuration Chapter 4 3. You can click OK to use the default configuration as shown or edit the module configuration. The rest of this chapter describes how to edit module configuration categories. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 80: Edit The Module Configuration

    Compact 5000 I/O modules. You use this category to complete the following optional tasks: • Name the module. • Assign a slot number. (required) • Describe the module. • Access the Module Definition. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 81 Properties dialog box in the Logix Designer application project. The module definition can only be edited during offline mode. To access the module definition parameters, click change on the general screen. Table 20 describes the parameters in the Module Definition dialog box. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 82 The device operates as a slave to an external master and waits for commands from the master. DF1 Radio Modem The device sends DF1 queries or write commands to the devices connected to it. DH-485 The device sends DH-485 queries or write commands to the devices connected to it. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 83 If either of these buttons are used, make sure that the user program is adjusted to reflect the new location of the command or the program will show and error. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 84 Fault Enable • Check to write the Fault Value into the received data if this Read Command fails. This does not apply to write commands. Fault Value • User-defined value to replace received data. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 85 • An error message appears when connection memory is exceeded. Master Command Memory Usage Input and output data size is available in the Add-On Profile. • View data size to verify data has not exceeded data available per channel: Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 86 If either of these buttons are used, make sure that the user program is adjusted to reflect the new location of the command or the program will show and error. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 87 0…99 when the Holding register is used depending on the size and the location where you want to store the information. If you exceed the data limit, an error can occur. This error would appear as Figure Figure 28 - Data Index Error Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 88 Modbus Slave Data Mapping Example • Local:1:O1.Slave.HoldingRegister[0…2] = 400003…400005 • Local:1:O1.Slave.HoldingRegister[3…9] = 432000…432006 • Local:1:O1.Slave.HoldingRegister[10…99] = 400999…410088 • Local:1:O1.Slave.Coil[0].0…[0].7 = 000000…000007 • Local:1:O1.Slave.Coil[1].0 = 000010 • Local:1:O1.Slave.Coil[2].0…[4].0 = 0320000…032016 • Local:1:O1.Slave.Coil[5].0…[15].7 = 000999…001086 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 89: Connection Category

    • Configure whether a connection failure while the controller is in Run module causes a major or minor fault. TIP The Module Fault area of the Connection category is useful during module troubleshooting. For more information on the Module Fault area, see page 107. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 90 Figure 31 - Generic ASCII Channel Parameters For module function definitions, see Common Module Functions on page 30 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 91 Figure 32 - Generic ASCII Receive For more information, see Generic ASCII Receive Functions on page 35 Figure 33 - Generic ASCII Transmit For more information, see Generic ASCII Transmit Functions on page 32 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 92 Compact 5000 I/O Serial Module Configuration Modbus Master and Slave Figure 34 - Modbus Master and Slave Connection Figure 35 - Channel 0 and Channel 1 Parameters For module function definitions, see Common Module Functions on page Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 93 Figure 36 - Modbus Master Channel Parameters For Modbus Master function definitions, see Modbus Master Functions on page Figure 37 - Modbus Slave Channel Parameters For Modbus Slave function definitions, see Modbus Slave Functions on page Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 94 Compact 5000 I/O Serial Module Configuration DF1 Point to Point Figure 38 - Connection Figure 39 - Module Info Figure 40 Figure 41 show the communication port that defines the baud rate and transmission settings. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 95 Figure 40 - Channel Parameters For module function definitions, see Common Module Functions on page 30 Figure 41 - Transmission Settings For DF1 Point to Point function definitions, see DF1 Point to Point Parameters on page 66 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 96 Compact 5000 I/O Serial Module Configuration DF1 Master Figure 42 - Connection Figure 43 - Module Info Figure 44 Figure 45 show the communication port that defines the baud rate and transmission settings. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 97 Figure 44 - Channel Parameters For module function definitions, see Common Module Functions on page 30 Figure 45 - Transmission Settings For DF1 Master function definitions, see DF1 Master Parameters on page 66 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 98 Compact 5000 I/O Serial Module Configuration DF1 Slave Figure 46 - Connection Figure 47 - Module Info Figure 48 Figure 49 show the communication port that defines the baud rate and transmission settings. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 99 Figure 48 - Channel Parameters For module function definitions, see Common Module Functions on page 30 Figure 49 - Transmission Settings For DF1 Master function definitions, see DF1 Slave Parameters on page 67 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 100 Compact 5000 I/O Serial Module Configuration DF1 Radio Modem Figure 50 - Connection Figure 51 - Module Info Figure 52 Figure 53 show the communication port that defines the baud rate and transmission settings. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 101 Figure 52 - Channel Parameters For module function definitions, see Common Module Functions on page 30 Figure 53 - Transmission Settings For DF1 Master function definitions, see DF1 Radio Modem Parameters on page 67 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 102 Chapter 4 Compact 5000 I/O Serial Module Configuration DH-485 Figure 54 - Connection Figure 55 - Module Info Figure 56 Figure 57 show the communication port that defines the baud rate and transmission settings. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 103 Chapter 4 Figure 56 - Channel Parameters For module function definitions, see Common Module Functions on page 30 Figure 57 - Transmission Settings For DH-485 function definitions, see DH-485 Functions on page 69 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 104: Module Info Category

    You can use this category to complete the following: • Determine the identity of the module. • Refresh the data on the screen. • Reset the module. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 105: View The Module Tags

    Monitor Tags. The Controller Tags dialog box appears with data. 2. To view the tags, click the + symbols as shown. For more information on module tags, see Module Tags on page 109. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 106 Chapter 4 Compact 5000 I/O Serial Module Configuration Notes: Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 107: Troubleshoot Your Module

    Module Properties for the module indicates the module state, including if a connection has timed out. If a connection has timed out, determine the cause and correct it. For example, a cable failure can cause a connection timeout. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 108: Compact 5000 I/O Serial Module Status Indicators

    Recommended Action Channel is disabled or there is no None communication Steady Yellow Communicating None Flashing Yellow Communicating None Flashing Red Serial Port Communication Error Cycle module power. Check serial port configuration and setup. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 109: Module Tags

    • I0 = tag type (input) and channel number (0) – The possible tag types are I (input) and O (output) – The possible channel numbers are 0 or 1 • RunMode = Parameter Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 110: Modbus Master Name Conventions

    • 1 = slot number • I 1= tag type (input), channel number (1) – The possible tag types are I (input) and O (output) – The channel number is 1 • RunMode = Parameter Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 111: Access The Tags

    You can view tags from the Tag Editor. 1. Open your Logix Designer application project. 2. Right-click Controller Tags and choose Monitor Tags. 3. Open the tags as necessary to view specific tags. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 112: Channel Configured Generic Ascii Tags

    This section describes the tags that are created when you choose the Generic ASCII option for a channel in the module definition dialog box as shown in the Generic ASCII Tags following graphics. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 113: Channel Configured For Generic Ascii

    Channel Configured for Input Tags Generic ASCII The following image shows the tags that are described in the following table. Table 26 describes the input tags of channel 1 configured to the Generic ASCII. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 114 Indicates whether the Ox.ASCII.TxDataLength is valid. • 0 = Correct • 1 = Length of TxDataLength is illegal Ix.ASCII.RxDataLengthInvalid BOOL Indicates whether the Ox.ASCII.RxDataLength is valid • 0 = Correct • 1 = Length of RxDataLength is illegal Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 115 Length of Produce Data of each channel. • 1…256 Ix.ASCII.RxData[x] SINT (256) Received data from serial port. • -128…+127 (1) Length greater than the Max buffer length defined in the module definition page. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 116: Output Tags

    • 0 = Inactive in the DTR/RTS tag. • 1 = Active Ox.ASCII.TxData[x] SINT (256) Output data from module. • -128…+127 (1) The value of 0 must be skipped except during module power-up. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 117: Channel Configured For Modbus Master

    The value of 0 is skipped except during module to not detected. power-up. Set to zero by product reset or power cycle. Wraps from 255 (-1) to 1 skipping zero. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 118 The number of times the command is executed. • -128...127 Ixx.Commandxx.Datazzzzzz SINT, INT, or Command read response data. • -128…+127 REAL The data for this tag is dynamic according to how the command list • -32768…+32767 is created. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 119: Output Tags

    (1) User logic must set the Run bit in order for the Modbus Master commands to execute. TIP The yy in the tag names represents the Modbus Master command number and the zzzzzz represents the Modbus data address. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 120: Channel Configured For Modbus Slave

    Appendix A Module Tags Channel Configured for This screen capture shows the tags that are described in the following tables. Modbus Slave Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 121: Input Tags

    • -32768…+32767 Ix.Slave.Coil[x] SINT Produce Data that are written by Modbus Master as Data in Produce Tag. • -128…+127 (1) X represents any possible value 0…99 (2) X represents any possible value 0…15 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 122: Output Tags

    (5) The Run bit is to start the update of the output (O) tags values into the Serial module. The serial module will always respond to the external Modbus master, but they will be using the old values if the RUN bit is not enabled but new data is on the output O tag. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 123: Channel Configured For Df1-Point To Point

    Module Tags Appendix A Channel Configured for This screen capture shows the tags that are described in the following tables. DF1—Point to Point Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 124: Input Tags

    • 1 = Active Ox.DF1Modem.TxDataLength Length of Transmitted Data of each channel. • 1…128 Ox.DF1Modem.TxData[x] SINT (128) Output data from module. • -128…+127 (1) The value of 0 must be skipped except during module power-up. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 125: Channel Configured For Df1-Master

    Module Tags Appendix A Channel Configured for This screen capture shows the tags that are described in the following tables. DF1—Master Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 126: Input Tags

    Defines the poll sequence the DF1 Master polls for normal node. – (1) If you configure the polling in the module definition, there will be two more tag array generated. The array is dynamically generated depending on what you configure in the definition. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 127: Channel Configured For Df1-Slave

    • 0 = Inactive • 1 = Active Ix.DF1.MsgProcessing BOOL Determine if instruction message is processing • 0 = Not Processing • 1 = Processing DF1 Slave mode does not have output tags. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 128: Channel Configured For Df1-Radio Modem

    Table 38 - DF1 Radio Modem Output Tags Name Data Type Definition Valid Values Ox.DF1RadioModem.StoreAndForward INT (16) Defines the stations that need to be involved in the Store and Forward function. • 0 = Inactive • 1 = Active Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 129: Channel Configured For Dh-485

    Indicates whether the DTR is active. • 0 = Inactive • 1 = Active Ix.DF1.MsgProcessing BOOL Determine if instruction message is processing • 0 = Not Processing • 1 = Processing DH-485 mode does not have output tags. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 130 Appendix A Module Tags Notes: Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 131: Master Command List Function Codes

    TIP This is the structure of the message being sent out to the Modbus network. The following byte values are in hexadecimal display. Node Address Function Code Data Start Point Data Start Point Number of Points Number of Points Error Check Field High High (2 bytes) Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 132 1B (HEX) = 0001 1011 (Binary), contains the status of only five coils (52…56) instead of eight coils. The three left-most bits are provided as zeros to fill the 8-bit format. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 133: Read Input Status (Function Code 02)

    The quantity of data characters is always specified as a quantity of RTU characters, that is, the number is the same whether RTU or ASCII is used. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 134: Read Holding Registers (Function Code 03)

    The following byte values are in hexadecimal display. Node Address Function Code Data Start Registers Data Start Registers Data Number of Data Number of Error Check Field High Registers High Registers Low (2 bytes) Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 135: Read Input Registers (Function Code 04)

    The following byte values are in hexadecimal display. Node Address Function Code Data Start Point Data Start Point Data Number of Data Number of Error Check Field High Points High Points Low (2 bytes) Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 136: Force Single Coil (Function Code 05)

    (coil 0001 = zero, coil 0002 = one, and so on). The data value 65,280 (FF00 HEX) sets the coil ON and the value zero turns it OFF; all other values are illegal and do not affect that coil. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 137 Coils that are reprogrammed in the controller logic program are not automatically cleared upon power-up. Thus, if such a coil is set ON by function Code 5 and (even months later), an output is connected to that coil, the output is ‘hot’ . Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 138: Preset Single Register (Function Code 06)

    The response to a preset single register request is to retransmit the query message after the register has been altered. Node Address Function Code Data Register High Data Register Low Preset Data Register Preset Data Register Error Check Field High (2 bytes) Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 139: Force Multiple Coils (Function Code 15)

    The normal response to a function 16 query is to echo the address, function code, starting address and number of registers to be loaded. Node Address Function Code Coil Address High Coil Address Low Number of Coils High Number of Coils Low Error Check Field (2 bytes) Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 140: Preset Multiple Registers (Function Code 16)

    The normal response to a function 16 query is to echo the address, function code, starting address and number of registers to be loaded. Node Address Function Code Data Start Data Start Address Number of Points Number of Points Error Check Field Address High High (2 bytes) Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 141: Generic Ascii Sample Code

    The following images show sample code for Generic ASCII Transmit data and Generic ASCII Receive data. Transmit and Receive Channel Configurations The following image shows the Generic ASCII Transmit Configuration. The following image shows the Generic ASCII Receive Configuration Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 142: Sample Code

    Channel 1, connect the two serial ports together with a 1761-CBL-AC00 cable. On the Module Properties Channel screens, verify that both channels are configured identically for RS-232C. See the following images. Figure 59 - Channel 0 to Channel 1 Communication Sample Code Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 143 Programming Example Appendix C Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 144: Modbus Sample Code Configuration

    To test the Modbus capabilities by configuring Channel 0 for Master and Channel 1 for Slave, connect the two serial ports together with a 1761-CBL- AC00 cable. On the Module Properties Channel screens, verify that both channels are configured identically for RS-232C. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 145: Modbus Master Sample Code

    Programming Example Appendix C Modbus Master Sample Code Modbus Slave Sample Code Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 146 Appendix C Programming Example Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 147: Example Msg Control Blocks

    Write MSG instruction from a Logix to an SLC or MicroLogix controller example. • Read MSG instruction from a Logix to an SLC or MicroLogix Controller Figure 60 - [1] 5069-SERIAL/A SerialR2 . Path (out serial port) to station (254). Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 148 Figure 62 - Read MSG from a Logix to a Logix Controller example. Path (out serial port) Local controller scoped tag to station (254). containing data to be read. Remote controller scoped tag into which data will be copied. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 149 Figure 64 - Read MSG from a Logix to a PLC-5 or SLC 500 controller example. Path (out serial port) Remote PLC-5 data table where to station (199). data will be read from. Local controller scoped tag into which data will be copied. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 150 Figure 66 - Read MSG instruction from a Logix to an SLC or MicroLogix Controller Remote SLC data table address Path (out serial port) to station (222). from which data will be read. Local controller scoped tag into which data will be copied. Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 151: Ascii Conversions

    Control S, DC3 0101100 0010100 Control T, DC4 0101101 0010101 Control U, NAK 0101110 0010110 Control V, SYN 0101111 0010111 Control W, EB 0110000 0011000 Control X, CAN 0110001 0110010 1010101 0110011 1010110 0110100 1010111 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 152 11010111 1001001 1101100 1001010 1101101 1001011 1101110 1001100 1101111 1001101 1110000 1001110 1110001 1001111 1110010 1010000 1110011 1010001 1110100 1010010 1110101 1010011 1110110 1010100 1110111 1111000 1111100 1111001 1111101 1111010 1111110 1111011 1111111 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 153: Index

    104 module tag electronic keying viewing 105 compatible module 28 module tags disable keying 28 exact match 28 tag editor 111 fault reporting 27 new local I/O modules 87 ownership 21 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 154 19 programming example 141 remote I/O module 13 serial module diagram 11 parts 11 serial module status indicators 108 software compatibility 10 software configurable 25 status reporting 27 view the module tags 105 Rockwell Automation Publication 5069-UM003B-EN-P - January 2020...
  • Page 156 Rockwell Automation maintains current product environmental information on its website at http://www.rockwellautomation.com/rockwellautomation/about-us/sustainability-ethics/product-environmental-compliance.page. Allen-Bradley, Compact I/O, Compact 5000 I/O, CompactLogix, ControlLogix, GuardLogix, Logix 5000, Rockwell Automation, Rockwell Software, and Studio 5000 Logix Designer are trademarks of Rockwell Automation, Inc. CIP and EtherNet/IP are a trademark of ODVA, Inc.

Table of Contents