Home

MVI69-MCM User Manual

image

Contents

1. ProSoft Technology Inc March 22 2011 Page 145 of 167 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 7 Cable Connections The application ports on the MVI69 MCM module support RS 232 RS 422 and RS 485 interfaces Please inspect the module to ensure that the jumpers are set correctly to correspond with the type of interface you are using Note When using RS 232 with radio modem applications some radios or modems require hardware handshaking control and monitoring of modem signal lines Enable this in the configuration of the module by setting the UseCTS parameter to 1 5 7 1 RS 232 Configuration Debug Port This port is physically an RJ45 connection An RJ45 to DB 9 adapter cable is included with the module This port permits a PC based terminal emulation program to view configuration and status data in the module and to control the module The cable for communications on this port is shown in the following diagram RS 232 Config Debug Port Cable DB 9 Male Config Debug Port 5 7 2 RS 232 Application Port s When the RS 232 interface is selected the use of 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 Application Port Cable No Handshaking DB 9 Male RS 232 Device Page 146 of 167 ProSoft Technology Inc Mar
2. eccceeecceeeneeeeneeeeeeeeceeeeeseaeeseaeeeseaeeseaeeeeaeeseeeeeeeeseas 117 5 4 5 If Block Transfer Size 120 ooo eceeeeccceeeeeeeeeceeeeeeeeeeeeeseaeeeseaeeseaeesenaeeteueeeeeeeesaas 118 5 4 6 If Block Transfer Size 240 ooo ecceecceceececeeeeeeeneeeeeeeeeaeeseaeeeseaeeseaeeseaeeteueeeseeeetaas 119 5 4 7 Status Data Block Read Block ID 0 ecccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeteaeeseneeeeeaeess 119 5 5 Special Control and Status BIOCKS ccccceeeeeeeeeeeeeeeeeeneeeeeaeeseaeeeeeeeseueeeeeeeess 121 5 5 1 Slave Disable and Enable Control Blocks ccceseeeeeeeeeeeeteeseeeeeeeeeteeeeeeeeens 121 5 5 2 Slave Status BIOCKS stale a ea ia ar a age a a A a rd sidebars ALAE 124 5 5 3 oaaae Tao AARE EET T E teed seal cbascacseeci viata case pegs A TT 125 5 5 4 Command Control a T a a aaa a a fides a aE ESA 127 5 5 5 Pass Through Control BIOCKS ccccsceeeeeeeeeneeeeeeeeeeaeeseaeeeseaeeseaeeseaeeseeeeseneesaas 129 5 5 6 Initialize Output Data osseeeeeseeeeneeeeeeneeerrresnrsrntstntstntstenstenstenstensenstnnaensrnnsennae 133 Page 6 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Contents Modbus Communication Module User Manual 5 5 7 Warm Boot BIOCK 9998 errean AEE a a EA RAE AE EEA E ET 133 5 5 8 Cold Boot Block 9999 a r Sr a a a aaa aaa aa Aaaa A a E AAAA KAE Aa ETNE da ERA 133 5 6 Modbus Protocol Specification ccccc
3. 1769 L23E QBFC1B 450 mA at 5 Vdc No MVI69 module can be used with this processor Rockwell Automation RSLogix 5000 CompactLogix or RSLogix 500 MicroLogix programming software Rockwell Automation RSLinx communication software Pentium 11450 MHz minimum Pentium II 733 MHz or better recommended Supported operating systems o Microsoft Windows XP Professional with Service Pack 1 or 2 o Microsoft Windows 2000 Professional with Service Pack 1 2 or 3 o Microsoft Windows Server 2003 128 Mbytes of RAM minimum 256 Mbytes of RAM recommended 100 Mbytes of free hard disk space or more based on application requirements 256 color VGA graphics adapter 800 x 600 minimum resolution True Color 1024 x 768 recommended CD ROM drive HyperTerminal or other terminal emulator program capable of file transfers using Ymodem protocol Page 12 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Start Here Modbus Communication Module User Manual 1 2 Package Contents The following components are included with your MVI69 MCM module and are all required for installation and configuration Important Before beginning the installation please verify that all of the following items are present Qty Part Name Part Number Part Description 1 MVI69 MCM Module MVI69 MCM Modbus Communication Module 1 Cable Cable 15 RS232 For RS232 Connection to the CFG
4. ProSoft Technology Inc Page 59 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Floating Point Support The movement of floating point data between the MCM module and other devices is easily accomplished as long as the device supports IEEE 754 Floating Point format This IEEE format is a 32 bit single precision floating point format The programming necessary to move the floating point data takes advantage of the CPS command that exists in the Compact Logix and SLC processors The CPS command is unique for CPX SLC data movement commands in that it is an untyped function meaning that no data conversion is done when moving data between file types that is it is an image copy not a value copy The structure of the CPS command to move data from a Floating Point file into an integer file something you would do to move floating point values to the module is as follows CPS Copy File Source FloatWriteDatal Dest MCM1 WriteDatal This command will move one floating point value in two 16 bit integer images to the integer file For multiple floating point values increase the count field by a factor of 2 per floating point value The structure of the COP command to move data from an Integer file to a Floating Point file something you would do to receive floating point values from the module is as follows CPS Copy
5. 2 On the shortcut menu choose VIEW CONFIGURATION This action opens the View Configuration window 3 Inthe View Configuration window open the FILE menu and choose PRINT This action opens the Print dialog box 4 Inthe Print dialog box choose the printer to use from the drop down list select printing options and then click OK Page 48 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual 2 3 Downloading the Project to the Module Using a Serial COM port For the module to use the settings you configured you must download copy the updated Project file from your PC to the module 1 Inthe tree view in ProSoft Configuration Builder click once to select the module 2 Open the Projectmenu and then choose MODULE DOWNLOAD The program will scan your PC for a valid com port this may take a few seconds When PCB has found a valid COM port the Download dialog box will open Download files from PC to module STEP 1 Select Communication Path Select Connection Type Com 3 F Ethernet CIPconnect l STEP 2 Transfer File s DOWNLOAD Cancel 3 Choose the COM port to use from the dropdown list and then click the DOWNLOAD button The module will perform a platform check to read and load its new settings When the platform check is complete the status bar in the Download dialog box w
6. 5 4 5 If Block Transfer Size 120 Processor MVI69 Module Read Block 1 120 Read Block 2 240 Read Block 3 360 Read Block 4 480 Write Block 1 600 Write Block 2 720 Page 118 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module Reference User Manual 5 4 6 If Block Transfer Size 240 Processor MVI69 Module 0 Read Block 1 240 Read Block 2 480 Write Block 1 720 Write Block 2 960 5 4 7 Status Data Block Read Block ID 0 After the last Read Block is sent the module builds an output image ID 0 to transfer the module s status information to the processor This information can be used by the PLC program to determine the current status of the module Ladder logic should be constructed to transfer the information in this block to a user data file The structure of this block is shown in the following table Offset Conient Description 0 Read Block ID Block identification code 1 to indicate a status block 1 Write Block ID Block requested from the processor by the module 2 Program Scan Count This value is incremented each time a complete program cycle occurs in the module 3 to 4 Product Code These two registers contain the product code of MCM 5 to6 Product Version These two registers contain the product version for the currently running software 7108 Operating Sy
7. All data related to the MVI69 MCM is stored in a user defined data type An instance of the data type is required before the module can be used This is done by declaring a variable of the data type in the Controller Tags Edit Tags dialog box The following table describes the structure of this object Name Data Type Description BlockTransferSize INT ReadData INT 480 Data read from module WriteData INT 480 Data written to module BP MCM1 Backplane ModuleStatus MCM1_STATUS BlockRequest MCM1BlockRequest CommandControl MCM1CommandControlPorts EventCommand MCM1EventCommandPorts SlavePollingControl MCM1SlavePollingControlPorts SlaveStatus MCM1SlaveStatusPorts MBCoil MCM1Coil_ Array This object contains objects that define the configuration user data status and command control data related to the module This object reads and write data between the module and the processor Values entered determine the ladder logic and data size required in the application The ReadData and WriteData arrays must be sized to or larger than the count values entered The ladder logic must process the number of blocks of data to be transferred The number of blocks is computed as follows BlockCnt INT RegCnt n if MOD RegCnt n 1 0 Where nis the block transfer size and equals 60 120 or 240 If the register count is evenly divisible by n the number of blocks is easy to compute and the ladder is much simpl
8. MVI69 MCM CompactLogix or MicroLogix Platform Support Service amp Warranty Modbus Communication Module User Manual 6 2 10 Controlling Law and Severability This Warranty shall be governed by and construed in accordance with the laws of the United States and the domestic laws of the State of California without reference to its conflicts of law provisions If for any reason a court of competent jurisdiction finds any provisions of this Warranty or a portion thereof to be unenforceable that provision shall be enforced to the maximum extent permissible and the remainder of this Warranty shall remain in full force and effect Any cause of action with respect to the Product or Services must be instituted in a court of competent jurisdiction in the State of California ProSoft Technology Inc Page 163 of 167 March 22 2011 Support Service amp Warranty MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Page 164 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module Index Backplane 69 50 MCM Port x 53 Modbus Port x Commands 59 Module 50 0 00 Return Query Data 140 A About the MODBUS Protocol 106 Adding Multiple Modules Optional 31 Adding the Module to an Existing CompactLogix Project 20 75 Adding the Module to an Existing MicroLogix Project 79 Allocation of Risks
9. 66 66 60 60 A3 67 _TT_ lt R gt lt 01 gt lt 03 gt lt 80 gt lt 05 gt lt 00 gt lt 8A gt lt C5 gt lt CD gt lt R gt _TT_ 61 63 14 66 06 66 66 66 TT G0 06 06 60 68 08 86 66 66 60 60 68 oai aali 66 A3 67 TT lt R gt lt 81 gt lt 63 gt lt 08 gt lt O0 gt lt 80 gt lt bA gt lt 05 gt lt GD gt lt R gt _TT_ 61 63 14 68 60 60 06 66 66 TT G60 60 06 990 00 06 08 96 66 60 96 60 08 00 3 67 _TT_ lt R gt lt 61 gt lt 03 gt lt 06 gt lt 60 gt lt 06 gt lt OA gt lt C5 gt lt CD gt lt R gt _TT_ 61 63 14 66 66 60 66 60 66 TT_ 60 66 60 60 G6 90 89 99 98 86 86 68 90 90 A3 67 _TT_ lt R gt lt 01 gt lt 63 gt lt 86 gt lt 86 gt lt 80 gt lt GA gt lt C5 gt lt CD gt lt R gt _TT_ 61 83 14 98 90 66 68 68 66 66 66 66 66 86 G0 G0 A9 90 TT_ es 08 96 66 00 A3 67 _TT_ lt R gt lt 61 gt lt 63 gt lt 06 gt lt G0 gt lt 80 gt lt OA gt lt C5 gt lt CD gt lt R gt _TT_ 01 63 14 00 96 96 96 60 08 68 660 00 06 60 60 H6 G0 G0 TT 06 00 65 08 90 A3 67 _TT_ lt R gt lt 01 gt lt 63 gt lt 60 gt lt 80 gt lt 06 gt lt GA gt lt C5 gt lt CD gt lt R gt _TT_ 01 03 14 86 08 86 96 96 TT 66 66 68 66 66 66 66 66 86 G6 G6 06 96 90 68 A3 67 _TT_ lt R gt lt 61 gt lt 63 gt lt 08 gt lt 08 gt lt 60 g
10. BALD __Comecton np 1 a Connection_Output_2 Ea Local 2 1 Locak2 0 MCM_2 Module s Definition RSLogix 5000 Import Configuration Page 36 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual 14 Click OK to confirm RSLogix 5000 Import_Test 1 769 L35E MainProgram MCM_2 Ei File Edit view Search Logic Communications Tools Window Help sial S seel ofr llel lel lal ortine gt No Forces z 4 el e E Fal Jno Edits gt Forces Disabled z Path AB_ETHIP 1 105 102 0 201 Backplane O ale avotles A Add On larms imeriCounter amp Input Output oompare ompute Math love Logical HEEE Module s Definition parameters Internal ladder usage should not be accessed by user application Controller Import_Test Controller Tags C Controller Fault Handler 5 Power Up Handler amp Tasks B E MainTask 3 MainProgram A Program Tags Ba MainRoutine NEG CPS Not Equal Copy File Source A MCM_2 UTIL LastRead Source Local 2 Data O 24 Dest Connection_Input_2 Data 0 Source B Local 2 Data 0 Length 62 o E Unscheduled Programs Motion Groups E Ungrouped Axes Add On Instructions Data Types User Defined oo MCMBlockStats x Mcmcmdcontrol a Mcmcoildrray MCMCONFIG MCMConn
11. CompactLogix or MicroLogix Platform User Manual Modbus Communication Module The Input Words and Output Words parameters will depend on the Block Transfer Size parameter you specify in the configuration file Use the values from the following table Block Transfer Size Input Words Output Words 60 62 61 120 122 121 240 242 241 5 Click OK to continue 6 After completing the module setup the O Configuration dialog box will display the module s presence The last step is to add the ladder logic If you are using the example ladder logic adjust the ladder to fit your application Refer to the example Ladder Logic section in this manual Download the new application to the controller and place the processor in RUN mode If you encounter errors refer to Diagnostics and Troubleshooting page 81 for information on how to connect to the module s Config Debug port to use its troubleshooting features Page 80 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Diagnostics and Troubleshooting Modbus Communication Module User Manual 4 Diagnostics and Troubleshooting In This Chapter e LED Status Indicators 2isaeiis cc aa a a aer aia R Aaa eaan 82 Using ProSoft Configuration Builder PCB for Diagnostics 85 Reading Status Data from the Module eceeeeeeeeeeeseteeeeeeteeeeeaees 99 The module provides information on diagnostics and troublesh
12. 1 I 1 1 1 I Register Data storage Register Data Status e l from Module Step Description 1 Anytime the module restarts boots or reboots the MODBUS slave port driver receives configuration information from a user defined CFG file stored on the MVI69 MCM This information configures the serial ports and defines slave node characteristics The configuration information may also contain instructions to offset data stored in the database to addresses different from addresses requested in the received messages 2 A Host device such as a Modicon PLC or an HMI application issues a read or write command to the module s node address The port driver qualifies the message before accepting it into the module Rejected commands will cause an Exception Response 3 After the module accepts the command the data is immediately transferred to or from the module s internal database If the command is a read command the data is read from of the database and a response message is built If the command is a write command the data is written directly into the database and a response message is built 4 After Steps 2 and 3 has been completed either a normal response message or an Exception Response message will be sent to the Master 5 Counters are available in the Status Block that permit the ladder logic program to determine the level of activity of the Slave Driver Page 110 of 167 ProSoft Techno
13. 9 Select the file MVIG9MCM_ADDON_RUNG_v1_4 L5x Import Rung Add On Instruction My Documents r lt My Computer O sample ladders MvI69MCM_AddOn_Rung_v1_4 L5X cm MVI69MCM_AddOn_Rung_v1_4 L5x RSLogix 5000 XML Files L5 Comnecion Input 2 Connection_Output_2 Local2 1 Local 2 0 MCM_2 AOI69MCM_2 Page 34 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual 11 Associate the I O connection variables to the correct module The default values are LOCAL 1 1 and LOCAL 1 0 These require re assignment to the new module s location Import Configuration Alias For_ Data Type Description Operation Name 2 AB 1769_MODULE INT _482Bytes 0 0 AB 1769_MODULE C 0 4B 1769_MODULE_INT_122Bytes 0 0 MCMModuleDet Import Configuration Name Aliss For DataType SSC Description Operation By 2 ProSoft Technology Inc Page 35 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 12 Change the default tags MCM and AOI69MCM to avoid conflict with existing tags This example procedure will append the string _2 as follows Import Configuration Wane AlaeFor Datetype Deseinton
14. Diagnostic and Diagnostics and This section describes Diagnostic and Troubleshooting Troubleshooting Troubleshooting procedures page 81 Reference Reference page These sections contain general references 101 associated with this product Specifications and Product Specifications the Functional Overview Product Specifications page Functional Overview 102 Functional Overview page 106 page 91 Support Service and Support Service This section contains Support Service and Warranty and Warranty page Warranty information 155 Index Index of chapters Index ProSoft Technology Inc Page 9 of 167 March 22 2011 Guide to the MVI69 MCM User Manual MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Page 10 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module Start Here User Manual 1 Start Here In This Chapter Installing ProSoft Configuration Builder Software Install the Module in the Rack ccsccccceeeecssseeeeeeeeeneees System Requirements cccececeeeceeseeeeeeeeeeneeeeeeeessaeeeseeeneas Package Content eceeeceeeseeeeseeteneeeeaeeeeaeeeeaeeteseeseaeeeaes o Setting WUMPCMS mienens ai eeen To get the most benefit from this User Manual you should have the following skills Rockwell Autom
15. Tip Repeat this command at one second intervals to determine the number of blocks transferred each second 4 2 6 Protocol Serial MCM Menu Press 0 or 1 to view protocol serial information for ports 1 and 2 respectively Use this command to view a variety of error and status screens for the port Press to view a list of commands available on this menu M Main Menu 0 4 Protocol_Serial Menu Display Menu F Redisplays refreshes this menu W Version Information Displays version information screen M Main Menu Goes up one level to main menu Displays configuration information C Configuration Information ist ms See Master Command List Menu section Opensthe Master Command L Master Command List Serial Port Opensthe Serial Portmenu See Serial Port Menu section E ErrorfStatus Information bY Opens the Command List menu gt See Command List Menu section Redisplaying the Menu Press to display the current menu Use this command when you are looking at a screen of data and want to view the menu choices available to you Viewing Version Information Press V to view version information for the module Use this command to view the current version of the software for the module as well as other important values You may be asked to provide this information when calling for technical s
16. binary Reading left to right this show that inputs 10204 10202 and 10199 are all on The other input data bytes are decoded similar Due to the quantity of input statuses requested the last data field which is shown as 35 HEX 0011 0101 binary contains the status of only 6 inputs 10213 to 102180 instead of 8 inputs The two left most bits are provided as zeros to fill the 8 bit format 5 6 4 Read Holding Registers Function Code 03 Query Read Holding Registers 03 allows the user to obtain the binary contents of holding registers 4xxxx in the addressed Slave The registers can store the numerical values of associated timers and counters which can be driven to external devices The addressing allows up to 125 registers to obtained at each request however the specific Slave device may have restriction that lower this maximum quantity The registers are numbered form zero 40001 zero 40002 one and so on The broadcast mode is not allowed The example below reads registers 40108 through 40110 from Slave 584 number 11 Adr Func Data Start Reg Hi Data Start Reg Lo Data of Regs Hi Data ofRegsLo Error Check Field 11 03 00 6B 00 03 CRC Page 136 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual Response The addressed Slave responds with its address and the function code followed by the information field The
17. 0 to turn off timing marks in the Data Analyzer screen Viewing Data in Hexadecimal Format Press H from the Database View menu to display the data on the current page in hexadecimal format Viewing Data in ASCII Text Format Press A from the Database View menu to display the data on the current page in ASCII format This is useful for regions of the database that contain ASCII data ProSoft Technology Inc Page 97 of 167 March 22 2011 Diagnostics and Troubleshooting MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Starting the Data Analyzer Press B to start the data analyzer After the key is pressed all data transmitted and received on the currently selected port will be displayed The following illustration shows an example lt R gt lt 61 gt lt 03 gt lt 00 gt lt 80 gt lt 08 gt lt OA gt lt C5 gt lt CD gt lt R gt _TT_ 61 63 14 60 06 06 00 66 88 _TT_ 66 68 68 66 66 66 60 66 96 60 60 66 60 G0 A3 67 _TT_ lt R gt lt 61 gt 83 gt lt 68 gt lt 08 gt lt 80 gt lt 6A gt lt C5 gt lt CD gt lt R gt _TT_ 61 63 14 68 66 G6 46 46 66 66 66 60 60 06 60 AA OA 66 _TT_ 66 06 60 66 66 A3 67 TT lt R gt lt 01 gt lt 03 gt lt 00 gt lt 00 gt lt 06 gt lt 0A gt lt C5 gt lt CD gt lt R gt _TT_ 61 63 14 60 60 66 60 60 G6 90 66 09 09 96 96 98 90 66 _TT_ 60
18. 162 Backplane Data Transfer 107 Backplane Fail Count 52 72 Backplane Menu 92 Battery Life Advisory 3 Baud Rate 55 Bit Input Offset 56 Block Request from the Processor to the Module 115 Block Response from the Module to the Processor 115 Block Transfer Size 52 Cc Cable Connections 146 Clearing a Fault Condition 83 Clearing Diagnostic Data 89 Cold Boot Block 9999 121 133 Command Control 121 127 Command Count 57 Command Error Pointer 57 Command List Entry Errors 114 Command List Overview 59 Commands Supported by the Module 134 Configuring Module Parameters 48 Configuring the Floating Point Data Transfer 61 Configuring the MVI69 MCM Module 19 Configuring the RSLinx Driver for the PC COM Port 39 Connect your PC to the Module 45 Connecting Your PC to the Processor 39 Contacting Technical Support 155 157 Controlling Law and Severability 163 Create a new RSLogix5000 project 20 Index User Manual Create the Module 21 D Data Analyzer 96 Data Bits 55 Data Flow between MVI69 MCM Module and CompactLogix or MicroLogix Processor 110 Database View Menu 89 90 DB9 to RJ45 Adaptor Cable 14 150 Diagnostics Function Code 08 140 Diagnostics and Troubleshooting 9 80 81 Disabling the RSLinx Driver for the Com Port on the PC 43 Disclaimer of all Other Warranties 161 Disclaimer Regarding High Risk Activities
19. 2 2 2 Renaming PCB Objects cccccececeeeeeeeeeeeeeeeeeeseeeeeeeaeeseneeeseaeeee Downloading the Project to the Module Using a Serial COM port Module Configuration c ccccccececeeeeseeeeneeeeneeeseaeeeeeeeeneeeseueeeeenees 2 4 1 Modil aeea iese ani eee eee ee ein eae 2 4 2 Backplane 69 ccccccccesecceeesseeceeeeseeceeseseceeseseeneesesseneesensenenteneanes 2 4 3 MCM POr X iunii heii neaei ei alin Wena 2 4 4 Modbus Port x Commands cccscceseeeeeseeseeeseeeeeseeeeeteeeseees Ladder Logic Ladder Logic and Firmware Compatibility Note ceeeeeee Module Data Object MCM1ModuleDef cccseeeeeeetteeeeeenees 3 2 1 Status Object MCM1Status ceececeeceeeseeeeeeeeeeeeeeseeeeseeeeessneeeeaes 3 2 2 User Data Objects lt iccievts disteeaziatenietinclylvtecstevegeienyaviedetacevanatyleteeeuts ProSoft Technology Inc March 22 2011 Page 5 of 167 Contents User Manual MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module 3 2 3 Slave Polling Control and Status ccccccececceceeeeeeeeeeeeeeseneeeseaeeseeeeseaeeseneeeseaeesas 73 3 2 4 MODBUS Message Datta ccccccecceeeeeeeeeneeeseeeeseeeeceeeeseaeeecaeeseaeeseaeeeseaeeseneeeeaaes 74 3 3 Adding the Module to an Existing CompactLogix Project cccseeseeeeneeeeees 75 3 4 Adding the Module to an Existing MicroLogix Project eeseceeeeesneeeeeeteeeeeeees
20. 5 Vdc backplane current available Also supports MicroLogix 1500 LRP Page 102 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual 5 1 2 Hardware Specifications Specification Description Dimensions Standard 1769 Single slot module Current Load 800 mA max 5 VDC Power supply distance rating of 2 L43 and L45 installations on first 2 slots of 1769 bus Operating Temp 32 F to 140 F 0 C to 60 C Storage Temp 40 F to 185 F 40 C to 85 C Relative Humidity 5 to 95 with no condensation LED Indicators Battery and Module Status Application Status Serial Port Activity CFG Port Activity CFG Port CFG RJ45 DB 9F with supplied cable RS 232 only No hardware handshaking App Ports P1 P2 Serial modules RS 232 RS 485 or RS 422 jumper selectable RJ45 DB 9F with supplied cable RS 232 handshaking configurable 500V Optical isolation from backplane Shipped with Unit RJ45 to DB 9M cables for each port 6 foot RS 232 configuration Cable ProSoft Technology Inc March 22 2011 Page 103 of 167 Reference User Manual MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module 5 1 3 General Specifications Modbus Master Slave Communication parameters Modbus Modes Floating Point Data Modbus Function Cod
21. CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual Read Block Disable Slaves Here is the structure of the Disable Slaves input image block Offset Description Length words 0 3000 or 3100 1 1 Write Block ID 1 2 Number of slaves disabled 1 3to n 1 Spare n 7 n 60 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file Write Block Enable Slaves Here is the structure of the Enable Slaves output image block Offset Description Length words 0 3001 or 3101 1 1 Number of slaves to enable with this block 1 2 to 60 List of addresses of slaves to enable 59 61 to n Spare present only if Block Transfer Size gt 60 n 60 n 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file The module will respond with an input image block with the same identification code and indicate the number of slaves enabled by this function Read Block Enable Slaves Here is the structure of the Enable Slaves input image block Offset Description Length words 0 3001 or 3101 1 1 Write Block ID 1 2 Number of slaves enabled 1 3to n 7 Spare n 1 n 60 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file Important The slaves are enabled by default Therefore this block should only be used to re enable slaves th
22. Here is the structure of the Command Control output image write block Offset Description Length words 0 5001 to 5006 or 5101 to 5106 1 1 Command index 1 2 Command index 1 3 Command index 1 4 Command index 1 5 Command index 1 6 Command index 1 7to n Spare n 60 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file Blocks in the range of 5001 to 5006 are used for Port 1 and blocks in the range of 5101 to 5106 are used for Port 2 The last digit in the block code defines the number of commands to process in the block For example a block code of 5003 contains 3 command indexes that are for Port 1 The Command index parameters in the block have a range of 0 to 99 and correspond to Master Command List entries The module responds to a Command Control write block with a input image read block containing the number of commands added to the command queue for the port Read Block Command Control Here is the structure of the Command Control input image read block Offset Description Length words 0 5000 to 5006 or 5100 to 5106 1 1 Write Block ID 1 2 Number of commands added to command queue 1 3to n 7 Spare n 60 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file Page 128 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Mo
23. Import_Test 1769 L35E MainProgram MainRoutine amp Eile Edit View Search Logic Communications Tools Window Help aisimi 8 selel i alsel E i alal o E No Edits z Forces Disabled 303 JMP LBL JSR JXR RET SBR TNO MCR UID UIE SFR SFP EVENT EOT AFI NOP Path AB_ETHIP 1105 102 0 201 Backplane 0 oc n ms ver Counter mpare Omp love Controler Import Test ies ela es lee elzded led salsa 70K lel Tasks B E Motion Groups Module s Definition E Ungrouped Axes parameters Internal E E Add On Instructions laudar usage H E Data Types should not be Co Trends accessed by user ma application ES 1 0 Configuration NEQ cps 5 9 Backplane CompactLogix System I Not Equal Copy File a 1769 L35E Import_Test Source A MCM UTIL LastRead Source Local 1 1 Data 0 E 1769 L35E Ethernet Port LocalENB 14 Dest Connection_Input Data 0 Z Ethernet Source B Local 1 1 Data 0 Length 242 5 8 CompactBus Local 14 8 0 CompactBus Local ProSoft Technology 1 1769 MODULE MVI69MCM MVIG9MCM Backplane 8 2 1769 MODULE MvIe9McM_2 Transfer Add On Instruction PSBIMCM ProSoft Technology MVIG9MCM Backplane AOI69MCM AOI69MCM C Connection _Input Connection _Input Connection_Output Connection_Output MCM MCM CPS Copy File Source Connection_Output Data 0 Dest
24. Inc Page 77 of 167 March 22 2011 Ladder Logic MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 7 Save the module Click OK to dismiss the dialog box THE CONTROLLER ORGANIZATION window now displays the module s presence 1 0 Configuration Backplane CompactLogix System fa 1769 135 My_Controller 1769 L35E Ethernet Port LocalENB Z Ethernet 4 CompactBus Local lz 0 CompactBus Local S 1 1769 MODULE MVI69_Sample 8 Copy the Controller Tags from the sample program 9 Copy the User Defined Data Types from the sample program 10 Copy the Ladder Rungs from the sample program 11 Save and Download the new application to the controller and place the processor in run mode Page 78 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Ladder Logic Modbus Communication Module User Manual 3 4 Adding the Module to an Existing MicroLogix Project If you are installing and configuring the module with a MicroLogix controller follow these steps If you are using a CompactLogix controller refer to the previous section The first step in setting up the processor ladder file is to define the I O type module to the system Start RSLogix 500 and follow these steps 1 In RSLogix open your existing application or start a new application depending on your requirements 2 Double click the I O CONFIGURATION icon located in the Contro
25. Module Press W from the Main menu to warm boot restart the module This command will cause the program to exit and reload refreshing configuration parameters that must be set on program initialization Only use this command if you must force the module to reboot Exiting the Program Press ESC to restart the module and force all drivers to be loaded The module will use the configuration stored in the module s Flash memory to configure the module ProSoft Technology Inc Page 89 of 167 March 22 2011 Diagnostics and Troubleshooting MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 4 2 4 Database View Menu Press D from the Main menu to open the Database View menu Use this menu command to view the current contents of the module database Press to view a list of commands available on this menu DE Menu selected DATABASE VIEW MENU ee Menu 0 9 Display 0 9000 S show again Back 5 Pages P Previous Page Skip 5 Pages N Next Page D becimal Display H Hexadecimal Display F Float Display ASASCII Display M Main Menu Viewing Register Pages To view sets of register pages use the keys described below Command Description 0 Display registers 0 to 99 1 Display registers 1000 to 1099 2 Display registers 2000 to 2099 And so on The total number of register pages available to view depends on your module s configuration Displaying the Current Pag
26. Non Hazardous Locations ATEX Warnings and Conditions of Safe Usage Power Input and Output I O wiring must be in accordance with the authority having jurisdiction A Warning Explosion Hazard When in hazardous locations turn off power before replacing or wiring modules B Warning Explosion Hazard 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 external means to prevent the rated voltage being exceeded by transient disturbances of more than 40 This device must be used only with ATEX certified backplanes D DO NOT OPEN WHEN ENERGIZED Warning This module is not hot swappable Always remove power from the rack before inserting or removing this module or damage may result to the module the processor or other connected devices Battery Life Advisory The MVI46 MVI56 MVI56E MVI69 and MVI71 modules use a rechargeable Lithium Vanadium Pentoxide battery to backup the real time clock and CMOS The battery should last for the life of the module The module must be powered for approximately twenty hours before the battery becomes fully charged After it is fully charged the battery provides backup power for the CMOS setup and the real time clock for approximately 21 days When the battery is fully discharged the module will revert to the default BIOS and clock settings Note The batte
27. Platform Reference Modbus Communication Module User Manual Read Block Read Slave Status Offset Description Length words 0 3002 to 3006 or 3102 to 3106 1 1 Write Block ID 1 2 to 61 Slave Poll Status Data 60 62 to n 1 Spare if Block Transfer Size gt 60 n 62 n 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file 5 5 3 Event Command Event Command blocks send MODBUS commands directly from the ladder logic to one of the Master ports The Event Command will be added to the high priority queue and will interrupt normal polling so that this special command can be sent as soon as possible Note Overuse of Event Commands may substantial slow or totally disrupt normal polling Use Event Commands sparingly Event Commands are meant to be used as one shot commands triggered by special circumstances or uncommon events ProSoft Technology Inc Page 125 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Write Block Event Command Here is the structure of the Event Command output image write block Offset Description Length words 0 Block Number 1000 to 1255 or 2000 to 2255 1 1 Internal DB Address 1 2 Point Count 1 3 Swap Code 1 4 Function Code 1 5 Device Address 1 6 to n Spare n 60 120 or 240 depending on the Block Transfer Size parameter
28. R38W2 gt R1W1 gt 5 This sequence will continue until interrupted by other write block numbers sent by the controller or by a command request from a node on the MODBUS network or operator control through the module s Configuration Debug port The following example shows a typical backplane communication application If the backplane parameters are configured as follows Read Register Start 0 Read Register Count 480 Write Register Start 480 Write Register Count 480 The backplane communication would be configured as follows Processor MVI69 Module 0 Read Data 480 Write Data gt ___ 960 Database address 0 to 479 will be continuously transferred from the module to the processor Database address 480 to 959 will continuously be transferred from the processor to the module The Block Transfer Size parameter basically configures how the Read Data and Write Data areas are broken down into data blocks 60 120 or 240 Page 116 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module Reference User Manual 5 4 4 If Block Transfer Size 60 Processor Read Block 1 Write Block 1 MVI69 Module 180 240 300 360 420 480 540 ProSoft Technology Inc March 22 2011 Page 117 of 167 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
29. These two registers contain the run number value for the currently 6678 running software 6679 Port 1 Command This field contains the number of requests made from this port to List Requests slave devices on the network 6680 Port 1 Command This field contains the number of slave response messages List Response received on the port 6681 Port 1 Command This field contains the number of command errors processed on the List Errors port These errors could be due to a bad response or command 6682 Port 1 Requests This field contains the total number of messages sent out of the port 6683 Port 1 This field contains the total number of messages received on the Responses port 6684 Port 1 Errors This field contains the total number of message errors sent out of Sent the port 6685 Port 1 Errors This field contains the total number of message errors received on Received the port 6686 Port 2 Command This field contains the number of requests made from this port to List Requests slave devices on the network 6687 Port 2 Command This field contains the number of slave response messages List Response received on the port 6688 Port 2 Command This field contains the number of command errors processed on the List Errors port These errors could be due to a bad response or command 6689 Port 2 Requests This field contains the total number of messages sent out the port 6690 Port 2 This field contains the total number of messages received on the Respon
30. Warm Boot Block 9998 This block is sent from the CompactLogix or MicroLogix processor to the module output image when the module is required to perform a warm boot software reset operation The following table describes the format of the control block Offset Description Length words 0 9998 1 1ton Spare 247 n 60 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file 5 5 8 Cold Boot Block 9999 This block is sent from the CompactLogix or MicroLogix processor to the module output image when the module is required to perform the cold boot hardware reset operation This block is sent to the module when a hardware problem is detected by the ladder logic that requires a hardware reset The following table describes the format of the control block Offset Description Length words 0 9999 1 1ton Spare 247 n 60 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file ProSoft Technology Inc Page 133 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 6 Modbus Protocol Specification The following pages give additional reference information regarding the Modbus protocol commands supported by the MVI69 MCM 5 6 1 Commands Supported by the Module The format of each command in the list depends on the MODBUS Function Code being executed The
31. Warranty 158 Returning Units Under Warranty 158 RS 232 Modem Connection Hardware Handshaking Required 147 Null Modem Connection Hardware Handshaking 147 Page 166 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module Index User Manual Null Modem Connection No Hardware Handshaking 148 RS 232 Application Port s 146 RS 232 Configuration Debug Port 146 RS 422 149 RS 485 and RS 422 Tip 149 RS 485 Application Port s 149 RTS Off 56 RTS On 55 S Sending the Configuration File 89 Serial Port Menu 95 Set the Block Transfer Parameter Size 29 Set the Connection Input Size Values 30 Set the Read Write Data Lengths 27 Setting Jumpers 15 Setting Up the Project 46 Slave Address 56 Slave Disable and Enable Control Blocks 121 Slave Driver 110 Slave Polling Control and Status 73 Slave Status Blocks 121 124 Special Control and Status Blocks 121 Standard MODBUS Protocol Exception Code Errors 113 Start Here 9 11 Starting the Data Analyzer 98 Status Data Block Read Block ID 0 119 Status Data Definition 152 Status Object MCM1 Status 72 Stop Bits 55 Stopping the Data Analyzer 98 Sub function Codes Supported 140 Support Service amp Warranty 9 155 Swap Code 67 System Requirements 12 T Time Limit for Bringing Suit e 162 Transfe
32. and place the command in the command queue The module will respond to each command block with a input image read block Page 126 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual Read Block Event Command Here is the structure of the Event Command input image read block Offset Description Length words 0 1000 to 1255 or 2000 to 2255 1 1 Write Block ID 1 2 0 Fail 1 Success 1 3ton Spare n 60 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file Word two of the block can be used by the ladder logic to determine if the command was added to the command queue of the module The command will only fail if the command queue for the port is full 100 commands for each queue or the command requested is invalid 5 5 4 Command Control During normal operation the module executes commands from the Command List in the order they appear in the list and only when those commands have the Enable parameter set to a non zero value If the Enable parameter is set to zero 0 the command is considered disabled and not sent In addition to the Command List each port also has a high priority command queue Transmission preference is given to commands in the queue therefore any command in this queue will be sent instead of sending a command from the Command List Commands are placed i
33. configure the MVI69 MCM module with RSLogix 5000 version 15 or older If you are using RSLogix 5000 version 16 please refer to Sample Add On Instruction Import Procedure page 20 Important The MVI69 MCM module has a power supply distance rating of 2 L43 and L45 installations on first 2 slots of 1769 bus If you are installing and configuring the module with a CompactLogix processor follow these steps If you are using a MicroLogix processor refer to the next section 1 Add the MVI69 MCM module to the project Right click the mouse button on the I O CONFIGURATION option in the CONTROLLER ORGANIZATION window to display a pop up menu Select the NEW MODULE option from the I O CONFIGURATION menu 1 0 Configuration Si Backplane CompactLogix System fa 1769 L35E My_Controller 1769 L35E Ethernet Port LocalENB Ze Ethernet New Module Cross Reference Ctrl E Properties Alt Enter This action opens the following dialog box E Select Module Module Description Analog Communications Digital Other 1769 MODULE Generic 1769 Module Allen Bradley Specialty Eind Add Favorite By Category By Vendor Favorites OK Cancel Help ProSoft Technology Inc Page 75 of 167 March 22 2011 Ladder Logic User Manual MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module 2 Select the 1769 MODULE GENERIC 1769 MODULE from the list and click OK New Modul
34. defined for holding Floating values In this example the Slave s Float Start was set at 47001 Internal DB ProSoft Technology Inc Page 63 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Float Flag N tells the Master to ignore the floating values and treat each register data as a data point composed of 1 word 2 bytes or 16 bits Float Start Ignored DB Addr same as when Float Flag Y Reg Count Tells the Master how many data points to send to the Slave Swap Code same as when Float Flag Y Func Code same as when Float Flag Y Addr in Dev same as when Float Flag Y as long as the Slave s Float Flag Y In the above example the Master s Modbus command to transmit inside the Modbus packet will be as follows Slave Function Address in Reg Byte Data address Code Device Count Count DEC 01 16 7100 2 4 85 37 HEX 01 10 1B BC 00 02 04 BD 71 42 AA In this example the Master s Modbus packet contains the data byte and data word counts that have NOT been doubled from the amount specified by Reg Count due to the Float Flag set to N The Slave looks for the byte count in the data packet to know the length of the data to read from the wire Because of insufficient byte count some slaves will read only half the data from the Master s transmission Other slaves will read all 8 bytes in this example because the
35. does not send the data directly to the module s internal database It puts the data to be written into a special Input Image with special Block ID code to identify it as a Pass Through Write Block and substitutes this speical block in place of the next regular Read Data Block The special block is processed by the ladder logic and the data to be written is placed into the controller tag WriteData array at an address that corresponds to the Modbus Address received in the write command d During normal backplane communications the data from the Write Data array including the data updated by the Pass Through Write Block is sent to the module s internal database This gives the ladder logic the opportunity to also change the values stored in these addresses if need be before they are written to the database 4 Same as normal mode 5 Same as normal mode ProSoft Technology Inc Page 111 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 3 2 Master Driver Mode In the Master mode the MVI69 MCM module issues read or write commands to slave devices on the MODBUS network These commands are user configured in the module via the Master Command List is received from the user defined configuration file that is stored on the MVI69 MCM module or can be issued directly from the CompactLogix or MicroLogix processor Special Command Blocks Command status is retu
36. following table is a sample read output status request to read coils 0020 to 0056 from Slave device number 11 Adr Func Data Start PtHi Data Start PtLo Data Of Pts Ho Data OfPtsLo Error Check Field 11 01 00 13 00 25 CRC Page 134 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual Response An example response to Read Coil Status is as shown in Figure C2 The data is packed one bit for each coil The response includes the 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 contains the addressed coil and the remainder follow For coil quantities that are not even multiples of eight the last characters will be filled in with zeros at high order end The quantity of data characters is always specified as quantity of RTU characters that is the number is the same whether RTU or ASCII is used Because the Slave interface device is serviced at the end of a controller s scan data will reflect coil status at the end of the scan Some Slaves will limit the quantity of coils provided each scan thus for large coil quantities multiple PC transactions must be made using coil status from sequential scans Adr Func Byte Data Coil Data Coil Data Coil Data Coil Data Coil Error Co
37. information field contains 1 byte describing the quantity of data bytes to be returned The contents of the registers requested DATA are two bytes each with the binary content right justified within each pair of characters The first byte includes the high order bits and the second the low order bits Because the Slave interface device is normally serviced at the end of the controller s scan the data will reflect the register content at the end of the scan Some Slaves will limit the quantity of register content provided each scan thus for large register quantities multiple transmissions will be made using register content from sequential scans In the example below the registers 40108 to 40110 have the decimal contents 555 0 and 100 respectively Adr Func ByteCnt HiData LoData HiData LoData HiData LoData Error Check Field 11 03 06 02 2B 00 00 00 64 CRC 5 6 5 Read Input Registers Function Code 04 Query Function code 04 obtains the contents of the controller s input registers at addresses 3xxxx These locations receive their values from devices connected to the I O structure and can only be referenced not altered from within the controller The addressing allows up to 125 registers to be obtained at each request however the specific Slave device may have restrictions that lower this maximum quantity The registers are numbered for zero 30001 zero 30002 one and so on Broadcast mode is not allowed The example
38. n words at a time from the module to the processor The ReadData task places the data received into the proper position in the read data array Use this data for status and control in the ladder logic of the processor The write data WRITEDATA is an array set to match the value entered in the WRITEREGCNT parameter of the MCM1MobDuULEDEF object For ease of use this array should be dimensioned as even increments of n words This data is paged up to n words at a time from the processor to the module The WriteData task places the write data into the output image for transfer to the module This data is passed from the processor to the module for status and control information for use in other nodes on the network If this array is gt 480 registers change the high LIM value in ReadData rung 1 and WriteData rung 21 of the ladder file 3 2 3 Slave Polling Control and Status Two arrays are allocated in the module s primary object to hold the polling status of each slave on the Master ports This status data can be used to determine which slaves are currently active on the port are in communication error or have their polling suspended and disabled Ladder logic in the processor can be written to monitor and control the status of each slave on a Master port The following table describes the structure of this object Name Data Type Description SlaveStatus Decimal Slaves Status Using special blocks the processor can request the cur
39. ohm terminating resistor between pins 1 and 8 on the module connector end of the RS 485 line may improve communication quality RS 485 and RS 422 Tip If communication in the RS 422 or RS 485 mode does not work at first despite all attempts try switching termination polarities Some manufacturers interpret and or A and B polarities differently ProSoft Technology Inc Page 149 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 7 5 DB9 to RJ45 Adaptor Cable 14 Cable Assembly f J1 ii J2 CICICLCIe J1 Vv Ww Vv J2 a DCD TER TXD A K G RXD RXD 5 i i TXD i i i GND GND GND nb O D i i DSR RXD H i RTS i 7 i T 7 3 i i CTS TXRXD TXD i i NIC i i I Wiring Diagram Page 150 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module Reference User Manual 5 8 MCM Database Definition This section contains a listing of the internal database of the MVI69 MCM module This information can be used to interface other devices to the data contained in the module Register Range Content Size 0 to 4999 User Data 5000 5000 to 5009 Backplane Configuration 10 5010 to 5039
40. polling of command list including continuous and on change of data and dynamically user or automatic enabled Status Data Error codes available on an individual command basis In addition a slave status list is maintained per active Modbus Master port Modbus Slave A port configured as a Modbus slave permits a remote Master to interact with all data contained in the module This data can be derived from other Modbus slave devices on the network through a Master port or from the CompactLogix or MicroLogix processor Node address 1 to 247 software selectable Status Data Error codes counters and port status available per configured slave port ProSoft Technology Inc Page 105 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 2 Functional Overview 5 2 1 About the MODBUS Protocol MODBUS is a widely used protocol originally developed by Modicon in 1978 Since that time the protocol has been adopted as a standard throughout the automation industry The original MODBUS specification uses a serial connection to communicate commands and 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 connection to the remote Slave When the connection is established the Master sends the MODBUS command
41. product could lead directly or indirectly to death personal injury or severe physical or environmental damage collectively high risk activities ProSoft specifically disclaims any express or implied warranty of fitness for high risk activities Page 160 of 167 MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Support Service amp Warranty Modbus Communication Module User Manual 6 2 4 Intellectual Property Indemnity Buyer shall indemnify and hold harmless ProSoft and its employees from and against all liabilities losses claims costs and expenses including attorney s fees and expenses related to any claim investigation litigation or proceeding whether or not ProSoft is a party which arises or is alleged to arise from Buyer s acts or omissions under these Terms or in any way with respect to the Products Without limiting the foregoing Buyer at its own expense shall indemnify and hold harmless ProSoft and defend or settle any action brought against such Companies to the extent based on a claim that any Product made to Buyer specifications infringed intellectual property rights of another party ProSoft makes no warranty that the product is or will be delivered free of any person s claiming of patent trademark or similar infringement The Buyer assumes all risks including the risk of suit that the
42. prosoft technology com Languages spoken include English Spanish Latin America Oficina Regional Tel 1 281 2989109 E Mail latinam prosoft technology com Languages spoken include Spanish English Latin America location in Puebla Mexico Tel 52 222 3 99 6565 E mail soporte prosoft technology com Languages spoken include Spanish Brasil location in Sao Paulo Tel 55 1 1 5083 3776 E mail brasil prosoft technology com Languages spoken include Portuguese English Page 156 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Support Service amp Warranty Modbus Communication Module User Manual 6 1 Return Material Authorization RMA Policies and Conditions The following Return Material Authorization RMA Policies and Conditions collectively RMA Policies apply to any returned product These RMA Policies are subject to change by ProSoft Technology Inc without notice For warranty information see Limited Warranty page 159 In the event of any inconsistency between the RMA Policies and the Warranty the Warranty shall govern 6 1 1 Returning Any Product a In order to return a Product for repair exchange or otherwise the Customer must obtain a Return Material Authorization RMA number from ProSoft Technology and comply with ProSoft Technology shipping instructions b In the event that the Customer experiences a problem with the
43. represented in simplified form in the following illustration Main Menu Child Menu A Child Menu B Child Menu C Child Sub Menu 1 Child Sub Menu 2 Child Sub Menu 1 Child Sub Menu 1 Child Sub Menu 2 Child Sub Menu 3 The remainder of this section shows the menus available for this module and briefly discusses the commands available to you Keystrokes The keyboard commands on these menus are usually not case sensitive You can enter most commands in lowercase or uppercase letters The menus use a few special characters that must be entered exactly as shown Some of these characters will require you to use the SHIFT CTRL or ALT keys to enter them correctly For example on US English keyboards enter the command as SHIFT and Also take care to distinguish the different uses for uppercase letter eye I lowercase letter el L and the number one 1 Likewise uppercase letter oh O and the number zero 0 are not interchangeable Although these characters look alike on the screen they perform different actions on the module and may not be used interchangeably ProSoft Technology Inc Page 87 of 167 March 22 2011 Diagnostics and Troubleshooting MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 4 2 3 Main Menu When you first connect to the module from your computer your termina
44. will be performed at service centers designated by ProSoft b Warranty On Services Materials and labor performed by ProSoft to repair a verified malfunction or defect are warranteed in the terms specified above for new Product provided said warranty will be for the period remaining on the original new equipment warranty or if the original warranty is no longer in effect for a period of 90 days from the date of repair ProSoft Technology Inc Page 159 of 167 March 22 2011 Support Service amp Warranty User Manual 6 2 2 What Is Not Covered By This Warranty a ProSoft makes no representation or warranty expressed or implied that the operation of software purchased from ProSoft will be uninterrupted or error free or that the functions contained in the software will meet or satisfy the purchaser s intended use or requirements the Customer assumes complete responsibility for decisions made or actions taken based on information obtained using ProSoft software b This Warranty does not cover the failure of the Product to perform specified functions or any other non conformance defects losses or damages caused by or attributable to any of the following i shipping ii improper installation or other failure of Customer to adhere to ProSoft s specifications or instructions iii unauthorized repair or maintenance iv attachments equipment options parts software or user created programming including but no
45. you do not plan to use floating point data in your application then set this parameter to No which is the default setting You will also need to set the Float Start and Float Offset parameters to appropriate values whenever the Float Flag parameter is set to YES Float Start 0 to 32767 This parameter defines the first register of floating point data All requests with register values greater than or equal to this value will be considered floating point data requests This parameter is only used if the Float Flag is enabled For example if a value of 7000 is entered all requests for registers 7000 and above will be considered as floating point data Float Offset 0 to 4999 This parameter defines the start register for floating point data in the internal database This parameter is used only if the Float Flag is enabled For example if the Float Offset value is set to 3000 and the float start parameter is set to 7000 data requests for register 7000 will use the internal Modbus register 3000 Protocol RTU or ASCII This parameter specifies the Modbus protocol to be used on the port Valid protocols are rtu Modbus RTU and ascii Modbus ASCII Page 54 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual Baud Rate This is the baud rate to be used on the port Enter the baud rate as a value For example t
46. 1 Modbus Address Data Type Parameter 47101 32 bit REAL TEMP Pump 1 47102 32 bit REAL Pressure Pump 1 47103 32 bit REAL TEMP Pump 2 47104 32 bit REAL Pressure Pump 2 With the module configured as a Master you only need to enable these parameters to support a write to this type of addressing Modbus FC 6 or 16 If the slave device shows addressing as shown in Example 2 then you need not do anything with the Float Flag Float Start parameters as they use two Modbus addresses to represent one floating point value Example 2 Modbus Address Data Type Parameter 47101 32 bit REAL TEMP Pump 1 47103 32 bit REAL Pressure Pump 1 47105 32 bit REAL TEMP Pump 2 47107 32 bit REAL Pressure Pump 2 Because each 32 bit REAL value is represented by two Modbus Addresses example 47101 and 47102 represent TEMP Pump 1 then you need not set the Float Flag or Float Start for the module for Modbus FC 6 or 16 commands being written to the slave The next few pages show three specific examples ProSoft Technology Inc Page 61 of 167 March 22 2011 Configuring the MVI69 MCM Module User Manual MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module Specific Example 1 Master is issuing Modbus command with FC 16 with Float Flag Yes to transfer Float data to Slave MCM Master float specific Module parameters Float Flag Y Float Start 7100 Modbus Command parameters DB Pol
47. 1 3 Import the Ladder Rung Open your application in RSLogix 5000 To create a new routine expand the TASKS folder and then expand the MAIN TASK folder On the MAIN PROGRAM folder click the right mouse button to open a shortcut 1 2 3 menu On the shortcut menu choose NEW ROUTINE In the NEW ROUTINE dialog box enter the name and description of your routine and then click OK In this example we are demonstrating the importing of the ladder rung using the default MainRoutine In the case where you create a routine by an other name for placing the Add On instruction then in your original routine where your other ladder logic is located you need to add a rung with a jump instruction to the new routine holding the Add On instruction Select an empty rung in the new routine and then click the right mouse button to open a shortcut menu On the shortcut menu choose IMPORT RUNG B RSLogix 5000 temp 1769 L35E File Edit View Search Logic Communications Tools Window Help alsje a Hel oH pemr she E Cle alal Ditine S No Forces z er No Edits z Forces Disabled z Os Path lt none gt SD esi a Add On Alarms a i Favorites AE VE ESA AU EBA Bit Timer Cou m ae B 8 ic m a B a Controller temp A Controller Tags E3 Controller Fault Handler E Power Up Handler en Tasks Sal MainTask 2 Ma
48. 2 RS 232 Application Port S ccccceceseeceeeeeseneeeeeeeeeeeeeseaeeeseaeescaeeseueeeseeeeseeeeeeneees 146 5 7 3 RS 422 iii naea nb See nd Se ee 149 5 7 4 RS 485 Application Port S ccccccceeceseeeeeseneeeeeeeeeeeeeseaeeeseaeeseaeeseeeeseeeeseeeeseneess 149 5 7 5 DB9 to RJ45 Adaptor Cable 14 0 eceeeceeeeeeeeeeeeeeeeseeeeseaeeseaeeseeeeseeeseeeeeeeneees 150 5 8 MCM Database Definition ceccceecceeeeeeeteeeeeeeeeeseaeeeeeeeeseaeeseaeeeseneeseieeessaeeseaees 151 5 9 Status Data Detinition aa e a aana a a raa ie ashi ce A o a esti deen ceedie 152 6 Support Service amp Warranty 155 Contacting Technical Sup OTi ae a a r a aa aE e a E a aesa talana a aas aaen iata 155 6 1 Return Material Authorization RMA Policies and Conditions cceeee 157 6 1 1 Returning Aniy Product soc feccte ecciecesaethses aE KA i EA eaa aa ease 157 6 1 2 Returning Units Under Warranty sssesssssessssnessrrnsnrnnasrnnnnntrnnnsnnnnntnnnnnnnnnnnennnnne 158 6 1 3 Returning Units Out of Warranty cccccceeeeeeceseeeeeeeeeeeeeseeeeeeeeeseaeeeeneeeseeeseneeess 158 6 2 EIMITEED WARRANTY b 24 nso4 ute coat ates i ate aden uaa a aa Eaa 159 6 2 1 What Is Covered By This Warranty ccccccccceseeeeceeeeeeeeeeceeeeeeeeeseaeessuneeteneeseas 159 6 2 2 What Is Not Covered By This Warranty ccccccseeseeeeeeeeeseeeeeeneeeeeaeeseneeeeeeeeeeas 160 6 2 3 Disclaimer Regarding High Risk Activities 20 0 0 ecceeeeeeeee
49. 2e Dest Connection_Input Data 0 E Ungrouped Axes Source B Locat 1 1 Data 0 Length 62 Add On Instructions 04 H E AOIesMcM ProSoft Technology 5 6 Data Types MVIGSMCM Backplane G Transfer Add On User Defined E Strings Instruction ER Add On Defined HOLE ca Cp Predefined ProSoft Technology MVIBIMCM Backplane Gi Module Defined AOIBSMCM AoissMco E s Connection_Input Connection_Input Trends Connection_Output Connection_Output 5 6 Yo Configuration MCM MCM S E Backplane CompactLogix System ff 1769 L35E Import_Test cps E 1769 L35E Ethernet Port LocalENB Copy File Ethernet Source Connection_Output Data 0 Be Eth Dest Local 1 0 Dete Q Length 61 E CompactBus Local 0 CompactBus Local i 1 1769 MODULE MYI69MCM Module Defined Tags Local 1 Local A Iaea n 4 MainRoutine Maio Pronar Rung 0 of 1 hpp er The procedure has also imported new user defined data types data objects and the Add On instruction to be used at your project Af Hi rst ici l Pj 4 R Favorites Add On Alarms Bit TimerfCou Page 26 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual 10 The imported rung will contain the Add On instruction with two CPS instructions as follows below The CPS instru
50. 6 Port 2 command control 9958 Function Code 5 data formatted Pass Thru Control Blocks 9956 and 9957 Function Code 6 and 16 Floating point data formatted Pass Thru Control Block 9959 Function Code 15 data formatted Pass Thru Control Block 9998 Warm boot control block 9999 Cold boot control block Each image has a defined structure depending on the data content and the function of the data transfer ProSoft Technology Inc Page 109 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 3 Data Flow between MVI69 MCM Module and CompactLogix or MicroLogix Processor The following topics describe the flow of data between the two pieces of hardware MVI69 MCM processor and MVI69 MCM module and other nodes on the MODBUS network under the module s different operating modes Each port on the module is configured to emulate a MODBUS Master device or a MODBUS slave device The operation of each port depends on this configuration The sections below discuss the operation of each mode 5 3 1 Slave Driver The Slave Driver Mode allows the MVI69 MCM module to respond to data read and write commands issued by a Master on the MODBUS network The following diagram shows the data flow for Normal Slave Mode Processor Memory Backplane Interface MCM Module User Data Database Modbus 40001 i 1 1 I 1 1 Files i Addresses Addresses
51. 79 4 Diagnostics and Troubleshooting 81 4 1 LED Status Nd a OE e r a e dated tanta case tenses tated a Gaded tains aa aaraa Aa ATEA 82 4 1 1 Clearing a Fault Condition 0 cccceeececeseeeeeeeeeeeeeeeeeeeeeaeeseaeeeseaeeseaeeeseaeeseneeeseaeesas 83 1 2 TrOUDIGSMOOTIN G iranan a O A N 84 4 2 Using ProSoft Configuration Builder PCB for Diagnostics c cceeeeeeeeeeees 85 4 2 1 Using the Diagnostic Window in ProSoft Configuration Builder c eee 85 4 2 2 Navigation ai itn tah eo ped A a needs A dia fay 87 4 2 3 Mait Menu serai dinette al es ead edn ean i tie vawl eid fe chy 88 4 2 4 Database View Menu cccecscceceesenceeeeeeeceeeeseneeeeeeaneeeesaneesessaneesessaneesessneeneenaes 90 4 2 5 Backplane Menu usrano iii dell Gaia ieee endl vite nea 92 4 2 6 Protocol Serial MCM Menu cccccccceeeeeeeeeeeeeeeeeeeeeeeaeeseaeeeseaeeseaeeeseneeseeeeseaeeseaees 93 4 2 7 Master Command Error List M Nu ccscceeeeeeceneeceeeeeeeeeeeeaeeeceeeeseaeeseteeeseeeeeaas 94 4 2 8 SerialPort Mensis iaia anar daen a des eel ee ed 95 4 2 9 Data Analyze aroro cate ni tl AE A ee eee E 96 4 3 Reading Status Data from the Module ccceceeseeeeeeneeeseeeeeeeeeeaeeseneeeseeeseaees 99 5 Reference 101 5 1 Product Specifications irnkonini a a eaa ae adi aao ee Eaa 102 5 1 1 General Specifications ecccceccceeeneeceneeeeneeeseaeeeeeeeeeaeeseaeeeeeaeeseaeesseeeseeesseneess 102 5 1 2 Hardware Specifi
52. 901 to 1936 are digital points used for alarm flags These points can be read using Modbus Function Code 1 and placed in the module s internal database Page 68 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Ladder Logic Modbus Communication Module User Manual 3 Ladder Logic In This Chapter Ladder Logic and Firmware Compatibility Note c ceeeeeseeeeeeeenees 70 Module Data Object MCM1ModuleDeb ecceeceeeteeeeeeseneeeeneeeeaees 71 Adding the Module to an Existing CompactLogix Project e 75 Adding the Module to an Existing MicroLogix Project 79 Ladder logic is required for application of the MVI69 MCM 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 the initialization of the module s data and to clear any processor fault conditions The sample ladder logic on the ProSoft Solutions CD ROM is extensively commented to provide information on the purpose and function of each rung For most applications the sample ladder will work without modification ProSoft Technology Inc Page 69 of 167 March 22 2011 Ladder Logic MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 3 1 Ladder Logic and Firmware Compatibility Note Important MVI69 MCM mo
53. A not imported existing Data Type used Data Type Data Type MCMBlockStats not imported existing Data Type used Data Type Data Type MCMUTIL not imported existing Data Type used Data Type Data Type MCMCoilArray not imported existing Data Type used Data Type Data Type MCMPortsStats not imported existing Data Type used Data Type Data Type MCMSlavePolling not imported existing Data Type used Data Type Data Type MCMCmdControl not imported existing Data Type used Warning Name collision Data Type MCMConnectionOutput not imported discarded Identical Data Type Data Type MCMCONTROL not imported existing Data Type used Identical Data Type Data Type MCMCONFIG not imported existing Data Type used Warning Name collision Add On Instruction AOI69MCM not imported existing Add On Instruction used Creating tag Connection_Output_2 MCH 2_ AOI69MCM_2 Connection_Input_2 Complete 0 error s 3 warning s Display the language elements contained in the group File Shift Rung 0 of 1 fapp FER ProSoft Technology Inc Page 37 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 15 Because the second module s logic was created in a new routine enter a rung in the Main routine with a JSR instruction to the new routine to enable the PLC logic to communicate with both modules I RSLogix 5000
54. ATION MODULE MVI56 MCMR MENU Display Menu A Data Analyzer B Block Transfer Statistics C module Configuration D Modbus Database View Master Command Errors E Port 1 F Port 2 Master Command List I Port 1 J Port 2 Slave Status List O Port 1 P Port 2 R Receive Configuration from Remote S Send configuration to Remote Veversion Information w warm Boot Module Communication status 1l Port 1 2 Port 2 Port Configuration 6 Port 1 7 Port 2 Esc Exit Program PORT 1 MODBUS STATUS Enabled Y Retries 2 cur cmd 0 state 3 comstate 0 cur err 1 Last Err 0 Number of Command Requests 18 Number of cmd Responses Q Number of Command Errors 70 Number of Requests Heer pi Number of Responses 0 Number of Errors Received 0 Number of Errors sent 20 PORT 1 CONFIGURATION Enabled y Port Type OQ MASTER SLAVE SETUP modbus Slave ID 0 Pass Through DISABLED offsets BitIn 0 word In 0 Output 0 Holding 0 Floating point Data Flag N start 0 offset 0 Route Count 0 Function 99 offset 0 use Packet Gap N Packet Gap Delay 0 MASTER SETUP Command Count s2 Cmd Delay 0 Cmd offset 0 Response Timeout 1000 Retries 3 Delay Count 0 COMMUNICATION PARAMETERS Protocol 0 Modbus RTU Baud 4800 Parity NONE Databits 8 stopbits 1 RTS On 0 RTS Off 0 use CTS Line N Page 58 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Modul
55. E controller tag is set to 60 in the Add On Instruction If you have configured a different block transfer size in the module s configuration file you must change this value to match 5 RSLogix 5000 my_controller 1769 L35E Controller Tags my_controller controller Eile Edit wiew Search Logic Communications Tools Window Help lj x gene s aael dre a sles Te vient elel Offline b No Forces S iy a mem gee ea Path lt none gt APA Favorites Tinericounter A InpulOuipul K Compare Q Computemath K Movelogical B S Controller my_controller Scope fa my_controller gt Show MCMBlockStats MCMCmdContral MCMCoildrray MCMCONFIG MCMConnectionInput MCMConnectionOutput MCM L Controller Tags Name Value Style Data T Description C Controller Fault Handler ype fil Power Up Handler Local 1 C een AB 1769_MODUL E Tasks Local 1 0 geen AB 1769_MODUL 5 MainTask FELLocatt 1 oes AB 1769_MODUL EHE Mantroorat Connection _Input Ca MCM Connectionin A He 5 Connection_Output C MCMConnection0 C unscheduled Programs MCM fees MCMMaduleDef Madule s Definition parameters Motion Groups H MCM CONFIG R MCMCONFIG od C3 Ungrouped Axes FMCM CONFIG BlockTransfer
56. File Source MCM1 ReadData 0 Dest FloatReadData 0 Length This command will move two 16 bit integer registers containing one floating point value image to the floating point file For multiple values increase the count field Page 60 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual ENRON Floating Point Support Many manufacturers have implemented special support in their drivers to support what is commonly called the Enron version of the MODBUS protocol In this implementation register addresses gt 7000 are presumed to be floating point values The significance to this is that the count field now becomes a number of values field In floating point format each value represents two words Configuring the Floating Point Data Transfer A common question when using the module as a Modbus Master is how floating point data is handled This really depends on the slave device and how it addresses this application Just because your application is reading writing floating point data does not mean that you must configure the Float Flag Float Start and Float Offset parameters within the module These parameters are only used to support what is typically referred to as Enron or Daniel Modbus where one register address must have 32 bits or one floating point value Below is an example Example
57. Here System Requirements ccccccesseccceeseeeceessneeeeeeseeeeseseeeesesneeeessaes Package Content cercat E E S E Installing ProSoft Configuration Builder Software cccceeee Setting JUMPEMS ssssssessseseeeeseseseseeeitterttertteretetttsttnsttnsttnstenntenntnnnnnnet Install the Module in the Rack cececceeceeeeeeeeeeeeeneeeeeeeeeteeesneeees Configuring the MVI69 MCM Module MVI69 MCM Sample Add On Instruction Import Procedure 2 1 1 Create a new RSLogix5000 project ceceeeeeeeeseeeeeeeeeeeeeeteeeeeaes 2 1 2 Create the MOdUule c ccccccceceseeceeeeeeeeeceneeeseaeeseeesseaeeseeeeteaeeesaes 2 1 3 Import the Ladder RUNG ccccesecceeeeseeceeeeseeeeeseneeeeeeeneeeeeteneeneees 2 1 4 Set the Read Write Data Lengths cccecceceeeeeeeeeeeteeeeeteeteneeeeens 2 1 5 Set the Block Transfer Parameter SiZ ccccsceeseteeteseeeseneeeees 2 1 6 Set the Connection Input Size Values 2 1 7 Adding Multiple Modules Optional cccccceeeseeeseeeeeteeeeeeeeees 2 1 8 Connecting Your PC to the Processor ccccceseeeseeeeeeteeeeneeeeees 2 1 9 Download the Sample Program to the Processor 2 1 10 Connect your PC to the Module cccccceseeeeeeeeeeeeeeteneeeseeeeeaes Using ProSoft Configuration Builder c ccceceeeseeeeteeeeeneeeeeeeee 2 2 1 Setting Up the Project ecccccceecseeeeseneeeeeaeeseeeeeeeneeseaeeeseneesseeeeees
58. Hi Data ofPtsLo Error Check Field 11 02 00 C4 00 16 CRC ProSoft Technology Inc Page 135 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Response An example response to Read Input Status is as shown in Figure C4 The data is packed one bit for each input The response includes the Slave address function code quantity of data characters the data characters and error checking Data will be packed with one bit for each input 1 ON O OFF The lower order bit of the first character contains the addressed input and the remainder follow For input quantities that are not even multiples of eight the last characters will be filled in with zeros at high order end 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 Because the Slave interface device is serviced at the end of a controller s scan data will reflect input status at the end of the scan Some Slaves will limit the quantity of inputs provided each scan thus for large coil quantities multiple PC transactions must be made using coil status for sequential scans Adr Func Byte Data Discrete Input Data Discrete Input Data Discrete Input Error Check Field Count 10197 to 10204 10205 to 10212 10213 to 10218 11 02 03 AC DB 35 CRC The status of inputs 10197 to 10204 is shown as AC HEX 10101 1100
59. Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module Configuring the MVI69 MCM Module User Manual 2 1 2 Create the Module 1 Right click I O CONFIGURATION and choose NEW MODULE 6 1 0 Configuration zii Backplane CompactLogix System a 1769 L35E My_Controller 1769 L35E Ethernet Port LocalENB Ze Ethernet Ei Conpactus Local 2 Select 1769 MODULE E Select Module Module Analog Communications Digital Other 1769 MODULE Specialty By Category New Module Cross Reference Ctrl Alt Enter Properties Generic 1769 Module Allen Bradley Find Add Favorite Favorites OK Cancel Help 3 Set the Module Properties values as follows Parameter Value Name Enter a module identification string Example MVIG9MCM Description Enter a description for the module Example ProSoft communication module for Serial Modbus communications Comm Format Select Data INT Slot Enter the slot number in the rack where the MV69 MCM module will be installed Input Assembly Instance 101 Input Size 62 122 242 Output Assembly Instance 100 Output Size 61 121 241 Configuration Assembly Instance 102 Configuration Size 0 ProSoft Technology Inc March 22 2011 Page 21 of 167 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus C
60. Local 1 0 Data 0 Length 241 JSR Jump To Subroutine Routine Name MCM_2 Create End Of Transition instruction Rung 1 of 2 app pEr S The setup procedure is now complete Save the project and download the application to your CompactLogix processor Page 38 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual 2 1 8 Connecting Your PC to the Processor 1 Connect the right angle connector end of the cable to your controller at the communications port Communications gt Port F 2 Connect the straight connector end of the cable to the serial port on your computer 2 1 9 Download the Sample Program to the Processor Configuring the RSLinx Driver for the PC COM Port If RSLogix is unable to establish communication with the processor follow these steps 1 Open RSLinx ProSoft Technology Inc Page 39 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 2 Open the COMMUNICATIONS menu and choose CONFIGURE DRIVERS X RSLinx File View eeuu Station DDE OPC S S RSWho Configure Shortcuts Configure Client Applications Configure CIP Options Driver Diagnostics CIP Diagnostics This action opens the Configure Drivers di
61. Logix Platform User Manual Modbus Communication Module 3 Press to open the Main menu Gi Diagnostics Connection Log Module a 0 AS Time 14 41 43 Main Menu selected What Appears Here Varies by Product Type Path Serial Com 3 If there is no response from the module follow these steps 1 Click to configure the connection On the Connection Setup dialog box select a valid com port or other connection type supported by the module Connection Setup Select Connection Type Com 1 ad Ethernet Se ProSoft Discovery Service PDS susi CiPconnect stif Cancel 2 Verify that the null modem cable is connected properly between your computer s serial port and the module A regular serial cable will not work 3 On computers with more than one serial port verify that your communication program is connected to the same port that is connected to the module If you are still not able to establish a connection contact ProSoft Technology for assistance Page 86 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Diagnostics and Troubleshooting Modbus Communication Module User Manual 4 2 2 Navigation All of the submenus for this module contain commands to redisplay the menu or return to the previous menu You can always return from a submenu to the next higher menu by pressing M on your keyboard The organization of the menu structure is
62. Master how to orient the Byte and Word structure of the data value This is device dependent Check Command Entry formats Section Func Code Tells the Master to write the float values to the Slave FC16 Addr in Dev Tells the Master where in the Slave s database to locate the data In the above example the Master s Modbus command to transmit inside the Modbus packet will be as follows Slave Function Addressin Regcount Byte Count Data address Code Device DEC 01 16 7100 2 8 85 37 22 86 HEX 01 10 1B BC 00 02 08 BD 71 42 AA E1 48 41 B6 In this example the Master s Modbus packet contains the data byte and data word counts that have been doubled from the amount specified by Reg Count due to the Float flag set to Y Some Slaves look for the byte count in the data packet to know the length of the data to read from the wire Other slaves know at which byte the data begins and read from the wire the remaining bytes in the packet as the data the Master is sending Specific Example 2 Master is issuing Modbus command with FC 16 with Float Flag No to transfer Float data MCM Master Internal DB float specific Module parameters Float Flag N 1500 1501 85 37 Float Start 7100 1502 1503 22 86 Modbus Command parameters DB Poll Reg Swap Slave Func Address Addr Delay Count Code Addr Code In Dev 1500 0 2 0 1 16 7100 Modbus Slave 47101 85 37 The user needs to know what area in the Slave s database has been
63. Modbus slave node address on the network to be considered Values of 1 to 255 are permitted Most Modbus devices only accept an address in the range of 1 to 247 so be careful If the value is set to zero the command will be a broadcast message on the network The Modbus protocol permits broadcast commands for write operations Do not use this node address for read operations Modbus Func 1 2 3 4 5 6 15 16 This parameter specifies the Modbus function to be executed by the command These function codes are defined in the Modbus protocol The following table defines the purpose of each function supported by the module Modbus Function Code Description Read Coil Status Read Input Status Read Holding Registers Read Input Registers Force Write Single Coil Force Write Single Holding Register 15 Preset Write Multiple Coils 16 Preset Write Multiple Holding Registers OJJ AJOIN ProSoft Technology Inc Page 67 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module MB Address in Device This parameter specifies the starting Modbus register or digital point address to be considered by the command in the Modbus slave device Refer to the documentation of each Modbus slave device on the network for their register and digital point address assignments For example in an Omni Flow Computer points 1
64. Port Null Modem 3 Cable Cable 14 RJ45 to For DB9 Connection to Module s Port DB9 Male Adapter cable 2 Adapter 1454 9F Two Adapters DB9 Female to Screw Terminal For RS422 or RS485 Connections to Port 1 and 2 of the Module 1 ProSoft Solutions CD Contains sample programs utilities and documentation for the MVI69 MCM module If any of these components are missing please contact ProSoft Technology Support for replacement parts ProSoft Technology Inc Page 13 of 167 March 22 2011 Start Here MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 1 3 Installing ProSoft Configuration Builder Software You must install the ProSoft Configuration Builder PCB software to configure the module You can always get the newest version of ProSoft Configuration Builder from the ProSoft Technology website Installing ProSoft Configuration Builder from the ProSoft website 1 Open your web browser and navigate to http www prosoft technology com pcb 2 Click the DOWNLOAD HERE link to download the latest version of ProSoft Configuration Builder 3 Choose SAVE or SAVE FILE when prompted 4 Save the file to your Windows Desktop so that you can find it easily when you have finished downloading 5 When the download is complete locate and open the file and then follow the instructions on your screen to install the program If you do not have access to the Internet you can install ProSoft Config
65. Port 1 Setup 30 5040 to 5069 Port 2 Setup 30 5070 to 5869 Port 1 Commands 800 5870 to 6669 Port 2 Commands 800 6670 to 6702 Misc Status Data 32 6703 to 6749 Reserved 6750 to 6759 Port 1 Status Data 10 6760 to 6769 Port 2 Status Data 10 The User Data area holds data collected from other nodes on the network master read commands or data received from the processor write blocks Additionally this data area is used as a data source for the processor read blocks or other nodes on the network write commands ProSoft Technology Inc March 22 2011 Page 151 of 167 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 9 Status Data Definition This section contains a description of the members present in the MCM1STaTus object This data is transferred from the module to the processor as part of each read block Status Data Block Structure Offset Content Description 6670 Program Scan This value is incremented each time a complete program cycle Count occurs in the module 6671 to Product Code These two registers contain the product code of MCM 6672 6673 to Product Version These two registers contain the product version for the current 6674 running software 6675 to Operating These two registers contain the month and year values for the 6676 System program operating system 6677 to Run Number
66. ProSoft TECHN Oro GY Where Automation Connects InRAx MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module March 22 2011 Your Feedback Please We always want you to feel that you made the right decision to use our products If you have suggestions comments compliments or complaints about our products documentation or support please write or call us How to Contact Us ProSoft Technology 5201 Truxtun Ave 3rd Floor Bakersfield CA 93309 1 661 716 5100 1 661 716 5101 Fax www prosoft technology com support prosoft technology com Copyright 2011 ProSoft Technology Inc all rights reserved MVI69 MCM User Manual March 22 2011 ProSoft Technology ProLinx inRAx ProTalk 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 owners ProSoft Technology Product Documentation In an effort to conserve paper ProSoft Technology no longer includes printed manuals with our product shipments User Manuals Datasheets Sample Ladder Files and Configuration Files are provided on the enclosed CD ROM and are available at no charge from our web site www prosoft technology com Important Installation Instructions Power Input and Output I O wiring must be in accordance with Class Division 2 wiring methods Article 501 4
67. Product for any reason Customer should contact ProSoft Technical Support at one of the telephone numbers listed above page 155 A Technical Support Engineer will request that you perform several tests in an attempt to isolate the problem If after completing these tests the Product is found to be the source of the problem we will issue an RMA c All returned Products must be shipped freight prepaid in the original shipping container or equivalent to the location specified by ProSoft Technology and be accompanied by proof of purchase and receipt date The RMA number is to be prominently marked on the outside of the shipping box Customer agrees to insure the Product or assume the risk of loss or damage in transit Products shipped to ProSoft Technology using a shipment method other than that specified by ProSoft Technology or shipped without an RMA number will be returned to the Customer freight collect Contact ProSoft Technical Support for further information d A10 restocking fee applies to all warranty credit returns whereby a Customer has an application change ordered too many does not need etc Returns for credit require that all accessory parts included in the original box i e antennas cables be returned Failure to return these items will result in a deduction from the total credit due for each missing item ProSoft Technology Inc Page 157 of 167 March 22 2011 Support Service amp Warranty MVI69 MCM CompactLo
68. Size z H Decimal INT B Add On Instructions IMCM DATA MCMDATA Pte ee HE MCM STATUS teat MCMSTATUS Ep User Defined H MCM CONTROL flonan MCMCONTROL H E Strings MCM UTIL iho MCMUTIL i m Add On Defined PS6SMCM fool PSB9MCM MVIB9 MCM interface ADI EN Monitor tags A em JL ee Enter a tag value A Edit the tag values according to the following table ProSoft Technology Inc Page 29 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Module Properties dialog box Controller Organizer s Controller Tags folder Connection Parameters MCM BlockTransferSize tag value Input Size Output Size 62 61 60 122 121 120 242 241 240 2 1 6 Set the Connection Input Size Values If you change the block transfer size you must also change the following data types MCMCONNECTIONINPUT Data type used for the Connection Input pin in the Add On instruction MCMCOoNNECTIONOUTPUT Data type used for the Connection Output pin in the Add On instruction Access the user data type definition MCMCONNECTIONINPUT as follows i RSLogix 5000 my_controller 1769 L35E Data Type MCMConnectionInput CM Eile Edit view Search Logic Communications Tools Window Help l x als a a xlmle e gt slolalfe viel alc ortine z o Forces z w o Edits z Forces Disabl
69. Size parameter refer to the configuration file The Write Block ID is an index value used to determine the location in the module s database where the data will be placed 5 4 2 Block Response from the Module to the Processor These blocks of data transfer information from the module to the processor The structure of the input image used to transfer this data is shown below Offset Description Length words 0 Read Block ID 1 1 Write Block ID 1 2 to n 1 Read Data n n 60 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file ProSoft Technology Inc Page 115 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 4 3 Read Block and Write Block Transfer Sequences The Read Block ID is an index value used to determine the location of where the data will be placed in the processor controller tag array of module read data The number of data words per transfer depends on the configured Block Transfer Size parameter in the configuration file possible values are 60 120 or 240 The Write Block ID associated with the block requests data from the processor Under normal program operation the module sequentially sends read blocks and requests write blocks For example if the application uses three read and two write blocks the sequence will be as follows R1W1 gt R2W2 gt R3W1 gt R1W2 gt R2W1 gt
70. TS on the connector If the port is configured with the Use CTS Line set to Y then a jumper is required between the RTS and the CTS lines on the port connection RS 232 Application Port Cable No Handshaking DB 9 Male RS 232 Device RTS RTS CTS jumper must be installed if CTS line CTS e monitoring enabled Signal 5 Signal Common Common Page 148 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual 5 7 3 RS 422 The RS 422 interface requires a 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 RS 422 Application Port Cable DB 9 Male RS 422 Device TxD RxD TxD RxD Signal Signal Common Common RxD TxD RxD 6 TxD 5 7 4 RS 485 Application Port s The RS 485 interface requires a single two or three wire cable The Common connection is optional depending on the RS 485 network devices used The cable required for this interface is shown below RS 485 Application Port Cable DB 9 Male RS 485 Device TxD RxD TxD RxD TxD RxD s K _ _ TxD RxD Signal 5 Signal Common Common Note Terminating resistors are generally not required on the RS 485 network unless you are experiencing communication problems that can be attributed to signal echoes or reflections In these cases installing a 120
71. URE DRIVERS ProSoft Technology Inc Page 43 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module You may see something like this Configure Drivers m Available Driver Types m Configured Drivers Status Name and Description If you see the status as running you will not be able to use this com port for anything other than communication to the processor To stop the driver press the STOP button on the side of the window Configure Startup Start Stop Delete 5 After you have stopped the driver you will see the following Configure Drivers 4 Available Driver Types ee Configured Drivers Name and Description Status AB_DF1 1 DH485 Sta 10 COM1 STOPPED Stopped 6 You may now use the com port to connect to the debug port of the module Note You may need to shut down and restart your PC before it will allow you to stop the driver usually only on Windows NT machines If you have followed all of the above steps and it will not stop the driver then make sure you do not have RSLogix open If RSLogix is not open and you still cannot stop the driver then reboot your PC Page 44 of 167 ProSoft Technology Inc March 22 2011 Configuring the MVI69 MCM Module User Manual MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module 2 1 10 Conn
72. XML Files L5X Cancel Places 7 The following window will be displayed showing the controller tags to be created during the import procedure If desired the description MVI69 MCM Interface AOI may be typed into the description field for MVI69MCM_AddOn_Rung_v1_4 L5x file Import Configuration xi Tags Data Types Add On Instructions Connection_Input MCMConnectionInput Connection_Output MCMConnectionOutput Local 1 1 AB 1769_MODULE_INT_128Bytes 0 Local 1 0 AB 1769_MODULE_INT_122Bytes 0 0 MCM AOIBSMCM Module s Definition Page 24 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual 8 If you are using the module in a different slot or remote rack select the correct connection input and output variables associated to the module If your module is located in slot 1 of the local rack this step is not required Import Configuration x Tags Data Types Add On Instructions _ Name Alias For DataType SC Description Operation ml i Connection_Input MCMConnectionInput Create New i Connection_Output MCMConnectionOutput l Create New J E E AB 1769_MODULE_INT_128Bytes 0 i Local 1 0 i MCM Local 1 C AB 1769_MODLLE C 0 Create New g aogsmcm aj qjlocalt AB1769_MODULE_INT_128By
73. a standard 16 bit write Only valid for FC 6 and 16 when the MB Address in Device gt Float Start Parameter and Float Flag is set to Yes A value of 4 will provide the same disabling of floating point writes as the enable code of 3 but utilizing conditional writes similar to enable code 2 functionality Important Not all revisions of the MCM driver support this parameter To determine if your module supports this parameter contact ProSoft Technical Support ProSoft Technology Inc Page 65 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Internal Address 0 to 4999 for Modbus Function 3 4 6 or 16 or 0 to 65535 for Modbus Function Code 1 2 5 or 15 This field specifies the internal database register to be associated with the command If the command is a read function the data read from the slave device will be placed starting at the register value entered in this field If the command is a write function the data written to the slave device will be sourced from the address specified Poll Interval 0 To 65535 This parameter specifies the minimum interval between executions of a continuous commands Enable code of 1 The value is in seconds Therefore if a value of 10 is entered the command will execute no more frequently than once every 10 seconds Reg Count Regs 1 to 125 Coils 1 to 2000 The Reg Count
74. able Enable Slave Status Event Command and Command Control blocks function only when one or both ports are configured to be a Modbus Master Pass Though blocks function only when one or both ports are configured to be a Modbus Slave Initialize Output Data Warm Boot and Cold Boot blocks function regardless of port Master Slave configuration 5 5 1 Slave Disable and Enable Control Blocks For a variety of reasons it may be desirable to disable and enable polling of certain network slaves using logic control from the processor For these instances you can use the Slave Disable and Slave Enable Special Control Block codes along with a list of slave addresses to disable or enable When a port is configured as a Modbus Master the module maintains a 256 word memory table that reserves one word for each possible Modbus slave address see Slave Status page 124 This memory table is used by the module s operating firmware as a scratch pad to hold the polling state of each Modbus address to see whether or not that address is currently being polled or whether or not that address can be polled For example IF 1 A slave fails to respond to a command within the specified RESPONSE TIMEOUT page 58 2 And the specified number of RETRIES page 58 also fail 3 And the ERROR DELAY COUNTER page 58 is greater than 0 THEN 1 The module will set the Slave Status register for that address to a value of 3 to prevent further polling of t
75. alog box Configure Drivers Available Driver Types RS 232 DF1 devices Add New Configured Drivers Name and Description Status AB_DF1 1 DF1 Sta 0 COM1 RUNNING Running Configure AB_ETHIP 1 A B Ethernet RUNNING Running Startup Start Stop Delete Note If the list of configured drivers is blank you must first choose and configure a driver from the Available Driver Types list The recommended driver type to choose for serial communication with the processor is RS 232 DF1 Devices Page 40 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual 1 Click to select the driver and then click CONFIGURE This action opens the Configure RS 232 DF1 Devices dialog box Configure RS 232 DF1 Devices Device Name AB_DF1 1 Comm Port COM1 Device Logix 5550 CompactLogis Baud Rate 19200 x Station Number Decimal Parity None X Error Checking CRC Xi Stop Bits 1 X Protocol Full Duplex v Auto Configure Use Modem Dialer Cancel Delete 2 Click the AUTO CONFIGURE button RSLinx will attempt to configure your serial port to work with the selected driver 3 When you see the message Auto Configuration Successful click the OK button to dismiss the dialog box Note If the auto configuration procedure fails verify that the cables are con
76. at have been disabled by using block 3000 or 3100 ProSoft Technology Inc Page 123 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 5 2 Slave Status Blocks Slave status blocks send status information of each slave device on a Master port Slaves attached to the Master port can have one of the following states State Description 0 The slave is inactive and not defined in the command list for the Master port 1 The slave is actively being polled or controlled by the Master port 2 The Master port has failed 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 disabled by the ladder logic No communication will occur with the slave until this state is cleared by the ladder logic Slaves are defined to the system when the module initializes the Master command list Each slave defined will be set to a state of one in this initial step If the Master port fails to communicate with a slave device retry count expired ona command the Master will set the state of the slave to a value of 2 in the status table This suspends communication with the slave device for a user specified scan count ERROR DELAY COUNT parameter in the configuration file Each time a command in the list is scanned that has the address o
77. ata with data defined in the Controller Tags All data used by the module is stored in its internal database The following illustration shows the layout of the database Module s Internal Database Structure 5000 registers for user data 3000 words of configuration and status data Register Data 4999 Status and Config 5000 7999 Page 108 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual Data contained in this database is paged through the input and output images by coordination of the CompactLogix or MicroLogix ladder logic and the MVI69 MCM module s program Up to 242 words of data can be transferred from the module to the processor at a time Up to 241 words of data can be transferred from the processor to the module The read and write block identification codes in each data block determine the function to be performed or the content of the data block The block identification codes used by the module are listed below Block Range Descriptions 1 Status Block 0 Status Block 1 to 84 Read or write data 1000 Event Port 1 2000 Event Port 2 3000 to 3001 Port 1 slave polling control 3002 to 3006 Port 1 slave status 3100 to 3101 Port 2 slave polling control 3102 to 3106 Port 2 slave status 5000 to 5006 Port 1 command control 5100 to 510
78. ation RSLogix software launch the program configure ladder logic and transfer the ladder logic to the processor Microsoft Windows install and launch programs execute menu commands navigate dialog boxes and enter data Hardware installation and wiring install the module and safely connect MODBUS and CompactLogix or MicroLogix devices to a power source and to the MVI69 MCM module s application port s ProSoft Technology Inc March 22 2011 Page 11 of 167 Start Here MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 1 1 System Requirements The MVI69 MCM module requires the following minimum hardware and software components Rockwell Automation CompactLogix or MicroLogix processor with compatible power supply and one free slot in the rack for the MVI69 MCM module The module requires 800 mA of available power Important The MVI69 MCM module has a power supply distance rating of 2 L43 and L45 installations on first 2 slots of 1769 bus Important For 1769 L23x processors please make note of the following limitations 1769 L23 QBFC1B 800 mA at 5 Vdc One MVI69 MCM will use all 800 mA of available power No other modules can be used with an MVI69 module connected to this processor 1769 L23E QB1B 1000 mA at 5 Vdc One MVI69 MCM will use 800 mA of available power One other module can be used on this rack provided it consumes less than 200 mA at 5 Vdc
79. ation Module Response The response to a preset single register request is to re transmit the query message after the register has been altered Adr Func DataRegHi DataRegLo ODatalnputRegHi Data Input RegLo Error Check Field 11 06 00 01 00 03 CRC 5 6 8 Diagnostics Function Code 08 MODBUS function code 08 provides a series of tests for checking the communication system between a Master device and a slave or for checking various internal error conditions within a slave The function uses a two byte sub function code field in the query to define the type of test to be performed The slave echoes both the function code and sub function code in a normal response Some of the diagnostics commands cause data to be returned from the remote device in the data field of a normal response In general issuing a diagnostic function to a remote device does not affect the running of the user program in the remote device Device memory bit and register data addresses are not accessed by the diagnostics However certain functions can optionally reset error counters in some 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 your application program if it depends upon any further exchange of data with the remote device Generally the mode is forced to remove a malfunctioning remote device fro
80. ation file you must adjust these array sizes to match those values i RSLogix 5000 my_controller 1769 L35E Data Type MCMDATA Cs Eile Edit view Search Logic Communications Tools Window Help 5 x alela S ae aA s1000 J allele viel aall ortine z No Forces IF 4 1 o Edits x Forces Disabled Jl A K ho Me F F iN Favorites Add On Alarms Timer Counter Input Output Compare Compute Mal Path lt none gt FEY HE it FU tt ea Tasks B 48 MainTask s B E MainProgram Name MCMDATA A Program Tags AA s a MainRoutine Description Contains Read Data data reac from the 3 Unscheduled Programs module tothe E E Motion Groups processor and Write 9 Ungrouped Axes Data data written of Add On Instructions F g AOTEIMCM J Data Types Sa User Defined p A fa MCMBlockStats Members Data Type Size 1920 byte s aa MCMCmdControl Name Cd Data Type Style Description ia MCMCoilArray E ReadData INT 480 s4 Decimal Data read from the module to the processor ina MCMCONFIG WriteD ata INT 480 Decimal El MCMConnectionInput i MCMConnectionOutput i MCMCONTROL i MCMDATA ia MCMEventCmd ia McMModuleDef E MCMPassThru i MCMPortSlaves i MCMPortsStats 3 MCMsSlavePolling w MCMSTATUS 8 MCMUTIL Data written from the processor to the module Move up Move Dow Example If in the configurati
81. ations A problem could exist between the processor and any installed I O module not just the MVI69 MCM Verify 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 MVI56E modules with scrolling LED display lt Backplane Status gt condition reads ERR This indicates that backplane transfer operations are failing Connect to the module s Configuration Debug port to check this To establish backplane communications verify the following items The processor is in RUN or REM RUN mode The backplane driver is loaded in the module The module is configured for read and write data block transfer The ladder logic handles all read and write block situations The module is properly configured in the processor I O configuration and ladder logic OK LED remains RED The program has halted or a critical error has occurred Connect to the Configuration Debug port to see if the module is running If the program has halted turn off power to the rack remove the card from the rack and re insert it and then restore power to the rack Page 84 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Diagnostics and Troubleshooting Modbus Communication Module User Manual 4 2 Using ProSoft Configuration Builder PCB fo
82. ave Modbus Exception Codes Code Name Meaning 01 Illegal Function The function code received in the query is not an allowable action for the Slave This may be because the function code is only applicable to newer devices and was not implemented in the unit selected It could also indicate that the Slave is in the wrong state to process a request of this type for example because it is unconfigured and is being asked to return register values 02 Illegal Data Address The data address received in the query is not an allowable address for the Slave More specifically the combination of reference number and transfer length is invalid For a controller with 100 registers a request with offset 96 and length 4 would succeed a request with offset 96 and length 5 will generate exception 02 03 Illegal Data Value A value contained in the query data field is not an allowable value for Slave This indicates a fault in the structure of the remainder of a complex request such as that the implied length is incorrect It specifically does not mean that a data item submitted for storage in a register has a value outside the expectation of the application program because the Modbus protocol is unaware of the significance of any particular value of any particular register 04 Slave Device Failure An unrecoverable error occurred while the Slave was attempting to perform the requested action 05 Ackn
83. b of the National Electrical Code NFPA 70 for installation in the U S or as specified in Section 18 1J2 of the Canadian Electrical Code for installations in Canada and in accordance with the authority having jurisdiction The following warnings must be heeded A WARNING EXPLOSION HAZARD SUBSTITUTION OF COMPONENTS MAY IMPAIR SUITABILITY FOR CLASS DIV 2 B WARNING EXPLOSION HAZARD WHEN IN HAZARDOUS LOCATIONS TURN OFF POWER BEFORE REPLACING OR WIRING MODULES C WARNING EXPLOSION HAZARD DO NOT DISCONNECT EQUIPMENT UNLESS POWER HAS BEEN SWITCHED OFF OR THE AREA IS KNOWN TO BE NON HAZARDOUS D THIS DEVICE SHALL BE POWERED BY CLASS 2 OUTPUTS ONLY MVI Multi Vendor Interface Modules WARNING EXPLOSION HAZARD DO NOT DISCONNECT EQUIPMENT UNLESS POWER HAS BEEN SWITCHED OFF OR THE AREA IS KNOWN TO BE NON HAZARDOUS AVERTISSEMENT RISQUE D EXPLOSION AVANT DE DECONNECTER L EQUIPEMENT COUPER LE COURANT OU S ASSURER QUE L EMPLACEMENT EST DESIGNE NON DANGEREUX Warnings North America Warnings A Warning Explosion Hazard Substitution of components may impair suitability for Class I Division 2 B Warning Explosion Hazard When in hazardous locations turn off power before replacing or rewiring modules Warning Explosion Hazard Do not disconnect equipment unless power has been switched off or the area is known to be non hazardous C Suitable for use in Class Division 2 Groups A B C and D Hazardous Locations or
84. been detected in the module or the program has exited To clear 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 Ifthe module requires a Compact Flash card verify that the card is installed correctly Re insert the card in the rack and turn the power back on Verify correct configuration data is being transferred to the module from the CompactLogix or MicroLogix controller If the module s OK LED does not turn GREEN verify that the module is inserted completely into the rack If this does not cure the problem contact ProSoft Technology Technical Support oo ProSoft Technology Inc Page 83 of 167 March 22 2011 Diagnostics and Troubleshooting User Manual MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module 4 1 2 Troubleshooting Use the following troubleshooting steps if you encounter problems when the module is powered up If these steps do not resolve your problem please contact ProSoft Technology Technical Support Processor Errors Problem description Steps to take Processor fault Verify that the module is plugged into the slot that has been configured for the module in the I O Configuration of RSLogix Verify that the slot location in the rack has been configured correctly in the ladder logic Processor I O LED flashes This indicates a problem with backplane communic
85. below requests the contents of register 3009 in Slave number 11 Adr Func Data Start Reg Hi Data Start Reg Lo Data of Regs Hi Data of Regs Lo Error Check Field 11 04 00 08 00 01 CRC ProSoft Technology Inc Page 137 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Response The addressed Slave responds with its address and the function code followed by the information field The information field contains 1 byte describing the quantity of data bytes to be returned The contents of the registers requested DATA are 2 bytes each with the binary content right justified within each pair of characters The first byte includes the high order bits and the second the low order bits Because the Slave interface is normally serviced at the end of the controller s scan the data will reflect the register content at the end of the scan Each PC will limit the quantity of register contents provided each scan thus for large register quantities multiple PC scans will be required and the data provided will be form sequential scans In the example below the register 3009 contains the decimal value 0 Adr Func ByteCount Data Input Reg Hi Data Input Reg Lo Error Check Field 11 04 02 00 00 E9 5 6 6 Force Single Coil Function Code 05 Query This message forces a single coil either ON or OFF Any coil that exists within the controller can be forced to
86. bus packet will be as follows Slave address Function Code Address in Device Reg count DEC 01 3 6100 2 HEX 01 03 17 D4 00 02 In the above example the Enron Daniel supporting Slave s Modbus command to transmit inside the Modbus packet will be as follows Slave address Function Code Byte Count Data DEC 01 3 8 32 75 275 69 HEX 01 03 08 00 00 42 03 D8 52 43 89 In the above example the a NON Enron Daniel supporting Slave s Modbus command that will be transmitted inside the Modbus packet will be as follows Slave address Function Code Byte Count Data DEC 01 3 4 32 75 HEX 01 03 04 00 00 42 03 Enable 0 to 4 This field defines whether the command is to be executed and under what conditions If the parameter is set to 0 the command is disabled and will not be executed in the normal polling sequence Setting the parameter to a value of 1 for the command causes the command to be executed each scan of the command list if the Poll Interval Time is set to zero If the Poll Interval time is set the command will be executed when the interval timer expires If the parameter is set to 2 the command will execute only if the internal data associated with the command changes This value is valid only for write commands A value of 3 can be used to enable a write command continuously similar to enable code of 1 but if the float flag and float start parameters are being used the module will only send out
87. cations cccccccecceeeeeeceeeeeceaeeceeeceaeeseaeeeseaeeseaeessaeeseueesteaeetaas 103 5 1 3 General Specifications Modbus Master Slave cccccccceeteseseeeeteeeseteeeeeeeees 104 5 1 4 Functional Specifications ccccceecceseneeeeeneeceeeeeeeeeeeeaeeseaeeseaeecseeeeseaeeseeeeessaeesaas 105 5 2 Functional OVErnviGW ara eit aie aie aae a ethene Goede ented tenes ean 106 5 2 1 About the MODBUS Protocol 0 ccccceeeeeceeeeeeeeeeseaeeeeeeeseaeeseeeeeeaeeseeeeseeeseaees 106 5 2 2 Module Power Upiiesic cde ean vile bel teal eben evident 106 5 2 3 Mainibogic LOOP ive iceatite Aa it al lace es au i Ge edness 107 5 2 4 Backplane Data Transfer ccsccceceesenceeeeseneeeensenseeenseneesensensenensensenensansenenneneees 107 5 3 Data Flow between MVI69 MCM Module and CompactLogix or MicroLogix Processor 110 5 3 1 Slave Driver ged rege etesgeattes Wiese tes erates oe ade eee tee teeta eer 110 5 3 2 Master Driver Mode cccsecceeeeeeeeeeeeneeeeeeeeeeeeeaaeeeseeaaeeeeeeaaeeeeeeaeeeesenaeeeesenaeees 112 5 4 Normal Data Transfer ecccceeeeeseeeeeeeeneeeeeeneeeeeeeaeeeeseaeeeeeeaeeeeeseaaeeesenaeeesenaaees 115 5 4 1 Block Request from the Processor to the Module 115 5 4 2 Block Response from the Module to the Processor sscceeeeeeeeeeteeeeeeeeees 115 5 4 3 Read Block and Write Block Transfer SEQUENCES cceeeeeeeeeeeteeteteeeeeeeetns 116 5 4 4 If Block Transfer Size 60
88. cccceeeseeeeeeeeeeeeeeeeeaeeseneeeseeeeseeeessaeeseeeseaees 134 5 6 1 Commands Supported by the MOdule cc cccccceeeeeeeeeeeeeseeeeeeaeeeeneeeseneeseeeeeeaas 134 5 6 2 Read Coil Status Function Code 01 eccceceseeeeeeeeeeeeeeeneeeeeeeeseeeseeeeseeeeeeeeess 134 5 6 3 Read Input Status Function Code 02 ccccccescceeeeeeeeeeeeeneeeeeeeeseneeseneeeseeeeeeneeess 135 5 6 4 Read Holding Registers Function Code 03 cccceeceeeeeeeeeeeeeseneeeeeeeeseaeeeeeeeees 136 5 6 5 Read Input Registers Function Code 04 eccccecsceeeseeeeeeeeeeeeeseneeseneeeesneeeeeeeess 137 5 6 6 Force Single Coil Function Code 05 cceccceceseeeeeeeeseeeeseneeeeeeeeseeeseeeeeteneeeeeeeees 138 5 6 7 Preset Single Register Function Code 06 ccccececeeeeeeeeeeneeseneeseneeeseeeeeseeens 139 5 6 8 Diagnostics Function Code 08 ccccceeeseeeceneeeeeeeeeeeeeseeeeeeeeeseaeeseneeeseeeseeeeees 140 5 6 9 Force Multiple Coils Function Code 15 c ccescceseeeeseeeeeeeeeeeeeeseeeseneeeseeeeeneeess 142 5 6 10 Preset Multiple Registers Function Code 16 ccccceseeeeeeeeseeeeeeneeeeneeeeeeess 143 5 6 11 MODBUS Exception RESPONSES cccccceceeeeeeeeeeeeneeeseaeeseneeeseeeeseeeeseneeseeeseaees 144 5 7 Cable Connections nirien uen neay neait tawa ipeni iania beaa sika Sapa eea aaen iai 146 5 7 1 RS 232 Configuration DebUg Port ccccecceceeeeeeeeeeeeeeeteneeeeeeeeseaeeteeeeesseeeeeeeens 146 5 7
89. ch 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual RS 232 Modem Connection Hardware Handshaking Required This type of connection is required between the module and a modem or other communication device RS 232 Application Port Cable Modem Connection DB 9 Male RS 232 Device Signal Signal Common Common DTR DTR The Use CTS Line parameter for the port configuration should be set to Y for most modem applications RS 232 Null Modem Connection Hardware Handshaking This type of connection is used when the device connected to the module requires hardware handshaking control and monitoring of modem signal lines RS 232 Application Port Cable Hardware Handshaking DB 9 Male RS 232 Device no r Signal Signal Common Common ProSoft Technology Inc Page 147 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 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 RS 232 Application Port Cable No Handshaking DB 9 Male RS 232 Device Ro 2 cmo To 3 ro COM s COM Note For most null modem connections where hardware handshaking is not required the Use CTS Line parameter should be set to N and no jumper will be required between Pins 7 RTS and 8 C
90. ctions are set by default for a length of 62 61 words as follows RSLogix 5000 Import_Test 1769 L35E MainProgram MainRoutine Fie Edit view Search Logic Communications Tools Window Help alsia a sjale AA wom J lele E lel alal orne z fo Forces gt w a Et 4s Hirota ar j of o fo Edits z Forces Disabled z tb Favorites AO K Ams K BE K TimeriCounier K mpap K Compare K CompteMeih X Wovetogcal X FieMisc K Fi Path lt none gt A Haidak Module s Definition parameters Internal ladder usage should not be accessed by user application B E Controller Import_Test A Controller Tags Controller Fault Handler C Power Up Handler 5 6 Tasks EG MainTask C3 MainProgram A Program Tags Ea MainRoutine B mm2 5 Unscheduled Programs J Motion Groups CE Ungrouped Axes 5 6 Add On Instructions AOI69MCM A Parameters and Local Tags Logic Data Types H E User Defined H E Strings te Add On Defined amp oe Predefined Gh Module Defined NEG CPS H Not Equal Copy File Source A MCM UTIL LastRead Source Local 1 Data O 2 gnnection Ionut Dataln SourceB Locat 1 l Data 0 0e ProSoft Technology MYISSMCM Backplane Transfer Add On Instruction AOISIMCM ProSoft Technology MVIG9MCM Backplane AOIBSMCM AOIBSMCM Connection_Input Connection_Input Connection_Output Connection _Output MCM MCM Trends 5 8 1 0 Conf
91. d 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 FC 3 4 or 16 Select the number of bits on FC 1 2 15 As the list is read in from the processor and as the commands are processed an error value is maintained in the module for each command This error list can be transferred to the processor The following tables describe the error codes generated by the module Note 125 words is the maximum count allowed by the MODBUS protocol Some field devices may support less than the full 125 words Check with your device manufacturer for the maximum count supported by your particular slave Transferring the Command Error List to the Processor You can transfer the command error list to the processor from the module database To place the table in the database set the Command Error Pointer parameter to the database location desired To transfer this table to the processor make sure that the Command Error table is in the database area covered by the Read Data Standard MODBUS Protocol Exception Code Errors Code Description Illegal Function Illegal Data Address Illegal Data Value Failure in Associated Device Acknowledge Busy Rejected Message oJ AJVINj Module Communication Error Codes Code Description 1 CTS modem control line not set before transmit 2 Timeout w
92. dbus Communication Module User Manual 5 5 5 Pass Through Control Blocks If one or more of the slave ports on the module are configured for formatted pass through mode the module will send input image blocks with identification codes of 9956 9957 9958 or 9959 to the processor for each write command received Any MODBUS Function 5 6 15 or 16 command will be passed from the port to the processor using a block identification number that identifies the Function Code received in the incoming command Ladder logic must exist in the process to handle the receipt of all MODBUS write functions and to respond as expected to commands issued by the remote MODBUS Master device Important MVI69 MCM modules with firmware version 1 21 and newer cannot use ladder logic written for earlier firmware versions Please use the ladder logic or Add On Instruction specifically labeled for your MVI69 MCM module s firmware version Firmware version 1 21 includes the following changes to the pass through control blocks Mutual exclusion on Pass Through Block IDs 9956 9957 9958 and 9959 from both ports If both ports are configured as slave ports when both of the slave ports receive write commands with the same Function Code which would need to use the same block identifier from the above list the module will process the command from the port which first received the command and will return an Exception Code error code 6 node is busy retry command later
93. duct Line Filter area of the dialog box select MVI69 In the Select Module Type dropdown list select MVI69 MCM and then click OK to save your settings and return to the ProSoft Configuration Builder window ProSoft Technology Inc Page 47 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 2 2 2 Renaming PCB Objects Notice that the contents of the information pane and the configuration pane changed when you added the module to the project Lal cation a h ENE Ready Now At this time you may wish to rename the Default Project and Default Location folders in the tree view 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 Click away from the object to save the new name Configuring Module Parameters 1 Click on the sign next to the module icon to expand module information 2 Click on the sign next to any amp icon to view module information and configuration options 3 Double click any B icon to open an Edit dialog box 4 To edit a parameter select the parameter in the left pane and make your changes in the right pane 5 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
94. dules with firmware version 1 21 and newer cannot use ladder logic written for earlier firmware versions Please use the ladder logic or Add On Instruction specifically labeled for your MVI69 MCM module s firmware version Firmware version 1 21 includes the following changes to the pass through control blocks Mutual exclusion on Pass Through Block IDs 9956 9957 9958 and 9959 from both ports If both ports are configured as slave ports when both of the slave ports receive write commands with the same Function Code which would need to use the same block identifier from the above list the module will process the command from the port which first received the command and will return an Exception Code error code 6 node is busy retry command later error from the other port that received the command last The Master will retry the command on the busy port after a short delay This prevents Pass Through blocks on both ports from overwriting each other The Pass Through Block ID is now written by the module into the first word the 0 offset of the processor s backplane input image Previously this location contained a 0 zero value Ladder logic for earlier firmware versions will not work with MVI69 MCM firmware version 1 21 or later Page 70 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Ladder Logic Modbus Communication Module User Manual 3 2 Module Data Object MCM1ModuleDef
95. e Type 1769 MODULE Generic 1769 Module Parent Local Connection Parameters Assembly X Instance Size Name MYI69_Sample Input 101 16 bit Description Output 100 16 bit Configuration 16 bit Comm Format Data INT Slot 1 V Open Module Properties zl Cancel Help 3 Enter the Name Description and Slot options for your application using the values in the illustration above You must select the COMM FORMAT as DATA INT in the dialog box otherwise the module will not communicate over the backplane of the CompactLogix rack 4 Configure the Connection Parameters to match to the Block Transfer Size parameter in the configuration file Use the values in the table corresponding with the block transfer size you configured Block Transfer Size 60 Field Recommended Value Type 1769 MODULE Generic 1769 Module Parent Local Name MVI69 Description MVI69 Application Module Comm Format Data INT Slot The slot number in the rack where the module is installed Input Assembly Instance 101 Input Size 62 Output Assembly Instance 100 Output Size 61 Configuration Assembly Instance 102 Configuration Size 0 Block Transfer Size 120 Field Recommended Value Type 1769 MODULE Generic 1769 Module Parent Local Name MVI69 Description MVI69 Application Module Page 76 of 167 ProSoft Techno
96. e Modbus Communication Module User Manual 2 4 4 Modbus Port x Commands The Modbus Port x Commands section of the configuration file defines the command list specifications for the Master port The information in this section applies to both Port 1 and Port 2 W Edit Modbus Port 1 Commands Lx _Enable Node Address _ModBus Function Internal Address Poll Interval Reg Count Swap Code MB Address in Device Comment 600 0 10 No Change 1 Read Holding Registers 4x 0 Read from address 40001 in slave v2 Yes 610 0 10 No Change 1 Read Input Registers 3x 10 Read from address 30011 in slave Fi 3 Yes 9920 0 160 No Change 1 Read Coil 0 0 Read coil address 0001 in slave v4 Yes 10800 0 160 No Change 1 Read Input 1x 480 Read coil address 10481 in slave we 5 Conditional 0 0 1 No Change 1 Preset Single Register 4 620 Conditional write from address 0 6 Conditional 10 0 10 No Change 1 Preset Multiple Registers 4 630 Conditional write from address 1 7 Conditional 320 0 1 No Change 1 Read Input Registers 3x 9600 Conditional write from address 2 8 Conditional 480 0 160 No Change 1 Force Multiple Coil 0 9760 Conditional write from address 3 Enable Value Status OK Set to Defaults Add Row Insert Row Delete Row Move Up Move Down Edit Row Copy Row Paste Ros OK Cancel Command List Overview In order to interface the MVI69 MCM module with MODBUS slave devices you must construct a command list Th
97. e 160 Displaying the Current Page of Registers Again 90 Displaying Timing Marks in the Data Analyzer 97 Download the Sample Program to the Processor 39 Downloading the Project to the Module Using a Serial COM port 49 Downloading to the Processor 41 E Enable 53 65 ENRON Floating Point Support 61 Error Delay Counter 58 121 Error Status Block Pointer 52 72 Event Command 121 125 127 Example and State Diagram 141 Exiting the Program 89 F Float Flag 54 Float Offset 54 Float Start 54 Floating Point Support 60 Force Multiple Coils Function Code 15 142 Force Single Coil Function Code 05 138 Function 15 132 Function 5 130 Function 6 and 16 131 Functional Overview 9 106 Functional Specifications 105 G General Specifications 102 General Specifications Modbus Master Slave 104 Guide to the MVI69 MCM User Manual 9 H Hardware Specifications 103 Hold Offset 57 How to Contact Us 2 If Block Transfer Size 120 118 If Block Transfer Size 240 119 ProSoft Technology Inc March 22 2011 Page 165 of 167 Index User Manual MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module If Block Transfer Size 60 117 Import the Ladder Rung 23 Important Installation Instructions 3 Initialize Output Data 121 133 Initializing Output Data 52 Install the Module in the Rack 16 Instal
98. e commands in the list specify the slave device to be addressed the function to be performed read or write the data area in the device to interface with and the registers in the internal database to be associated with the device data The Master command list supports up to 100 commands The command list is processed from top command 0 to bottom A poll interval parameter is associated with each command to specify a minimum delay time in number of seconds between the issuance of a command If the user specifies a value of 10 for the parameter the command will be executed no more frequently than every 10 seconds Write commands have a special feature as they can be set to execute only if the data in the write command changes which can improve network performance If the register data values in the command have not changed since the command was last issued the command will not be executed To enable this feature set the enable code for the command to a value of 2 Modbus Command Configuration The ProSoft Technology MCM Modbus Master and Slave communication drivers support several data read and write commands When configuring a Master port the decision on which command to use is made depending on the type of data being addressed and the level of Modbus support in the slave equipment When configuring as a slave it may be important to understand how the Modbus commands function in order to determine how to structure the application data
99. e for parsing and copying the received message and performing the proper control operation as expected by the Master device The processor must then respond to the pass through control block with a write block with the following format Offset Description Length words 0 9959 1 1 ton Spare This will inform the module that the command has been processed and can be cleared from the pass through queue Page 132 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual 5 5 6 Initialize Output Data When the module performs a restart operation it will request blocks of output data from the processor to initialize the module s output data Use the INITIALIZE OUTPUT DATA parameter in the configuration file to bring the module to a known state after a restart operation The following table describes the structure of the request block Offset Description Length 0 4000 to 4083 for n 60 1 1 4000 to 4083 for n 60 1 2ton Spare n n 60 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file Ladder logic in the processor must recognize these blocks and place the correct information in the output image to be returned to the module The format of the returned write block is shown in the following table Offset Description Length 0 4000 to 4083 1 1ton Output Data n 5 5 7
100. e of Registers Again Press S from the Database View menu to show the current page of registers again DATABASE DISPLAY TO 99 lt DECIMAL gt 1 1 16 13 14 m m lki poonooooann oww Seegvrerenn Bee Seeqvuegrecrs BRS Seegvuegecehr Seevceereks Seegvuegogreg Seeverre0c boiin This screen displays the current page of 100 registers in the database Page 90 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Diagnostics and Troubleshooting Modbus Communication Module User Manual Moving Back Through 5 Pages of Registers Press from the Database View menu to skip five pages back in the database to see the 100 registers of data starting 500 registers before the currently displayed page Moving Forward Skipping Through 5 Pages of Registers Press from the Database View menu to skip five pages ahead in the database to see the 100 registers of data starting 500 registers after the currently displayed page Viewing the Previous Page of Registers Press P from the Database View menu to display the previous page of data Viewing the Next Page of Registers Press N from the Database View menu to display the next page of data Viewing Data in Decimal Format Press D from the Database View menu to display the data on the current page in decimal format Viewing Data in Hexadecimal Format Press H from the Database View menu to display the data on the cu
101. e of this feature is limited without a thorough understanding of the protocol DATA ANALYZER VIEW MENU Display Menu 5 1 mSec Ticks 6 5 mSec Ticks 7 10 mSec Ticks 8 50 mSec Ticks 9 100 mSec Ticks Q No mSec Ticks H Hex Format A ASCIT Format M Main Menu Port 1 Format HEX Tick 10 Important When in analyzer mode program execution will slow down Only use this tool during a troubleshooting session Before disconnecting from the Config Debug port please press S to stop the data analyzer and then press M to return to the main menu This action will allow the module to resume its normal high speed operating mode Redisplaying the Menu Press to display the current menu Use this command when you are looking at a screen of data and want to view the menu choices available to you Page 96 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Diagnostics and Troubleshooting Modbus Communication Module User Manual Displaying Timing Marks in the Data Analyzer You can display timing marks for a variety of intervals in the data analyzer screen These timing marks can help you determine communication timing characteristics Key Interval 5 1 milliseconds ticks 6 5 milliseconds ticks 7 10 milliseconds ticks 8 50 milliseconds ticks 9 100 milliseconds ticks 0 Turn off timing marks Removing Timing Marks in the Data Analyzer Press
102. e page of data N Next Page Goes forward one page of data M Main Menu Goes up one level to main menu Redisplaying the Current Page Press S to display the current page of data Moving Back Through 5 Pages of Commands Press to display data for last 5 page commands Viewing the Previous Page of Commands Press P to display the previous page of commands Page 94 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Diagnostics and Troubleshooting Modbus Communication Module User Manual Moving Forward Skipping Through 5 Pages of Commands Press to display data for the next page of commands Viewing the Next Page of Commands Press N to display the next page of commands Returning to the Main Menu Press M to return to the Main menu 4 2 8 Serial Port Menu Press S to open the Serial Port menu Use this command to view and change additional serial port driver settings Press to view a list of commands available on this menu SerialPort_M I 1 MENU Display Menu YV Version Information M Main Menu D DataAnalyzer Redisplaying the Menu Press to display the current menu Use this command when you are looking at a screen of data and want to view the menu choices available to you Viewing Version Information Press V to view version information for the module Use this command to view the current version of the softwa
103. e will also need information regarding Module configuration and associated ladder files if any Module operation and any unusual behavior Configuration Debug status information LED patterns Details about the serial Ethernet or fieldbus devices interfaced to the module if any akhON Note For technical support calls within the United States an after hours answering system allows 24 hour 7 days a week pager access to one of our qualified Technical and or Application Support Engineers ProSoft Technology Inc Page 155 of 167 March 22 2011 Support Service amp Warranty MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Internet Web Site www prosoft technology com support E mail address support prosoft technology com Asia Pacific Tel 603 7724 2080 E mail asiapc prosoft technology com location in Malaysia Languages spoken include Chinese English Asia Pacific Tel 86 21 5187 7337 x888 E mail asiapc prosoft technology com location in China Languages spoken include Chinese English Europe Tel 33 0 5 34 36 87 20 location in Toulouse France E mail support EMEA prosoft technology com Languages spoken include French English Europe location in Dubai UAE Tel 971 4 214 6911 E mail mea prosoft technology com Languages spoken include English Hindi North America location in California Tel 1 661 716 5100 E mail support
104. ect your PC to the Module With the module securely mounted connect your PC to the Configuration Debug port using an RJ45 DB 9 Serial Adapter Cable and a Null Modem Cable 1 Attach both cables as shown 2 Insert the RJ45 cable connector into the Configuration Debug port of the module 3 Attach the other end to the serial port on your PC Configuration Debug Port Null Modem Cable to Y Null Modem Cable RJ45 DB9 Serial Adapter Cable Page 45 of 167 ProSoft Technology Inc March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 2 2 Using ProSoft Configuration Builder ProSoft Configuration Builder PCB provides a quick and easy way to manage module configuration files customized to meet your application needs PCB is not only a powerful solution for new configuration files but also allows you to import information from previously installed known working configurations to new projects 2 2 1 Setting Up the Project To begin start ProSoft Configuration Builder f you have used other Windows configuration tools before you will find the screen layout familiar ProSoft Configuration Builder s window consists of a tree view on the left an information pane and a configuration pane on the right side of the window When you first start ProSoft Configuration Builder the tree view consists of folders fo
105. ectionInput MCMConnectionOutput MCMCONTROL MCMDATA MCMEventCmd MCMModuleDef MCMPassThru ProSoft Technology MYVI6SMCM Backplane Transfer Add On Instruction AOI69MCM ProSoft Technology MVIG9MCM Backplane T AOI69MCM AOI69MCM_2 Hi Connection_Input Connection_Input_2 Connection_Output Connection_Output_2 MCM MCM_2 CPS Copy File Source Connection_Output_2 Data 0 Dest Local 2 0 Data 0 Length 61 MCMPortSlaves MCMPortsStats MCMSlavePolling MCMSTATUS MCMUTIL Of Strings Og Add On Defined Of Predefined Ah Module Defined E Trends 3 6 YO Configuration 6 Backplane CompactLogix System ff 1769 L35E Import_Test d 1769 L35E Ethernet Port LocalENB Za Ethernet S CompactBus Local 5 0 CompactBus Local 1 1769 MODULE MYI69MCM 2 1769 MODULE MyI6 9McM_z Importing C Work Files TESTING Products inRax MV169_ _MCM Add On Instruct ion AOI69MCM LSX Identical Data Type Data Type MCMEventCmd not imported existing Data Type used Warning Name collision Data Type MCMConnectionInput not imported discarded Identical Data Type Data Type MCMSTATUS not imported existing Data Type used Identical Data Type Data Type MCMPassThru not imported existing Data Type used Data Type Data Type MCMPortSlaves not imported existing Data Type used Data Type Data Type MCMModuleDef not imported existing Data Type used Data Type Data Type MCMDAT
106. ed z Ros Path lt none gt aji L e z del Hl IE h avorite Add On Alarms Timer Counter C3 Controller Fault Handler Ee Name MCMConnectoninpat SSCS a MainTask B E MainProgram Description A Program Tags MainRoutine 3 Unscheduled Programs B E Motion Groups 5 Ungrouped Axes E Add On Instructions AOI69MCM amp Data Types User Defined MCMBlockStats 48 McmcmdControl w MCMCoilarray to MCMCONFIG ta MCMConnectionInput Ea McCMConnectionOutput NA nacnaconitn a Edit the tag values according to the following table Module Properties dialog box Controller Organizer s Controller Tags folder Connection Parameters MCMConnectioninput Data tag value Input Size 62 62 122 122 242 242 Page 30 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual Access the user data type definition MCMCONNECTIONOUTPUT as follows ff RSLogix 5000 my_controller 1769 L35E Data Type MCMConnectionOutput GM Eile Edit View Search Logic Communications Tools Window Help le x alala S see 2100 J gsl E e ael ortine z o Forces z w o Edits z Forces Disabled z Ros Path lt none gt al fetta lal 7 P EN Favorite Alarms Timer Counter C3 Controller Fau
107. eeeeeneeeeeeeeeeetenaeeeeeeaae 160 6 2 4 Intellectual Property Indemnity eee eeeeeeee scene eeeeeeeeeeeeeeeeteeaeeeeeteeeeeeeeeeeeeneaes 161 6 2 5 Disclaimer of all Other Warranties ccccceceeeeceeeeeeeeeseneeeeeaeeseaeeseeeeeseeeseeeeess 161 6 2 6 Limitation Of Remedies o oo ce eeeeeeeeeneeeeeeeaeeeeeeeaeeeeteeaeeeeeeeaeeeeeteeeeeeeeaeeeenaes 162 6 2 7 Time Limit for Bringing Suit c ccceceseeeeeeeeneeeeeeeeeeeeeeeeeeeseaeeseeeeeeaeessneeeeeeeesaas 162 6 2 8 No Other Warranties cccccccccececeeeeneeeeceeeceeeeceeeeseaeeeeeaeescaeeseaeeeseaeessueeeseaeessaees 162 6 2 9 Allocation ot RISKS 2 1 scn00 ace dant eos am ah bee ees 162 6 2 10 Controlling Law and Severability c ccccsccceeeeeeeeeeeneeeeeeeeseeeeeeeeeseaeeseueeeeeeeesas 163 Index 165 ProSoft Technology Inc March 22 2011 Page 7 of 167 Contents MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Page 8 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Guide to the MVI69 MCM User Manual Modbus Communication Module User Manual Guide to the MVI69 MCM User Manual Function Section to Read Details Introduction Start Here page 11 This section introduces the customer to the Must Do module Included are package contents system requirements hardware installation and basic configuration
108. either state ON or OFF However because the controller is actively scanning unless the coil is disabled the controller can also alter the state of the coil Coils are numbered from zero coil 0001 zero coil 0002 one and so on The data value 65 280 FF00 HEX will set the coil ON and the value zero will turn it OFF all other values are illegal and will not affect that coil The use of Slave address 00 Broadcast Mode will force all attached Slaves to modify the desired coil Note Functions 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 On offIind Data Error Check Field 11 05 00 AC FF 00 CRC Page 138 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual Response The normal response to the Command Request is to re transmit the message as received after the coil state has been altered Adr Func Data Coil Hi Data Coil Lo Data On Off Data Error Check Field 11 05 00 AC FF 00 CRC The forcing of a coil via MODBUS function 5 will be accomplished regardless of whether the addressed coil is disabled or not n ProSoft products the coil is only affected if the necessary ladder logic is implemented Note The Modbus protocol does not include standard function
109. ength words 0 9958 1 1 to n Spare n This will inform the module that the command has been processed and can be cleared from the pass through queue n 60 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file Page 130 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual Function 6 and 16 Here is the structure of the input image write block for Formatted Pass Through Control Block IDs 9956 and 9957 For MVI69 MCM firmware versions 1 21 and newer only Offset Description Length words 0 9956 9957 1 1 9956 9957 floating point 1 2 Length 1 3 Data Address 1 4to n 7 Data n 2 For MVI69 MCM firmware versions earlier than 1 21 Offset Description Length words 0 0 1 1 9956 9957 floating point 1 2 Number of words 1 3 Data Address 1 4to n 1 Data n 2 The ladder logic will be responsible for parsing and copying the received message and performing the proper control operation as expected by the Master device The processor must then respond to the pass through control block with an output image write block with the following format Offset Description Length words 0 9956 9957 1 1to n Spare n 2 This will inform the module that the command has been processed and can be cleared from the pass through queue
110. er to write If the number is not evenly divisible by n special handling of the last block of data must be developed as it must transfer less than n words Important It is recommended that the count values always be set to values evenly divisible by n ProSoft Technology Inc Page 71 of 167 March 22 2011 Ladder Logic MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module The Backplane Fail Count page 52 parameter determines if the module should continue communicating on the MODBUS network when the backplane transfer operation fails A value of zero indicates that the module should continue communicating when the backplane is not operational If the value is greater than zero the backplane will be retried the entered number of times before a failure will be reported and communication will cease on the ports When backplane communication is restored the module will start communicating on the network For example if you enter a value of 10 for the parameter the module will stop all MODBUS communications if 10 successive backplane errors are recognized When a successful transfer is recognized the module will resume communications on the network The Error Status Block Pointer page 52 parameter defines the location in the module s database where the error status data will be stored If the value is set to 1 the data will not be stored in the user data area A value between 0 and 4939 will cau
111. eration the status register will remain set to 3 disabling the slave until it is re enabled with the Enable control Using the Enable control will force a value of one 1 into the table When a Slave Status register is set to one 1 the slave at the corresponding address will be polled as specified in the Command List Here are the Special Control Block codes for performing these functions Block ID Description 3000 Disable list of slaves on Port 1 3001 Enable list of slaves on Port 3100 Disable list of slaves on Port 2 3101 Enable list of slaves on Port 2 Port 1 slaves can be disabled using block code 3000 and can be enabled using block code 3001 Port 2 slaves can be disabled using block code 3100 and can be enabled using block code 3101 Each output Write block can contain a list of up to 59 slave addresses to disable or enable Write Block Disable Slaves Here is structure of the Disable Slaves output image block Offset Description Length words 0 3000 or 3100 1 1 Number of slaves to disable with this block 1 2 to 60 List of addresses of the slaves to disable 59 61 to n Spare present only if Block Transfer Size gt 60 n 60 n 120 or 240 if configured The module will respond with an input image block with the same identification code and indicate the number of slaves disabled by this function Page 122 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM
112. error from the other port that received the command last The Master will retry the command on the busy port after a short delay This prevents Pass Through blocks on both ports from overwriting each other The Pass Through Block ID is now written by the module into the first word the 0 offset of the processor s backplane input image Previously this location contained a 0 zero value Ladder logic for earlier firmware versions will not work with MVI69 MCM firmware version 1 21 or later ProSoft Technology Inc Page 129 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Function 5 Here is the structure of the input image write block for Formatted Pass Through Control Block ID 9958 For MVI69 MCM firmware versions 1 21 and newer only Offset Description Length words 0 9958 1 1 9958 1 2 Number of words 1 3 Data Address 1 4to n 7 Data n 2 For MVI69 MCM firmware versions earlier than 1 21 Offset Description Length words 0 0 1 1 9958 1 2 Length 1 3 Data Address 1 4to n 1 Data n 2 The ladder logic will be responsible for parsing and copying the received message and performing the proper control operation as expected by the Master device The processor must then respond to the pass through control block with a output image write block with the following format Offset Description L
113. es Supported Baud Rate 110 to 115K baud Stop Bits 1 or 2 Data Size 7 or 8 bits Parity None Even Odd RTS Timing delays 0 to 65535 milliseconds RTU mode binary with CRC 16 ASCII mode with LRC error checking Floating point data movement supported including configurable support for Enron Daniel and other implementations 1 Read Coil Status 15 Force Write Multiple Coils 2 Read Input Status 16 Preset Write Multiple 3 Read Holding Registers Holding Registers 4 Read Input Registers 17 Report Slave ID Slave Only 5 Force Write Single Coil 22 Mask Write Holding 6 Preset Write Single Register Slave Only Holding Register 23 Read Write Holding 8 Diagnostics Slave Only Registers Slave Only Responds to Subfunction 00 Page 104 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual 5 1 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 to 100 commands on each port The Master ports have an optimized polling characteristic that polls slaves with communication problems less frequently Command List Up to 100 command per Master port each fully configurable for function slave address register to from addressing and word bit count Polling of command list Configurable
114. f data is sent before the RTS modem signal will be set low Minimum Response Delay 0 to 65535 This parameter is used only when the port is configured as a slave It sets the number of milliseconds to wait before responding to a command received on the port from a remote Master This delay is sometimes required to accommodate slower Master devices Use CTS Line YES or No This parameter specifies if the Clear To Send CTS modem control line is to be used or not If the parameter is set to No the CTS line will not be monitored If the parameter is set to YES the CTS line will be monitored and must be high before the module will send data Normally this parameter is required when half duplex modems are used for communication 2 wire This procedure is commonly referred to as hardware handshaking Slave Address 1 to 255 This parameter defines the Slave Node Address for the internal database All requests received by the port with this address are processed by the module Verify that each device has a unique address on a network Valid range for this parameter is 1 to 255 Bit Inout Offset 0 to 4999 This parameter specifies the offset address into the internal Modbus database for network requests for Modbus function 2 commands For example if the value is set to 150 an address request of 0 will return the value at register 150 in the database Word Input Offset 0 to 4999 This parameter specifies the offset address into the i
115. f a suspended slave the delay counter value will be decremented When the value reaches zero the slave state will be set to one In order to read the slave status table refer to the sample ladder logic The ladder logic must send a special block to the module to request the data Each port has a specific set of blocks to request the data as follows Block ID Description 3002 Request status for slaves 0 to 59 for Port 1 3003 Request status for slaves 60 to 119 for Port 1 3004 Request status for slaves 120 to 179 for Port 1 3005 Request status for slaves 180 to 239 for Port 1 3006 Request status for slaves 240 to 255 for Port 1 3102 Request status for slaves 0 to 59 for Port 2 3103 Request status for slaves 60 to 119 for Port 2 3104 Request status for slaves 120 to 179 for Port 2 3105 Request status for slaves 180 to 239 for Port 2 3106 Request status for slaves 240 to 255 for Port 2 The following topics describe the format of these blocks Write Block Request Slave Status Offset Description Length words 0 3002 to 3006 or 3102 to 3106 1 1 ton Spare n n 60 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file The module will recognize the request by receiving the special write block code and respond with a read block with the following format Page 124 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix
116. following table lists the functions supported by the module Function Definition Supported in Supported in Code Master Slave 1 Read Coil Status X X 2 Read Input Status X X 3 Read Holding Registers X X 4 Read Input Registers X X 5 Set Single Coil X X 6 Single Register Write X X 8 Diagnostics X 15 Multiple Coil Write X X 16 Multiple Register Write X X 17 Report Slave ID X 22 Mask Write 4X X 23 Read Write X Each command list record has the same general format The first part of the record contains the information relating to the communication module and the second part contains information required to interface to the MODBUS slave device 5 6 2 Read Coil Status Function Code 01 Query This function allows the user to obtain the ON OFF status of logic coils used to control discrete outputs from the addressed Slave only Broadcast mode is not supported with this function code In addition to the Slave address and function fields the message requires that the information field contain the initial coil address to be read Starting Address and the number of locations that will be interrogated to obtain status data The addressing allows up to 2000 coils to be obtained at each request however the specific Slave device may 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
117. forming a write operation on the backplane Off The LED is off when the module is performing a read operation on the backplane Under normal operation the LED should blink rapidly on and off OK Red Off The card is not receiving any power and is not securely Green plugged into the rack Green The module is operating normally Red The program has detected an error or is being configured If the LED remains red for over 10 seconds the program has probably halted Remove the card from the rack and re insert the card to restart the module s program BAT Red Off The battery voltage is OK and functioning On The battery voltage is low or battery is not present Allow battery to charge by keeping module plugged into rack for 24 hours If BAT LED still does not go off contact ProSoft Technology as this is not a user serviceable item During module configuration the OK LED will be red and the BP ACT LED will be on If the APP BP ACT and OK LEDs blink at a rate of every one second this indicates a serious problem with the module Call ProSoft Technology support to arrange for repairs Page 82 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Diagnostics and Troubleshooting Modbus Communication Module User Manual 4 1 1 Clearing a Fault Condition Typically if the OK LED on the front of the module turns RED for more than ten seconds a hardware problem has
118. ge 16 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Start Here Modbus Communication Module User Manual 3 Push the module s bus lever back slightly to clear the positioning tab and move it firmly to the left until it clicks Ensure that it is locked firmly in place DIN Rail Latches Bus Lever Free position gt Top View a _ Move the Bus Lever to the left until it clicks Bus Lever Engaged position gt Top View 4 Close all DIN rail latches ProSoft Technology Inc Page 17 of 167 March 22 2011 Start Here MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 Press the DIN rail mounting area of the controller against the DIN rail The latches will momentarily open and lock into place DIN rail clasp DIN rail DIN rail clasp DIN rail clasp DIN rail clasp Page 18 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual 2 Configuring the MVI69 MCM Module In This Chapter MVI69 MCM Sample Add On Instruction Import Procedure 20 Using ProSoft Configuration Builder eceeeeeeseeeeneeeeeeeseneeeeneeeeaees 46 Downloading the Project to the Module Using a Serial COM por
119. ge of values for this parameter is 1 to 4899 For example if this parameter is configured for 1000 the command errors will be copied to the database as follows 1000 error code for command 0 1001 error code for command 1 and so on An error code of 0 means that the command was successfully sent no error Refer to Status Data Definition for the command error code listings ProSoft Technology Inc Page 57 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Response Timeout 0 TO 65535 milliseconds This parameter sets the command response timeout period in 1 millisecond increments This is the time that a port configured as a Master will wait for a response from the addressed slave before re transmitting the command Retries or skipping to the next command in the Command List The value to set depends on the communication network used and the expected response time plus a little extra of the slowest device on the network Retry Count 0 to 10 This parameter specifies the number of times a command will be retried if it fails Error Delay Counter 0 to 65535 This parameter specifies the number of polls to skip on the slave before trying to re establish communications After the slave fails to respond the Master will skip commands to be sent to the slave the number of times entered in this parameter MODBUS MASTER SLAVE COMMUNIC
120. ges Response received on the port 20 Port 2 Command List This field contains the number of command errors processed Errors on the port These errors could be due to a bad response or command 21 Port 2 Requests This field contains the total number of messages sent out the port 22 Port 2 Responses This field contains the total number of messages received on the port 23 Port 2 Errors Sent This field contains the total number of message errors sent out of the port 24 Port 2 Errors Received This field contains the total number of message errors received on the port 25 Read Block Count This field contains the total number of read blocks transferred from the module to the processor 26 Write Block Count This field contains the total number of write blocks transferred from the processor to the module 27 Parse Block Count This field contains the total number of blocks successfully parsed that were received from the processor 28 Command Event Block This field contains the total number of command event blocks Count received from the processor 29 Command Block This field contains the total number of command blocks Count received from the processor 30 Error Block Count This field contains the total number of block errors recognized by the module 31 Port 1 Current Error For a slave port this field contains the value of the current error code returned For a Master port this field contains the index of the currently executing command 32 P
121. gix or MicroLogix Platform User Manual Modbus Communication Module 6 1 2 Returning Units Under Warranty A Technical Support Engineer must approve the return of Product under ProSoft Technology s Warranty a Areplacement module will be shipped and invoiced A purchase order will be required b Credit for a product under warranty will be issued upon receipt of authorized product by ProSoft Technology at designated location referenced on the Return Material Authorization i If a defect is found and is determined to be customer generated or if the defect is otherwise not covered by ProSoft Technology s warranty there will be no credit given Customer will be contacted and can request module be returned at their expense ii If defect is customer generated and is repairable customer can authorize ProSoft Technology to repair the unit by providing a purchase order for 30 of the current list price plus freight charges duties and taxes as applicable 6 1 3 Returning Units Out of Warranty a Customer sends unit in for evaluation to location specified by ProSoft Technology freight prepaid b If no defect is found Customer will be charged the equivalent of 100 USD plus freight charges duties and taxes as applicable A new purchase order will be required c If unit is repaired charge to Customer will be 30 of current list price USD plus freight charges duties and taxes as applicable A new purchase order will be required
122. hat slave 2 The value in the ERROR DELAY COUNTER parameter will be added to an internal countdown register 3 Each time a command addressed to the disabled slave is to be executed from the Command List the command will be skipped instead of sent 4 The internal countdown register will be decremented by one 1 each time a command is skipped ProSoft Technology Inc Page 121 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 When the internal countdown register decrements to zero 0 the Slave Status register for that slave will be set to a value of one 1 which will allow a command to be sent in an attempt to re establish communication with the slave The Slave Disable and Slave Enable Special Control Blocks can be used to access the Slave Status table and control slave polling through ladder logic by forcing values into the Slave Status table in a manner similar to how the module s internal firmware operates automatically Using the Disable control will force a value of three 3 into the internal module register that holds the Slave Status information for that port and slave address In this situation when a Slave Status register is set to three 3 the slave at the corresponding address will not be polled even if there are commands in the Command List that are enabled and addressed to that slave Since the ERROR DELAY COUNTER is not involved in this op
123. hile transmitting message 11 Timeout waiting for response after request 253 Incorrect slave address in response 254 Incorrect function code in response 255 Invalid CRC LRC value in response ProSoft Technology Inc Page 113 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Command List Entry Errors Code Description 41 Invalid enable code 42 Internal address gt maximum address 43 Invalid node address lt 0 or gt 255 44 Count parameter set to 0 45 Invalid function code 46 Invalid swap code Page 114 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual 5 4 Normal Data Transfer Normal data transfer includes the paging of the user data found in the module s internal database in registers 0 to 4999 and the status data These data are transferred through read input image and write output image blocks The following topics describe the structure and function of each block 5 4 1 Block Request from the Processor to the Module These blocks of data transfer information from the processor to the module The structure of the output image used to transfer this data is shown below Offset Description Length words 0 Write Block ID 1 1 to n Write Data n n 60 120 or 240 depending on the Block Transfer
124. iguration J Backplane CompactLogix System a 1769 L35E Import_Test E 1769 L35E Ethernet Port LocalENB Za Ethernet B CompactBus Local 0 CompactBus Local CPS Copy File Source Connection_Output Data 0 Dest Length v p A PEEP N teins E p MainRoutine T Enter SINT INT or DINT file length operand or value Rung 0 of 1 app VER 7 Edit the above CPS instructions Length field values according to the following table Block Transfer Size Parameter Ladder Routine window 60 120 240 options Connection Parameters CPS instructions Length field values Input Size Output Size ja aa S Source Local 1 1 Data 0 Source Connection_Output Data 0 Dest Coone nout Data Dest aca Dataln Length 62 61 62 61 122 121 122 121 242 241 242 241 2 1 4 Set the Read Write Data Lengths 1 The imported rung contains the MCMDATA object Tag arrays READDATA and WRITEDATA set to the factory default values of 480 These tags will contain o READDATA data area copied from the module to the processor WRITEDATA data area copied from the processor to the module ProSoft Technology Inc Page 27 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 2 If you have changed the READ REGISTER COUNT and WRITE REGISTER COUNT values in the BACKPLANE 69 section of the module s configur
125. ihan ai eie A aa Aaaa A asiha 146 MCM Database Definition 0cecceeeeeeeeeeeeeeeeeeeeeeeeneeeteeeeeieeeeneeeeaes 151 Status Data Definition i es szhesdissceeceecelpnaaeddsuecagseshseenil ceateeehaiasdietaas 152 ProSoft Technology Inc March 22 2011 Page 101 of 167 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 1 Product Specifications The MVI69 Modbus Master Slave Communication Module allows Rockwell Automation CompactLogix or MicroLogix processors to interface easily with other Modbus protocol compatible devices The module acts as an input output module between the Modbus network and the CompactLogix or MicroLogix backplane Compatible devices include not only Modicon PLCs almost all support the Modbus protocol but also a wide range of process and control devices from a variety of manufacturers Many SCADA packages also support the Modbus protocol 5 1 1 General Specifications Single slot 1769 backplane compatible The module is recognized as an Input Output module and has access to processor memory for data transfer between processor and module Ladder Logic is used for data transfer between module and processor Sample ladder file included Configuration data obtained from configuration text file downloaded to module Sample configuration file included Supports CompactLogix processors with 1769 I O bus capability and at least 800 mA of
126. ill display the message Module Running Download files from PC to module Module Running STEP 1 Select Communication Path Select Connection Type Com 3 v Ethernet ClPconnect l STEP 2 Transfer File s DOWNLOAD Test Connection ProSoft Technology Inc Page 49 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 2 4 Module Configuration 2 4 1 Module This section defines the configuration for the Module level data Module Name 0 to 80 characters This parameter assigns a name to the module that can be viewed using the configuration debug port Use this parameter to identify the module and the configuration file 2 4 2 Backplane 69 This section provides the module with a unique name identifies the method of failure for the communications for the module if the processor is not in run and describes how to initialize the module upon startup The following example shows a sample Backplane Configuration section Read Register Start Read Register Stat Read Register Count 240 Write Register Start 300 ic Write Register Count 240 Backplane ran su x IniGslize Output Data Sa Block Transfer Size 60 Definition Starting DB address where read data stored Reset Tag Reset All OK Cancel Modify each of the parameters based on the needs of your application Page 50 of 167 ProS
127. inProgram A Program Tags Eh MainRoutine C3 Unscheduled Programs Motion Groups C3 Ungrouped Axes Add On Instructions Data Types Cih User Defined C Strings C Add On Defined i Predefined Cip Module Defined Trends I O Configuration faii Backplane CompactLogix System ff 1769 L35E temp E 1769 L35E Ethernet Port LocalENB es Ethernet CompactBus Local g 0 CompactBus Local 5 1 1769 MODULE MVI6 9MCM MainProgram MainRoutine Ctrl x Ctrl C Ctrl Delete Rung Add Rung Edit Rung Edit Rung Comment Del Ctrl R Enter Ctrl D Import Rung Export Rung Start Pending Rung Edits Accept Pending Rung Edits Cancel Pending Rung Edits Ctrl Shift 5 Assemble Rung Edit Cancel Rung Edit verify Rung Go To Ctrl G Add Ladder Element MainRoutine Alt Ins Rung End of O JAPP VER ProSoft Technology Inc March 22 2011 Page 23 of 167 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 6 Select the MVIG9MCM_ADDON_RUNG_V1_4 L5x file Import Rung x Look in E Add Onnstruction aae docs fe for release My Recent image Documents ladder A sample ladders MYI69MCM_AddOn_Rung_v1_4 L5x Desktop 2 My Documents er My Computer File name Mvre9mcm_Addon_Rung_v1_4 L5X A Files of type RSLoaix 5000
128. is field contains the index of the command with an error 6701 Port 2 Current For a slave port this field contains the value of the current error Error code returned For a Master port this field contains the index of the currently executing command 6702 Port 2 Last Error For a slave port this field contains the value of the last error code returned For a Master port this field contains the index of the command with an error ProSoft Technology Inc March 22 2011 Page 153 of 167 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Page 154 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Support Service amp Warranty Modbus Communication Module User Manual 6 Support Service amp Warranty In This Chapter Contacting Technical Support ceeeeeeeeeeeeeeneeeeeeeeaeeseaeeteaeeseaeetaas 155 Return Material Authorization RMA Policies and Conditions 157 LIMITED WARRANTY i iocceescitcseceedesvesceeesschecdeneagececdecesccupeneeencassatetatee 159 Contacting Technical Support ProSoft Technology Inc ProSoft is committed to providing the most efficient and effective support possible Before calling please gather the following information to assist in expediting this process 1 Product Version Number 2 System architecture 3 Network details If the issue is hardware related w
129. isible 3 8 1 0 Configuration sii Backplane CompactLogix System a 1769 L3SE Import_Test 1769 L35E Ethernet Port LocalENB Ss Ethernet CompactBus Local i 0 CompactBus Local fz 1 1769 MODULE MYI6G9MCM J 2 1769 MODULE MYI69MCM_2 Expand the TASKS folder and then expand the MAINTASK folder On the MAINPROGRAM folder click the right mouse button to open a shortcut menu On the shortcut menu choose NEW ROUTINE In the New Routine dialog box enter the name and description of your routine and then click OK Select an empty rung in the new routine and then click the right mouse button to open a shortcut menu On the shortcut menu choose IMPORT RUNG Note It is not necessary to create a completely new routine It is possible to add the MVI69 MCM_2 module in the previously created routine If it is desired to create a new routine the user needs to also create a rung with a jump instruction in the previous routine to the new routine F RSLogix 5000 Import_Test 1769 L35E Fle Edt View Sear alsm a gc Communications Tools Window Help eee A e e aa paa pea fey l H Axes 51 Add On Instructions AOTEIMCM Redo APP ProSoft Technology Inc Page 33 of 167 March 22 2011 Configuring the MVI69 MCM Module User Manual MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module
130. itional Restrictions Relating To Software And Other Intellectual Property In addition to compliance with the Terms of this Warranty Customers purchasing software or other intellectual property shall comply with any license agreement accompanying such software or other intellectual property Failure to do so may void this Warranty with respect to such software and or other intellectual property 6 2 5 Disclaimer of all Other Warranties The Warranty set forth in What Is Covered By This Warranty page 159 are in lieu of all other warranties express or implied including but not limited to the implied warranties of merchantability and fitness for a particular purpose ProSoft Technology Inc Page 161 of 167 March 22 2011 Support Service amp Warranty MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 6 2 6 Limitation of Remedies In no event will ProSoft or its Dealer be liable for any special incidental or consequential damages based on breach of warranty breach of contract negligence strict tort or any other legal theory Damages that ProSoft or its Dealer will not be responsible for include but are not limited to Loss of profits loss of savings or revenue loss of use of the product or any associated equipment loss of data cost of capital cost of any substitute equipment facilities or services downtime the claims of third parties including customers of the Purchaser and in
131. jury to property Some areas do not allow time limitations on an implied warranty or allow the exclusion or limitation of incidental or consequential damages In such areas the above limitations may not apply This Warranty gives you specific legal rights and you may also have other rights which vary from place to place 6 2 7 Time Limit for Bringing Suit Any action for breach of warranty must be commenced within 39 months following shipment of the Product 6 2 8 No Other Warranties Unless modified in writing and signed by both parties this Warranty is understood to be the complete and exclusive agreement between the parties suspending all oral or written prior agreements and all other communications between the parties relating to the subject matter of this Warranty including statements made by salesperson No employee of ProSoft or any other party is authorized to make any warranty in addition to those made in this Warranty The Customer is warned therefore to check this Warranty carefully to see that it correctly reflects those terms that are important to the Customer 6 2 9 Allocation of Risks This Warranty allocates the risk of product failure between ProSoft and the Customer This allocation is recognized by both parties and is reflected in the price of the goods The Customer acknowledges that it has read this Warranty understands it and is bound by its Terms Page 162 of 167 ProSoft Technology Inc March 22 2011
132. l Reg Swap Addr Delay Count Code 1500 0 2 0 Modbus Slave The user needs to know what area in the Slave s database has been Internal DB 1500 1501 85 37 1502 1503 22 86 Slave Func Addr Code 1 16 000 000 47101 85 37 47102 22 86 defined for holding Floating values In this example the Slave s Float Start was set at 47001 Float specific module parameters Float Flag Y tells the Master to consider the data values that need to be sent to the Slave as floating point data where each data value is composed of 2 words 4 bytes or 32 bits Float Start Tells the Master that if this address number is lt the address number in Addr in Dev parameter to double the byte count quantity to be included in the Command FC6 or FC16 to be issued to the Slave Otherwise the Master will ignore the Float Flag Y and treat data as composed of 1 word 2 bytes Page 62 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual Modbus Command parameters DB Addr Tells the Master where in its data memory is the beginning of data to obtain and write out to the Slave slave device Reg Count Tells the Master how many data points to send to the Slave Two counts will mean two floating points with Float Flag Y and the Addr in Dev gt the Float Start Parameter Swap Code Tells the
133. l screen will be blank To activate the main menu press the key on your computer s keyboard If the module is connected properly the following menu will appear MUI69 MCM MENU 7 Display Menu U Version Information D Database Menu C Clear diagnostic data B Backplane Menu 6 Protocol_Serial_MCM 1 1 Protocol_Serial_MCM 2 Transfer Configuration from Unit to PC R Transfer Configuration from PC to Unit W Warm Boot Module Esc Exit Program Caution Some of the commands available to you from this menu are designed for advanced debugging and system testing only and can cause the module to stop communicating with the processor or with other devices resulting in potential data loss or other failures Only use these commands if you are specifically directed to do so by ProSoft Technology Technical Support staff Some of these command keys are not listed on the menu but are active nevertheless Please be careful when pressing keys so that you do not accidentally execute an unwanted command Redisplaying the Menu Press to display the current menu Use this command when you are looking at a screen of data and want to view the menu choices available to you Viewing Version Information Press V to view version information for the module Use this command to view the current version of the software for the module as well as other important values You may be asked to provide this information when calling for technical support on
134. le The processor inserts data to the module s output image to transfer to the module The module s program extracts the data and places it in the module s internal database The output image for the module may be set to 61 121 or 241 words depending on the block transfer size parameter set in the configuration file ProSoft Technology Inc Page 107 of 167 March 22 2011 Reference User Manual MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module The following illustration shows the data transfer method used to move data between the CompactLogix or MicroLogix processor the MVI69 MCM module and the MODBUS network Processor MVI69 MCM Module Processor Controller Tags Status Ladder Logic transfers data Module s from module s sis h lt _Inputimage e Internal input image to Detehese data areas in Read Data the processor sl A A MCM Write Data t gt Ladder logic Master Port transfers data Driver Drivers from E Logic o gt processor H gt Output Image Sam ain i Special data areas to O Sra eal Control output image Slave afwo Blocks t gt Driver je gt a B Logic All data transferred between the module and the processor over the backplane is through the input and output images Ladder logic must be written in the CompactLogix or MicroLogix processor to interface the input and output image d
135. ling ProSoft Configuration Builder Software 14 Intellectual Property Indemnity 161 Internal Address 66 K Keystrokes 87 L Ladder Logic 69 Ladder Logic and Firmware Compatibility Note 70 LED Status Indicators 82 Limitation of Remedies 162 LIMITED WARRANTY 157 159 Main Logic Loop 107 Main Menu 88 Markings 4 Master Command Error List Menu 94 Master Command List 113 Master Driver Mode 112 MB Address in Device 68 MCM Database Definition 151 Minimum Command Delay 57 Minimum Response Delay 56 Modbus Command Configuration 59 Modbus Exception Codes 145 MODBUS Exception Responses 144 Modbus Func 67 MODBUS Message Data 74 Modbus Protocol Specification 134 Module Communication Error Codes 113 Module Configuration 50 Module Data Object MCM1ModuleDef 71 Module Name 50 Module Power Up 106 Moving Back Through 5 Pages of Commands 94 Moving Back Through 5 Pages of Registers 91 Moving Forward Skipping Through 5 Pages of Commands 95 Moving Forward Skipping Through 5 Pages of Registers 91 MVI Multi Vendor Interface Modules 3 MVI69 MCM Sample Add On Instruction Import Procedure 20 75 N Navigation 87 No Other Warranties 162 Node Address 67 Normal Data Transfer 115 O Opening the Backplane Menu 89 Opening the Command List Menu 94 Opening the Data Analyzer Menu 96 Opening the Database Vie
136. ll other valid values determine the starting location of the data This data area includes the module version information and all server error status data Refer to Status Data Definition for more information Initializing Output Data YES or No This parameter determines if the output data for the module should be initialized with values from the processor If the value is set to No 0 the output data will be initialized to 0 If the value is set to YES 1 the data will be initialized with data from the processor Use of this option requires associated ladder logic to pass the data from the processor to the module Block Transfer Size 60 120 or 240 This read only parameter specifies the number of words in each block transferred between the module and processor Page 52 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual 2 4 3 MCM Port x The information in this section applies to both Port 1 and Port 2 Enable Type Slave Float Flag No NT Float Start 7000 Float Offset 2000 Protocol RTU 5 Baud Rate 19200 Commen Parity None Data Bits 8 oe Stop Bits 1 Definition RTS On 0 Port enable flag Yes No RTS Off 0 Minimum Response Delay 1 Use CTS Line No Slave Address 0 Bit Input Offset 0 Word Input Offset 0 Output Offset 0 Hold Offset 0 Command Count 1 Min Cmd Delay 0 Cmd Err Pointer 3000 Res
137. llerfolder in the project tree This action opens the O Configuration dialog box _ VO Configuration Current Cards Available Filter All10 x Part Description Read I0 Config 1769 0416 16 Dutput 120 240 VAC 8 Output High Current 24 VDC 16 Output 24 VDC Source 16 Output 24 VDC Source w Protectio 32 Output High Density 24 VDC Part Description l Analog 2 Channel Output Module 0 Bul 1764 Micrologix 1500 LAP Series C Analog 8 Chan Current Output Analog 8 Chan Yoltage Output 16 Output 24 VDC Sink 8 Output Relay 16 Output Relay 8 Output Isolated Relay DeviceNetS canner DPI SCANport Module Power Supply Power Supply Power Supply Power Supply Any 1769 PowerSupply Any 1769 UnPowered Cable Other Requires 1 0 Card Type ID a 3 Inthe V O Configuration dialog box select OTHER REQUIRES I O CARD TYPE ID at the bottom of the list in the right pane and then double click to open the Other type IO card dialog box 4 Enter the values shown in the following illustration to define the module correctly for the MicroLogix processor and then click OK to save your configuration Other type IO card OK Vendor ID ok Product Type Cancel Product Code Series Major Rev MinorRev Input Words Input Bits 0 Output Words Output Bits 0 Extra Data Length Ignore Configuration Error I ProSoft Technology Inc Page 79 of 167 March 22 2011 Ladder Logic MVI69 MCM
138. logy Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual In Slave Pass Through mode write commands from the Master are handled differently than they are in Normal mode In Pass Through mode all write requests will be passed directly to the processor and data will not be written directly into the database This mode is especially useful whenever both a Modbus Master and the module s processor logic need to be able to read and write values to the same internal database addresses The following diagram shows the data flow for a slave port with pass through enabled 1 1 Processor Memory _ _ Backplane Interface MCM Module 1 1 1 i User Data l Database Modbus l Files Addresses Addresses i o m 40001 1 1 1 1 eee 1 Register 1 Ga ata l Dala l p storage i l Pass Through Slave i Mode 1 1 1 1 I 1 1 1 1 Status ETA Module i Praa Step Description 1 Same as normal mode 2 Same as normal mode 3 a In Pass Through mode if the slave driver receives a read request it looks for the data in module s internal database just as it would in Normal mode b The data needed to respond to the read command is retrieved directly from the internal database and returned to the Slave driver so it can build a response message c In Pass Through mode if the slave driver receives a write request it
139. logy Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Ladder Logic Modbus Communication Module User Manual Block Transfer Size 120 Comm Format Data INT Slot The slot number in the rack where the module is installed Input Assembly Instance 101 Input Size 122 Output Assembly Instance 100 Output Size 121 Configuration Assembly Instance 102 Configuration Size 0 Block Transfer Size 240 Field Recommended Value Type 1769 MODULE Generic 1769 Module Parent Local Name MVI69 Description MVI69 Application Module Comm Format Data INT Slot The slot number in the rack where the module is installed Input Assembly Instance 101 Input Size 242 Output Assembly Instance 100 Output Size 241 Configuration Assembly Instance 102 Configuration Size 0 5 Click NEXT to continue E Module Properties Local 1 1769 MODULE 1 1 General Connection Requested Packet Interval RPI zi M Major Fault On Controller If Connection Fails While in Run Mode Module Fault Status Offline Cancel 6 Select the REQUEST PACKET INTERVAL value for scanning the I O on the module This value represents the minimum frequency the module will handle scheduled events This value should not be set to less than 1 millisecond Values between 1 and 10 milliseconds should work with most applications ProSoft Technology
140. lt Handler C3 Power Up Handler i z ES Tasks Name MCMConnectionOutput a MainTask B amp MainProgram A Program Tags 2 fa MainRoutine Ca Unscheduled Programs of B E Motion Groups 5 Ungrouped Axes E Add On Instructions Psegmcm Data Types oa User Defined Description Gf MCMBlockStats H MCMcmdControl gf MCMCoilarray o MCMCONFIG Eal MCMConnectionInput W MCMConnectionOutput NA _nacnaconiTn Ao Description Data Type Edit the tag values according to the following table Module Properties dialog box Controller Organizer s Controller Tags folder Connection Parameters MCMConnectionOutput Data tag value Output Size 61 61 121 121 241 241 2 1 7 Adding Multiple Modules Optional Important If your application requires more than one MVI69 MCM module into the same project follow the steps below and make certain that both modules are assigned identical Block Transfer Sizes ProSoft Technology Inc Page 31 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module In the I O CONFIGURATION folder click the right mouse button to open a shortcut menu and then choose New Module Sj 1 0 Configuration zii Backplane CompactLogix System a 1769 L35E My_Controller 1769 L35E Ethernet Port LocalENB a Ethernet agn 0 CompactBu S New Module f 1 1769 mop
141. m the communications system Sub function Codes Supported Only Sub function 00 is supported by the MVI69 MCM module 00 Return Query Data The data passed in the request data field is to be returned looped back in the response The entire response message should be identical to the request Sub function Data Field Request Data Field Response 00 00 Any Echo Request Data Page 140 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual Example and State Diagram Here is an example of a request to remote device to Return Query Data This uses a sub function code of zero 00 00 hex in the two byte field The data to be returned is sent in the two byte data field A5 37 hex Request Response Field Name Hex Field Name Hex Function 08 Function 08 Sub function Hi 00 Sub function Hi 00 Sub function Lo 00 Sub function Lo 00 Data Hi A5 Data Hi A5 Data Lo 37 Data Lo 27 The data fields in responses to other kinds of queries could contain error counts or other data requested by the sub function code Data Value OK YES ProSoft Technology Inc Page 141 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 6 9 Force Multiple Coils Function Code 15 Query This message forces each coil in a consecutive block of c
142. n 60 120 or 240 depending on the Block Transfer Size parameter refer to the configuration file ProSoft Technology Inc Page 131 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Function 15 When the module receives a function code 15 when in pass through mode the module will write the data using block ID 9959 for multiple bit data First the bit mask clears the bits to be updated This is accomplished by ANDing the inverted mask with the existing data Next the new data ANDed with the mask is ORed with the existing data This protects the other bits in the INT registers from being affected This function can only be used if the Block Transfer Size parameter is set to 120 or 240 words For MVI69 MCM firmware versions 1 21 and newer only Offset Description Length words 0 9959 1 1 9959 1 2 Number of Words 1 3 Word Address 1 4 to 53 Data 1 54 to 104 Mask 50 Note For block transfer size 60 the mask bits are limited to the count of 6 words 96 bits Therefore the practical data size limit is also 96 bits 105 to 180 Spare 50 For MVI69 MCM firmware versions earlier than 1 21 Offset Description Length words 0 0 1 1 9959 1 2 Write Block ID 1 3 Number of Words 1 4 Word Address 1 5 to 55 Data 50 56 to 105 Mask 50 106 to 180 Spare 15 The ladder logic will be responsibl
143. n the queue either by the Event Command blocks page 125 or by the Special Function blocks Event Command blocks place commands in the queue one at a time Special Function blocks can place from one to six commands into the queue each time they are executed Note Overuse of Special Functions may substantially slow or totally disrupt normal Command List polling Use Special Functions sparingly Special Functions are meant to be used when a few pre configured commands need to be sent as one shot commands triggered by special circumstances or uncommon events When executed from logic Special Function blocks place commands from anywhere in the Command List directly into the command queue so that the command or commands will be the next one or ones to be sent The normal way to use Special Functions is to setup commands in the Command List and set their Enable parameter set to zero 0 This will prevent the commands from being executed until added to the queue by Special Functions logic However any command from the command list may be added to the queue regardless of the value in the Enable parameter This allows normal polling order to be interrupted and to have up to six commands sent out of sequence one after the other before normal polling resumes ProSoft Technology Inc Page 127 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Write Block Command Control
144. nd or write commands to slave nodes on the network If writing data to slave the data for the write command is obtained from the module s internal database to build the command 3 Once the specified slave has successfully processed the command it will return a response message to the Master driver for processing 4 Data received from a slave in response to a read command is passed to the module s and stored in its internal database 5 Status is returned to the CompactLogix or MicroLogix processor for each command in the Master Command List Important You must take care when constructing each command in the list to ensure predictable operation of the module If two commands write to the same internal database address of the module the results will be invalid All commands containing invalid data are ignored by the module Page 112 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual Master Command List In order to function in the Master Mode you must define the module s Master Command List This list contains up to 100 individual entries with each entry containing the information required to construct a valid command A valid command includes the following items Command enable mode 0 disabled 1 continuous or 2 conditional Slave Node Address Command Type Read or Write up to 125 words 16000 bits per comman
145. nected correctly between the processor and the serial port on your computer and then try again If you are still unable to auto configure the port refer to your RSLinx documentation for further troubleshooting steps Downloading to the Processor Note The key switch on the front of the CompactLogix processor must be in the REM OR PROG position 1 If you are not already online to the processor open the COMMUNICATIONS menu and then choose DOWNLOAD RSLogix will establish communication with the processor ProSoft Technology Inc Page 41 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 2 When communication is established RSLogix will open a confirmation dialog box Click the DOWNLOAD button to transfer the sample program to the processor A Download to the controller Name MVI69 Type 1769 L35E 4 CompactLogix5335E Controller Path AB_DF1 2 Security lt None gt Cancel Help 3 RSLogix will compile the program and transfer it to the processor This process may take a few minutes 4 When the download is complete RSLogix will open another confirmation dialog box Click OK to switch the processor from PROGRAM mode to RUN mode RSLogix 5000 d Done downloading Change controller mode back to Remote Run Yes No Note If you receive an error message during these steps refer to your RSLogix documen
146. nternal Modbus database for network requests for Modbus function 4 commands For example if the value is set to 150 an address request of 0 will return the value at register 150 in the database Page 56 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual Output Offset 0 to 4999 This parameter specifies the offset address into the internal Modbus database for network requests for Modbus function 1 5 or 15 commands For example if the value is set to 100 an address request of 0 will correspond to register 100 in the database Hold Offset 0 to 4999 This parameter specifies the offset address in the internal Modbus database for network requests for Modbus function 3 6 or 16 commands For example if a value of 50 is entered a request for address 0 will correspond to the register 50 in the database Command Count 0 to 100 This parameter specifies the number of commands to be processed by the Modbus Master port Minimum Command Delay 0 to 65535 This parameter specifies the number of milliseconds to wait between issuing each command This delay value is not applied to retries Command Error Pointer 1 to 4899 This parameter sets the address in the internal Modbus database where the command error will be placed If the value is set to 1 the data will not be transferred to the database The valid ran
147. o select 19K baud enter 19200 Baud Rate Parameter Value Options 110 110 150 150 300 300 600 600 1200 12 or 1200 2400 24 or 2400 4800 48 or 4800 9600 96 or 9600 19 200 19 192 or 19200 38 400 38 384 or 38400 57 600 57 or 576 115 200 115 or 1152 Parity None Odd Even Parity is a simple error checking algorithm used in serial communication This parameter specifies the type of parity checking to use All devices communicating through this port must use the same parity setting Data Bits 7ors This parameter sets the number of data bits for each word used by the protocol All devices communicating through this port must use the same number of data bits Stop Bits 1or2 Stop bits signal the end of a character in the data stream For most applications use one stop bit For slower devices that require more time to re synchronize use two stop bits All devices communicating through this port must use the same number of stop bits RTS On 0 to 65535 milliseconds This parameter sets the number of milliseconds to delay after Ready To Send RTS is asserted before data will be transmitted ProSoft Technology Inc Page 55 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module RTS Off 0 to 65535 milliseconds This parameter sets the number of milliseconds to delay after the last byte o
148. oft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual Read Register Start 0 to 4999 The Read Register Start parameter specifies the start of the Read Data area in module memory Data in this area will be transferred from the module to the processor Note Total user database memory space is limited to the first 5000 registers of module memory addresses 0 through 4999 Therefore the practical limit for this parameter is 4999 minus the value entered for Read Register Count so that the Read Data Area does not try to extend above address 4999 Read Data and Write Data Areas must be configured to occupy separate address ranges in module memory and should not be allowed to overlap Read Register Count 0 to 5000 The Read Register Count parameter specifies the size of the Read Data area of module memory and the number of registers to transfer from this area to the processor up to a maximum of 5000 words Note Total Read Register Count and Write Register Count cannot exceed 5000 total registers Read Data and Write Data Areas must be configured to occupy separate address ranges in module memory and should not be allowed to overlap Write Register Start 0 to 4999 The Write Register Start parameter specifies the start of the Write Data area in module memory Data in this area will be transferred in from the processor Note Total
149. oils to a desired ON or OFF state Any coil that exists within the controller can be forced to either state ON or OFF However because the controller is actively scanning unless the coils are 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 for each coil 1 ON 0 OFF The use of Slave address 0 Broadcast Mode will force all attached Slaves to modify the desired coils Note Functions 5 6 15 and 16 are the only messages other than Loopback Diagnostic Test that will be recognized as valid for broadcast The following example forces 10 coils starting at address 20 18 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 Adr Func HiAdd_ Lo Quantity Byte Data Coil Status Data Coil Status Error Check Add Cnt 20 to 27 28 to 29 Field 11 OF 00 13 00 OA 02 CD 00 CRC Response The normal response will be an echo of the Slave address function code starting address and quantity of coils forced Adr Func Hi Addr Lo Addr Quantity Error Check Field 11 OF 00 13 00 OA CRC The writing of coils via Modbus function 15 will be accomplished regardless of whether the addressed coils are disabled or not Coils that are unprogrammed in the controller logic program are not automatically cleared upon po
150. ommunication Module The following illustration shows an example where the module was configured for a block transfer size of 60 words input block size 62 words output block size 61 words Type 1769 MODULE Generic 1769 Module Parent Local m Connection Parameters Assembly y Instance Size Name Mvi6smCM Input fi i 62 16 bit Description Output fi oo E a 16 bit Configuration fi 02 fo a 16 bit Comm Format Data INT z Slot 1 es M Open Module Properties Cancel Help The following options are available Block Transfer Size Input Block Size Output Block Size 60 62 61 120 122 121 240 242 241 4 On the Connection tab set the RPI value for your project Click OK to confirm E Module Properties Local 1 1769 MODULE 1 1 i General Connection Requested Packet Interval API ms le V Major Fault On Controller If Connection Fails While in Run Mode Module Fault Status Offline Now the MVI69 MCM module will be visible at the I O Configuration section E YO Configuration fai Backplane CompactLogix System fa 1769 L35E temp 1769 L35E Ethernet Port LocalENB Za Ethernet H CompactBus Local J 0 CompactBus Local 1 1769 MODULE MYI69MCM Page 22 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module Configuring the MVI69 MCM Module User Manual 2
151. on file section Backplane 69 the parameter setting is Read Register Count 1440 then set ReadData tag array size to INT 1440 Data Types on FILTER_LOW_PASS Cancel i FILTER_NOTCH eres i FIVE_POS_MODE_SELECTOR H i8 FLIP_FLOP_D e i FLIP_FLOP_JK Sil FUNCTION_GENERATOR li HL_LIMIT lis NA IN TORDATOD ha Array Dimensions Dim 2 Diil Dim 0 fp 4 p 4 fi 440 Show Data Types by Groups Page 28 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual Example If in the configuration file section Backplane 69 the parameter setting is Write Register Count 1880 then set WriteData tag array size to INT 1880 Select Data Type x Data Types Li FILTER_LOW_PASS p Cancel LIW FILTER_NOTCH ee Li FIVE_POS_MODE_SELECTOR Help Li FLIP_FLOP_D e if FLIP_FLOP_JK LIW FUNCTION_GENERATOR li HL_LIMIT in Jes a INITCROATOO ha Array Dimensions Ding Ding Dim 0 IV Show Data Types by Groups You will be prompted to confirm the changes Click Yes to continue RSLogix 5000 D Data type referenced by one or more tags Changes to data type member s could result in loss or truncation of data e g type conversions decreased array dimensions Change data type __ we tee 2 1 5 Set the Block Transfer Parameter Size The MCM BLOCKTRANSFERSIZ
152. ooting in the following forms LED status indicators on the front of the module provide general information on the module s status Status data contained in the module can be viewed through the Configuration Debug port using the troubleshooting and diagnostic capabilities of ProSoft Configuration Builder PCB Status data values can be transferred from the module to processor memory and can be monitored there manually or by customer created logic ProSoft Technology Inc Page 81 of 167 March 22 2011 Diagnostics and Troubleshooting MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 4 1 LED Status Indicators The LEDs indicate the module s operating status as follows LED Color Status Indication CFG Green On Data is being transferred between the module and a remote terminal using the Configuration Debug port Off No data is being transferred on the Configuration Debug port P1 Green On Data is being transferred between the module and the MODBUS network on Port 1 Off No data is being transferred on the port P2 Green On Data is being transferred between the module and the MODBUS network on Port 2 Off No data is being transferred on the port APP Amber On The MVI69 MCM is functioning normally Off The MVI69 MCM module program has recognized a communication error between the module and the processor BP ACT Amber On The LED is on when the module is per
153. or authorization to use the purchase order submitted for evaluation fee The following is a list of non repairable units 3150 All 3750 3600 All 3700 3170 All 3250 1560 Can be repaired only if defect is the power supply 1550 Can be repaired only if defect is the power supply 3350 3300 1500 All O LOO 30 Os O Or Oi 3011 0 SO Page 158 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Support Service amp Warranty Modbus Communication Module User Manual 6 2 LIMITED WARRANTY This Limited Warranty Warranty governs all sales of hardware software and other products collectively Product manufactured and or offered for sale by ProSoft Technology Incorporated ProSoft and all related services provided by ProSoft including maintenance repair warranty exchange and service programs collectively Services By purchasing or using the Product or Services the individual or entity purchasing or using the Product or Services Customer agrees to all of the terms and provisions collectively the Terms of this Limited Warranty All sales of software or other intellectual property are in addition subject to any license agreement accompanying such software or other intellectual property 6 2 1 What Is Covered By This Warranty a Warranty On New Products ProSoft warrants to the original purchaser that the Product that is the subjec
154. ort 1 Last Error For a slave port this field contains the value of the last error code returned For a Master port this field contains the index of the command with an error 33 Port 2 Current Error For a slave port this field contains the value of the current error code returned For a Master port this field contains the index of the currently executing command 34 Port 2 Last Error For a slave port this field contains the value of the last error code returned For a Master port this field contains the index of the command with an error Page 120 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual 5 5 Special Control and Status Blocks Control and Status blocks are special blocks used to control the module or request special data from the module The current version of the software supports eight types of special blocks Slave Disable and Enable blocks page 121 only for Master port or ports Slave Status blocks page 124 only for Master port or ports Event Command blocks page 125 only for Master port or ports Command Control blocks page 127 only for Master port or ports Pass Through blocks page 129 only for Slave port or ports Initialize Output Data blocks page 133 all configurations Warm Boot block page 133 page 89 all configurations Cold Boot block page 133 all configurations Slave Dis
155. owledge Specialized use in conjunction with programming commands The Slave has accepted the request and is processing it but a long duration of time will be required to do so This response is returned to prevent a timeout error from occurring in the Master The Master can next issue a poll program complete message to determine if processing is completed 06 Slave Device Busy Specialized use in conjunction with programming commands The Slave is engaged in processing a long duration program command The Master should retransmit the message later when the Slave is free 08 Memory Parity Error Specialized use in conjunction with function codes 20 and 21 and reference type 6 to indicate that the extended file area failed to pass a consistency check The Slave attempted to read record file but detected a parity error in the memory The Master can retry the request but service may be required on the Slave device 0a Gateway Path Unavailable Specialized use in conjunction with gateways indicates that the gateway was unable to allocate an internal communication path from the input port to the output port for processing the request Usually means that the gateway is misconfigured or overloaded Ob Gateway Target Device Failed To Respond Specialized use in conjunction with gateways indicates that no response was obtained from the target device Usually means that the device is not present on the network
156. pactLogix or MicroLogix Platform Diagnostics and Troubleshooting Modbus Communication Module User Manual 4 3 Reading Status Data from the Module The MVI69 MCM module returns a 29 word Status Data block that can be used to determine the module s operating status This data is located in the module s database at registers 6670 to 6698 and at the location specified in the configuration This data is transferred to the CompactLogix or MicroLogix processor continuously ProSoft Technology Inc Page 99 of 167 March 22 2011 Diagnostics and Troubleshooting MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Page 100 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module Reference User Manual 5 Reference In This Chapter Product Specifications cecseeseceeseeeeseceeseeneseeeeeeseseeeeanenseeseneeneaes 102 Funetional Overviews menar ere iaar aa Taane aaa aS ian 106 Data Flow between MVI69 MCM Module and CompactLogix or MicroLogix PrOCOSSOM s c233 cccieiusssdici once cagheth aeiaai aa a aar aa eaa a Eiai 110 Normal Data Transfer ccessccceeeseeeeeeeeeeeneseneeeseseeeeseseneneseneeeesseees 115 Special Control and Status Blocks ecceeeeeeeeeeeeeeeeeneeeeeeteneeeeeetee 121 Modbus Protocol Specification ecceeeeceeeeeeeeeeeeeeeeeseeeseeeeeneeeeeeeeeaes 134 Cable Connections sas
157. parameter specifies the number of registers or digital points to be associated with the command Functions 5 and 6 ignore this field as they only apply to a single data point For functions 1 2 and 15 this parameter sets the number of digital points inputs or coils to be associated with the command For functions 3 4 and 16 this parameter sets the number of registers to be associated with the command Page 66 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual Swap Code 0 1 2 3 This parameter defines if the data received from the Modbus slave is to be ordered differently than received from the slave device This parameter is helpful when dealing with floating point or other multi register values as there is no standard method of storage of these data types in slave devices This parameter can be set to order the register data received in an order useful by other applications The following table defines the values and their associated operations Swap Code Description 0 None No Change is made in the byte ordering 1234 1234 1 Words The words are swapped 1234 3412 2 Words amp Bytes The words are swapped then the bytes in each word are swapped 1234 4321 3 Bytes The bytes in each word are swapped 1234 2143 Node Address 1 to 255 0 broadcast This parameter specifies the
158. per settings fal bee A a 25 rs232 RS422 E E Rsass a J 3 3 RS422 The Setup Jumper acts as write protection for the module s flash memory In write protected mode the Setup pins are not connected and the module s firmware cannot be overwritten Do not jumper the Setup pins together unless you are directed to do so by ProSoft Technical Support ProSoft Technology Inc Page 15 of 167 March 22 2011 Start Here MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 1 5 Install the Module in the Rack This section describes how to install the module into a CompactLogix or MicroLogix rack Before you attempt to install the module make sure that the bus lever of the adjacent module is in the unlocked fully right position Warning This module is not hot swappable Always remove power from the rack before inserting or removing this module or damage may result to the module the processor or other connected devices 1 Align the module using the upper and lower tongue and groove slots with the adjacent module and slide forward in the direction of the arrow Upper Tongue and Groove Lower Tongue and Groove 2 Move the module back along the tongue and groove slots until the bus connectors on the MVI69 module and the adjacent module line up with each other Pa
159. ponse Timeout 1000 Retry Count Error Delay Count ow Reset Tag Reset All OK Cancel Enable Yes or No This parameter specifies whether to enable or disable the port No Port Disabled Yes Port Enabled Type 0 Master 1 Slave 2 PT Formatted 3 PT Formatted Swap This parameter specifies which device type the port will emulate Refer to Pass Through Control Blocks page 129 for information on using port types 2 or 3 ProSoft Technology Inc Page 53 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Float Flag YES or No This flag specifies how the Slave driver will respond to Function Code 3 6 and 16 commands read and write Holding Registers from a remote Master when it is moving 32 bit floating point data If the remote Master expects to receive or will send one complete 32 bit floating point value for each count of one 1 then set this parameter to YES When set to YES the Slave driver will return values from two consecutive 16 bit internal memory registers 32 total bits for each count in the read command or receive 32 bits per count from the Master for write commands Example Count 10 Slave driver will send 20 16 bit registers for 10 total 32 bit floating point values If however the remote Master sends a count of two 2 for each 32 bit floating point value it expects to receive or send or if
160. product or any use of the product will infringe existing or subsequently issued patents trademarks or copyrights a Any documentation included with Product purchased from ProSoft is protected by copyright and may not be duplicated or reproduced in any form without prior written consent from ProSoft b ProSoft s technical specifications and documentation that are included with the Product are subject to editing and modification without notice c Transfer of title shall not operate to convey to Customer any right to make or have made any Product supplied by ProSoft d Customer is granted no right or license to use any software or other intellectual property in any manner or for any purpose not expressly permitted by any license agreement accompanying such software or other intellectual property e Customer agrees that it shall not and shall not authorize others to copy software provided by ProSoft except as expressly permitted in any license agreement accompanying such software transfer software to a third party separately from the Product modify alter translate decode decompile disassemble reverse engineer or otherwise attempt to derive the source code of the software or create derivative works based on the software export the software or underlying technology in contravention of applicable US and international export laws and regulations or use the software other than as authorized in connection with use of Product f Add
161. r Default Project and Default Location with a Default Module in the Default Location folder The following illustration shows the ProSoft Configuration Builder window with a new project S Untitled ProSoft Configuration Builder DER File View Project Tools Help Default Project Name Status a Default Location Default Module Please Select Module Type E Default Module Unknown Product Line Last Change Last Download module Information Last Change Never Last Download Never Application Rev OS Rev Loader Rev MAC Address configedit version 2 2 0 Build 1 Module configuration Module Module Type Module Name Default Module Default Module Your first task is to add the MVI69 MCM module to the project 1 Use the mouse to select DEFAULT MODULE in the tree view and then click the right mouse button to open a shortcut menu Page 46 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual 2 On the shortcut menu select CHOOSE MODULE TYPE This action opens the Choose Module Type dialog box Choose Module Type Product Line Filter C PLx4000 C PLX6000 C MVI46 C MvIS6 C MVI71 C All PLX5000 C PTQ MVI69 MVIS6E Search Module Type STEP 1 Select Module Type Module Definition Action Required VI69 EGD MVI69 FLN MVI69 GEC 3 Inthe Pro
162. r Diagnostics The Configuration and Debug menu for this module is arranged as a tree structure with the Main menu at the top of the tree and one or more submenus for each menu command The first menu you see when you connect to the module is the Main menu Because this is a text based menu system you enter commands by typing the command letter from your computer keyboard in the Diagnostic window in ProSoft Configuration Builder PCB The module does not respond to mouse movements or clicks The command executes as soon as you press the COMMAND LETTER you do not need to press ENTER When you type a COMMAND LETTER a new screen will be displayed in your terminal application 4 2 1 Using the Diagnostic Window in ProSoft Configuration Builder To connect to the module s Configuration Debug serial port 1 Start PCB and then select the module to test Click the right mouse button to open a shortcut menu Default Project Ga Default Location h Demo Module 2 Onthe shortcut menu choose DIAGNOSTICS Default Project Default Location h Bouin Delete Rename Copy Choose Module Type View Configuration Export Configuration File s Load Config File Download from PC to Device Upload from Device to PC f Degrosts O This action opens the Diagnostics dialog box ProSoft Technology Inc Page 85 of 167 March 22 2011 Diagnostics and Troubleshooting MVI69 MCM CompactLogix or Micro
163. re for the module as well as other important values You may be asked to provide this information when calling for technical support on the product Values at the bottom of the display are important in determining module operation The Program Scan Counter value is incremented each time a module s program cycle is complete Tip Repeat this command at one second intervals to determine the frequency of program execution Returning to the Main Menu Press M to return to the Main menu ProSoft Technology Inc Page 95 of 167 March 22 2011 Diagnostics and Troubleshooting MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Opening the Data Analyzer Menu Press A to open the Data Analyzer Menu Use this command to view all bytes of data transferred on each port Both the transmitted and received data bytes are displayed Refer to Data Analyzer page 96 for more information about this menu Important When in analyzer mode program execution will slow down Only use this tool during a troubleshooting session Before disconnecting from the Config Debug port please press S to stop the data analyzer and then press M to return to the main menu This action will allow the module to resume its normal high speed operating mode 4 2 9 Data Analyzer The data analyzer mode allows you to view all bytes of data transferred on each port Both the transmitted and received data bytes are displayed Us
164. refer to the configuration file The Block Number defines the MODBUS port to be considered The slave address is represented in the block number in the range of 0 to 255 added to 1000 for commands to be sent out Port 1 or to 2000 for commands to be sent out Port 2 The sum of these two values determines the block number to use Example1 To send an Event Command to Slave 34 from Master Port 1 use Block Number 1034 Example 2 To send an Event Command to Slave 227 from Master Port 2 use Block Number 2227 Note Slave address 0 is a broadcast address Commands with this address will affect all slaves on the network Not all addresses in the range 1 to 255 are valid for all slave devices This is especially true for addresses 248 through 255 Use the parameters passed with the block to construct the command The INTERNAL DB ADDRESS parameter specifies the module s database location to associate with the command The POINT COUNT parameter defines the number of registers for the command The SWAP CODE changes the word or byte order The DEVICE ADDRESS parameter defines the MODBUS address on the target MODBUS device to consider The FUNCTION CODE parameter is one of those defined in the ProSoft MODBUS Command Set documentation The parameter fields in the block should be completed as required by the selected function code Each command type has its own set of parameters When the block is received the module will process it
165. rent data for the slaves Through the use of other blocks the processor can enable or disable the polling of selected slaves ProSoft Technology Inc Page 73 of 167 March 22 2011 Ladder Logic MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 3 2 4 MODBUS Message Data This version of the module s program includes formatted pass through page 129 mode In this mode write messages sent to a slave port are passed directly through to the processor It is the responsibility of the ladder logic to process the message received using this feature Two data objects are required for this mode a variable to hold the length of the message and a buffer to hold the message This information is passed from the module to the processor using block identification codes of 9956 through 9959 depending on the Modbus function code Word two of this block contains the length of the message and the message starts at word 3 Other controller tags are required to store the controlled values contained in these messages The MODBUS protocol supports controller of binary output coils functions 5 and 15 and registers functions 6 and 16 Page 74 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Ladder Logic Modbus Communication Module User Manual 3 3 Adding the Module to an Existing CompactLogix Project Important The following steps describe how to install and
166. rned to the processor for each individual command in the command list The location of this command status list in the module s internal database is user defined The following flow chart and associated table describe the flow of data into and out of the module Processor Memo Backplane Interface _ MCM Memo i ControiLogix H H Database Modbus Controller Tags Addresses Addresses i 0 40001 i eE gt Dara Register j gee storage 1 H i n i T ba i 9 4999 45000 ae Command Command Command i 1 i i Staus le i le H LOG from Module i i _ Master Command List Event i Event i Event Q xe S gt i he i Command 1 Command Command E gt gt Control Configuration 1 Control 1 Control e Step Description 1 The Master driver obtains configuration data from the user defined CFG file that is stored locally on the MVI69 MCM module itself The configuration data obtained includes port configuration and the Master Command List Special Ccommands can be issued directly from the CompactLogix or MicroLogix processor using Event Commands and Command Control These configuration and command values are used by the Master driver to determine the types and order of commands to send to slaves on the network 2 After configuration the Master driver begins transmitting read a
167. rrent page in hexadecimal format Viewing Data in Floating Point Format Press F from the Database View menu to display the data on the current page in floating point format The program assumes that the values are aligned on even register boundaries If floating point values are not aligned as such they are not displayed properly Viewing Data in ASCII Text Format Press A from the Database View menu to display the data on the current page in ASCII format This is useful for regions of the database that contain ASCII data Returning to the Main Menu Press M to return to the Main menu ProSoft Technology Inc Page 91 of 167 March 22 2011 Diagnostics and Troubleshooting MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 4 2 5 Backplane Menu Press B from the Main Menu to view the Backplane Data Exchange List Use this command to display the configuration and statistics of the backplane data transfer operations Press to view a list of commands available on this menu M Main Menu B Backplane Menu Display Menu Redisplays re freshes this menu E T SSS W Version Information Peis version information screen hs A Goes up one level to main menu SSS C Contguration Information iP Displays configuration screen Displays backplane diagnostic D Diagnostic Information mona Redisplaying the Men
168. rring the Command Error List to the Processor 113 Troubleshooting 84 Type 53 Use CTS Line 56 User Data Objects 73 Using ProSoft Configuration Builder 46 Using ProSoft Configuration Builder PCB for Diagnostics 85 Using the Diagnostic Window in ProSoft Configuration Builder 85 V Viewing Backplane Diagnostic Information 93 Viewing Configuration Information 92 94 Viewing Data in ASCII Text Format 91 97 Viewing Data in Decimal Format 9 91 Viewing Data in Floating Point Format 91 Viewing Data in Hexadecimal Format 91 97 Viewing Error and Status Data 94 Viewing Register Pages 90 Viewing the Next Page of Commands 95 Viewing the Next Page of Registers 91 Viewing the Previous Page of Commands 94 Viewing the Previous Page of Registers 91 Viewing Version Information 88 92 93 95 Ww Warm Boot Block 9998 121 133 Warm Booting the Module 89 121 Warnings 3 What Is Covered By This Warranty 159 161 What Is Not Covered By This Warranty 160 Word Input Offset 56 Write Block Command Control 128 Write Block Disable Slaves 122 Write Block Enable Slaves 123 Write Block Event Command 126 Write Block Request Slave Status 124 Write Register Count 52 Write Register Start 51 Y Your Feedback Please 2 ProSoft Technology Inc March 22 2011 Page 167 of 167
169. ry is not user replaceable Markings Electrical Ratings Backplane Current Load 800 mA 5 1 Vdc Power Supply Distance Rating 2 Operating Temperature 0 C to 60 C 32 F to 140 F Storage Temperature 40 C to 85 C 40 F to 185 F Relative Humidity 5 to 95 without condensation All phase conductor sizes must be at least 1 3 mm squared and all earth ground conductors must be at least 4mm squared Label Markings Class I Division 2 Groups A B C D 3G Ex nA IIC X 0 C lt Ta lt 60 C Il Equipment intended for above ground use not for use in mines 3 Category 3 equipment investigated for normal operation only G Equipment protected against explosive gasses Agency Approvals and Certifications Agency Applicable Standard s ATEX EN 60079 0 2006 EN 60079 15 2005 DNV DET NORSKE VERITAS Test 2 4 CE EMC EN61326 1 2006 EN61000 6 4 2007 CB Safety CA 10533 CSA IEC 61010 1 Ed 2 CB 243333 2056722 2090408 GOST R EN 61010 amp C CS ME06 MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module Contents User Manual Contents Your Feedback Please How to Contact Us ProSoft Technology Product Documentation Important Installation Instructions MVI Multi Vendor Interface Modules Warnings Battery Life Advisory daS AS e AEE AE P PETT T EE NE ETE EAT E T Ma Guide to the MVI69 MCM User Manual 1 SS a a ae aROWD 2 1 3 1 3 2 Start
170. s 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 lf the slave device receives the request without a communication error and can handle the query normally it returns a normal response If the slave 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 f the slave 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 slave receives the request without a communication error but cannot handle it for example if the request is to read a non existent address or read too many points the slave will return an Exception Response informing the Master of the nature of the error by using a specific Exception Code in the response An Exception Response message has two fields that differentiate it from a normal response Function Code Field In a normal response the slave 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 O their values are all below 80 hexadecimal In an Exception Response the slave sets the MSB of the Function Code byte to 1 This makes the Function Code value in an Exception Response exactly 80 he
171. s for testing or changing the DISABLE state of discrete inputs or outputs Where applicable this may be accomplished via device specific Program commands In ProSoft products this is only accomplished through ladder logic programming 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 will be hot 5 6 7 Preset Single Register Function Code 06 Query Function 06 allows the user to modify the contents of a holding register Any holding register that exists within the controller can have its contents changed by this message However because 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 order bits must be set to zero When used with Slave address zero Broadcast mode all Slave controllers will load the specified register with the contents specified Note Functions 5 6 15 and 16 are the only messages that will be recognized as valid for broadcast Adr Func DataStartReg DataStartReg Data of Regs Hi Data ofRegsLo Error Check Field Hi Lo 11 06 00 01 00 03 CRC ProSoft Technology Inc Page 139 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communic
172. s to the Slave The MVI69 MCM module can work as a Master and as a Slave The MVI69 MCM module also works as an input output module between itself and the Rockwell Automation backplane and processor The module uses an internal database to pass data and commands between the processor and Master and Slave devices on MODBUS networks 5 2 2 Module Power Up On power up the module begins performing the following logical functions 1 Initialize hardware components o Initialize CompactLogix or MicroLogix backplane driver o Test and Clear all RAM o Initialize the serial communication ports Module configuration Initialize Module Register space Enable Slave Driver on selected ports Enable Master Driver on selected ports After this initialization procedure is complete the module will begin communicating with other nodes on the network depending on the configuration ORON Page 106 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual 5 2 3 Main Logic Loop Upon completing the power up configuration process the module enters an infinite loop that performs the following functions From P ower Up Logic Gall O Handler Call I O Handler Transfers data between the module and processor user status etc Call Serial Port Driver Rx and Tx buffer routines are interrupt driven Call to serial port routines check to see if there is an
173. se the module s program to store the data at the specified location 3 2 1 Status Object MCM1 Status This object views the status of the module The MCM1Status object shown below is updated each time a read block is received by the processor Use this data to monitor the state of the module at a real time rate Name Data Type Description Pass Cnt INT Prod SINT 4 Rev SINT 4 Op SINT 4 Run SINT 4 PortErr MCM1_PORT_ERROR 2 BlkStats MCM1_BLK_STATS Portt_CurErr INT Port1_LastErr INT Port2_CurErr INT Port2_LastErr INT Refer to Status Data for a complete listing of the data stored in this object Page 72 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Ladder Logic Modbus Communication Module User Manual 3 2 2 User Data Objects These objects hold data to be transferred between the processor and the MVI69 MCM module The user data is the read and write data transferred between the processor and the module as pages of data up to 240 words long Name Data Type Description ReadData INT 480 Data read from module WriteData INT 480 Data written to module The read data READDATA is an array set to match the value entered in the READREGCNT parameter of the MCM1MobuLeEDEF object For ease of use this array should be dimensioned as an even increment of n words where n 60 120 or 240 words This data is paged up to
174. ses port 6691 Port 2 Errors This field contains the total number of message errors sent out of Sent the port 6692 Port 2 Errors This field contains the total number of message errors received on Received the port 6693 Read Block This field contains the total number of read blocks transferred from Count the module to the processor 6694 Write Block This field contains the total number of write blocks transferred from Count the processor to the module Page 152 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Modbus Communication Module Reference User Manual Offset Content Description 6695 Parse Block This field contains the total number of blocks successfully parsed Count that were received from the processor 6696 Command Event This field contains the total number of command event blocks Block Count received from the processor 6697 Command Block This field contains the total number of command blocks received Count from the processor 6698 Error Block This field contains the total number of block errors recognized by Count the module 6699 Port 1 Current For a slave port this field contains the value of the current error Error code returned For a Master port this field contains the index of the currently executing command 6700 Port 1 Last Error For a slave port this field contains the value of the last error code returned For a Master port th
175. stem These two registers contain the month and year values for the program operating system 9 to 10 Run Number These two registers contain the Run Number value for the currently running software 11 Port 1 Command List This field contains the number of requests made from this port Requests to slave devices on the network 12 Port 1 Command List This field contains the number of slave response messages Response received on the port ProSoft Technology Inc March 22 2011 Page 119 of 167 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Offset Content Description 13 Port 1 Command List This field contains the number of command errors processed Errors on the port These errors could be due to a bad response or command 14 Port 1 Requests This field contains the total number of messages sent out of the port 15 Port 1 Responses This field contains the total number of messages received on the port 16 Port 1 Errors Sent This field contains the total number of message errors sent out of the port 17 Port 1 Errors Received This field contains the total number of messages errors received on the port 18 Port 2 Command List This field contains the number of requests made from this port Requests to slave devices on the network 19 Port 2 Command List This field contains the number of slave response messa
176. t 49 Module Configuration eccceeeceeeseeeeeeeeeneeeeeeseeeseaeeseaeeseaeessaeeseeeteaees 50 ProSoft Technology Inc Page 19 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 2 1 MVI69 MCM Sample Add On Instruction Import Procedure Note this section only applies if you are using RSLogix 5000 version 16 or higher If you are configuring the MVI69 MCM module with an earlier version of RSLogix 5000 please refer to Installing and Configuring the Module with a CompactLogix Processor page 75 The following file is required before you start this procedure Copy the file from the ProSoft Solutions CD ROM or download it from www prosoft technology com File Name Description MVI69MCM_AddOn_Rung_v1_4 L_ L5X file contains the Add On instruction the user defined data 5x types data objects and ladder logic required to set up the MVI69 MCM module 2 1 1 Create a new RSLogix5000 project 1 Open the FILE menu and then choose NEw RSLogix 5000 lam Edit View Search Logic Communications Tools Wit B New Ctrl N Ctri 0 a O 3 2 Select REVISION 16 New Controller Vendor Allen Bradley Type 1769 L35E CompactLogivS335E Contaller Revision Cancel Help Name Description z Create In C RSLogix 5000 Projects Browse Page 20 of 167 ProSoft Technology
177. t 2 Select 1769 MODULE E Select Module Cross Reference Ctrl amp Properties Alt Enter Module Description Analog Communications Digital Other 1769 MODULE Specialty Generic 1769 Module Allen Bradley Eind Add Favorite By Category By Vendor Favorites OK Cancel Help 3 Fill the module properties as follows Parameter Value Name Enter a module identification string Example MVI69MCM_2 Description Enter a description for the module Example ProSoft communication module for Serial Modbus communications Comm Format Select Data INT Slot Enter the slot number in the rack where the MV69 MCM module will be installed Input Assembly Instance 101 Input Size 62 122 242 Output Assembly Instance 100 Output Size 61 121 241 Configuration Assembly Instance 102 Configuration Size 0 Page 32 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual Type 1769 MODULE Generic 1769 Module Parent Local r Connection Parameters Assembly Instance Size Hame MviegMcM ja jio amp 2 nebi Description Output ioo E a 16 bit Configuration foz fo 16 bit Comm Format Data INT z Slot 1 M Open Module Properties cmos e 4 Click OK to confirm The new module is now v
178. t lt BA gt lt C5 gt lt CD gt lt R gt _TT_ 61 3 14 96 80 09 08 86 66 TT_ 66 66 68 66 66 60 66 66 66 6 G6 G0 06 00 A3 67 TT The Data Analyzer displays the following special characters Character Definition Data enclosed in these characters represent data received on the port lt gt Data enclosed in these characters represent data transmitted on the port lt R gt These characters are inserted when the RTS line is driven high on the port lt R gt These characters are inserted when the RTS line is dropped low on the port lt CS gt These characters are displayed when the CTS line is recognized high nT These characters are displayed when the timing mark interval has been reached This parameter is user defined Stopping the Data Analyzer Press S to stop the data analyzer Use this option to freeze the display so the data can be analyzed To restart the analyzer press B Important When in analyzer mode program execution will slow down Only use this tool during a troubleshooting session Before disconnecting from the Config Debug port please press S to stop the data analyzer and then press M to return to the main menu This action will allow the module to resume its normal high speed operating mode Returning to the Main Menu Press M to return to the Main menu Page 98 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM Com
179. t limited to programs developed with any IEC 61131 3 C or any variant of C programming languages not furnished by ProSoft v use of the Product for purposes other than those for which it was designed vi any other abuse misapplication neglect or misuse by the Customer vii accident improper testing or causes external to the Product such as but not limited to exposure to extremes of temperature or humidity power failure or power surges or viii disasters such as fire flood earthquake wind and lightning c The information in this Agreement is subject to change without notice ProSoft shall not be liable for technical or editorial errors or omissions made herein nor for incidental or consequential damages resulting from the furnishing performance or use of this material The user guide included with your original product purchase from ProSoft contains information protected by copyright No part of the guide may be duplicated or reproduced in any form without prior written consent from ProSoft 6 2 3 Disclaimer Regarding High Risk Activities Product manufactured or supplied by ProSoft is not fault tolerant and is not designed manufactured or intended for use in hazardous environments requiring fail safe performance including and without limitation the operation of nuclear facilities aircraft navigation of communication systems air traffic control direct life support machines or weapons systems in which the failure of the
180. t of the sale will 1 conform to and perform in accordance with published specifications prepared approved and issued by ProSoft and 2 will be free from defects in material or workmanship provided these warranties only cover Product that is sold as new This Warranty expires three 3 years from the date of shipment for Product purchased on or after January 1st 2008 or one 1 year from the date of shipment for Product purchased before January 1st 2008 the Warranty Period If the Customer discovers within the Warranty Period a failure of the Product to conform to specifications or a defect in material or workmanship of the Product the Customer must promptly notify ProSoft by fax email or telephone In no event may that notification be received by ProSoft later than 39 months from date of original shipment Within a reasonable time after notification ProSoft will correct any failure of the Product to conform to specifications or any defect in material or workmanship of the Product with either new or remanufactured replacement parts ProSoft reserves the right and at its sole discretion may replace unrepairable units with new or remanufactured equipment All replacement units will be covered under warranty for the 3 year period commencing from the date of original equipment purchase not the date of shipment of the replacement unit Such repair including both parts and labor will be performed at ProSoft s expense All warranty service
181. tation to interpret and correct the error Page 42 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual Disabling the RSLinx Driver for the Com Port on the PC The communication port driver in RSLinx can occasionally prevent other applications from using the PC s COM port If you are not able to connect to the module s configuration debug port using ProSoft Configuration Builder PCB HyperTerminal or another terminal emulator follow these steps to disable the RSLinx Driver 1 Open RSLinx and go to COMMUNICATIONS gt RSWHO 2 Make sure that you are not actively browsing using the driver that you wish to stop The following shows an actively browsed network O1 x Browsing node 10 found 23 Workstation PSFT VAIO 1 Hes Linx Gateways Ethernet Els AB_DF1 1 DH 485 01 SLC 5 05 UNTITLED DF1 COM1 UNTITLED J 10 Workstation DF1 COM1 3 Notice how the DF1 driver is opened and the driver is looking for a processor on node 1 If the network is being browsed then you will not be able to stop this driver To stop the driver your RSWho screen should look like this SR Workstation PSFT VAIO 1 as Linx Gateways Ethernet gs AB_DF1 1 DH 485 a s Linx AB_DF1 1 Gatew DH 485 4 When you have verified that the driver is not being browsed go to COMMUNICATIONS gt CONFIG
182. tes 0 i Create New Localt 0 AB 1769_MODLLE_INT_122Bytes 0 0 Controller Program Show Show All gt gt 9 Click OK to confirm the import RSLogix will indicate that the import is under progress Importing Creating routine Prescan ProSoft Technology Inc Page 25 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module When the import is completed the new rung with the Add On instruction will be visible as shown in the following illustration RSLogix 5000 Import_Test 1769 L35E MainProgram MainRoutine amp Eile Edit View Search Logic Communications Tools Window Help alsm a sle oli E altel e ala ottine T No Forces 71 EF iee a 5 4 E No Edits Forces disabled e flags wnt Path AB_ETHIP 1 105 102 0 201 Backplane O l gt Favorites Add on Alarms K Bt K Timer counter K input output K Compare K Computemath E Controller Import_Test rel SIZE A Controller Tags C Controller Fault Handler Module s Definition E Power Up Handler parameters Internal Tasks ladder usage 5 MainTask should not be ELB Mar rooran accessed by user application B Program Tags Ea r 7 Ea MainRoutine Not Equal Copy File Unscheduled Programs Source A MCM UTIL LastRead Source Local 1 1 Data 0 J Motion Groups
183. the product Values at the bottom of the display are important in determining module operation The Program Scan Counter value is incremented each time a module s program cycle is complete Tip Repeat this command at one second intervals to determine the frequency of program execution Page 88 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Diagnostics and Troubleshooting Modbus Communication Module User Manual Opening the Database View Menu Press D to open the Database View menu Use this menu command to view the current contents of the module s database For more information about this submenu see Database View Menu page 90 Clearing Diagnostic Data Press C to clear diagnostic data from the module s memory Opening the Backplane Menu Press B from the Main Menu to view the Backplane Data Exchange List Use this command to display the configuration and statistics of the backplane data transfer operations Tip Repeat this command at one second intervals to determine the number of blocks transferred each second Opening the Protocol Serial Menu Press 0 or 1 to view the Protocol Serial Menu for ports 1 and 2 respectively Sending the Configuration File Press S to upload send a configuration file from the module to your PC Receiving the Configuration File Press R to download receive the current configuration file from the module Warm Booting the
184. u Press to display the current menu Use this command when you are looking at a screen of data and want to view the menu choices available to you Viewing Version Information Press V to view version information for the module Use this command to view the current version of the software for the module as well as other important values You may be asked to provide this information when calling for technical support on the product Values at the bottom of the display are important in determining module operation The Program Scan Counter value is incremented each time a module s program cycle is complete Tip Repeat this command at one second intervals to determine the frequency of program execution Returning to the Main Menu Press M to return to the Main menu Viewing Configuration Information Press C to view configuration information for the selected port protocol driver or device Page 92 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Diagnostics and Troubleshooting Modbus Communication Module User Manual Viewing Backplane Diagnostic Information Press D to view Backplane Diagnostic information Use this command to display the configuration and statistics of the backplane data transfer operations between the module and the processor The information on this screen can help determine if there are communication problems between the processor and the module
185. unt Status 20to Status 28to Status36to Status 44to Status 52to Check 27 35 43 51 56 Field 11 05 CD 6B B2 OE 1B CRC The status of coils 20 to 27 is shown as CD HEX 1100 1101 Binary Reading left to right this shows that coils 27 26 23 22 and 20 are all on The other coil data bytes are decoded similarly Due to the quantity of coil statuses requested the last data field which is shown 1B HEX 0001 1011 Binary contains the status of only 5 coils 52 to 56 instead of 8 coils The 3 left most bits are provided as zeros to fill the 8 bit format 5 6 3 Read Input Status Function Code 02 Query This function allows the user to obtain the ON OFF status of discrete inputs in the addressed Slave PC Broadcast mode is not supported with this function code In addition to the Slave address and function fields the message requires that the information field contain the initial input address to be read Starting Address and the number of locations that will be interrogated to obtain status data The addressing allows up to 2000 inputs to be obtained at each request however the specific Slave device may have restrictions that lower the maximum quantity The inputs are numbered form zero input 10001 zero input 10002 One input 10003 two and so on for a 584 The following table is a sample read input status request to read inputs 10197 to 10218 from Slave number 11 Adr Func DataStartPtHi DataStartPtLo Data of Pts
186. upport on the product Values at the bottom of the display are important in determining module operation The Program Scan Counter value is incremented each time a module s program cycle is complete Tip Repeat this command at one second intervals to determine the frequency of program execution ProSoft Technology Inc Page 93 of 167 March 22 2011 Diagnostics and Troubleshooting MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Returning to the Main Menu Press M to return to the Main menu Viewing Configuration Information Press C to view configuration information for the selected port protocol driver or device Opening the Command List Menu Press L to open the Command List menu Use this command to view the configured command list for the module Opening the Serial Port Menu Press S to open the Serial Port menu Use this command to view and change additional serial port driver settings Viewing Error and Status Data Press E to display the error status data for the module 4 2 7 Master Command Error List Menu Use this menu to view the command error list for the module Press to view a list of commands available on this menu M Main Menu Protocol Menu Command List Menu Display Menu Y Redisplays refeshes this menu Show Again Redisplays last selected page ofdata P Previous Page Goes back on
187. uration Builder from the ProSoft Solutions Product CD ROM included in the package with your module Installing ProSoft Configuration Builder from the Product CD ROM 1 Insert the ProSoft Solutions Product CD ROM into the CD ROM drive of your PC Wait for the startup screen to appear 2 Onthe startup screen click PRODUCT DOCUMENTATION This action opens a Windows Explorer file tree window 3 Click to open the UTILITIES folder This folder contains all of the applications and files you will need to set up and configure your module 4 Double click the SETUP CONFIGURATION TOOL folder double click the PCB _ EXE file and follow the instructions on your screen to install the software on your PC The information represented by the character in the file name is the PCB version number and therefore subject to change as new versions of PCB are released Note Many of the configuration and maintenance procedures use files and other utilities on the CD ROM You may wish to copy the files from the Utilities folder on the CD ROM to a convenient location on your hard drive Page 14 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Start Here Modbus Communication Module User Manual 1 4 Setting Jumpers When the module is manufactured the port selection jumpers are set to RS 232 To use RS 422 or RS 485 you must set the jumpers to the correct position The following diagram describes the jum
188. user database memory space is limited to the first 5000 registers of module memory addresses 0 through 4999 Therefore the practical limit for this parameter is 4999 minus the value entered for Write Register Count so that the Write Data Area does not try to extend above address 4999 Read Data and Write Data Areas must be configured to occupy separate address ranges in module memory and should not be allowed to overlap ProSoft Technology Inc Page 51 of 167 March 22 2011 Configuring the MVI69 MCM Module MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module Write Register Count 0 to 5000 The Write Register Count parameter specifies the size of the Write Data area of module memory and the number of registers to transfer from the processor to this memory area up to a maximum value of 5000 words Note Total Read Register Count and Write Register Count cannot exceed 5000 total registers Read Data and Write Data Areas must be configured to occupy separate address ranges in module memory and should not be allowed to overlap Backplane Fail Count 0 to 65535 This parameter specifies the number of consecutive backplane transfer failures that can occur before communications should be halted Error Status Block Pointer 1 to 4939 Starting register location in virtual Modbus database for the error status table If a value of 1 is entered the error status data will not be placed in the database A
189. w Menu 89 Opening the Protocol Serial Menu 89 Opening the Serial Port Menu 94 Output Offset 57 P Package Contents 13 Parity 55 Pass Through Control Blocks 53 74 121 129 Pinouts 3 146 150 Poll Interval 66 Preset Multiple Registers Function Code 16 143 Preset Single Register Function Code 06 139 Printing a Configuration File 48 Product Specifications 9 102 ProSoft Technology Product Documentation 2 Protocol 54 Protocol Serial MCM Menu 93 R Read Block Command Control 128 Read Block Disable Slaves 123 Read Block Enable Slaves 123 Read Block Event Command 127 Read Block Read Slave Status 125 Read Block and Write Block Transfer Sequences 116 Read Coil Status Function Code 01 134 Read Holding Registers Function Code 03 136 Read Input Registers Function Code 04 137 Read Input Status Function Code 02 135 Read Register Count 51 Read Register Start 51 Reading Status Data from the Module 99 Receiving the Configuration File 89 Redisplaying the Current Page 94 Redisplaying the Menu 88 92 93 95 96 Reference 9 101 Reg Count 66 Removing Timing Marks in the Data Analyzer 97 Renaming PCB Objects 48 Response Timeout 58 121 Retry Count 58 121 Return Material Authorization RMA Policies and Conditions 157 Returning Any Product 157 Returning to the Main Menu 91 92 94 95 98 Returning Units Out of
190. wer up Thus if such a coil is set ON by function code 15 and even months later an output is connected to that coil the output will be hot Page 142 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual 5 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 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 16 bit for the 184 384 and 584 unused high order bits must be set to zero Note Function codes 5 6 15 and 16 are the only messages that will be recognized as valid for broadcast Adr Func Hi LoAdd Quantity Byte Hi Lo Hi Lo Data Error Check Add Cnt Data Data Data Field 11 10 00 87 00 02 04 00 0A 01 02 CRC Response The normal response to a function 16 query is to echo the address function code starting address and number of registers to be loaded Adr Func Hi Addr Lo Addr Quantity Error Check Field 11 10 00 87 00 02 56 ProSoft Technology Inc Page 143 of 167 March 22 2011 Reference MVI69 MCM CompactLogix or MicroLogix Platform User Manual Modbus Communication Module 5 6 11 MODBUS Exception Responses When a Modbu
191. xadecimal higher than the value would be for a normal response With the Function Code s MSB set the Master application program can recognize the Exception Response and can examine the data field for the Exception Code Data Field In a normal response the slave may return data or statistics in the data field any information that was requested by the request In an Exception Response the slave returns an Exception Code in the data field This tells what slave condition caused the exception The following table shows an example of a Master request and slave Exception Response Request Response Field Name Hex Field Name Hex Function 01 Function 81 Starting Address Hi 04 Exception Code 02 Starting Address Lo Al Quantity of Outputs Hi 00 Quantity of Outputs Lo 01 In this example the Master addresses a read request to slave device The Function Code 01 is for a Read Coil Status operation It requests the status of the output coil at address 1245 04A1 hex Note that only that one coil is to be read as specified by the numbers in the output fields 0001 Page 144 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Reference Modbus Communication Module User Manual If the output address does not exist in the slave device the slave will return an Exception Response with the Exception Code shown 02 This specifies an illegal data address for the sl
192. y data in the buffer and depending on the value will either service the buffer or wait for more characters Call CFG DEBUG Port Driver Call Network Master amp Slave Drivers Generate messages and respond to messages received Call Network Master amp Slave Drivers 5 2 4 Backplane Data Transfer The MVI69 MCM module communicates directly over the CompactLogix or MicroLogix backplane Data is paged between the module and the CompactLogix or MicroLogix processor across the backplane using the module s input and output images The update frequency of the images is determined by the scheduled scan rate defined by the user for the module and the communication load on the module Typical updates are in the range of 2 to 10 milliseconds The data is paged between the processor and the module using input and output image blocks You can configure the size of the blocks using the Block Transfer Size parameter in the configuration file You can configure blocks of 60 120 or 240 words of data depending on the number of words allowed for your own application This bi directional transference of data is accomplished by the module filling in data in the module s input image to send to the processor Data in the input image is placed in the Controller Tags in the processor by the ladder logic The input image for the module may be set to 62 122 or 242 words depending on the block transfer size parameter set in the configuration fi
193. y will know where in the packet the data starts and ignore the byte count parameter inside the Modbus packet Specific Example 3 Master is issuing Modbus command with FC 3 to transfer Float data from Slave MCM Master Internal DB float specific Module parameters Float Flag not applicable 3700 3701 37 25 Float Start not applicable 3702 3703 275 69 Modbus Command parameters DB Poll Reg Swap Slave Func Address Addr Delay Count Code Addr Code In Dev 3700 0 2 0 1 3 6100 Modbus Slave 46101 37 25 46102 275 69 The user needs to know what area in the Slave s database has been defined for holding Floating values In this example the Slave s Float Start was set at 46001 Internal DB Float Flag Not applicable with Modbus Function Code 3 Float Start Not applicable with Modbus Function Code 3 DB Addr Tells the Master where in its data memory to store the data obtained from the Slave Reg Count Tells the Master how many registers to request from the Slave Swap Code same as above Page 64 of 167 ProSoft Technology Inc March 22 2011 MVI69 MCM CompactLogix or MicroLogix Platform Configuring the MVI69 MCM Module Modbus Communication Module User Manual Func Code Tells the Master to read the register values from the Slave FC3 Addr in Dev Tells the Master where in the Slave s database to obtain the data In the above example the Master s Modbus command to transmit inside the Mod

Download Pdf Manuals

image

Related Search

Related Contents

Model 5300 Series POX Manual - English: Low Resolution  2. Remova a versão  INFORMER USER MAN.  Etalonnage de robots par vision  Manuale di personalizzazione    

Copyright © All rights reserved.
Failed to retrieve file