Allen-Bradley 5069-SERIAL Скачать руководство пользователя страница 58

58

Rockwell Automation Publication 5069-UM003A-EN-P - May 2018

Chapter 4

Configure Compact 5000 I/O Serial Module

Table 13 - Master Command List Modbus Master Parameters

Parameter

Definition

Communication Method

Communication Method:
• Disabled
• Continuous - sending the command based on the Poll interval value.
• Conditional - only for Write command and triggered when the write value has changed. 

– After initialization, the base value for conditional is 0. So if the first consumed data is not 0, the conditional command is transmitted. 

If you want to use value 0, you must set another value and reset the value to 0 again.

Data Type

• BOOL
• INT
• REAL

Function Code

• Read Coil Status- This code reads Modbus addresses 000000…065535. These bit values indicate coil status.
• Read Input Status- This code reads Modbus addresses 100000…165535. These read-only bit values indicate discrete input status.
• Read Holding Registers - This code reads Modbus addresses 400000…465535. This is a 16-bit word value.
• Read Input Registers - This code reads Modbus addresses 300000…365535. They are also 16-bit word values, but are Read Only data. 

The Modbus Master cannot write to these registers. 

• Force Single Coil - This code writes to Modbus addresses 000000…065535. This command writes to only one coil.
• Preset Single Register - This code writes to Modbus addresses 400000…465535. This command writes to only one coil. 
• Force Multiple Coils - This code writes to multiple coil values to the slave addresses 000000…065535.
• Preset Multiple Registers - This code writes to multiple register values to the slave device at addresses 400000…465535

For more information about Master Command List Function Codes see 

Appendix B

.

Slave Address

Node Address of the Modbus Slave device (1…247 and 0 for broadcast).

Modbus Address Offset (0-based)

Offset to the actual Modbus Address. Holding Register address of 400003 is equal to 00003 in the Modbus Address offset. (0…65535).

Data Length

Number of data points being read (1…125 for registers, 1…2000 for coils and discrete inputs) or written (1…123 for registers, 1…1968 
for coils.

Poll Interval

• 0 – keeps repeating as fast as possible.
• 1…32,767– the time, in seconds, for the command to be sent periodically in Continuous mode.

Swap Mode

• No Change – no swapping of data
• Word Swap – Words are swapped before sending out, e.g., 11112222 = 22221111
• Byte Swap – each byte is swapped. e.g., 11223344 = 22114433
• Word and Byte swap – both word and byte is swapped.

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.

Содержание 5069-SERIAL

Страница 1: ...Compact 5000 I O Serial Module Catalog Number 5069 SERIAL User Manual OriginalInstructions...

Страница 2: ...nformation circuits equipment or software described in this manual Reproduction of the contents of this manual in whole or in part without written permission of Rockwell Automation Inc is prohibited T...

Страница 3: ...al Module OperationinaLogix5000Control System Controller and Software Compatibility 13 Local I O or Remote I O Modules 14 Local I O Module 14 Remote I O Module 15 Ownership 16 Construct a System That...

Страница 4: ...ic ASCII Receive Functions 33 Data Received from the Serial Port in Immediate Mode 35 Data Received from the Serial Port in Master Slave Handshake Mode 36 Modbus Master Data Exchange 37 Modbus Master...

Страница 5: ...gs 88 AppendixB Master Command List Master Command List Function Codes 91 Read Coil Status Function Code 01 91 Read Input Status Function Code 02 93 Read Holding Registers Function Code 03 94 Read Inp...

Страница 6: ...6 Rockwell Automation Publication 5069 UM003A EN P May 2018 Table of Contents AppendixD ASCII Conversion Tables ASCII Conversions 107 Index 109...

Страница 7: ...ams Compact 5000 I O modules 5000 Series Digital I O Modules in Logix5000 Control Systems User Manual publication 5000 UM004 Describes how to use 5000 Series digital I O modules 5000 Series Analog I O...

Страница 8: ...ockwell Automation Publication 5069 UM003A EN P May 2018 Preface To order paper copies of technical documentation contact your local Allen Bradley distributor or Rockwell Automation sales representati...

Страница 9: ...Rockwell Automation Publication 5069 UM003A EN P May 2018 9 Preface Notes...

Страница 10: ...10 Rockwell Automation Publication 5069 UM003A EN P May 2018 Preface...

Страница 11: ...tion mode Generic ASCII Modbus RTU Master Slave Modbus ASCII Master Slave The serial module can reside locally in a CompactLogix 5380 system or a Compact GuardLogix 5380 system The module can also res...

Страница 12: ...tem Item Name Description 1 Status Indicators Displays the status of communication module health and input output devices Indicators help with troubleshooting anomalies 2 Interlocking side pieces Secu...

Страница 13: ...ng controllers CompactLogix 5380 Compact GuardLogix 5380 ControlLogix 5580 GuardLogix 5580 The manner in which you use the serial module affects controller compatibility You can use Compact 5000 I O s...

Страница 14: ...ocal I O modules are installed to the right of the controller and exchange data with the controller over the system backplane Figure 2 Compact 5000 I O Serial Module as Local I O Module IMPORTANT Comp...

Страница 15: ...modules in the following CompactLogix 5380 control systems Compact GuardLogix 5380 control systems ControlLogix 5580 control systems GuardLogix 5580 control systems 527 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10...

Страница 16: ...system Each Compact 5000 I O serial module must continuously maintain communication with its owner controller during normal operation Construct a System That Uses a Compact 5000 I O Serial Module Befo...

Страница 17: ...apter depending on whether the Serial module is a local or remote I O module For more information on how to power local Compact 5000 I O modules see the CompactLogix 5380 and Compact GuardLogix 5380 C...

Страница 18: ...ccupies the slot that the configuration references When you download module configuration to a controller the controller attempts to establish a connection to each module in the configuration Because...

Страница 19: ...choose a mode that is the Generic ASCII Modbus Master or Modbus Slave mode The combination of channel configuration choices determines the number of connections that are made between the owner contro...

Страница 20: ...tocol combinations Table 2 I O Connections For Each Protocol Combination CH0 Protocol Choice Disabled Generic ASCII Modbus Slave Modbus Master CH1 Protocol Disabled 0 connection 1 connection 1 connect...

Страница 21: ...equired 5069 SERIAL module is not available for insertion To install Compact 5000 I O modules you attach them to left most device in the system The node addresses increment as each module is installed...

Страница 22: ...ning with the controller or the adapter The field potential distributor blocks the passage of field side power from the left and functions as a new field side power source for the modules to the right...

Страница 23: ...ices in various communication mediums For example the RS 232C RS 422 or RS 485 General Module Features The Compact 5000 I O serial module supports the following module wide features Software Configura...

Страница 24: ...Packet Interval The Requested Packet Interval RPI is a configurable parameter that defines a specific rate at which data is exchanged between the owner controller and the module You set the RPI value...

Страница 25: ...gner application Module Status indicators For more information on fault reporting see the full chapter Troubleshoot Your Module on page 71 Protocol Setting Range of RPI Generic ASCII 2 ms 750 ms by 0...

Страница 26: ...uration is not sent to the module until the connection is uninhibited In your application a controller already owns a module has downloaded the configuration to the module and is exchanging data over...

Страница 27: ...te the defined device With Compatible Module you can typically replace a device with another device that has the following characteristics Same catalog number Same or higher Major Revision Minor Revis...

Страница 28: ...ot Your Module on page 71 Module Firmware The Compact 5000 I O serial modules are manufactured with module firmware installed If updated module firmware revisions are available in the future you can u...

Страница 29: ...e of communication that is used by each channel No Handshake default Full duplex Half duplex Continuous Carrier A carrier frequency that is transmitted even when data is not being sent Continuous carr...

Страница 30: ...trol Line Menu Modem Duplex Status Controller Your Function Choice Continuous Carrier Not using a modem No Handshaking Using a modem Modems in a point to point link are full duplex Full duplex Master...

Страница 31: ...using the following steps 1 The controller sends out the consumed packet with an incremented TxID 2 The serial module puts the packet into the TxBuffer 3 The serial module takes the oldest data from t...

Страница 32: ...gth output tag at 0 Table 5 Generic ASCII Transmit Functions Parameter Definition Available Options Swap Mode Selectwhetherswappingwillbedoneorwhatswappingmethodistobe used before the module sends out...

Страница 33: ...ed on the Start Delimiter character but this byte is not included in the ASCII RxData input tag Include Start Delimiter is always the first byte in the ASCII RxData input tag Start Delimiter Beginning...

Страница 34: ...the ASCII packed based on timeout since the last character was received the timeout in milliseconds is configured in the Message Timeout parameter For this method configure Termination Mode for Ignor...

Страница 35: ...eout timer expires b The number of received bytes equals the configured Read Buffer Size c Termination Delimiter bytes were received 3 The serial module copies the data into the ASCII RxData input tag...

Страница 36: ...added into the RxBuffer 4 Once the RxID Consume Tag is incremented by the user logic the serial module takes the oldest record from RxBuffer copies the data into the ASCII RxData input tag copies the...

Страница 37: ...dbus Slave The Compact 5000 I O Serial Module can get Modbus Data from Produced Consumed Data command every RPI Modbus Master Write Command ControlLogix 5580 CompactLogix 5380 5069 Serial Modbus Maste...

Страница 38: ...nd 5069 Serial Modbus Master Config Tag Command List Output Tag Output Data to Slave Input Tag Input Data from Slave Produced Data Consumed Data CH0 Config Data Consumed Data Produced Data CH1 Command...

Страница 39: ...write data to the Modbus Slave Read the Modbus Master reads data from the Modbus Slave Modbus Slave Write Command 5069 Serial Modbus Slave Config Tag Mapping Table Output Tag Output Data to Master In...

Страница 40: ...nd 5069 Serial Modbus Slave Config Tag Mapping Table Output Tag Output Data to Master Input Tag Input Data from Master Produced Data Consumed Data CH0 Config Data Consumed Data Produced Data CH1 Mappi...

Страница 41: ...adcast Pause The Wait time of each channel until the Modbus Slave finishes processing according to broadcasted command from the Modbus Master The Modbus Master does not send the next command until thi...

Страница 42: ...8 1002 604 1750 65535000 us 57600 3500 190 972 668 403 1750 65535000 us 115200 3500 95 486 334 201 1750 65535000 us Table 10 Modbus Slave Configuration Parameters Parameter Definition Available Option...

Страница 43: ...I O EtherNet IP adapter to a Logix Designer application project see the EtherNet IP Communication Modules in 5000 Series Systems User Manual publication ENET UM004 TIP When a controller establishes a...

Страница 44: ...o create a module in the project There are two methods to add modules to your Logix Designer application project Discover Local I O Modules Discover Remote I O Modules Discover Local I O Modules To us...

Страница 45: ...M003A EN P May 2018 45 Configure Compact 5000 I O Serial Module Chapter 4 3 At the Select Module Type window click Create to add the discovered module to your project 4 At the New Module window config...

Страница 46: ...g box To add additional local I O modules with this method complete one of the following If you cleared the Close on Create checkbox when you created the first I O module repeat steps 3 6 If you did n...

Страница 47: ...plete these steps 1 Right click the 5069 Backplane and choose New Module TIP ThisexampleshowshowtoaddalocalI OmodulewhentheLogixDesigner application project is offline Youcanaddnewmoduleswhentheprojec...

Страница 48: ...the New Module window configure the module properties and click OK To add additional local I O modules with this method complete one of the following If you cleared the Close on Create checkbox when y...

Страница 49: ...these steps 1 Go online with your Logix Designer application The project must include at Compact 5000 I O EtherNet IP adapter 2 Right click the Compact 5000 I O EtherNet IP adapter and choose Discover...

Страница 50: ...log box make sure that Inhibit module connection is selected and click Yes 6 Close the Select Module Type dialog box To add additional remote I O modules with this method complete one of the following...

Страница 51: ...e steps 1 Right click the 5069 Compact I O EtherNet IP adapter and choose New Module TIP ThisexampleshowshowtoaddalocalI OmodulewhentheLogixDesigner application project is offline Youcanaddnewmodulesw...

Страница 52: ...M003A EN P May 2018 Chapter 4 Configure Compact 5000 I O Serial 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...

Страница 53: ...odule configuration The rest of this chapter describes how to edit module configuration categories To add additional remote I O modules with this method complete one of the following If you cleared th...

Страница 54: ...nnection Category Module Info Category View the Module Tags General Category The General category appears first when you create a module The parameters in this category are the same for all Compact 50...

Страница 55: ...on parameters are available on the General tab of the Module Properties dialog box in the Logix Designer application project The module definition can only be edited during offline mode Table 11 descr...

Страница 56: ...Module Disable Keying Connection Definition establishes a connection between the controller and the module Data Channel 0 1 Determines the following for the module type you configure Determines the pr...

Страница 57: ...rs If you choose Modbus Master see Figure 9 for an example of your options If you choose Modbus Slave see Figure 10 for an example of your options Figure 9 Modbus Master Module Definition Parameters T...

Страница 58: ...dresses 000000 065535 This command writes to only one coil Preset Single Register This code writes to Modbus addresses 400000 465535 This command writes to only one coil Force Multiple Coils This code...

Страница 59: ...r 2000 coils discrete input read or 1968 coils written Each command uses Two bytes of input data per holding register or input register read One byte of input data per every 1 8 coils or discrete inpu...

Страница 60: ...ure the user program is adjusted to reflect the new location of the command or the program will show and error Table 14 Modbus Slave Module Definition Parameters Parameter Definition Register Type Dis...

Страница 61: ...he controller Each register type has a predefined array size it can be used for the Modbus Slave as indicated in the Modbus Slave Address Table Limits For example a Holding register has the limit of 1...

Страница 62: ...sters up to 100 INTs or 50 REALs Up to 128 Coils Data Indexes 0 15 at 8 bit boundaries Up to 128 Discrete inputs Data Indexes 0 15 at 8 bit boundaries ModbusSlaveDataMappingExample Local 1 O1 Slave Ho...

Страница 63: ...nformation on the RPI see on page 24 Inhibit the module For more information on inhibit the module see page 26 The connection over EtherNet IP will be Unicast only Configure whether a connection failu...

Страница 64: ...SCII Figure 12 Generic ASCII Connection Figure 13 Generic ASCII Module Info Figure 14 Figure 16 show the communication port that defines the baud rate serial media setting and receive and transmit set...

Страница 65: ...65 Configure Compact 5000 I O Serial Module Chapter 4 Figure 15 Generic ASCII Receive For more information see Generic ASCII Receive Functions on page 33 Figure 16 Generic ASCII Transmit For more inf...

Страница 66: ...EN P May 2018 Chapter 4 Configure Compact 5000 I O Serial Module ModbusMasterandSlave Figure 17 Modbus Master and Slave Connection Figure 18 Channel 0 and Channel 1 Parameters For module function defi...

Страница 67: ...Figure 20 show the detailed communication settings for Modbus Master and Modbus Slave Figure 19 Modbus Master Channel Parameters For Modbus Master function definitions see Modbus Master Functions on...

Страница 68: ...5000 I O Serial Module Module Info Category The Module Info category displays module and status information about the module when the project is online You can use this category to complete the follow...

Страница 69: ...the Tag Editor Each configured feature on your module has a distinct tag that is available for use in the controller program logic Complete the following steps to access the tags for a module 1 In the...

Страница 70: ...70 Rockwell Automation Publication 5069 UM003A EN P May 2018 Chapter 4 Configure Compact 5000 I O Serial Module Notes...

Страница 71: ...Serial modules Topic Page Module Status Indicator 71 Compact 5000 I O Serial Module Status Indicators 73 Table 15 Module Status Indicator Compact 5000 I O Module Indicator State Description Recommend...

Страница 72: ...ss A module firmware update attempt failed The device has experienced a recoverable fault A connection to the module has timed out Complete one of the following Let the firmware update progress comple...

Страница 73: ...Status Indicator Descriptions Indicator State Description Recommended Action Off Channel is disabled or there is no communication None Steady Yellow Communicating None Flashing Yellow Communicating No...

Страница 74: ...74 Rockwell Automation Publication 5069 UM003A EN P May 2018 Chapter 5 Troubleshoot Your Module Notes...

Страница 75: ...eneric ASCII and Modbus Slave Name Conventions The following is an example for a Generic ASCII or Modbus Slave tag name The conventions for the example SERIAL_PROJECT 1 I0 RunMode would be the followi...

Страница 76: ...the module 1 slot number I00 tag type input channel number 0 number of connections 0 The possible Compact 5000 I O serial tag types are I input and O output The possible channels are channel 0 and ch...

Страница 77: ...May 2018 77 Module Tags Appendix A 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 definiti...

Страница 78: ...3A EN P May 2018 Appendix A Module Tags Channel Configured for Generic ASCII Input Tags The following image shows the tags that are described in the following table Table 17 describes the input tags o...

Страница 79: ...rect the cause of the inaccuracy IMPORTANT Once the condition that causes the tag to change to 1 is removed the tag automatically resets to 0 Ix ASCII TxDataLost BOOL The transmitted data was lost Unt...

Страница 80: ...DTR is active 0 Inactive 1 Active Ix ASCII XOFF BOOL Flag for detection Xoff Flow control 0 On 1 XOff is detected Ix ASCII BREAK BOOL Status shows whether a Break Interrupt occurred or not If a Break...

Страница 81: ...f each channel 1 256 Ox ASCII RxDataLength INT Length of Received Data of each channel 1 256 Ox ASCII ClearBuffer BOOL If Clear Buffer the bit changes from 0 to 1 the Receive and Transaction buffer is...

Страница 82: ...bus Master command number and the zzzzzz represents the Modbus data address Table 19 Modbus Master Input Tags Name Data Type Definition Valid Values Ixx RunMode BOOL Channel s operating state 0 Idle 1...

Страница 83: ...ew command is executed not changed command is not executed or have not finished yet 1 value shown prior to any command 0 49 Ixx Command yy Fault BOOL Indicates that channel data isinaccurate and canno...

Страница 84: ...INT INT or REAL Command read response data The data for this tag is dynamic according to how the command list is created 128 127 32768 32767 Table 19 Modbus Master Input Tags Name Data Type Definition...

Страница 85: ...Rockwell Automation Publication 5069 UM003A EN P May 2018 85 Module Tags Appendix A Channel Configured for Modbus Slave This screen capture shows the tags that are described in the following tables...

Страница 86: ...odule to correct the cause of the inaccuracy IMPORTANT Once the condition that causes the tag to change to 1 is removed the tag automatically resets to 0 Ix Slave Uncertain BOOL Indicates that the cha...

Страница 87: ...er for the serial module 32768 32767 Ox Slave Coils x 2 SINT Locationofslavecoilvaluesdefinedbyuserfortheserialmodule 128 127 Ox Slave InputRegister x 3 INT Location of input register values defined b...

Страница 88: ...88 Rockwell Automation Publication 5069 UM003A EN P May 2018 Appendix A Module Tags Notes...

Страница 89: ...can have restrictions that lower the maximum quantity The coils are numbered from zero coil number 1 zero coil number 2 one coil number 3 two and so on The following table is a sample read output sta...

Страница 90: ...se the slave interface device is serviced at the end of a controller s scan data reflects coil status at the end of the scan Some slaves limit the quantity of coils provided each scan thus for large c...

Страница 91: ...input status request to read inputs 10197 to 10218 22 coils from slave number 11 Response An example response to Read Input Status is as shown in the following table The data is packed one bit for eac...

Страница 92: ...Query This function allows you to retrieve the contents of holding registers 4xxxx Modbus 4x range in the addressed slave The registers can store the numerical values of associated timers and counter...

Страница 93: ...555 0 and 100 respectively Read Input Registers Function Code 04 Query This function retrieves the contents of the controller s input registers from the Modbus 3x range These locations receive their v...

Страница 94: ...ter contents provided each scan thus for large register quantities multiple PC scans are required and the data that is provided is from sequential scans In the following example the register 30009 con...

Страница 95: ...p 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 TIP Functions5 6 15 and16aretheonlymessagesthatarerecognizedasvalid for b...

Страница 96: ...mode all slave controllers load the specified register with the contents specified The following example is a request to write the value 3 to register 40002 in slave 11 Response The response to a pre...

Страница 97: ...e desired coils The following example forces 10 coils starting at address 20 13 HEX The two data fields CD 1100 and 00 0000 000 indicate that coils 27 26 23 22 and 20 are to be forced on Response The...

Страница 98: ...ion 16 query is to echo the address function code starting address and number of registers to be loaded TIP Functions5 6 15 and16aretheonlymessagesthatarerecognizedasvalid for broadcast TIP This is th...

Страница 99: ...e Code Configuration The following images show sample code for Generic ASCII Transmit data and Generic ASCII Receive data Generic ASCII Transmit and Receive Channel Configurations The following image...

Страница 100: ...y transmitting out Channel 0 and receiving in Channel 1 connect the two serial ports together using a 1761 CBL AC00 cable On the Module Properties Channel screens verify that both channels are configu...

Страница 101: ...Rockwell Automation Publication 5069 UM003A EN P May 2018 103 Programming Example Appendix C...

Страница 102: ...nd Modbus Slave communication Modbus Master Command List Modbus Slave Address Mapping Table Modbus Sample Code Configuration Example To test the Modbus capabilities by configuring Channel 0 for Master...

Страница 103: ...Rockwell Automation Publication 5069 UM003A EN P May 2018 105 Programming Example Appendix C Modbus Master Sample Code Modbus Slave Sample Code...

Страница 104: ...106 Rockwell Automation Publication 5069 UM003A EN P May 2018 Appendix C Programming Example...

Страница 105: ...trol G Rings bell 32 40 20 0100000 Space SP 8 10 08 0001000 ControlH Backspaceonsome terminals 33 41 21 0100001 9 11 09 0001001 Control I Horizontal tab on some terminals 34 42 22 0100010 10 12 0A 000...

Страница 106: ...68 1101000 h 70 106 46 1000110 F 105 151 69 1101001 i 71 107 47 1000111 G 106 152 6A 1101010 j 72 110 48 1001000 H 107 153 6B 11010111 k 73 111 49 1001001 I 108 154 6C 1101100 l 74 112 4A 1001010 J 1...

Страница 107: ...onnection category 63 general category 54 module definition 55 module info category 68 electronic keying 27 compatible module 27 disable keying 27 exact match 27 F fault reporting 25 function codes 91...

Страница 108: ...le 17 field side power 17 system side power 17 programming example 101 R remote I O module 15 S serial module diagram 12 parts 12 serial module diagram 12 serial module status indicators 73 software c...

Страница 109: ......

Страница 110: ...t Use the code to route your call directly to a technical support engineer http www rockwellautomation com global support direct dial page Literature Library Installation Instructions Manuals Brochure...

Отзывы: