ProSoft MVI56E-MCMR User Manual Download Page 187

MVI56E-MCMR ♦ ControlLogix Platform 

Reference 

Modbus Communication Module with Reduced Data Block  

User Manual 

 

 

ProSoft Technology, Inc. 

Page 187 of 223 

 

 

6.6.11 Modbus Exception Responses 

When a Modbus Master sends a request to a Slave device, it expects a normal 
response. One of four possible events can occur from the Master's query: 

  If the server device receives the request without a communication error, and 

can handle the query normally, it returns a normal response. 

  If the server does not receive the request due to a communication error, no 

response is returned. The Master program will eventually process a timeout 
condition for the request. 

  If the server receives the request, but detects a communication error (parity, 

LRC, CRC, ...), no response is returned. The Master program will eventually 
process a timeout condition for the request. 

  If the server receives the request without a communication error, but cannot 

handle it (for example, if the request is to read a non-existent output or 
register), the server will return an exception response informing the Master of 
the nature of the error. 

The exception response message has two fields that differentiate it from a 
normal response: 

Function Code Field: 

In a normal response, the server echoes the function 

code of the original request in the function code field of the response. All function 
codes have a most-significant bit (MSB) of 0 (their values are all below 80 
hexadecimal). In an exception response, the server sets the MSB of the function 
code to 1. This makes the function code value in an exception response exactly 
80 hexadecimal higher than the value would be for a normal response. 

With the function code's MSB set, the Master's application program can 
recognize the exception response and can examine the data field for the 
exception code. 

Data Field:

 In a normal response, the server may return data or statistics in the 

data field (any information that was requested in the request). In an exception 
response, the server returns an exception code in the data field. This defines the 
server condition that caused the exception. 

The following table shows an example of a Master request and server exception 
response. 

 

Request 

 

Response 

 

Field Name 

(Hex)  

Field Name 

(Hex) 

Function 

01  

Function 

81 

Starting Address Hi 

04  

Exception Code 

02 

Starting Address Lo 

A1 

 

 

Quantity of Outputs Hi 

00 

 

 

Quantity of Outputs Lo  01 

 

 

 

In this example, the Master addresses a request to server device. The function 
code (01) is for a Read Output Status operation. It requests the status of the 
output at address 1245 (04A1 hex). Note that only that one output is to be read, 
as specified by the number of outputs field (0001). 

Summary of Contents for MVI56E-MCMR

Page 1: ...MVI56E MCMR ControlLogix Platform Modbus Communication Module with Reduced Data Block July 12 2019 USER MANUAL...

Page 2: ...and RadioLinx are Registered Trademarks of ProSoft Technology Inc All other brand or product names are or may be trademarks of and are used to identify products and services of their respective owner...

Page 3: ...zard Do not disconnect equipment unless power has been switched off or the area is known to be non hazardous C These products are intended to be mounted in an IP54 enclosure The devices shall provide...

Page 4: ...uire recharging by being placed in a powered up ControlLogix chassis The time required to fully recharge the battery may be as long as 24 hours Once it is fully charged the battery provides backup pow...

Page 5: ...ray Sizes 37 1 9 Connecting Your PC to the ControlLogix Processor 40 1 10 Downloading the Sample Program to the Processor 41 1 10 1 Configuring the RSLinx Driver for the PC COM Port 42 2 Configuring t...

Page 6: ...ators 123 5 2 Using the Diagnostics Menu in ProSoft Configuration Builder 124 5 2 1 Connect to the Module s Web Page 127 5 2 2 The Diagnostics Menu 128 5 2 3 Monitoring Backplane Information 128 5 2 4...

Page 7: ...gnostics Function Code 08 184 6 6 9 Force Multiple Coils Function Code 15 185 6 6 10 Preset Multiple Registers Function Code 16 186 6 6 11 Modbus Exception Responses 187 6 7 Using the Optional Add On...

Page 8: ...MVI56E MCMR ControlLogix Platform Modbus Communication Module with Reduced Data Block User Manual ProSoft Technology Inc Page 8 of 223...

Page 9: ...19 Connecting Your PC to the ControlLogix Processor 40 Downloading the Sample Program to the Processor 41 To get the most benefit from this User Manual you should have the following skills Rockwell A...

Page 10: ...ad download module configuration information and access troubleshooting features and functions ProSoft Discovery Service PDS Utility software to find and display a list of MVI56E modules on the networ...

Page 11: ...n PCB Pentium II 450 MHz minimum Pentium III 733 MHz or better recommended Supported operating systems o Microsoft Windows 10 o Microsoft Windows 7 Professional 32 or 64 bit o Microsoft Windows XP Pro...

Page 12: ...and from the ControlLogix processor The Sample Ladder transfers 600 words to the ControlLogix processor into the Read Data array and obtains 600 words from the ControlLogix processor from the Write Da...

Page 13: ...mentation of the module in Master and Slave configurations Note If you are installing your module into a new system and plan to use our Sample Ladder Logic refer to the printed Quick Start Guide in th...

Page 14: ...stallation please verify that all of the following items are present Qty Part Name Part Number Part Description 1 MVI56E MCMR Module MVI56E MCMR Modbus Communication Module with Reduced Data Block 2 C...

Page 15: ...ate the module firmware The following illustration shows the jumper configuration with the Setup Jumper OFF Note If you are installing the module in a remote rack you may prefer to leave the Setup pin...

Page 16: ...After you have checked the placement of the jumpers insert the MVI56E MCMR into the ControlLogix chassis Use the same technique recommended by Rockwell Automation to remove and install ControlLogix m...

Page 17: ...steady push snap the module into place 3 Check that the holding clips on the top and bottom of the module are securely in the locking holes of the rack 4 Make a note of the slot location You must ide...

Page 18: ..._AddOn_Rung_vX XX L5X Optional L5X file containing additional Add On Instruction with logic for changing Ethernet configuration and clock settings 1 7 1 About the Optional Add On Instruction The Optio...

Page 19: ...ology Inc Page 19 of 223 1 8 Creating a New RSLogix 5000 Project 1 Open the FILE menu and then choose NEW 2 Select your ControlLogix controller model 3 Select the REVISION of the controller 4 Enter a...

Page 20: ...rack follow these steps If you are installing the module in a local rack follow the steps in Creating the Module Local Rack page 25 1 Right click I O CONFIGURATION and choose NEW MODULE 2 Expand the...

Page 21: ...then set the IP Address and Slot location in the local rack with the ControlLogix processor 4 Click OK 5 Next select the 1756 ENBT module that you just created in the Controller Organization pane and...

Page 22: ...module in a remote rack follow these steps If you are installing the module in a local rack follow the steps in Creating the Module Local Rack page 25 1 Select the remote 1756 BACKPLANE node in the C...

Page 23: ...le identification string The recommended value is MCMR as this name will be linked automatically with the MSG paths irrespective of the slot location Description Enter a description for the module Exa...

Page 24: ...mmunication Module with Reduced Data Block Page 24 of 223 ProSoft Technology Inc 4 On the CONNECTION tab set the RPI value for your project Fifty 50 milliseconds is usually a good starting value The M...

Page 25: ...he MVI56E MCMR module in a local rack follow these steps If you are installing the module in a remote rack follow the steps in Creating the Module Remote Rack page 20 1 Add the MVI56E MCMR module to t...

Page 26: ...le identification string The recommended value is MCMR as this name will be linked automatically with the MSG paths irrespective of the slot location Description Enter a description for the module Exa...

Page 27: ...th Reduced Data Block User Manual ProSoft Technology Inc Page 27 of 223 4 On the CONNECTION tab set the RPI value for your project Five 5 milliseconds is usually a good starting value Click OK to conf...

Page 28: ...r and subfolder until you reach the MAINPROGRAM folder 2 In the MAINPROGRAM folder double click to open the MAINROUTINE ladder 3 Select an empty rung in the new routine and then click the right mouse...

Page 29: ...Page 29 of 223 This action opens the IMPORT CONFIGURATION dialog box showing the controller tags that will be created 5 Locate the Remote_ENBT x I Tag where x is the slot number of the module within...

Page 30: ...SLogix will indicate that the import is in progress When the import is completed the new rung with the Add On Instruction will be visible as shown in the following illustration The procedure has also...

Page 31: ...ose NEW MODULE 2 Select 1756 MODULE 3 Fill the module properties as follows Parameter Value Name Enter a module identification string The recommended value is MCMR_2 You will need to link this name wi...

Page 32: ...button to open a shortcut menu On the shortcut menu choose NEW ROUTINE As an alternative to creating a separate New Routine you could skip to Step 8 and import the AOI for the second module into the...

Page 33: ...ication Module with Reduced Data Block User Manual ProSoft Technology Inc Page 33 of 223 9 Select the MVI56 E MCMR_ADDON_RUNG_V1_4 L5X file and then click IMPORT 10 This action opens the IMPORT CONFIG...

Page 34: ...r Manual Modbus Communication Module with Reduced Data Block Page 34 of 223 ProSoft Technology Inc 11 Associate the I O connection variables to the correct module The default values are Remote_ENBT 15...

Page 35: ...ed Data Block User Manual ProSoft Technology Inc Page 35 of 223 12 Change the default tags MCMR and AOI56MCMR to avoid conflict with existing tags In this procedure you will append the string _2 to al...

Page 36: ...ed name for the module MCMR to import the first Add On Instruction the MSG paths will be associated correctly with the module For additional modules you must configure the message path for each MSG in...

Page 37: ...Data area is moved from the processor to the module You can configure the start register and size of each area The size of each area you configure must match the Add On instruction controller tag arr...

Page 38: ...00 to INT 1000 as shown and then click APPLY Note If RSLogix resets your data values refer to the backup copy of your program to re enter your configuration parameters Important When you change the Re...

Page 39: ...To modify the WRITEDATA array follow the steps in this topic but substitute WRITEDATA for ReadData throughout Also make sure that the READDATA and WRITEDATA arrays do not overlap in the module memory...

Page 40: ...ng steps show how to establish communication through the serial interface It is not mandatory that you use the processor s serial interface You may access the processor through whatever network interf...

Page 41: ...through the processor s serial port as shown here You may download through any available network connection 2 When communication is established RSLogix 5000 will open a confirmation dialog box Click t...

Page 42: ...to establish communication with the processor follow these steps 1 Open RSLinx 2 Open the COMMUNICATIONS menu and choose CONFIGURE DRIVERS This action opens the Configure Drivers dialog box Note If t...

Page 43: ...RE button RSLinx will attempt to configure your serial port to work with the selected driver 5 When you see the message Auto Configuration Successful click the OK button to dismiss the dialog box Note...

Page 44: ...MVI56E MCMR ControlLogix Platform User Manual Modbus Communication Module with Reduced Data Block Page 44 of 223 ProSoft Technology Inc...

Page 45: ...lder The ProSoft Configuration Builder PCB software is used to configure the module You can find the latest version of the ProSoft Configuration Builder PCB on our web site http www prosoft technology...

Page 46: ...om the installed Personality Module Compact Flash Use ProSoft Configuration Builder to configure module settings and to download changes to the Personality Module 2 2 1 Upgrading from MVI56 MCMR in Pr...

Page 47: ...bus Communication Module with Reduced Data Block User Manual ProSoft Technology Inc Page 47 of 223 1 In ProSoft Configuration Builder s tree view click the MODULE icon and right click to open a shortc...

Page 48: ...If you have used other Windows configuration tools before you will find the screen layout familiar PCB s window consists of a tree view on the left and an information pane and a configuration pane on...

Page 49: ...se the mouse to select DEFAULT MODULE in the tree view and then click the right mouse button to open a shortcut menu 2 On the shortcut menu select CHOOSE MODULE TYPE This action opens the Choose Modul...

Page 50: ...s in the tree view Renaming an Object 1 Select the object and then click the right mouse button to open a shortcut menu From the shortcut menu choose RENAME 2 Type the name to assign to the object 3 C...

Page 51: ...t dialog box appears 3 Enter your comment and click OK to save your changes Printing a Configuration File 1 Select the module icon and then click the right mouse button to open a shortcut menu 2 On th...

Page 52: ...ll three sections 1 The BACKPLANE CONFIGURATION section sets up the backplane communication between the MVI56E MCMR module and the ControlLogix processor page 53 These settings include register addres...

Page 53: ...mainly when the module is configured as a Slave This parameter places the STATUS data into the database of the module Read Register Start Specifies the starting register in the module s database for s...

Page 54: ...st also configure the same values in the user defined data type MCMRData in the sample program page 37 2 3 3 Port Configuration The MODBUS PORT X configuration parameters are used when the module is c...

Page 55: ...a Bits Modbus RTU mode 8 Modbus ASCII mode 8 or 7 Stop Bits Valid values are 1 or 2 RTS On 0 to 65535 milliseconds to delay after RTS line is asserted on the port before data message transmission begi...

Page 56: ...will reserve one word for the command error code for that command See Verify Communication page 105 CMDERRPTR value should be within the range of the READDATA array See Backplane Configuration page 53...

Page 57: ...rt In ProSoft Configuration Builder expand the MVI56E MCMR node and then double click the MODBUS PORT 1 COMMANDS icon Parameter Description Enable 0 Disabled Command will not be executed but can be en...

Page 58: ...s per register 16000 Poll Interval 0 to 65535 The Poll Interval is the number of seconds that the Master will wait between successive executions of this command Set to zero 0 for the fastest possible...

Page 59: ...nput Status addresses 100001 to 165535 or 1x0001 to 1x9999 These are read only single bit binary values FC 3 Read Holding Registers 4X Use this Function Code to read Modbus Holding Register addresses...

Page 60: ...5 or 15 for reading or writing Modbus Coils MB Address in Device setting Modbus Coil address in the Slave device 0001 For Modbus Coil address 0001 MB Address in Device 0 For Modbus Coil address 1378...

Page 61: ...ld So for this example device use Modbus Function 4 Input Registers with a MB ADDRESS IN DEVICE of 512 decimal 200h to read the Switch Input Status value What if my slave shows addresses such as 400 0...

Page 62: ...ing Registers are used for storing analog values such as pressure temperature current program counters timer accumulators and presets and so on Holding Registers store values in 16 bit memory register...

Page 63: ...e Node Address 1 Issues the Modbus command to Modbus Slave Device Address 1 Modbus Function 3 Issues Modbus Function Code 3 to Read Holding Registers MB Address in Device 0 Using Function Code 3 MB Ad...

Page 64: ...a read from the slave device into the module at address 1010 Internal Address 1010 of the module memory will be copied into the tag MCMR DATA READDATA 10 Reg Count 10 Reads 10 consecutive registers fr...

Page 65: ...dbus addresses 0321 to 0480 from Modbus Slave Device Address 1 Parameter Description Enable 1 The module will send the command every time it goes through the command list Internal Address 16320 Places...

Page 66: ...on shows a sample command to read Modbus addresses 10081 to 10090 of Modbus Slave Device Address 1 Parameter Description Enable 1 The module will send the command every time it goes through the comman...

Page 67: ...nd to write Modbus addresses 0513 of Modbus Slave Device Address 1 only when the data associated with the Internal Address has changed Parameter Description Enable 2 The module will send the command o...

Page 68: ...e bit level as a Function Code 15 is a bit level Modbus function The following illustration shows a sample command to write Modbus addresses 0001 to 0016 of Modbus Slave Device Address 1 Parameter Des...

Page 69: ...shows a sample command to write Modbus addresses 41041 of Modbus Slave Device Address 1 Parameter Description Enable 1 The module will send the command every time it goes through the command list Int...

Page 70: ...sses 41051 to 41060 of Modbus Slave Device Address 1 Parameter Description Enable 2 The module will send the command only when the data associated with the Internal Address of the module has changed I...

Page 71: ...e floating point value Read Floating Point Data Here is the addressing of a slave device with a parameter Energy Consumption that is shown as two registers 40257 and 40258 Value Description Type 40257...

Page 72: ...TA READDATA 0 and 1 into the tag ENERGY_CONSUMPTION that has a data type of REAL Use a COP statement within the ladder logic Here is an example Because the tag MCMR DATA READDATA 0 should only be used...

Page 73: ...ve Power Float upper 16 bits 40265 VA Apparent Power Float upper 16 bits 40267 Power Factor Float upper 16 bits 40269 VOLTS Voltage line to line Float upper 16 bits 40271 VOLTS Voltage line to neutral...

Page 74: ...71 VOLTS Voltage line to neutral Float upper 16 bits 40273 AMPS Current Float upper 16 bits You must use a COP statement to copy the data from floating point data tags within the ControlLogix processo...

Page 75: ...EAL Reactive Power 47003 32 bit REAL Apparent Power 47004 32 bit REAL Power Factor 47005 32 bit REAL Voltage Line to Line 47006 32 bit REAL Voltage Line to Neutral 47007 32 bit REAL Current This type...

Page 76: ...active Power 47003 32 bit REAL Apparent Power 47004 32 bit REAL Power Factor 47005 32 bit REAL Voltage Line to Line 47006 32 bit REAL Voltage Line to Neutral 47007 32 bit REAL Current Configure the Fl...

Page 77: ...ke 7 registers MCM_FLOAT_DATA 0 TO 6 and place that data into MCMR DATA WRITEDATA 0 TO 13 The following illustration shows the command required to write these 7 Floating Point values Based on the Inte...

Page 78: ...ead by the Modbus Master Information that must be written to the ControlLogix processor from the Modbus Master device will be placed into the MCMR DATA READDATA array To configure module as a Modbus S...

Page 79: ...r in the ReadData tags Read Register Count Sets how many registers of data the MVI56E MCMR module will send to the ControlLogix processor This value should also be a multiple of 40 Write Register Star...

Page 80: ...9 0145 to 0160 10145 to 10160 30010 40010 WriteData 9 10 0161 to 0176 10161 to 10176 30011 40011 WriteData 10 50 0801 to 0816 10801 to 10816 30051 40051 WriteData 50 100 1601 to 1616 11601 to 11616 30...

Page 81: ...the memory map in this example page 80 this is not possible as WRITEDATA 0 is seen as both 0001 to 0016 and 40001 To accommodate this you can customize the starting location within the module for each...

Page 82: ...98 1599 9585 to 9600 40590 ReadData 599 With the offset parameters listed above the Modbus Master could read from coils 10001 to 10176 using the tags MCMR DATA WRITEDATA 0 TO 9 The Master could also r...

Page 83: ...ay can be used to allow for radio keying or modem dialing before data transmission begins RTS Off 0 to 65535 milliseconds to delay after data message is complete before RTS line is dropped on the port...

Page 84: ...seconds 2 4 4 Floating Point Data Handling Modbus Slave In most applications the use of floating point data requires no special handling 1 Copy the data to and from the MVI56E MCMR module with a tag c...

Page 85: ...e main difference is the addressing of the module For example an Enron Float device is required to access address 47001 for floating point data and each Modbus register would emulate a single float va...

Page 86: ...for the module With the above configuration this would be the addressing for the module Module Address Modbus Address Tag Address 100 47001 MCMR DATA WriteData 100 102 47002 MCMR DATA WriteData 102 10...

Page 87: ...ettings for your module with the help of your network administrator if necessary You will need the following information o IP address fixed IP required _____ _____ _____ _____ o Subnet mask _____ ____...

Page 88: ...net Port on your PC to the CONFIG E1 Port on the module 2 6 1 Setting Up a Temporary IP Address Important ProSoft Configuration Builder locates MVI56E MCMR modules through UDP broadcast messages These...

Page 89: ...Inc Page 89 of 223 2 Click the right mouse button to open a shortcut menu On the shortcut menu choose DIAGNOSTICS 3 In the Diagnostics window click the SET UP CONNECTION button 4 In the Connection Se...

Page 90: ...ubnet and then click OK Important The temporary IP address is only valid until the next time the module is initialized For information on how to set the module s permanent IP address see Ethernet Conf...

Page 91: ...ing the MVI56E MCMR Module Modbus Communication Module with Reduced Data Block User Manual ProSoft Technology Inc Page 91 of 223 7 If the Test Connection is successful click CONNECT The Diagnostics me...

Page 92: ...nfigured you must download copy the updated Project file from your PC to the module 1 In the tree view in ProSoft Configuration Builder click once to select the MVI56E MCMR module 2 Open the PROJECT m...

Page 93: ...u will see an error message To correct the error follow these steps 1 Click OK to dismiss the error message 2 In the Download dialog box click BROWSE DEVICE S to open ProSoft Discovery Service 3 Selec...

Page 94: ...756 ENBT EtherNet IP module This allows you to configure the MVI56E MCMR network settings and view module diagnostics from a PC RSLinx is not required when you use CIPconnect All you need are The IP a...

Page 95: ...ced Data Block User Manual ProSoft Technology Inc Page 95 of 223 2 Click CIP PATH EDIT to open the CIPconnect Path Editor dialog box The CIPconnect Path Editor allows you to define the path between th...

Page 96: ...pplicable for 1756 ENBT Source Module Node Address Node address of the source module only applicable for 1756 CNB Destination Module Select the destination module associated to the source module in th...

Page 97: ...oft Technology Inc Page 97 of 223 Example 1 Local Rack Application For this example the MVI56E MCMR module is located in the same rack as the 1756 ENBT that is connected to the PC Rack 1 Slot Module N...

Page 98: ...h Reduced Data Block Page 98 of 223 ProSoft Technology Inc 2 Configure the path as shown in the following illustration and click CONSTRUCT CIP PATH to build the path in text format Click OK to close t...

Page 99: ...ock User Manual ProSoft Technology Inc Page 99 of 223 4 Click TEST CONNECTION to verify that the physical path is available The following message should be displayed upon success 5 Click OK to close t...

Page 100: ...ple 2 Remote Rack Application For this example the MVI56E MCMR module is located in a remote rack accessible through ControlNet as shown in the following illustration Rack 1 Slot Module Network Addres...

Page 101: ...a Block User Manual ProSoft Technology Inc Page 101 of 223 1 In the Download dialog box click CIP PATH EDIT 2 Configure the path as shown in the following illustration and click CONSTRUCT CIP PATH to...

Page 102: ...r Manual Modbus Communication Module with Reduced Data Block Page 102 of 223 ProSoft Technology Inc 3 Check the new path in the Download dialog box 4 Click TEST CONNECTION to verify that the physical...

Page 103: ...tform Configuring the MVI56E MCMR Module Modbus Communication Module with Reduced Data Block User Manual ProSoft Technology Inc Page 103 of 223 5 Click DOWNLOAD to download the configuration files to...

Page 104: ...nformation on setting up the ENBT module see Using CIPconnect to Connect to the Module page 94 1 In the tree view in ProSoft Configuration Builder right click the MVI56E MCMR module 2 From the shortcu...

Page 105: ...ify Communication In This Chapter Verify Master Communications 106 Verify Slave Communications 113 There are several ways to verify that the MVI56E MCMR module is communicating with the processor and...

Page 106: ...from the module to the processor as part of each read block using the module s Input Image Sample Ladder Logic will copy this information from the LOCAL X I DATA OFFSET tag into the MCMR STATUS array...

Page 107: ...ount This field contains the total number of write blocks transferred from the module to the processor 25 Parse Block Count This field contains the total number of blocks successfully parsed that were...

Page 108: ...to the database is determined by the number of commands configured in the Modbus Port x Commands section of the configuration For 10 commands 10 registers will be used for 100 commands 100 registers w...

Page 109: ...d because of the before mentioned configuration of the BACKPLANE CONFIGURATION READ REGISTER START and READ REGISTER COUNT parameters the command error data will be placed into the tags beginning at M...

Page 110: ...ress in the device that the Slave does not recognize as a valid address This is typically caused by the Slave device skipping some registers If you have a Slave device that has address 40001 to 40005...

Page 111: ...d The Slave device is not set to the correct address for example the Master is sending a command to Slave 1 and the Slave device is configured as device 10 With a 11 error code check all of the above...

Page 112: ...and MCMR MODDEF READREGCNT 3 1 3 MCM Status Data Status information can also be obtained from the MVI56E MCMR module by checking the MCMR STATUS PRTXERRS location Below is a sample If your system is w...

Page 113: ...Verify Slave Communications For verifying the communications to the module as a Slave you can monitor the STATUS tags under the PRTXERRS section Below is an example The REQUESTS field shows the numbe...

Page 114: ...contains the total number of message errors received on the port 19 Port 2 Requests This field contains the total number of messages sent out the port 20 Port 2 Responses This field contains the total...

Page 115: ...the MVI56E MCMR module Tasks that must be handled by the ladder logic are module data transfer special block handling and status data receipt Additionally a power up handler may be needed to handle th...

Page 116: ...fine variables for the module and status data related to the module Each of these object types is discussed in the following topics of the document Backplane Object MCMRUTIL The MCMRUTIL object stores...

Page 117: ...status data is returned when requested by a Status Message MSG and can be used to detect proper module operation StatusTrigger BOOL Triggers Status reading Within the MCMRSTATUS objects are objects c...

Page 118: ...ly enable commands configured in the port command list The event command task allows the processor to dynamically build any commands to be sent by the module Master port to a remote Slave The followin...

Page 119: ...T Function code for the command DevAddress INT Address in device associated with the command MCMRCmdControl When the command bit MCMR CONTROL CMDCONTROLPX CMDTRIGGER is set in the example ladder logic...

Page 120: ...MVI56E MCMR ControlLogix Platform User Manual Modbus Communication Module with Reduced Data Block Page 120 of 223 ProSoft Technology Inc...

Page 121: ...enu in ProSoft Configuration Builder 124 Reading Status Data from the Module 135 Communication Error Codes 136 The module provides information on diagnostics and troubleshooting in the following forms...

Page 122: ...waiting for required module configuration data from ladder logic to configure the Modbus ports Waiting for Processor Connection Module did not connect to processor during initialization Sample ladder...

Page 123: ...y plugged into the rack May also be OFF during configuration download GREEN The MVI56E MCMR is working normally RED The most common cause is that the module has detected a communication error during o...

Page 124: ...the Diagnostics Menu in ProSoft Configuration Builder Tip You can have a ProSoft Configuration Builder Diagnostics window open for more than one module at a time To connect to the module s Configurati...

Page 125: ...ION button to browse for the module s IP address 4 In the Connection Setup dialog box click the TEST CONNECTION button to verify that the module is accessible with the current settings You can also us...

Page 126: ...rvice Select the module then right click and choose SELECT FOR PCB 2 Close ProSoft Discovery Service and click the CONNECT button again 3 If these troubleshooting steps fail verify that the Ethernet c...

Page 127: ...hnology Inc Page 127 of 223 5 2 1 Connect to the Module s Web Page The module s internal web server provides access to module status diagnostics and firmware updates 1 In ProSoft Discovery Service sel...

Page 128: ...or more sub menus for each menu command The first menu you see when you connect to the module is the Main menu 5 2 3 Monitoring Backplane Information Use the BACKPLANE menu to view the backplane statu...

Page 129: ...f words read Number of words written Number of words parsed Error count Event count Command count During normal operation the read write and parsing values should increment continuously while the erro...

Page 130: ...e s Miscellaneous Status registers 5 2 6 Monitoring Modbus Port Information Use the Modbus Port 1 and Modbus Port 2 menus to view the information for each of the MVI56E MCMR module s Modbus applicatio...

Page 131: ...led to communicate with the Slave device Communications with the Slave is suspended for a user defined period based on the scanning of the command list 3 Communications with the Slave has been disable...

Page 132: ...ing the Data Analyzer The following illustration shows an example of the Data Analyzer output The Data Analyzer can display the following special characters Character Definition Data enclosed in these...

Page 133: ...onding ASCII characters are supposed to be The Tick value is a timing mark The module will print a _TT for every xx milliseconds of no data on the line Usually 10milliseconds is the best value to star...

Page 134: ...should see something like this The R means that the module is transitioning the communications line to a transmit state All characters shown in brackets are characters being sent out by the module The...

Page 135: ...e to an Ethernet hub or a 10 100 Base T Ethernet switch or directly to the Ethernet port on your PC 5 3 2 Viewing the Error Status Table Command execution status and error codes for each individual co...

Page 136: ...ort 1 Configuration Errors 1 4 Port 2 Configuration Errors 1 5 to 38 Spare 34 39 2 or 3 1 The bits in each configuration word are shown in the following table The module configuration error word has t...

Page 137: ...arameter is not valid 0x0080 8 Stop bits parameter is not valid 0x0100 9 Slave ID is not valid 0x0200 10 Input bit or word output word and or holding register offset s are not valid 0x0400 11 Command...

Page 138: ...the condition follow these steps 1 Turn off power to the rack 2 Remove the card from the rack 3 Verify that all jumpers are set correctly 4 If the module requires a Compact Flash card verify that the...

Page 139: ...erify that all modules in the rack are correctly configured in the ladder logic Module Errors Problem description Steps to take BP ACT LED not present on MVI56E modules remains OFF or blinks slowly MV...

Page 140: ...Diagnostics and Troubleshooting MVI56E MCMR ControlLogix Platform User Manual Modbus Communication Module with Reduced Data Block Page 140 of 223 ProSoft Technology Inc...

Page 141: ...Page 141 of 223 6 Reference In This Chapter About the MODBUS Protocol 142 Specifications 143 Functional Overview 146 Cable Connections 169 MVI56E MCMR Status Data Definition 175 Modbus Protocol Specif...

Page 142: ...d data between Master and Slave devices on a network Later enhancements to the protocol allow communication over other types of networks Modbus is a Master Slave protocol The Master establishes a conn...

Page 143: ...neral Specifications Backward compatible with previous MVI56 MCMR versions Single Slot 1756 ControlLogix backplane compatible 10 100 Mbps Ethernet port with Auto Cable Crossover Detection User definab...

Page 144: ...n IP Port Status P1 and P2 Settings and Error Information Debug Configuration Ethernet port E1 Config Ethernet Port 10 100 Base T RJ45 Connector for CAT5 cable Link and Activity LED indicators Auto cr...

Page 145: ...ing Registers Slave Only 6 2 4 Functional Specifications Modbus Master A port configured as a virtual Modbus Master actively issues Modbus commands to other nodes on the Modbus network supporting up t...

Page 146: ...ich are user data along with two control words Larger amounts of user data can be moved from the module to the processor by using multiple sequential block transfers The module will automatically sequ...

Page 147: ...le and the serial network This applies only for the scheduled I O data As shown in the diagram all data transferred between the module and the processor over the backplane is through the Input and Out...

Page 148: ...Read or Write Data Blocks Yes Yes I O 1000 to 1125 Initialize Output Data Blocks Yes Yes MSG 9250 Module Error Status Data Block Yes Yes MSG 9901 Event Command Block for Port 1 Yes No MSG 9911 Event...

Page 149: ...Identification Code word 41 is used to signal to the ControlLogix processor that a new block is ready for processing It also tells the processor where in the MCMR DATA READDATA controller tag array to...

Page 150: ...s user database area beginning at the address specified in the configuration file parameter WRITE START REGISTER Write Block ID2 will contain data from MCMR DATA WriteData 40 through 79 and will be p...

Page 151: ...et Content Description 0 Program Scan Count This value is incremented each time a complete program cycle occurs in the module 1 to 2 Product Code The four bytes of these two words contain the ASCII co...

Page 152: ...2 is a Master this field contains the number of Slave response messages received on the port 18 Port 2 Command List Errors When Port 2 is a Master this field contains the number of command errors proc...

Page 153: ...by the module If this counter is incrementing you have a serious backplane communication problem between the processor and the module Check the module configuration in the I O Configuration section of...

Page 154: ...loaded into this array element the Event Command special function can be executed by setting a value of one 1 into the controller tag MCMR CONTROL EVENTTRIGGERP1 for Port 1 or MCMR CONTROL EVENTTRIGGE...

Page 155: ...Device Modbus Slave Device Address Number of target Slave 6 Function Modbus Function Code 1 2 3 4 5 6 15 or 16 7 Device Address 0 9999 address offset in target Slave database 8 Reserved set to 0 9 Re...

Page 156: ...tus MSG will be triggered at the same time as the Send Event Command message by the same controller tag MCMR CONTROL EVENTTRIGGERP1 for Port 1 or MCMR CONTROL EVENTTRIGGERP2 for Port 2 The Get Event C...

Page 157: ...mmand Control is best used to send commands based on special process conditions such as emergency shutdowns device specific resets or any conditions which might require priority polling of a specific...

Page 158: ...pecial function data block and the elements in the associated arrays is shown in the following table Block Request from Processor to Module Word Offset or Controller Tag Array Element Data Field s Des...

Page 159: ...Command Control Status MSG will be triggered at the same time as the Send Command Control message by the same controller tag MCMR CONTROL CMDCONTROLP1 CMDTRIGGER for Port 1 or MCMR CONTROL CMDCONTROL...

Page 160: ...mmand or commands to be sent A Success result in this data block does not indicate Whether the command was successfully sent on the Modbus Network Whether the Slave received or responded to the comman...

Page 161: ...ion status in the Command Error List Each word in the Command Error List holds the most recent execution status of each corresponding command in the MODBUS PORT 1 COMMANDS or MODBUS PORT 2 COMMANDS li...

Page 162: ...re many potential reasons why a command might fail For more details see Standard Modbus Protocol Errors or Module Communication Error Codes Slave Status Blocks 9960 9961 The Get Slave Status List spec...

Page 163: ...e is inactive not currently the slave being actively polled waiting for its turn to be polled or not a Modbus Slave Device Address used in the Command List for the Master port 1 The Slave at this spec...

Page 164: ...rm Boot special function is embedded in the logic that formulates the Write Data block to be sent to the module in the Output Image You can activate this special block logic by setting the controller...

Page 165: ...ode 9999 for the Cold Boot special function is embedded in the logic that formulates the Write Data block to be sent to the module in the Output Image You can activate this special block logic by sett...

Page 166: ...the type of commands to be issued to Modbus Slave Devices on the Modbus network 2 After configuration the Master driver begins transmitting read and or write commands to the Modbus Slave Devices on th...

Page 167: ...Write up to 125 words 16000 bits per command Database Source and Destination Register Address The addresses where data will be written or read Count The number of words to be transferred 1 to 125 on...

Page 168: ...e requested in messages received from Master units 2 A Remote Master Device such as a Modicon PLC or an HMI application issues a read or write command to the module s Modbus Slave Device Address The p...

Page 169: ...cable is Category 5 or better A Category 5 cable has four twisted pairs of wires which are color coded and cannot be swapped The module uses only two of the four pairs The Ethernet ports on the module...

Page 170: ...5 PIN 1 Rx 3 Tx 2 Rx 6 Tx 3 Tx 1 Rx 6 Tx 2 Rx RJ 45 PIN RJ 45 PIN 1 Rx 1 Tx 2 Rx 2 Tx 3 Tx 3 Rx 6 Tx 6 Rx 6 4 3 Ethernet Performance Ethernet performance on the MVI56E MCMR module can affect the opera...

Page 171: ...hardware handshaking control and monitoring of modem signal lines is user definable If no hardware handshaking will be used here are the cable pinouts to connect to the port RS 232 Modem Connection H...

Page 172: ...f modem signal lines RS 232 Null Modem Connection No Hardware Handshaking This type of connection can be used to connect the module to a computer or field device communication port Note For most null...

Page 173: ...single four or five wire cable The Common connection is optional depending on the RS 422 network devices used The cable required for this interface is shown below 6 4 6 RS 485 Application Port s The...

Page 174: ...lems that can be attributed to signal echoes or reflections In these cases installing a 120 ohm terminating resistor between pins 1 and 8 on the module connector end of the RS 485 line may improve com...

Page 175: ...port 13 Port 1 Responses This field contains the total number of messages received on the port 14 Port 1 Errors Sent This field contains the total number of message errors sent out of the port 15 Por...

Page 176: ...current error code returned For a Master port this field contains the index of the currently executing command 30 Port 1 Last Error For a Slave port this field contains the value of the last error co...

Page 177: ...following table lists the functions supported by the module Function Code Definition Supported in Master Supported in Slave 1 Read Coil Status X X 2 Read Input Status X X 3 Read Holding Registers X X...

Page 178: ...he Slave address function code quantity of data characters the data characters and error checking Data will be packed with one bit for each coil 1 ON 0 OFF The low order bit of the first character con...

Page 179: ...s function code quantity of data characters the data characters and error checking Data will be packed with one bit for each input 1 ON 0 OFF The lower order bit of the first character contains the ad...

Page 180: ...i Data of Regs Lo Error Check Field 11 03 00 6B 00 03 CRC Response The addressed Slave responds with its address and the function code followed by the information field The information field contains...

Page 181: ...Start Reg Lo Data of Regs Hi Data of Regs Lo Error Check Field 11 04 00 08 00 01 CRC Response The addressed Slave responds with its address and the function code followed by the information field The...

Page 182: ...ions 5 6 15 and 16 are the only messages that will be recognized as valid for broadcast The example below is a request to Slave number 11 to turn ON coil 0173 Adr Func Data Coil Hi Data Coil Lo Data O...

Page 183: ...ecause the controller is actively scanning it also can alter the content of any holding register at any time The values are provided in binary up to the maximum capacity of the controller unused high...

Page 184: ...me remote devices A server device can however be forced into Listen Only Mode in which it will monitor the messages on the communications system but not respond to them This can affect the outcome of...

Page 185: ...e disabled the controller can also alter the state of the coil Coils are numbered from zero coil 00001 zero coil 00002 one and so on The desired status of each coil is packed in the data field one bit...

Page 186: ...e hot 6 6 10 Preset Multiple Registers Function Code 16 Query Holding registers existing within the controller can have their contents changed by this message a maximum of 60 registers However because...

Page 187: ...e the server echoes the function code of the original request in the function code field of the response All function codes have a most significant bit MSB of 0 their values are all below 80 hexadecim...

Page 188: ...ication Module with Reduced Data Block Page 188 of 223 ProSoft Technology Inc If the output address is non existent in the server device the server will return the exception response with the exceptio...

Page 189: ...ular value of any particular register 04 Slave Device Failure An unrecoverable error occurred while the Slave was attempting to perform the requested action 05 Acknowledge Specialized use in conjuncti...

Page 190: ...ation Allows the processor to read or write the module IP address netmask and gateway values Note This is an optional feature You can perform the same task through PCB ProSoft Configuration Builder Ev...

Page 191: ...ology Inc Page 191 of 223 6 7 3 Installing the Rung Import with Optional Add On Instruction 1 Right click on an empty rung in the MainRoutine of your existing ladder logic and choose IMPORT RUNG 2 Nav...

Page 192: ...Reference MVI56E MCMR ControlLogix Platform User Manual Modbus Communication Module with Reduced Data Block Page 192 of 223 ProSoft Technology Inc 3 In the IMPORT CONFIGURATION window click OK...

Page 193: ...e with Reduced Data Block User Manual ProSoft Technology Inc Page 193 of 223 The Optional Add On instruction will be now visible in the ladder logic Observe that the procedure has also imported data t...

Page 194: ...223 ProSoft Technology Inc You will notice that new tags have been imported four MESSAGE tags MVI56EMCMRCLOCK and MVI56EMCMRETHERNET tags 4 In the Optional Add On instruction click the button next to...

Page 195: ...MVI56E MCMR ControlLogix Platform Reference Modbus Communication Module with Reduced Data Block User Manual ProSoft Technology Inc Page 195 of 223 6 Select the module to configure the message path...

Page 196: ...c 6 7 4 Reading the Ethernet Settings from the Module Expand the MVI56MCMRETHERNET controller tag and move a value of 1 to MVI56MCMRETHERNET READ The bit will be automatically reset and the current Et...

Page 197: ...oft Technology Inc Page 197 of 223 6 7 5 Writing the Ethernet Settings to the Module Expand the MVI56EMCMRETHERNET controller tag Set the new Ethernet configuration in MVI56EMCMRETHERNET CONFIG Move a...

Page 198: ...e MVI56E MCMR ControlLogix Platform User Manual Modbus Communication Module with Reduced Data Block Page 198 of 223 ProSoft Technology Inc To check the status of the message refer to the WRITEETHERNET...

Page 199: ...99 of 223 6 7 6 Reading the Clock Value from the Module Expand the MVI56MCMRCLOCK controller tag and move a value of 1 to MVI56MCMRCLOCK READ The bit will be automatically reset and the current clock...

Page 200: ...0 of 223 ProSoft Technology Inc 6 7 7 Writing the Clock Value to the Module Expand the MVI56MCMRCLOCK controller tag Set the new Clock value in MVI56MCMRCLOCK CONFIG Move a value of 1 to MVI56MCMRCLOC...

Page 201: ...s from the sample program 4 Save and Download page 41 the new application to the controller and place the processor in run mode If all the configuration parameters are set correctly and the module is...

Page 202: ...logy Inc This action opens the SELECT MODULE dialog box 2 Select 1756 MODULE GENERIC 1756 MODULE from the list and then click OK This action opens the NEW MODULE dialog box 3 In the NEW MODULE dialog...

Page 203: ...which the module will attempt backplane communication with the processor This value should not be set to less than 1 millisecond Values between 1 and 10 milliseconds should work with most application...

Page 204: ...a types folder in your existing program 4 Repeat these steps until you have copied all of the data types from the sample program into your existing application Note Data types prefixed with an undersc...

Page 205: ...unication Module with Reduced Data Block User Manual ProSoft Technology Inc Page 205 of 223 6 8 5 Add the Ladder Logic If you are creating your own ladder logic copy the rungs shown in the following i...

Page 206: ...RSLogix Version 15 and Lower MSG_BLKS The MSG_BLKS routine passes data between the module and the ControlLogix processor using MSG instructions Data transferred using these blocks is of low priority...

Page 207: ...le with Reduced Data Block User Manual ProSoft Technology Inc Page 207 of 223 After the block is read from the module the data received should be copied to the module s status controller tag area The...

Page 208: ...ce MVI56E MCMR ControlLogix Platform User Manual Modbus Communication Module with Reduced Data Block Page 208 of 223 ProSoft Technology Inc The next rung passes a block 9901 from the processor to the...

Page 209: ...educed Data Block User Manual ProSoft Technology Inc Page 209 of 223 The following illustrations show the format of the MSG block The format of the MSG block for this rung is as shown in the previous...

Page 210: ...Reference MVI56E MCMR ControlLogix Platform User Manual Modbus Communication Module with Reduced Data Block Page 210 of 223 ProSoft Technology Inc The next rung performs the functions of a 9902 block...

Page 211: ...6E MCMR ControlLogix Platform Reference Modbus Communication Module with Reduced Data Block User Manual ProSoft Technology Inc Page 211 of 223 The following illustrations show the format of the MSG bl...

Page 212: ...Reference MVI56E MCMR ControlLogix Platform User Manual Modbus Communication Module with Reduced Data Block Page 212 of 223 ProSoft Technology Inc The next rung requests a set of command list errors...

Page 213: ...6E MCMR ControlLogix Platform Reference Modbus Communication Module with Reduced Data Block User Manual ProSoft Technology Inc Page 213 of 223 The following illustration shows the format of the MSG bl...

Page 214: ...CMR ControlLogix Platform User Manual Modbus Communication Module with Reduced Data Block Page 214 of 223 ProSoft Technology Inc The data contained in the CmdErrData controller tag determines the set...

Page 215: ...6E MCMR ControlLogix Platform Reference Modbus Communication Module with Reduced Data Block User Manual ProSoft Technology Inc Page 215 of 223 The following illustration shows the format of the MSG bl...

Page 216: ...Reference MVI56E MCMR ControlLogix Platform User Manual Modbus Communication Module with Reduced Data Block Page 216 of 223 ProSoft Technology Inc...

Page 217: ...1 Product Version Number 2 System architecture 3 Network details If the issue is hardware related we will also need information regarding 1 Module configuration and associated ladder files if any 2 Mo...

Page 218: ...one 60 3 7941 2888 neasia prosoft technology com Languages spoken English Chinese Japanese Korea Phone 60 3 7941 2888 korea prosoft technology com Languages spoken English Korean Regional Office Phone...

Page 219: ...IONAL TECH SUPPORT support la prosoft technology com Andean Countries Central America Caribbean Chile Bolivia Paraguay Phone 507 6427 48 38 andean prosoft technology com Languages spoken Spanish Engli...

Page 220: ...MVI56E MCMR ControlLogix Platform Modbus Communication Module with Reduced Data Block User Manual ProSoft Technology Inc Page 220 of 223...

Page 221: ...t 88 Contacting Technical Support 217 Copy Sample Controller Tags 204 Copying the User Defined Data Types 204 Creating a New RSLogix 5000 Project 19 Creating Optional Comment Entries 51 Creating the M...

Page 222: ...Function Code 06 183 Printing a Configuration File 51 Processor Module Data Transfers 146 ProSoft Technology Product Documentation 2 R Read Block 149 Read Coil Status Function Code 01 178 Read Coil S...

Page 223: ...sing RSWho to Connect to the Module 92 104 Using the Diagnostics Menu in ProSoft Configuration Builder 124 Using the Optional Add On Instruction Rung Import 190 Using the Sample Program RSLogix 5000 V...

Reviews: