Home
MVI69E-MBS User Manual
Contents
1. FILE Gy Untitled ProSoft Configuration Builder File View Project Tools Help Default Project Name 5 Default Location v MVI69E MBS im ih DALTLOL Sate Delete B Rename ti Slate M Copy t2 Paste Hasa M Choose Module Type Hata Et Configure Bate C Verify View Configuration Write to Compact Flash e Export Configuration File s sahiy Load Config File Rev Add External File ress dit rt AOI File mp a Download from PC to Device Upload from Device to PC pe Diagnostics ame ProSoft Technology Inc Page 29 of 156 September 1 2015 Adding the Module to RSLogix MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 6 Save the L5X file to the PC Laptop in an easily found location such as Windows Desktop G Save As neo Save in Mj Desktop X ex Ely J Libraries a Homegroup jm Computer Gu Network lt m r Filename MVI69E MBS_60_AddOn_Rung_v1_0 Save as type RSLogix 5000 Import Export File L5X v Cancel 2 4 Creating a New RSLogix 5000 Project 1 Click the FILE menu and then choose NEw a 7 R RSLogix 5000 Edit View Search Logic Communications New Ctrl N gt Open Ctrl O 2 Select your CompactLogix or MicroLogix 1500 LRP controller model 3 Select REVISION 16 or newer 4 Enter aname for your controller such as My_Controller 5 Select your C
2. Name MBSModuleDef Description Main module F definition Members Data Type Size 69428 byte s Name Data Type Description External Access CONFIG MBSCONFIG Configuration file Read Write DATA MBSDATA Database data Read Write ReadData INT 600 Decimal Read fromthe module Read Write WriteData INT 600 Decimal Write tothe module Read Write CONTROL MBSCONTROL Special tasks request Read Write STATUS MBSSTATUS Status Read Write UTIL MBSUTIL Tags used for internal Read Write Notice that these UDTs are the data types used to declare the MBS DATA ReaaData and MBS DATA WriteData controller tag arrays The UDTs are commented in the DESCRIPTION column Page 78 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Using Controller Tags Modbus Serial Enhanced Communication Module User Manual Tip If more than 600 words of Read or Write Data are needed the MBS DATA ReadData and MBS DATA WriteData controller tag arrays can be expanded Simply edit the size of the ReadData or WriteData integer array in the DATA TYPE column of the MBSDATA UDT In the example below the ReadData array size has been changed to 2000 Save and download the ladder program for this change to take effect Name MBSDATA Description Module database tags Members Data Type Size byte s Name Data Type Style Description External Access ReadData Decimal Read fromthe module Read Write WriteData INT 600 D
3. MBS COMFIG FileSize Configuration file size MBS CONFIG FileData array in bytes MBS COMFIG FileCRC32 CRC checksum of the configuration file stored in the array MBS COMFIG FileStatus Configuration file status 0 No file present 1 File present 5 3 2 MBS DATA This structure contains the Read Data and Write Data arrays for processor to module communication Tag Name Description MBS DATA ReadData Data area copied from the module to the processor This array stores the Modbus data coming into the module from the Modbus network MBS DATA WriteData Data area copied from the processor to the module This array stores the outgoing data sent from the module to the Modbus network 5 3 3 MBS CONTROL This array handles special tasks requested by the processor MBS CONTROL PortControl This array allows port commands to be controlled by the processor Tag Name Range Description MBS CONTROL PortControl 0 or 1 Sends Port Control to module Set MBS CONTROL PortControl 0 or 1 Reads Port Control from module Get MBS CONTROL PortControl n a Definition of Port x Control Portx MBS CONTROL PortControl 0 or 1 Port Control Disable 0 Enable 1 Portx Active MBS CONTROL PortControl 0 or 1 Index of command to be controlled Example Portx CmdEnableBits x Command 20 in port 1 command list can be controlled at CmdEnableBits 1 3 This is the 20 bit offset Page 80 of 156 ProSoft Technol
4. MAC Address Configured MYI69E MBS MB6E 2 00 values OK Values OK Values OK Values OK values OK Jun 05 2013 09 56 2013 09 56 Configedit version 4 1 0 Build 4 Module Configuration Module Module Type MVI69E MBS Module Name MVI69E MBS MVI69E MBS ProSoft Technology Inc September 1 2015 Page 59 of 156 Configuring the MVI69E MBS Using PCB MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 2 Inthe Upload Configuration File dialog box the ClIPConnect path should already be constructed if you have previously downloaded the configuration file from the same PC If not click RSWHO browse to then select the CompactLogix or MicroLogix 1500 LRP Processor and click OK Upload Configuration File Choose Processor ClPConnect 10 1 3 188 p 1 s 0 Destination Tag MBS CONFIG FileStatus INT FileSize DINT CRC32 DINT FileData SINT C Program Files ProSoft Technology PCBS Prolins c Test Connection Upload Status Log E Browse Device M Autobrowse Refresh _ So E Browsing node 1 found Workstation SUP13R4 MASTER as Linx Gateways Ethernet R g Fs AB_ETHIP 1 Ethernet 00 at 02 10 1 3 187 1769 L24ER QB1B LOGIXS324ER 1769 L24ER QE MVI69E_MBS Embedde MVI69E MBS Ap CompactBus CompactLogix System A 01 Embedded Discrete_IO 02 Unrecognized Device MVI69E MBS 10 1 3 189 1756 EN2T 1756 EN2T 4 10 1 3 1
5. MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 Reference In This Chapter Product Specifications i e aa aaa a a ea a Aaaa aAa TENERA 103 About the Modbus Protocol sseceeeesseeeeesneeeeeeneeeeseneteresnneeeeenaeees 104 Floating Pont SUDO ra eeeceeseecseeeeeeeeeeeeeseseeeseneceaeeeseneseaeeenenetaas 117 S Function BIOCKS ciering a e a n 124 Ethernet Port Connection ccccecceeeseeeeeeeeeaceteneeeeaeeseseeseaeeseaeeeeaeetias 146 Modbus Application Port Connection esseesseeseeeseeeeeserserssreeneerneee 147 7 1 Product Specifications The MVI69E MBS allows Rockwell Automation CompactLogix or MicroLogix 1500 LRP I O compatible processors to interface easily with other Modbus protocol compatible devices The module acts as an input output communications module between the Modbus network and the CompactLogix or MicroLogix 1500 LRP backplane The data transfer from the CompactLogix or MicroLogix 1500 LRP processor is asynchronous from the actions on the Modbus network Databases are user defined and stored in the module to hold the data required by the protocol Single slot 1769 backplane compatible e The module is recognized as an Input Output module and has access to processor memory for data transfer between processor and module e Ladder Logic is used for data transfer between module and processor Sample Add On Instruction file i
6. RTU mode binary with CRC 16 ASCII mode with LRC error checking Floating Point Floating point data movement supported including configurable Data support for Enron Daniel and other implementations Read Coil Status Read Input Status Read Holding Registers Read Input Registers Force Write Single Coil Preset Write Single Holding Register 8 Diagnostics Slave Only Responds to Subfunction 00 Modbus Function Codes Supported DAWN 15 Force Write Multiple Coils 16 Preset Write Multiple Holding Registers 17 Report Slave ID Slave Only 22 Mask Write Holding Register Slave Only 23 Read Write Holding Registers Slave Only Page 104 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 2 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 commands to the
7. This informs the module that the command has been processed and can be cleared from the Pass Through queue ProSoft Technology Inc Page 139 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 4 16 Pass through Formatted Block for Function 15 9959 Block 9959 Pass Through Formatted Block for Function 15 When the module receives a function code 15 in Pass Through mode the module writes the data using block ID 9959 for multiple bit data First the bit mask clears the bits to be updated This is accomplished in RSLogix 5000 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 Block 9959 Request from Module to Processor Offset Description 0 Read Block ID 9959 1 Write Block ID 9959 2 Length in words 3 Data address 4 to 28 Modbus Data 29 to 53 Bit mask to use with the data set Each bit to be considered with the data set has a value of 1 in the mask Bits to ignore in the data set has a value of 0 in the mask 54 to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Size parameter The ladder logic is responsible for parsing and copying the received message and performin
8. You can place multiple MVI69E MBS modules in the same rack provided it does not exceed the power distance rating of the CompactLogix or MicroLogix 1500 LRP rack see System Requirements page 10 Adding an additional module to the rack is similar to installing a new module however the name of the module must be unique 1 Start RSLogix 5000 and open the project 2 In RSLogix 5000 locate the I O CONFIGURATION folder Right click COMPACTBUS LOCAL and choose NEW MODULE Sy I O Configuration Ap Backplane CompactLogix System ff 1769 L35E My_Controller 1769 L35E Ethernet Port LocalENB Ethernet o a CompactBus Local 1 New Module Cross Reference Ctrl E Properties Alt Enter Print gt 3 Inthe Select Module Type dialog box select the MVI69E MBS module o If you are using an Add On Profile AOP this adds the MVIG9E MBS module and configures the relevant parameters You must be using RSLogix version 15 or later to to use an AOP o If using an AOP is not an option select GENERIC 1769 MODULE and click CREATE ProSoft Technology Inc Page 37 of 156 September 1 2015 Adding the Module to RSLogix MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 4 The New Module dialog box appears Enter a unique name for the new module and confirm the slot number of the new module E New Module General Connection Vendor Type MVIB9E MBS Modbus Seria
9. 89 Cold boot Control Block 9999 145 Command Control Blocks 5001 to 5006 5101 to 5106 128 Command Error Codes 73 Command List Entry Errors 100 Communication Error Codes 73 82 100 Configuration Parameters Common to Master and Slave 48 50 51 Configuring the Floating Point Data Transfer 118 Configuring the MVI69E MBS Using PCB 43 90 93 Connecting the PC to the Module s Ethernet Port 90 Connecting to the Module s Web Page 101 Contacting Technical Support 153 Content Disclaimer 2 Controller Tags 75 Creating a Module in the Project Using a Generic 1769 Module Profile 17 22 Creating a Module in the Project Using an Add On Profile 17 18 Creating a New PCB Project and Exporting an L5X File 44 Creating a New RSLogix 5000 Project 30 Creating and Exporting the L5X File 28 32 36 43 Creating the Module in an RSLogix 5000 Project 17 D Data Flow Between the Module and Processor 70 DB9 to RJ45 Adaptor Cable 14 151 Deployment Checklist 11 Diagnostics Function Code 08 113 Diagnostics and Troubleshooting 73 87 Diagnostics Menu 95 Downloading the Configuration File to the Processor 56 DVD Contents 16 E Editing Configuration Parameters 44 ENRON Floating Point Support 118 Ethernet 1 55 92 Ethernet Cable Configuration 146 Ethernet Cable Specifications 146 Ethernet LED Indicators 88 Ethernet Performance 147 E
10. MBS CONTROL EventCmd_Processor Modbus function code 5 6 15 or 16 Data ModbusFunctionCode MBS CONTROL EventCmd_Processor 0 to 9999 Modbus address of the target slave Data DeviceDBAddress database MBS CONTROL EventCmd_Processor 0 to 125 Number of bit words associated with this Data PointCount command MBS CONTROL EventCmd_Processor 0 to 49 Data values to be sent to the slave Data Data x MBS CONTROL EventCmd_Processor Data EventCmdStatusReturned Command status MBS CONTROL EventCmd_Processor Data PortxStatus Port x Status array MBS CONTROL EventCmd_Processor Data PortxStatus Status Status code See Communication Error Codes page 100 MBS CONTROL EventCmd_Processor Data PortxStatus LastError Last error code Page 82 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Using Controller Tags User Manual MBS CONTROL SlavePoll This array allows the processor to enable disable and retrieve status for slaves Tag Name Range Description MBS CONTROL SlavePoll Portx Port x slave polling control MBS CONTROL SlavePoll Portx Oor 1 Slave Poll request EnableSlaves 0 Disable 1 Enable MBS CONTROL SlavePoll Portx 1 to 60 Number of slaves to be enabled EnableSlaveCount MBS CONTROL SlavePoll Portx Data array associated to enable slave request EnableSlaves Ds x where word x corre
11. 2015 MVI69E MBS CompactLogix Platform Diagnostics and Troubleshooting Modbus Serial Enhanced Communication Module User Manual 6 4 5 Monitoring Data Values in the Module s Database In the Diagnostics window in ProSoft Configuration Builder click DATABASE and then click DECIMAL to view the contents of the MVI69E MBS module s internal database You can view data values in ASCII Hexadecimal and Float format _ j Diagnostics n sm Connection Log Module ajs S o 4 2 dnl fh MVIBSE MBS A Time er Elg GENERAL DATABASE 0 to 99 Decimal Refresh Counter C Version Eaa NETWORK C Contig B a BACKPLANE f F Config F Status Eg MODBUS PORT 1 i E Contig f EP Status Ee etet scroll up oom i i C Master Command Status Esa MODBUS PORT 2 i E Config i F Status i F Master Commands i F Slave Status List f F Master Command Status Esa DATABASE C asci Boccia ooooo000000 ooooo0o00009o oooooococdeso ooooooo oe oceo oooooo0oco00o ooooooocooco ooooo000000 oooo0000000 oooooocoecKeo ooooo0o00000 m k aaa aa a aa date a a aaa a a aa a an ee ProSoft Technology Inc Page 99 of 156 September 1 2015 Diagnostics and Troubleshooting MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 6 5 Communication Error Codes Note If an error code is reported that is not listed below check with the documentation
12. If you set the value to zero the command is a broadcast message on the network The Modbus protocol permits broadcast commands for write operations Do not use this node address for read operations Specifies the Modbus function to be executed by the command These function codes are defined in the Modbus protocol 1 Read Coil Status Oxxxx 2 Read Input Status 1xxxx 3 Read Holding Registers 4xxxx 4 Read Input Registers 3xxxx 5 Force Write Single Coil Oxxxx 6 Force Write Single Holding Register 4xxxx 15 Preset Write Multiple Coils Oxxxx 16 Preset Write Multiple Registers 4xxxx Specifies the register or digital point address offset within the Modbus slave device The MBS Master reads or writes from to this address within the slave Refer to the documentation of each Modbus slave device for Page 54 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Configuring the MVI69E MBS Using PCB Modbus Serial Enhanced Communication Module User Manual Override Value Upon Error 3 2 4 Ethernet 1 their register and digital point address assignments Note The value entered here does not need to include the Modbus Prefix addressing scheme Also this value is an offset of the zero based Modbus addressing scheme Example Using a Modbus Function Code 3 to read from address 40010 in the slave a value of 9 would be entered i
13. Poll Interval_ Register Count Swap Code Node Address Mod 1 Continuous 0 0 1 No Change 1 Fes Edit Row 1 am Enable Continuous l Enable ER Internal Address 0 1 eee Poll Interval o x Register Count 1 Enable Value Sta Swap Code No Change Node Address 1 ModBus Function FC 3 Read Holding Registers MB Address in Device it Override Value Upon Error 0 EN EAE Comment This field defines whether or not the command is to be executed and under what conditions Set to Defaults i Edit Row Disable 0 The command is _ disabled and will not be executed in the normal polling sequence Enable 1 The command is executed each scan of the command list if the Poll Interval Time is set to zero If the Poll Interval time is set the Reset Tag Reset All OK Cancel 3 1 4 Printing a Configuration File 1 Inthe main PCB window right click the MVI69E MBS icon and then choose VIEW CONFIGURATION 2 Inthe View Configuration dialog box click the FILE menu and then click PRINT 3 Inthe Print dialog box choose the printer to use from the drop down list select the printing options and then click OK Page 46 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Configuring the MVI69E MBS Using PCB User Manual 3 2 Module Configuration Parameters 3 2 1 Module Parameters This section contains genera
14. Ready Default Module CAP NUM SCRL Your first task is to add the MVIG69E MBS module to the project Page 26 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Adding the Module to RSLogix User Manual 1 Inthe Tree view right click DEFAULT MODULE and then click CHOOSE MODULE TYPE This opens the Choose Module Type dialog box STEP 1 Select Module Type M Choose Module Type E Product Line Filter C all C PLX4000 C PLx6000 C MVI46 C mvI56 C MVIFL C PLx5000 C PLX30 C MVI69 C MVIS6E C PTQ MVI69E MVI69L Search Module Type Module Definition MASTER SLAVE COMMUNICATION MODULE MVI69E MBS MVI69E MBS Section 2 MVI69E MBTCP PZ Derine PO Status z Action Required Module Used xX MBS Port 1 Used MBS Port 2 Used UnCheck if Not Used x Network Used Comment Used In the Product Line Filter area of the dialog box click MVI69 In the Select Module Type dropdown list click MVI69E MBS and then click OK to save your settings and return to the ProSoft Configuration Builder window The MVI69E MBS icon is now visible in the tree view Default Project E al Default Location th DEST ProSoft Technology Inc September 1 2015 Page 27 of 156 Adding the Module to RSLogix MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communic
15. 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 11 5083 3776 E mail brasil prosoft technology com Languages spoken include Portuguese English Warranty Information For complete details regarding ProSoft Technology s TERMS amp CONDITIONS OF SALE WARRANTY SUPPORT SERVICE AND RETURN MATERIAL AUTHORIZATION INSTRUCTIONS please see the documents on the ProSoft Solutions DVD or go to www prosoft technology legal Documentation is subject to change without notice Page 154 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Index User Manual Index 0 00 Return Query Data 113 A About the Modbus Protocol 105 Add Event with Data Blocks 8000 8001 129 Adding another module in PCB 35 38 Adding Another Module in RSLogix 5000 37 Adding Multiple Modules in the Rack Optional 35 Adding the Module to RSLogix 17 43 44 75 Additional Configuration Parameters as Master 50 73 Additional Configuration Parameters as Slave 51 B Backplane Data Transfer 64 Basic PCB Functions 44 C Clearing a Fault Condition
16. Status Data Error codes counters and port status available per configured slave port ProSoft Technology Inc Page 105 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 2 3 Function Codes Supported by the Module The format of each command in the list depends on the Modbus Function Code being executed The following table lists the Function Codes supported by the MVI69E MBS module Function Code Definition Supported as Master Supported as Slave 1 Read Coil Status 0x X X 2 Read Input Status 1x xX X 3 Read Holding Registers 4x X X 4 Read Input Registers 3x X X 5 Set Single Coil 0x X xX 6 Single Register Write 4x X xX 8 Diagnostics X 15 Multiple Coil Write 0x X X 16 Multiple Register Write 4x 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 7 2 4 Read Coil Status Function Code 01 Query This function allows you to obtain the ON OFF status of logic coils Modbus 0x range 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 t
17. Write to tag MBS CONFIG FileSize Succeeded Write to tag MBS CONFIG FileCRC32 Succeeded Write to tag MBS CONFIG FileD ata Succeeded Reboot command successfully sent Module Rebooting please wait Module Reboot in 17 seconds S Module Running v Download Successful Module Running Close 6 After rebooting the ladder logic sends the configuration data from the processor to the module When that is complete the module starts Modbus communications Page 58 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Configuring the MVI69E MBS Using PCB User Manual 3 4 Uploading the Configuration File from the Processor 1 Inthe ProSoft Configuration Builder tree view right click the MVI69E MBS icon and choose UPLOAD FROM DEVICE TO PC Untitled ProSoft Configuration Builder Fie View Project Tools Help Default Project i Default Location fh D g Mot Delete F Sa mpe Rename a MBI Copy gta Eth a Cor Choose Module Type View Configuration Export Configuration File s Load Config File Export AOI File Download from PC to Device Upload From Device to PC Diagnostics name Status Information J MVI69E MBS MVI69E Module MBS Port 1 MBS Port 2 Network Comment Last Chanae Module Information Last ale penal 05 oa Last Down Never Application Rev OS Rev Loader Rev
18. and ladder logic OK LED remains RED The program has halted or a critical error has occurred Connect to the Configuration Debug or Communication 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 then re insert it and then restore power to the rack ProSoft Technology Inc September 1 2015 Page 89 of 156 Diagnostics and Troubleshooting MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 6 3 Connecting the PC to the Module s Ethernet Port With the module securely mounted connect one end of the Ethernet cable to the ETH1 Port and the other end to an Ethernet hub or switch accessible from the same network as the PC Or connect directly from the Ethernet Port on the PC to the ETH 1 Port on the module uu Allen Bradley xram P 1 A P P P 2 A P P 6 3 1 Setting Up a Temporary IP Address Important ProSoft Configuration Builder PCB locates MVI69E MBS modules through UDP broadcast messages These messages may be blocked by routers or layer 3 switches In that case ProSoft Discovery Service is unable to locate the modules To use ProSoft Configuration Builder arrange the Ethernet connection so that there is no router layer 3 switch between the computer and the module OR reconfigure the router layer 3 switch to allow routing of the UDP broadcast messages 1 Inthe tree view in ProS
19. as this addressing scheme uses two Modbus addresses to represent each 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 do not need to 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 Page 118 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual Example 1 master is issuing Modbus command with FC 16 with Float Flag Yes to transfer Float data to slave MCM Master Internal DB float specific Module parameters Float Flag Y 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 47102 22 86 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 47001 Float specific module parameters Float Flag Y tells the master to consider the data values t
20. you must enter text or a valid number or select from a list of options 4 Click OK to save your changes Page 44 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Configuring the MVI69E MBS Using PCB Modbus Serial Enhanced Communication Module User Manual 5 Double click any icon to open an Edit dialog box with a table Use this dialog box to build and edit Modbus Master commands K a Edit Modbus Port 1 Commands Enable IntemalAddress Poll Interval Register Count _ Swap Code NodeAddress ModBus Func 4 m Set to Defaults Add Row Insert Row Delete Row Move Up Move Down Edit Row Copy Row Paste Rot OK Cancel 6 To add a row to the table click ADD Row B E Edit Modbus Port 1 Commands Enable _Intemal Address Polllnterval _ Register Count Swap Code NodeAddress Mod eee O 0 1 No Change 1 FC 1 Enable Value Status OK Set to Defaults Add Row Insert Row Delete Row Move Up Move Down Edit Row Copy Row Paste Row OK Cancel ProSoft Technology Inc Page 45 of 156 September 1 2015 Configuring the MVI69E MBS Using PCB MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 To edit the row click EDIT Row This opens an Edit dialog box T Edit Modbus Port 1 Commands Enable _ Internal Address
21. 0x range either ON or OFF 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 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 FFOO HEX sets the coil ON and the value zero turns it OFF all other values are illegal and do not affect that coil The use of slave address 00 Broadcast Mode forces all attached slaves to modify the desired coil Note Functions 5 6 15 and 16 are the only messages that are recognized as valid for broadcast The example below is a request to slave number 11 to turn ON coil 0173 Note This is the structure of the message being sent out to the Modbus network The byte values below are in hexadecimal display Node Function DataStart Bit DataStart Bit Number of Number of Error Check Address Code High Low Bits High Bits Low Field 2 bytes 0B 05 00 AC FF 00 CRC Response The normal response to the Command Request is to re transmit the message as received after the coil state has been altered Node Function Data Coil Bit Data Coil Bit Data On Off Data Error Check Address Code High Low Field 2 bytes 0B 05 00 AC FF 00 CRC The forcing of a coil via Modbus function 5 happens regardless of whether the addressed coil is disabled or not In ProSoft products the coil is only affe
22. 111 7 2 9 Preset Single Register Function Code 06 cccccecseeeesseeeeeeeeseeeeeeeaeeeeeeteeeeess 112 7 2 10 Diagnostics Function Code 08 c ccceccceeeeeeeeeeeceeeeeceaeeeseaeseeeeeseeeetaeeseeeeeeneess 113 7 2 11 Force Multiple Coils Function Code 15 seessseseessessiesrrssrrssrissrissrinsrrnsrrnsrnes 115 7 2 12 Preset Multiple Registers Function Code 16 c cccccccsseceeeeeseeeeeeeeeeeneeseereees 116 7 3 Floating Point SUPPOMT ccccceeseeceeeeeceeeeeeeaeeeeeeeseeeeseaeeeeaaeseceeeseeeesaeeseaeeseeeeess 117 7 3 1 ENRON Floating Point SUDPOMt ceccceeeeeeeeeeeceeeee seas eeeeaeseceeeseeeeteaeeseeeseeeeees 118 7 3 2 Configuring the Floating Point Data Transfer cccccssseeeeeeeeeeeeeeeeeeneeteeeeeeees 118 7 4 Function Blocks rinore canis eetia atin need ied diiiede ied ENA 124 7 4 1 Event Command Blocks 1000 to 1255 2000 to 2255 oo eeeeeeeeeeeteeeeteeteeeeees 125 7 4 2 Slave Polling Disable BIOCKS ccccccceeceeeeeeeeeeeeeeeeeeeaeeeeaaeseneeeseaeeesaeeeeeeseeeeetaas 126 7 4 3 Slave Polling Enable Blocks 3001 3101 sessesssssssssssssssssrsssrsssrssrrnsnnsnnssnnses 126 7 4 4 Slave Polling Status Blocks 3002 to 3006 3102 to 3106 sssssseesseeseesessees 127 7 4 5 Command Control Blocks 5001 to 5006 5101 to 5106 eeeeeeeeeeeeee 128 7 4 6 Add Event with Data Blocks 8000 8001 ee ccceeeeeeeeeeeeeeeeeeeeeeeeeeteeeaeeeeeeaaees 129 7 4 7 Get Event with Da
23. 2 Command List Errors Number of command errors processed on the port These errors could be due to a bad response or command 21 Port 2 Requests Total number of messages sent out the port ProSoft Technology Inc Page 133 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module Offset Description 22 Port 2 Responses Total number of messages received on the port 23 Port 2 Errors Sent Total number of message errors sent out of the port 24 Port 2 Errors Received Total number of message errors received on the port 25 Read Block Count Total number of read blocks transferred from the module to the processor 26 Write Block Count Total number of write blocks transferred from the processor to the module 27 Parse Block Count Total number of blocks successfully parsed that were received from the processor 28 Event Command Block Count Total number of Event Command blocks received from the processor 29 Command Control Block Count Total number of Command Control blocks received from the processor 30 Error Block Count 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 Port 1 Last Error For a slave port this field contains
24. 6 Read Holding Registers Function Code 03 Query This function allows you to retrieve the contents of holding registers 4xxxx Modbus 4x range in the addressed slave The registers can store the numerical values of associated timers and counters which can be driven to external devices The addressing allows retrieving up to 125 registers at each request however the specific slave device may have restrictions 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 three registers from slave number 11 Note This is the structure of the message being sent out to the Modbus network The byte values below are in hexadecimal display Node Function Data Start Data Start Data Number Data Number Error Check Address Code Registers Registers Low of Registers of Registers Field High High Low 2 bytes 0B 03 00 6B 00 03 CRC Response The addressed slave responds with its address and the function code followed by the information field The information field contains 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 service
25. I m RUN No Forces H tol d 4 4 U 4 EJ H Path lt none gt v El Controller Organizer S Controller My_Controller Controller Tags Controller Fault Handler G Power Up Handler 2 8 Tasks Sa MainTask a MainProgram A Program Tags Eh MainRoutine E Unscheduled Programs Phases amp Motion Groups GD Ungrouped Axes S E Add On Instructions gJ Aol69_mBS_60 amp Data Types E User Defined E E Strings E Add On Defined i E Predefined E E Module Defined G Trends J 1 0 Configuration 8 fail Backplane CompactLogix System fla 1769 L35E My_Controller E 1769 L35E Ethernet Port LocalENB ee Ethernet G0 CompactBus Local 1 MVI69E MB5 4 MYI69E_MBS 5 2 MVI69E MB5 A MYI69E_MBS_2 End abcd gh ab wl caba Ve Cut Rung Ba Copy Rung e Delete Rung Add Rung Edit Rung Edit Rung Comment Add On instruction for MVIS9E MBS module A0I69_MBS_60 Add On instruction for MYIB9E MBS mo A0I69_MBS_60 AOIBS_MBS CI MBS MBS Connection _Input Local 1 1 Data Connection_Output Local 1 0 Data Ctri x Ctrl C Del CtrHR Enter Ctrl D Import Rungs Export Rungs Verify Rung Go To Add Ladder Element MainRoutine Ctrl G Alt Ins am Rung 0 of 1 ProSoft Technology Inc September 1 2015 Page 39 of 156 Adding the Module to RSLogix MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communica
26. MBS Modbus Serial Enhanced Communication Module 2 Adapter Cable Cable 14 RJ45 to DB9 Male Adapter cable For DB9 connection to module s serial application ports 2 Screw Terminal 1454 9F DB9 female to 9 pin screw terminal Used Adapter for RS422 or RS485 connections to Port 1 and 2 of the module 1 Ethernet Cable RL CBL025 Ethernet straight through cable 1 ProSoft Solutions DVD 001 Contains ProSoft Configuration Builder DVD PCB and ProSoft Discovery Service PDS software Files can also be found at www prosoft technology com If any of these components are missing please contact ProSoft Technology Technical Support for replacement parts ProSoft Technology Inc Page 11 of 156 September 1 2015 Start Here MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 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 jumper settings rs232 RS422 rs485 _ N RS232 dud E Lid rs232 A RS422 RS485 Jl rs232 0 m RS422 RS485 E Note Jumper pin placement on the circuit board may vary The Setup Jumper acts as write protection for the module s firmware In write protected mode the Setup pins are not connected and the module s f
27. Modbus Command parameters DB Poll Reg Swap Slave Func Address Addr Delay Count Code Addr Code In Dev 3700 0O 2 0 1 3 6100 Modbus Slave 000 000 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 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 Page 122 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual In the above example the master s Modbus command to transmit inside the Modbus packet is 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 is 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 th
28. RS 232 Device to s tro 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 TxD RxD Signal 5 Signal Common Common Page 148 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 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 ro con 5 H 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 is required between Pins 7 RTS and 8 CTS 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 8 monitoring enabled Signal Signal
29. Slave The MVIG9E MBS module can work as a Master and as a Slave The MVI69E MBS module also works as an input output module between itself and the Rockwell Automation backplane and CompactLogix or MicroLogix 1500 LRP processor The module uses an internal database to pass data and commands between the processor and Master and Slave devices on Modbus networks 7 2 1 Modbus Master A port configured as a virtual Modbus Master actively issues Modbus commands to other nodes on the Modbus network supporting up to 250 commands on each port The Master ports have an optimized polling characteristic that polls slaves with communication problems less frequently Command List Up to 250 commands per Master port each fully configurable for function slave address register to from addressing and word bit count Polling of command list Configurable 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 7 2 2 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 1500 LRP processor Node address 1 to 247 software selectable
30. Technology Inc All Rights Reserved Printed documentation is available for purchase Contact ProSoft Technology for pricing and availability North America 1 661 716 5100 Asia Pacific 603 7724 2080 Europe Middle East Africa 33 0 5 3436 87 20 Latin America 1 281 298 9109 Important Safety Information North America Warnings A B Cc D This Equipment is Suitable For Use in Class Division 2 Groups A B C D or Non Hazardous Locations Only Warning Explosion Hazard Substitution of Any Components May Impair Suitability for Class Division 2 Warning Explosion Hazard Do Not Disconnect Equipment Unless Power Has Been Switched Off Or The Area is Known To Be Non Hazardous The subject devices are powered by a Switch Model Power Supply SMPS that has regulated output voltage of 5 VDC ATEX IECEx Warnings and Conditions of Safe Usage Power Input and Output I O wiring must be in accordance with the authority having jurisdiction A B Cc D Warning Explosion Hazard When in hazardous locations turn off power before replacing or wiring modules Warning Explosion Hazard Do not disconnect equipment unless power has been switched off or the area is known to be non hazardous These products are intended to be mounted in an ATEX IECEx Certified tool secured IP54 enclosure The devices shall provide external means to prevent the rated voltage being exceeded by transient disturbances of more
31. alter the content of any holding register at any time Note Function codes 5 6 15 and 16 are the only messages that are recognized as valid for broadcast The example below is a request to write 2 registers starting at register 40002 in slave 11 Note This is the structure of the message being sent out to the Modbus network The byte values below are in hexadecimal display Node Func Data Start Data Start Number Number Byte Data Data Data Data Error Address Code Address Address ofPoints ofPoints Count High Low High Low Check High Low High Low Field 2 bytes 0B 10 00 01 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 Node Func Data Start Data Start Number Number Error Check Address Code Address Address ofPoints ofPoints Field 2 bytes High Low High Low 0B 10 00 01 00 02 CRC Page 116 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 3 Floating Point Support You can easily move floating point data between the MBS module and other devices as long as the device supports IEEE 754 Floating Point format This IEEE format is a 32 bit single precision floating point format The logic necessary to move the floating point data takes advantage of the COP instruction in RSLogix 5
32. for Function 99 Block 9970 Request from Module to Processor Offset Description 0 Read Block ID 9970 1 Write Block ID 9970 2 1 3 0 4to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Size parameter The ladder logic is 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 Block 9970 Response from Processor to Module Offset Description 0 Write Block ID 9970 1 ton Spare Length in words n 2 This informs the module that the command has been processed and can be cleared from the Pass Through queue ProSoft Technology Inc Page 143 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 4 20 Pass Module Time to Processor Block 9973 Block 9973 Pass Module Time to Processor Block This block uses the time information from the module to set the processor time Block 9973 Request from Processor to Module Offset Description 0 Write Block ID 9973 1to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Size parameter Block 9973 Response from Module to Processor Offset Description Read Block ID 9973 0 1 Write Block ID To be used by the processor in its next Write bl
33. than 40 This device must be used only with ATEX certified backplanes Before operating the reset switch be sure the area is known to be non hazardous If the equipment is used in a manner not specified by the manufacturer the protection provided by the equipment may be impaired Agency Approvals and Certifications Agency ATEX Category 3 Zone 2 CE Mark CSA CB Safety Environmental KCC RoHS Compliant UL cUL Class 1 Div 2 Groups A B C D MVI69E MBS CompactLogix Platform Contents Modbus Serial Enhanced Communication Module User Manual Contents Your Feedback Please nrerin arns EE E vavecd AEE E E EE ATERS 2 Content Disclaimer essan ari ear a EE EEA EEA AEAN EEEE AAA AAEE ERE ARRS 2 Iimp rtant Satety Information nea eninin aaeain secs o ra aeea AE EA aAA E Aa aA aaea ANS ERA NAE aii Ra 3 1 Start Here 9 1 1 System Requirements erreira aaeeea ect cetteesthavdie Gneeel E DE SEEE Ea RAE an 10 1 2 Deployment Chatklist eserse ntara NEEN EEE AaS RE ARS EEEE 11 1 3 Package Conte mts genni onn eaaa a aer esa aE aE EET a aA Eana EAA A raaa betes 11 1 4 SOWING JUMPS aieri EEE E TAANE AE AE N AAE AE estes 12 1 5 Installing the Module in the Rakosi traau erken EAE ERAEN AEREA A 13 1 6 DVD COMEM Enersen nra T RA TERE EE ATEA EAE TAEAE ATTANS 16 2 Adding the Module to RSLogix 17 2 1 Creating the Module in an RSLogix 5000 Project cccceeeeeeeeeeeeeeeeteeeeneeeeeeeees 17 1 1 Creating a Module in the Project Us
34. 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 is as follows Slave Function Address in Byte Data Address Code Device Count DEC 01 16 7100 4 85 37 HEX 01 10 1B BC 04 BD 71 42 AA ProSoft Technology Inc September 1 2015 Page 121 of 156 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 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 read only half the data from the master s transmission Other slaves read all 8 bytes in this example because they know where in the packet the data starts and ignore the byte count parameter inside the Modbus packet 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 n le 3700 3701 37 25 Float Start not applicable 3702 3703 275 69
35. word address for functions 3 4 6 16 and bit address for 1 2 5 15 MBS CONTROL EventCmd_DB_ 0 to 125 Number of bit words associated with this command Data PointCount MBS CONTROL EventCmd_DB 0to3 Swap code 0 no swap 1 word swap 2 words Data SwapCode amp byte swap 3 byte swap MBS CONTROL EventCmd_DB Modbus function code 1 2 3 4 5 6 15 or 16 Data ModbusFunctionCode MBS CONTROL EventCmd_DB 0to9999 Modbus address of the target slave database Data DeviceDBAddress MBS CONTROL EventCmd_DB Data EventCmdStatusReturned Event status returned by the module ProSoft Technology Inc September 1 2015 Page 81 of 156 Using Controller Tags User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module MBS CONTROL EventCmd_ ProcessorData This array allows the processor to dynamically build Modbus commands with processor data This feature is meant for periodic execution such as resetting the clock and zeroing out counters Tag Name Range Description MBS CONTROL EventCmd_Processor 0 or 1 Toggle to send Event Command Data CmdTrigger 0 Disable 1 Enable MBS CONTROL EventCmd_Processor 0 or 1 Toggle to retrieve event status Data GetStatus Trigger 0 Disable 1 Enable MBS CONTROL EventCmd_Processor 1 or 2 Port number to be associated with Data PortNumber command MBS CONTROL EventCmd_Processor 1 to 248 Slave ID of Modbus slave Data SlaveAddress
36. 0 Read Block ID 9250 requested by processor 1 Write Block ID To be used by the processor in its next Write block 2 Program Scan Count This value is incremented each time a complete program cycle occurs in the module 3 4 Product Code These two registers contain the product code of MB6E for the MVI69E MBS module 5 6 Product Version These two registers contain the product version for the current running software 7 8 Operating System These two registers contain the month and year values for the program operating system 9 10 Run Number These two registers contain the run number value for the currently running software 11 Port 1 Command List Requests Number of requests made from this port to slave devices on the network 12 Port 1 Command List Response Number of slave response messages received on the port 13 Port 1 Command List Errors Number of command errors processed on the port These errors could be due to a bad response or command 14 Port 1 Requests Total number of messages sent out of the port 15 Port 1 Responses Total number of messages received on the port 16 Port 1 Errors Sent Total number of message errors sent out of the port 17 Port 1 Errors Received Total number of message errors received on the port 18 Port 2 Command List Requests Number of requests made from this port to slave devices on the network 19 Port 2 Command List Response Number of slave response messages received on the port 20 Port
37. 0 or 9000 Specifications of configuration file data from the processor to the module 9001 or 9001 Get configuration file from the processor to the module continued 9250 Get general module status data 9500 Set port and command active bits 9501 Get port and command active bits 9956 Pass through formatted block for functions 6 and 16 with word data 9957 Pass through formatted block for functions 6 and 16 with float data 9958 Pass through formatted block for function 5 9959 Pass through formatted block for function 15 9960 Pass through formatted block for function 22 9961 Pass through formatted block for function 23 9970 Pass through block for function 99 9972 Set module time using received time 9973 Pass module time to processor 9997 Reset status block 9998 Warm boot control block 9999 Cold boot control block Page 124 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 4 1 Event Command Blocks 1000 to 1255 2000 to 2255 Blocks 1000 to 1255 Event Port 1 Blocks 2000 to 2255 Event Port 2 Event Command blocks send Modbus commands directly from the ladder logic to one of the Master ports The Event Command is added to the high priority queue and interrupts normal polling so that this special command can be sent as soon as possible Note Overusing Event Com
38. 00 Data Hi A5 Data Hi A5 Data Lo 37 Data Lo 27 ProSoft Technology Inc Page 113 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module The data fields in responses to other kinds of queries could contain error counts or other data requested by the sub function code Page 114 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 2 11 Force Multiple Coils Function Code 15 Query This function forces each coil Modbus Ox range in a consecutive block of coils 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 forces 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 are recognized as valid for broadcast The following example forces 10 coils starting at address 20 13 HEX The two data fields CD 1100 and 00 0000 000 indicate that coi
39. 000 The COP instruction is unique for data movement commands in that it is an untyped function meaning that no data conversion is done when data is moved between controller tags with different data types that is it is an image copy not a value copy The COP instruction to move data from a floating point controller tag into an integer controller tag something you would do to move floating point values to the module is shown below COP Copy File Source FloatVriteData 0 Dest MBS DATA WriteData Q Length 2 This instruction moves one floating point value in two 16 bit integer images to MBS DATA WriteData 0 which is an integer tag For multiple floating point values increase the Length field by a factor of 2 per floating point value The COP instruction to move data from MBS DATA ReaaData 0 which is an integer tag to a floating point tag Something you would do to receive floating point values from the module is shown below COP Copy File Source MBS DATA ReadData Q Dest FloatReadData 0 Length 1 This instruction moves two 16 bit integer registers containing one floating point value image into the floating point tag For multiple values increase the Length field ProSoft Technology Inc Page 117 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 3 1 ENRON Floating Point Support Many manufacturers have implemented specia
40. 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 6 Ethernet Performance Ethernet performance in the MVIG9E MBS module can be affected in the following way e Accessing the web interface refreshing the page downloading files and so on may affect performance e Also high Ethernet traffic may impact MBS performance so consider one of these options o Use managed switches to reduce traffic coming to module port o Use ClPconnect for these applications and disconnect the module Ethernet port from the network Modbus Application Port Connection The module supports RS 232 RS 422 and RS 485 wiring to remote devices 7 6 1 RS 232 Wiring 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 is used here are the cable pin outs to connect to the port RS 232 Application Port Cable No Handshaking DB 9 Male RS 232 Device Ro 2 1 To 3 ro com 5s __ ___com ProSoft Technology Inc Page 147 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 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
41. 17 of 156 September 1 2015 Adding the Module to RSLogix MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 2 1 1 Creating a Module in the Project Using an Add On Profile Installing an Add On Profile Download the AOP file MVI69x_RevX X_AOP zip from the product webpage found at http www prosoft technology com or from the ProSoft Solutions DVD onto your local hard drive and then extract the files from the zip archive Make sure you have shut down RSLogix 5000 and RSLinx before you install the Add On Profile AOP Run the MPSetup exe file to start the Setup Wizard Follow the Setup Wizard to install the AOP 1 RSLogix 5000 Module Profiles Setup 2 E Welcome to the RSLogix 5000 Module Profiles Setup Wizard The RSLogix 5000 Module Profiles Setup Wizard provides for the installation of these groups of RSLoge 5000 Module Profiles Prosoft Technology 1769 Comm Module Profiles 1 05 1 Details Next gt Cancel Continue to follow the steps in the wizard to complete the installation i RSLogix 5000 Module Profiles Setup fo ea Program Maintenance Install or remove RSLogix 5000 Module Profiles Install RSLogix 5000 Module Profiles from media E Uninstall RSLogix 5000 Module Profiles lt Back Cancel Page 18 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Adding the Module to RSLogix Modbus Ser
42. 6 requested by the processor 1 Write Block ID To be used by the processor in its next Write block 2 Slave ID offset Index of first slave in block 3 Number of slaves in this block 4 to 61 Slave polling status data 62 to n 1 Spare Slave Status values Value Description 0 OK 1 Exceeded retry count and in error delay count mode 2 Block 3000 or 3100 ProSoft Technology Inc Page 127 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 4 5 Command Control Blocks 5001 to 5006 5101 to 5106 Blocks 5001 to 5006 Port 1 Command Control Blocks 5101 to 5106 Port 2 Command Control If the CompactLogix or MicroLogix 1500 LRP processor sends a command control block the module places the commands referenced in the block in the command queue Commands placed in the queue with this method need not have their enable bit set Only valid commands are placed in the queue Up to 6 commands can be enabled and placed in the command queue with one write request from the CompactLogix or MicroLogix 1500 LRP processor Blocks 5001 to 5006 or 5101 to 5106 Request from Processor to Module Offset Description 0 Write Block ID 5001 to 5006 for Port 1 or 5101 to 5106 for Port 2 The last digit indicates how many commands are to be placed in the command queue by this block 1 Index in the command list for the first command to be entered into the command queue appl
43. 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 Page 120 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual Example 2 master is issuing Modbus command with FC 16 with Float Flag No to transfer Float data MCM Master Internal DB 0009 float specific Module parameters Float Flag N Float Start 7100 1500 1501 85 37 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 000 000 47101 85 37 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 47001 665 535 Internal DB 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
44. 93 1756 ENBT A 1756 ENBT A Page 60 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Configuring the MVI69E MBS Using PCB Modbus Serial Enhanced Communication Module User Manual 3 Click TEST CONNECTION to verify the path is active and can successfully connect to the processor Upload Configuration File Choose Processor CiPConnect 10 1 3 188 p 1 s 0 RSWho Destination Tag MBS CONFIG FileStatus INT 0 FileSize DNT 0 o CAC32 DINTA nT FileData SINT C Program Files ProSoft Technology PCB Prolinx c Status Log Successfully Connected to Processor Checking Destination Tags Destination Tag status OK Upload Configuration File Choose Processor CiPConnect t10 1 3 188 p 1 s 0 RSWho Destination Tag MBS CONFIG FileStatus INT fi FileSize DINT 3280 CRC32 DINT Fce7722E 20 60 i OCOCSC S FileData SINT C Program Files ProSoft Technology PCB Prolinx c Test Connection j Status Log Successfully Connected to Processor Checking Destination Tags Destination Tag status OK Read from tag MBS CONFIG FileStatus Succeeded Read from tag MBS CONFIG FileSize Succeeded Read from tag MBS CONFIG FileCRC32 Succeeded Read from tag MBS CONFIG FileD ata Succeeded CRC32 validated FC87722E Upload Succeeded Close 5 PCB now displays the uploaded configuration file ProSoft Technology Inc Page 61 o
45. CONTROL ColdBoot 84 MBS CONTROL EventCmd_DBData 81 MBS CONTROL EventCmd_ProcessorData 82 MBS CONTROL GetStatus 84 MBS CONTROL PortControl 80 MBS CONTROL ResetStatus 84 MBS CONTROL SlavePoll 83 MBS CONTROL Time 83 MBS CONTROL WarmBoot 84 MBS DATA 80 MBS STATUS 47 85 MBS UTIL 86 Modbus Application Port Connection 147 Modbus Master 105 Modbus Port x Commands 52 72 73 Modbus Port x Parameters 48 Modbus Slave 105 Module Communication Error Codes 100 Module Configuration Parameters 21 36 47 Module Parameters 47 Monitoring Backplane Information 97 Monitoring Data Values in the Module s Database 99 Monitoring Network Configuration Information 96 MVI69E MBS Backplane Data Exchange 63 MVI69E MBS Controller Tags 76 MVI69E MBS User Defined Data Types 77 N Normal Data Transfer 28 65 P Package Contents 11 Pass Module Time to Processor Block 9973 144 Pass through Block for Function 99 9970 143 Pass through Formatted Block for Function 15 9959 140 Pass through Formatted Block for Function 22 9960 141 Pass through Formatted Block for Function 23 9961 142 Pass through Formatted Block for Function 5 9958 139 Pass through Formatted Block for Functions 6 and 16 with Float Data Block 9957 138 Pass through Formatted Block for Functions 6 and 16 with Word Data Block 9956 137 Pinouts 146 Port x Module Informat
46. Common Common m E ProSoft Technology Inc Page 149 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 6 2 RS 422 Wiring 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 ro TxD s ro Signal Signal Common Common RxD TxD RxD s H tw 7 6 3 RS 485 Wiring 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 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 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 polar
47. L MBS Time 14 49 01 Eig GENERAL MVI69L MBS gt BACKPLANE gt Config Refresh Counter 62 Paea Init input Image NO Block Size 7240 E Contig Input size 1242 Output Size 241 Bea RACKPLANE Read Start 0 i BE Read Count 2240 Status write start 1240 a MODBUS PORT 1 write Count _ 2240 Gl Contig Err Status Pointer 2 1 f Status C Master Command List Slave Status List i L Master Command Status Eaa DATABASE 0 asci G Decimal Hex G Float Path Ethernet 10 1 3 186 i j Diagnostics axes Connection Log Module aje SAS ml MVI69L MBS Time 14 49 59 Ela GENERAL MVI69L MBS gt BACKPLANE gt Status Refresh Counter 5 Lal Version Processor State Run Eaa NETWORK Need Configuration File NO Config Retry ny kG BP Status 10K aa BACKPLANE EiT che z0 E Config Read 2380 BEES write 22381 Eaa MODBUS PORT 1 Parsing Foa Error 0 Gd Config Event 70 Status Command 0 ii C Master Command List f C Slave Status List C Master Command Status Eg DATABASE 0 asci i O Decimal Gd Hex C Float Path Ethernet 10 1 3 186 ProSoft Technology Inc Page 97 of 156 September 1 2015 Diagnostics and Troubleshooting User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module 6 4 4 Port x Module Information The MODBUS PORT 1 and MODBUS PORT 2 menus include the following submenus e Configuration e Statu
48. MVI69E MBS Using PCB Modbus Serial Enhanced Communication Module User Manual 3 Configuring the MVIG9E MBS Using PCB In This Chapter Basic PCB FUNCHONS a ues ea Bo ta Meal EN aeina 44 Module Configuration Parameters cccccsceeeseeeeeeeeeneeeeeeeeeseeeteeeeenees 47 Downloading the Configuration File to the ProceSSol cceeceee 56 Uploading the Configuration File from the Processor cceeeeeee 59 ProSoft Configuration Builder PCB provides a quick and easy way to manage module configuration files customized to meet your application needs You build and edit the module s configuration in ProSoft Configuration Builder You use PCB to download the configuration file to the CompactLogix or MicroLogix 1500 LRP processor where it is stored in the MBS CONFIG controller tag generated by the previously exported AOI See Creating and Exporting the L5X File page 28 When the MVI69E MBS module boots up it requests the processor to send the configuration over the backplane in special Configuration Blocks See the chapter Adding the Module to RSLogix page 17 for the procedures to create a new PCB project and export a L5X file for the processor This chapter describes the module configuration parameters in detail as well as how to download the configuration to the processor using PCB ProSoft Technology Inc Page 43 of 156 September 1 2015 Configuring the MVI69E MBS Using PCB MVI69E MB
49. Module 4 3 1 Write Block Request from the Processor to the Module c cccceseseeeeeeeees 65 4 3 2 Read Block Response from the Module to the Processot 2 ccceeeeeeeeeeees 65 4 3 3 Read and Write Block Transfer SEQUENCES c cceeeeeeteeeeeeeeceeeeeceaeeeeaeeeeneeenaees 66 4 4 Data Flow Between the Module and Processor cecesseceeeenneeeeeeneeeeeenaeeeeeeaas 70 4 4 1 lave MOG Gs ites saee st cee the cee eats es Le eet eee i ee EA AT 70 4 4 2 Masten Modes s05 oui et stata Ab Go Se eas Abe et a a 72 5 Using Controller Tags 75 5 1 GOMUUOMS ACS sacs AA AE chbe ee pldat eset slew A te 75 5 1 1 MVI69E MBS Controller Tags cc ccccecceceeeeeeeeeeeeeeeceeeeeceaeeseaaeeeeeeeseaeeesaeeneaeeenaees 76 5 2 User Defined Data Types UDTS 0 eee ceeeeceeeee entree ee eeeeeeeeaeeeeeeaeeeeeeaeeeeetaeeeeee 77 5 2 1 MVI69E MBS User Defined Data Types cecsceceeeeeeseeeesneeeeeeeeseeeeseaeeteeeesaees 77 5 3 MBS Controller Tag Overview ccccccceceeeceeeeeeeeeeeceeeeecaeeesaaeseeeeeseaeeesaeeneneeenaees 79 5 3 1 MBS CONFIG ienaa aie neni in ei ie gaia 80 5 3 2 MBS DATA2is ics eninin aeaa eet eatin eel ie eee 80 5 3 3 MBS CONTROL 3 iinet gate ei ie ieee 80 5 3 4 MBS STATU Sucio a eet eatin eee tie hte 85 5 3 5 MBS UT besaivtch cece nit cistin teenies Geli eat tet 86 6 Diagnostics and Troubleshooting 87 6 1 Ethernet LED Indicators iiine aa aair iia aia Daa Taaa 88 6 2 LED Statu
50. Page 32 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Adding the Module to RSLogix Modbus Serial Enhanced Communication Module User Manual Note If you are using RSLogix version 16 or earlier the Import Configuration dialog box does not contain the Import Content tree Ei import Configuration Fn as Find Within Final Name Import Content MainTask teference AOI63_MBS Create J A0I69_MBS E Tags Local 1 1 Use Existing g Local 1 E E Add On Instructions Local 1 0 Use Existing 14 Local 1 0 Data Types l Enors Wemings MBS Create J MBS utine Rungs OK Cancel 6 Ifthe module is not located in the default slot or is in a remote rack edit the connection input and output variables that define the path to the module in the FINAL NAME column NAME column for RSLogix version 16 or less For example if your module is located in slot 3 change Local 1 in the FINAL NAME column to Local 3 Do the same for Local 1 O Note If your module is located in Slot 1 of the local rack this step is not required 7 Click OK to confirm the import RSLogix indicates that the import is in progress Importing Creating routine Prescan ProSoft Technology Inc Page 33 of 156 September 1 2015 Adding the Module to RSLogix MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module When the import is completed the new rung
51. Register space 4 Enable Modbus application port s After the module has received the module configuration the module begins communicating with other devices on the Modbus network depending on the Modbus configuration of the module ProSoft Technology Inc Page 63 of 156 September 1 2015 MVI69E MBS Backplane Data Exchange MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 4 2 Backplane Data Transfer The MVI69E MBS module communicates directly over the CompactLogix or MicroLogix 1500 LRP backplane Data is paged between the module and the CompactLogix or MicroLogix 1500 LRP 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 that you define for the module and the communication load on the module Typical updates are in the range of 1 to 10 milliseconds per block of information This bi directional data transfer 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 file This data area permits fast throughput of data between the module and the processor Applications that require smaller amounts of data or faster update t
52. S CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 3 1 Basic PCB Functions 3 1 1 Creating a New PCB Project and Exporting an L5X File Please see the chapter Adding the Module to RSLogix page 17 3 1 2 Renaming PCB Objects You can rename objects such as the Default Project and Default Location folders in the tree view You can also rename the Module icon to customize the project 1 Right click the object you want to rename and then choose RENAME 2 Type the new name for the object and press Enter 3 1 3 Editing Configuration Parameters 1 Click the sign next to the module icon to expand module information 2 Click 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 To edit a parameter select the parameter in the left pane and make your changes in the right pane Edit Modbus Port 1 s Start Active Yes Baud Rate Type Slave Protocol RTU es Parity None Data Bits 8 f Stop Bits 1 Comment RTS On 0 RTS Off 0 aE Minimum Response Delay 1 Definition Use CTS Line No Baud rate for port Internal Slave ID 1 Bit Input Offset 0 Word Input Offset 0 Output Offset 0 Holding Register Offset 0 Inter character Timeout 0 Command Error Offset 2000 Float Flag No Float Start 7000 Float Offset 2000 Reset Tag Reset All OK Cancel Note Depending on the parameter
53. S ul VIBSL MBS Time 14 30 45 GENERAL Select item within MVI69L mBS for diagnostic information i E Version aa NETWORK i Fj Config Ela BACKPLANE i F Config i E Status aa MODBUS PORT 1 i Fj Config i Fj Status EF Master Command List i E Slave Status List i E Master Command Status sa DATABASE G asci i iF Decimal GW Hex E Float Path Ethernet 10 1 3 186 Page 94 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Diagnostics and Troubleshooting Modbus Serial Enhanced Communication Module User Manual 6 4 1 Diagnostics Menu In the Diagnostics window in ProSoft Configuration Builder the Diagnostics menu is available through the Ethernet configuration port The menu is arranged as a tree structure Gj Diagnostics ax Connection Log Module BIAS djs in Tees Time 14 30 45 hs GENERAL Select item within MVI69L mBS for diagnostic information i E Version Esa NETWORK E Config Esa BACKPLANE F Config i F Status s a MODBUS PORT 1 i E Config i E Status C Master Command List E Slave Status List B Master Command Status E a DATABASE E asci O Decimal Hex i E Float Path Ethemet 10 1 3 186 ProSoft Technology Inc Page 95 of 156 September 1 2015 Diagnostics and Troubleshoot
54. TA ReadData 1 0 controller tag in RSLogix 5000 Think of it as the 160th bit of MBS internal memory MBS Internal register 10 16 bits per register 160 Use this formula for function codes 5 or 15 for writing bits also This controller tag is a 16bit signed integer This means you can only enter values of 32768 to 32767 in the tag If a value to be entered is above the 32767 but below 65535 threshold it displays as a negative value in the tag Simply subtract 65536 from the value to get the acceptable value to enter into the tag Example You need to use an Internal bit Address of 48000 but you cannot enter 48000 into the tag because it causes an error 48000 65536 17536 You enter 17536 in the Internal Address parameter for this command ProSoft Technology Inc September 1 2015 Page 53 of 156 Configuring the MVI69E MBS Using PCB User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Poll Interval 0 to 65535 seconds Specifies the minimum interval between executions of continuous commands Enable code 1 Example If you set the value to 10 the command executes no more frequently than once every 10 seconds When the command reaches the top of the command queue and 10 seconds has not elapsed it is skipped until the poll interval has expired Register Count 1 to 125 words or 1 to 800 coils Swap Code 0 1 2 3 Node Address 1 to 255 0 br
55. TS Off 0 to 65535 Sets the number of milliseconds to delay after the last byte of milliseconds data is sent before the RTS modem signal is set low Use CTS Line Yes or No Specifies if the Clear To Send CTS modem control line is to be used or not If you set the parameter to No the CTS line is not monitored If you set the parameter to YES the CTS line is monitored and must be high before the module sends 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 Page 48 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Configuring the MVI69E MBS Using PCB Modbus Serial Enhanced Communication Module User Manual Float Flag Yes or No Float Start 0 to 32767 Float Offset 0 to 9999 Specifies how the Slave driver responds 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 Note Most applications using floating point data do not need this parameter enabled If the remote Master expects to receive or sends 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 returns 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 Ma
56. ULE C 0 Local 1 I ean Ea AB 1763_MODULE_INT _ Locai 1 0 hoot fost AB 1769_MODULE_INT es onh fonal MBSModuleDef MBS CONFIG eS Mipea MBSCONFIG MBS DATA lene tee MBSDATA 2 Deci INT 600 __ MBS DATAWriteDate Deci INT 600 MBS CONTROL en ae MBSCONTROL MBS STATUS oooh food MBSSTATUS MBs uTIL fee ies MBSUTIL The controller tags in the Add On Instruction are commented in the DESCRIPTION column Notice that the DATA TYPE column displays the data types used to declare each controller tag controller tag array or controller tag structure Individual controller tags are declared with basic data types such as INT and BOOL Controller tag arrays are declared with arrays of basic data types Controller tag structures are declared with user defined data types UDTs Page 76 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Using Controller Tags Modbus Serial Enhanced Communication Module User Manual 5 2 User Defined Data Types UDTs User defined data types UDTs allow you to organize collections of data types into groupings You can use these groupings or data type structures to declare the data types for controller tag structures Another advantage of defining a UDT is that you may reuse it in other controller tag structures that use the same data types The Add On Instruction for the MVIG9E MBS module has pre defined UDTs You ca
57. Where Automation Connects MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module COMM ADAPTER September 1 2015 USER MANUAL 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 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 MVI69E MBS User Manual September 1 2015 ProSoft Technology is a registered copyright 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 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 DVD and are available at no charge from our web site http www prosoft technology com Content Disclaimer This documentation is not intended as a substitute for and is not to be used for determining suitability or reliability of these products for specific user applications It is the duty of any such user or integrator to perform the appropriate and complete risk analysis evaluation and testing of the product
58. a Block 9956 Block 9956 Pass Through Formatted Block for Functions 6 and 16 with Word Data Block If one or more of the slave ports on the module are configured for formatted Pass Through mode the module sends input image blocks with identification codes of 9956 9957 9958 or 9959 to the processor for each write command received Any incoming Modbus Function 5 6 15 or 16 command is passed from the port to the processor using a block identification number that identifies the Function Code received in the incoming command The MBS Add On Instruction handles the receipt of all Modbus write functions and to respond to commands issued by the remote Modbus Master device Note 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 retries the command on the busy port after a short delay This prevents Pass Through blocks on both ports from overwriting each other Block 9956 Request from Module to Processor Offset Description 0 Read Block ID 9956 1 Write Block ID 9956 2 N
59. al Modbus database for network requests for Modbus function 3 6 or 16 commands For example if you set the value to 50 a request for address 0 corresponds to the register 50 in the database ProSoft Technology Inc September 1 2015 Page 51 of 156 Configuring the MVI69E MBS Using PCB MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 3 2 3 Modbus Port x Commands This section defines the master command list specifications for a Master port The information in this section applies to both MBS PorRT 1 and MBS Port 2 In the ProSoft Configuration Builder tree view double click the MODBUS PORT X COMMANDS icon a Default Project Default Location 5 MVI69E MBS sa Module MBS Port 1 B Modbus Port1 Modbus Por 1 Commana amp MBS Port 2 sta Ethernet 1 n Comment E In order to interface the MVI69E MBS with Modbus slave devices you must create a command list The 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 250 commands The command list is processed from top Command 0 to bottom Read commands are executed without condition You can set write commands to execute only i
60. also includes user defined data types UDTs UDTs are collections of data types and declares the data types for the controller tag structures ProSoft Technology Inc September 1 2015 Using Controller Tags User Manual Page 75 of 156 Using Controller Tags MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module The MVI69E MBS Add On Instruction is extensively commented to provide information on the purpose and function of each user defined data type and controller tag For most applications the Add On Instruction works without needing any modification 5 1 1 MVI69E MBS Controller Tags The main controller tag structure MBS is broken down into five lower level controller tag structures MBS MBS CONFIG MBS DATA MBS CONTROL MBS STATUS MBS UTIL The five lower level controller tag structures contain other controller tags and controller tag structures Click the sign next to any controller tag structure to expand it and view the next level in the structure For example if you expand the MBS DATA controller tag structure you see that it contains two controller tag arrays MBS DATA ReadData and MBS DATA WriteData which are 600 element integer arrays by default Scope fa MVI69_MBS Show All Tags viv Name 3 4 Value e Force Styie_ Data Type Description i AOI69_MBS Gare eres AOI69_MBS_60 Local 1 C AB 1769_MOD
61. are not even multiples of eight the last characters are 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 reflects coil status at the end of the scan Some slaves 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 Node Func Byte Data Coil Data Coil Data Coil Data Coil Data Coil Error Check Address Code Count Status20 Status28 Status36 Status44 Status52 Field to 27 to 35 to 43 to 51 to 56 2 bytes 0B 01 05 CD 6B B2 OE 1B CRC The status of coils 20 to 27 is shown as CD HEX 1100 1101 Binary Reading from left to right this shows that coils 27 26 23 22 and 20 are all on The other Data Coil Status 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 7 2 5 Read Input Status Function Code 02 Query This function allows you to obtain the ON OFF status of discrete inputs Modbus 1x range in the addressed slave PC Broadcast mode is not supported with this function code In addi
62. ation Module 2 3 2 Creating and Exporting the L5X File There are two parameters in the PCB configuration that affect the format of the L5X file that is exported Before exporting the L5X file to the PC Laptop check the Block Transfer Size and Slot Number parameters 1 Expand the MVI69E MBS icon by clicking the symbol beside it Similarly expand the s Module icon Double click the E Module icon to open the Edit Module dialog box G Untitled ProSoft Configuration Builder File View Project Tools Help Default Project 5 Default Location 3 MVI69E MBS I Module 2 Module A a MBS Port 1 B Modbus Port1 FB Modbus Port 1 Commands 1 48 MBS Port 2 ge Ethernet 1 3 Comment 2 Set the Block Transfer Size to the desired size of the data blocks transferred between the module and processor 60 120 or 240 words Block transfer size information can be found starting in the section on Normal Data Transfer page 65 j Untitled ProSoft Configuration Builder File View Project Tools Help Default Project Status Information 5 Default Location All Tags Good 5 MVIG9E MBS 5 Module B Module u8 MBS Port B Modbi Edit Module E Mod a MBS Port Module Name MVI69E MBS I Block Transfer Size gfe Ethernet naan
63. ave the file to your Windows desktop 3 After the download completes double click the file to install If you are using Windows 7 right click the PCB installation file and then choose RUN AS ADMINISTRATOR Follow the instructions that appear on the screen 4 Ifyou want to find additional software specific to your MVI69E MBS enter the model number into the ProSoft website search box and press the Enter key Page 24 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Adding the Module to RSLogix Modbus Serial Enhanced Communication Module User Manual If you are installing PCB from the ProSoft Solutions DVD 1 2 3 Insert the ProSoft Solutions DVD into your computer s DVD drive and wait for the ProSoft Installation program to start If the ProSoft Installation program does not start open the Windows file Explorer navigate to the DVD and double click the ProSoft_DVD exe file Navigate to the MVI69E MBS selection using the PLATFORM and PRODUCT selections Click PROSOFT CONFIGURATION BUILDER Follow the instructions that appear on the screen 2 3 Generating the AOI L5X File in ProSoft Configuration Builder The following sections describe the steps required to set up a new configuration project in ProSoft Configuration Builder PCB and to export the L5X file for the project 2 3 1 Setting Up the Project in PCB To begin start PROSOFT CONFIGURATION BUILDER PCB Set Program Ac
64. cation Prosoft Technol Communication Prosoft Technol Communication gt 5 of 54 Module Types Found Add to Favorites C Close on Create Create Close Help Page 20 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Adding the Module to RSLogix Modbus Serial Enhanced Communication Module User Manual 3 A New Module dialog box opens Edit the NAME and SLOT for the module and click OK E New Module n General Connection Vendor Type MVIS9E MBS Modbus Serial Enhanced Communication Module Vendor ProSoft Technology Parent Local Name MVIESE_MBS Description Module Definition Series A Revision i1 Electronic Keying Compatible Module Connection Output Data Format Integer 1 0 Table Sizes 62 61 words Status Creating Cancel Help Note The I O TABLE SIZES above should reflect the Block Transfer Size parameter set in PCB Section Module Configuration Parameters page 47 A Block Transfer Size of 60 uses an I O TABLE SIZE of 62 61 words A Block Transfer Size of 120 uses an I O TABLE SIZE of 122 121 words A Block Transfer Size of 240 uses an I O TABLE SIZE of 242 241 words Applications that require smaller amounts of data or faster update times such as ControlNet networks will benefit from smaller block transfer sizes The MVI69E MBS module is now visible in the I O Configuration tree 3 6 1 0 Configuration B Bac
65. cess and Defaults i Microsoft Update W Windows Catalog Accessories Wi yy Seer Administrative Tools gt Documents gt internet Explorer E ProSoft Transport Path Editor R Settings b y Paint A ProSoft Discovery Service yp Search gt Windows Media Player Help and Support Run O Shut Down eg Start ProSoft Technology Inc Page 25 of 156 September 1 2015 Adding the Module to RSLogix MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module The PCB window consists of a tree view on the left and an information pane and a configuration pane on the right side of the window The tree view consists of folders for Default Project and Default Location with a Default Module in the Default Location folder The following illustration shows the PCB window with a new project g z Gq Untitled ProSoft Configuration Builder kaba File View Project Tools Help D gt bl amp E Default Project Name Status Information Default Location A Default Module Please Select Module Type E Default Module Unknown Product Line Last Change Never Last Download Never 4 m module Information Last Change Never Last Download Never Application Rev OS Rev Loader Rev MAC Address Configedit version 4 3 4 Build 5 Module configuration Module Module Type Module Name Default Module
66. ck 8100 Request from Processor to Module Offset Description 0 Write Block ID 8100 status data request for Event with Data Commands 1 to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Size parameter Block 8100 Response from Module to Processor Offset Description 0 Read Block ID 8100 status data for Event with Data Commands 1 Write Block ID To be used by the processor in its next Write block 2 Event command status for Port 1 O No message active 1 Waiting to execute command 2 Command complete 3 Error code for last command executed for Port 1 4 Event command status for Port 2 O No message active 1 Waiting to execute command 2 Command complete 5 Error code for last command executed for Port 2 6 to n 1 Spare Page 130 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 4 8 Get Configuration File Information Block 9000 or 9000 Block 9000 or 9000 Get Configuration File Information This block requests information from the processor about the configuration file in preparation for transferring the configuration file from the processor to the module It specifies the location in the configuration file to start copying and sending the information Block 9000 or 9000 Request from Module to Processor Offset Description 0 Read Block ID 9000 or 9000 request for config
67. cted if you implement the necessary ladder logic Note The Modbus protocol does not include standard functions 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 is hot ProSoft Technology Inc Page 111 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 2 9 Preset Single Register Function Code 06 Query This Function Code allows you to modify the contents of a Modbus 4x range in the slave This writes to a single register only 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 load the specified register with the contents specified Note Functions 5 6 15 and 16 are the only messa
68. d List Important 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 are invalid All commands containing invalid data are ignored by the module Master Command List For a port to function in Master Mode its Master Command List must be defined in Prosoft Configuration Builder refer to Modbus Port x Commands page 52 This list contains up to 310 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 Source or destination database address The module database address where data is written or read e Count The number of words or bits to be transferred up to 125 words for Function Codes 3 4 or 16 and up to 2000 bits for Function Codes 1 2 or 15 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 the device manufacturer for the maximum count supported by the particular slave device e Slave node address e Modbus Function Code This is the type of command that is issued e Source or destination address in the slave device Command Error Codes As the list is read in from the processor and as the commands are processed an error value is maintain
69. d at the end of the controller s scan the data reflect the register content at the end of the scan Some slaves limit the quantity of register content provided each scan thus for large register quantities multiple transmissions are 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 Node Function Byte High Low High Low High Low Error Check Address Code Count Data Data Data Data Data Data Field 2 bytes 0B 03 06 02 2B 00 00 00 64 CRC ProSoft Technology Inc Page 109 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 2 7 Read Input Registers Function Code 04 Query This function retrieves the contents of the controller s input registers from the Modbus 3x range These locations receive their values from devices connected to the I O structure and can only be referenced not altered from within the controller The addressing allows retrieving up to 125 registers 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 below requests the contents of register 30009 in slave number 11 Note This is the structure of the message being sent out to the Modbus network The byt
70. dding the Module to RSLogix Modbus Serial Enhanced Communication Module User Manual 10 Associate the I O connection variables to the correct module in the corresponding slot number The default values are Local 1 l and Local 1 O You must edit these values if the card is placed in a slot location other than slot 1 Local 1 x means the card is located in slot 1 Since the second card is placed in slot 2 change the FINAL NAME to Local 2 1 and Local 2 0 Also you can append a _2 at the end of the FINAL NAME of AOI69_ MBS and MBS arrays as shown below E import Configuration Fra Jas Find Within Final Name Import Content amp MainTask Configure WET ECEE a MainProgram MainRoutine R h ainfioutine Rung aE ADI69e MBS Create ADIGSE_MBS_2 Tags E i Local 1 Use Existing 4 Local2 fe Add On Instruction i Local 1 0 Use Existing Local2 0 Data Types MBS_00q Create _ mes_2 ic Errors Warnings ProSoft Technology Inc Page 41 of 156 September 1 2015 Adding the Module to RSLogix User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module 11 Click OK i RSLogix 5000 My_Controller in MVI169_MBS ACD 1769 L35E 20 12 MainProgram MainRoutine E File Edit View Search Logic Communications Tools Window Help Qe amp tam oo MAAAR QQ foc Offline J m RUN No Forces a S No Edits a Evo Controller Organizer B Controller My_Con
71. e 4 3 3 Read and Write Block Transfer Sequences The Read Block ID is an index value that determines the location where the data is 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 is as follows R1W1 gt R2W2 gt R3W1 gt R1W2 gt R2W1 gt 5R38W2 gt R1W15 This sequence continues 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 MVI69E Module 0 Read Data 480 Write Data 960 Database address 0 to 479 is continuously transferred from the module to the processor Database address 480 to 959 is continuously transferred from the processor to the
72. e above example the a NON Enron Daniel supporting slave s Modbus command that is transmitted inside the Modbus packet is as follows Slave Address Function Code Byte Count Data DEC 01 3 4 32 75 HEX 01 03 04 00 00 42 03 ProSoft Technology Inc Page 123 of 156 September 1 2015 Reference User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module 7 4 Function Blocks Data contained in this database is paged through the input and output images by coordination of the CompactLogix or MicroLogix 1500 LRP ladder logic and the MVI69E MBS module s program Each block transferred from the module to the processor or from the processor to the module contains a block identification code that describes the content of the block Block ID Range Description 1000 to 1166 Get input image data for initialization 1 to 999 Dummy block 0 Read or write data for small data sets 1 to 167 Read or write data 1000 to 1255 Event Command Port 1 2000 to 2255 Event Command 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 5001 to 5006 Port 1 Command Control 5101 to 5106 Port 2 Command Control 8000 Add Event with data for Port 1 8001 Add Event with data for Port 2 8100 Get Event with data status 900
73. e into a web browser or use the following steps in PCB 1 Inthe PCB Diagnostics window click the SET UP CONNECTION button ES a Td Click to set up connection 2 Inthe Connection Setup dialog box click BROWSE DEVICE S to start ProSoft Discovery Service 3 Right click the module icon and choose VIEW MODULE S WEBPAGE to launch your default browser and display the module s webpage E H Prosoft Discovery Service an Esn 00000001 Sn 0000F423 CIETE E NOT CONFIGURED AGED 7 Assign Temporary IP Device Details Sn 000000 Remove Temporary IP View module s webpage Select for PCB Click the search icon to begin the browse ProSoft Technology Inc Page 101 of 156 September 1 2015 Diagnostics and Troubleshooting User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module TECHNOLOGY Oe FUNCTIONS Modbus Module for CompactLogix Firmware MVI69L MBS Upgrade gt Set Date amp Time gt Reboot Modul sapien is Module Name Ethernet Address MAC Technical IP Address Support Product Revision Homepage Firmware Version Date Serial Number Status Uptime MVI69L MBS 00 0D 8D 00 28 80 10 1 3 186 1 01 006 2 6 33 7 7 11 28 12 01 00000001 Running 6 days 00 02 35 RESOURCES ProSoft Technology Modbus Organization Page 102 of 156 ProSoft Technology Inc September 1 2015
74. e these parameters See Configuration Parameters Common to Master and Slave page 48 Parameter Value Minimum 0 to 65535 Response Delay milliseconds Description 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 Internal Slave ID 1 to 247 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 Bit Input Offset 0 to 9998 Specifies the offset address into the internal Modbus database for network requests for Modbus function 2 commands For example if you set the value to 150 an address request of 0 returns the value at register 150 in the database Word Input Offset 0 to 9998 Output Offset 0 to 9998 Holding Register 0 to 9998 Offset Specifies the offset address into the internal Modbus database for network requests for Modbus function 4 commands For example if you set the value to 150 an address request of 0 returns the value at register 150 in the database Specifies the offset address into the internal Modbus database for network requests for Modbus function 1 5 or 15 commands For example if you set the value to 100 an address request of 0 corresponds to register 100 in the database Specifies the offset address in the intern
75. e values below are in hexadecimal display Node Function Data Start Data Start Data Number Data Number Error Check Address Code Point High Point Low of Points High of Points Low Field 2 bytes 0B 04 00 08 00 01 CRC 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 reflect the register content at the end of the scan Each PC limits the quantity of register contents provided each scan thus for large register quantities multiple PC scans are required and the data provided is from sequential scans In the example below the register 30009 contains the decimal value 0 Node Function Byte Count Data Input Data Input Error Check Address Code Register High Register Low Field 2 bytes 0B 04 02 00 00 CRC Page 110 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 2 8 Force Single Coil Function Code 05 Query This Function Code forces a single coil Modbus
76. ecimal Write tothe module Read Write 5 3 MBS Controller Tag Overview This and the following sections describe the MBS controller tags in detail Tag Name Description MBS CONFIG Configuration information MBS DATA MBS input and output data transferred between the processor and the module MBS CONTROL Governs the data movement between the PLC rack and the module MBS STATUS Status information MBS UTIL Generic tags used for internal ladder processing DO NOT MODIFY ProSoft Technology Inc Page 79 of 156 September 1 2015 Using Controller Tags MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 5 3 1 MBS CONFIG When ProSoft Configuration Builder PCB downloads the configuration file from the PC to the processor the processor stores the configuration file data in the MBS CONFIG FileData array Its CRC is also included in this array You cannot edit this array directly You must use PCB to edit the module configuration since PCB calculates a unique CRC to protect data integrity Any change to the configuration parameters directly in this array will not match the calculated CRC Tag Name Description MBS COMFIG FileData This parameter contains the MBS configuration data after it has been downloaded from PCB It is displayed in ASCII format Note MBS configuration changes cannot be made directly in this array the configuration must be downloaded with PCB
77. ed in the module for each command The definition for these command error codes is listed in Communication Error Codes page 100 You can view the command error codes through the Ethernet diagnostics port refer to Diagnostics and Troubleshooting page 87 They can also be transferred from the module s database to the processor To transfer the Command Error List to the processor set the Command Error Offset parameter in the port configuration to a module database address that is in the module s Read Data area refer to Additional Configuration Parameters as Master page 50 ProSoft Technology Inc Page 73 of 156 September 1 2015 MVI69E MBS Backplane Data Exchange MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module Note The Command Error List must be placed in the Read Data area of the database so it can be transferred to the processor in the input image Page 74 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module 5 5 1 Using Controller Tags In This Chapter e Controller TaGSe 2 sst2 iach essa tes selon hk oa Eas Bos 2d se aa alacant ders 75 User Defined Data Types UDTS oe eeseeeeesneeeeeeeeeerenaeeeeneneeeeee 77 MBS Controller Tag Overview ccescceesceeeneeeeneeeeeeeeeeeeeeeeeeeeeteneeenees 79 Controller tags are a feature of the RSLogix software and are part of t
78. eeeecaaeeeeaaeseeeeeseeeesaeeeeaeeseeneess 145 7 4 22 Cold boot Control Block 9999 ccceeeceeeseeeeeeeceneeeeaeeeeeaeseeeeeseaeeesaeeeeaaeseeeeesaas 145 7 5 Ethernet Port Connection cccccceeeeeeeeeeeeeaeeeeeee scenes ceaeeeeaaeseeeeeseaeeesaeeseaeeseeneess 146 7 5 1 Ethernet Cable Specifications cccccccccceeeeeceeseeceeeeeceaeeeseaeeeeeeeseeessaeeeeaeeseeeeess 146 7 6 Modbus Application Port Connection 0 ccccceeeeeeeeeeeeeeaeeeeeeeceeeeesaeeesaaeeteneeeeaees 147 7 6 1 RS 232 WINN Geaa eioan Saget deed peat erties eed peel eee peed 147 7 6 2 RS422 WINNI oinarrie pcan cee sce dade pleut aap e a aa a eaaa apaa as 150 7 6 3 RS485 WINN sed chive vec rte eaaa dade a e e a a ea eee aeaa aay 150 7 6 4 DB9 to RJ45 Adaptor Cable 14 eccceccceceeeeeseceeeeeceaeeeeeaeeeeeeeseeeesaeeeeeeeeeeees 151 8 Support Service amp Warranty 153 8 1 Contacting Technical SUPPOSt cceeceeeseeeeeeeceeeeeeaeeeeeaeseeeeeseaeeesaaeeeeaeeseeeeeeaas 153 8 2 Warranty InarmatoMs ossai aa E REE eE DEEA ET AANA 154 Index 155 ProSoft Technology Inc September 1 2015 Page 7 of 156 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module User Manual ProSoft Technology Inc Page 8 of 156 September 1 2015 MVI69E MBS CompactLogix Platform Start Here Modbus Serial Enhanced Communication Module User Manual 1 Start Here In This Chapter System Requirements ccesce
79. eeenneeeeeenaeeeseeaeeeeeenaeeeeeeaas 101 7 Reference 103 7 1 Product Specifications cccceecceceeececeeeeeeaeeeeneeceeeeeseaeeeeaaesdeneeceaeeseaeedeaaeeneneeeaas 103 1 1 Hardware Specifications cccccccceseeceeeeeceneeeeaeeeeeeeseeeeeaaeeseaeeseeeeeseaeeesaeeeeneeeaas 104 1 2 General Specifications Modbus Master Slave ccccccseeeseseeeeeeeeeeeneeeeeees 104 7 2 About the Modbus Protocol cceceeeeeneeeeeeeneeeeeeaeeeeeeaeeeeeeaeeeeeeaeeeeeeaeeeeneaas 105 7 2 1 Modbus Master edicia E E EE ietaaitheeatie Aenetity net lio 105 7 2 2 M db s Slav neiaa eiaa anae a aa a ea adh latte ea aai aaa ets lean eats 105 7 2 3 Function Codes Supported by the Module ccccccceseeeeeeeeeeeeeeeseeeeeneeeeeeeeeeas 106 7 2 4 Read Coil Status Function Code 01 sesseesessesesssisssiessiesrissrissrissrissrinsrnsrrne 106 7 2 5 Read Input Status Function Code 02 cccecccceeceeeeeeeeeeeeeeeeeeeeeeeeeaeeseeeeeeeeeeas 107 7 2 6 Read Holding Registers Function Code 08 c ccccccceseeeeeeeeeeeeeeeeeeteneeeeeeeesas 109 7 2 7 Read Input Registers Function Code 04 cecccecseeeeeeeeeeeeeeeeeeeeeeaeeeeeeeeeeeesans 110 Page 6 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Contents Modbus Serial Enhanced Communication Module User Manual 7 2 8 Force Single Coil Function Code 05 cccceeesseceeeeeeeeeeeseeeeeeeeeseeeeesaeeeeeeseeneess
80. eesceeeseeeeneeeeeeeeeseeeeeeeseseeeeeeeeeeeeeeeeeaees 10 Deployment Checklist ceeeeesceceseeceneeeeeeseaeeseaeeeeaeeseaeeseaeeeeeeeeeaees 10 w Package Contents ens inn niin alana 11 Setting JUMpers sicciseie Hh ede hie Mieke ee eee 12 Installing the Module in the Rack esseeseeeessneeeeeeeneeeeesneeeereneeeeee 13 w DV D GOntents iit ceiecta teehee aaa aaa a he eS eet 16 To get the most benefit from this User Manual you should have the following skills e Rockwell Automation RSLogix software launch the program configure ladder logic and transfer the ladder logic to the processor e Microsoft Windows install and launch programs execute menu commands navigate dialog boxes and enter data e Hardware installation and wiring install the module and safely connect Modbus and CompactLogix or MicroLogix 1500 LRP devices to a power source and to the MVI69E MBS module s application port s ProSoft Technology Inc Page 9 of 156 September 1 2015 Start Here MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 1 1 System Requirements The MVI69E MBS module requires the following minimum hardware and software components e Rockwell Automation CompactLogix or MicroLogix 1500 LRP processor firmware version 10 or higher with compatible power supply and one free slot in the rack for the MVI69E MBS module Important The MVI69E MBS module has a power s
81. egister storage Deta Master Command List Configuration 1 I Event Event Command 1 Command Command Control i i 1 1 1 1 i Step Description 1 Upon module boot up the Master driver obtains configuration data from the MBS controller tags The configuration data retrieved includes port configuration and the Master Command List Special Commands can be issued directly from the CompactLogix or MicroLogix 1500 LRP processor using Event Commands and Command Control These 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 and or write commands to slave nodes on the network If the Master driver is writing data to a slave the data for the write command is retrieved from the module s internal database 3 Once the specified slave has successfully processed the command it returns a response message to the Master driver for processing Page 72 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform MVI69E MBS Backplane Data Exchange Modbus Serial Enhanced Communication Module User Manual Step Description 4 Data received from a slave in response to a read command is stored in the module s internal database 5 Status is returned to the processor for each command in the Master Comman
82. eived message and performing the proper control operation as expected by the Master device The processor must then respond to the Pass Through block with a write block with the following format Block 9957 Response from Processor to Module Offset Description 0 Write Block ID 9957 1ton Spare Length in words n 2 This informs the module that the command has been processed and can be cleared from the Pass Through queue Page 138 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 4 15 Pass through Formatted Block for Function 5 9958 Block 9958 Pass Through Formatted Block for Function 5 Block 9958 Request from Module to Processor Offset Description 0 Read Block ID 9958 1 Write Block ID 9958 2 Number of word registers in Modbus data set 3 Starting address for Modbus data set 4to n 1 Data Length in words n 2 Where n 60 120 or 240 depending on the Block Transfer Size parameter The ladder logic is 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 Block 9958 Response from Processor to Module Offset Description 0 Write Block ID 9958 1 ton Spare Length in words n 2
83. ese parameters See Configuration Parameters Common to Master and Slave page 48 Parameter Response Timeout Value 0 to 65535 milliseconds Description Specifies the command response timeout period in 1 millisecond increments This is the time that a port configured as a Master waits 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 specify depends on the communication network used and the expected response time plus or minus of the slowest device on the network Retry Count 0 to 10 Specifies the number of times a command is retried if it fails Minimum Command Delay 0 to 32767 milliseconds Specifies the number of milliseconds to wait between receiving the end of a slave s response to the most recently transmitted command and the issuance of the next command You can use this parameter to place a delay after each command to avoid sending commands on the network faster than the slaves can receive them This parameter does not affect retries of acommand as retries are issued when a command failure is recognized Error Delay Counter Inter character Timeout Command Error Offset 0 to 60000 0 to 65535 milliseconds 1 to 9998 Specifies the number of poll attempts to be skipped before trying to re establish communications with a slave that has failed to respond to a command within the time li
84. f 156 September 1 2015 MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module Page 62 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform MVI69E MBS Backplane Data Exchange Modbus Serial Enhanced Communication Module User Manual 4 MVI69E MBS Backplane Data Exchange In This Chapter General Concepts of the MVIG69E MBS Data Transfer 63 Backplane Data Transfer ceescceeesseceeeeeeeeeeeesaeeeseseneeeeeeeseneeseeerees 64 lt lt Normal Data ranstet s c2ssccaicn a eee oe 65 Data Flow Between the Module and ProceSsot ccccsseesereeeees 70 4 1 General Concepts of the MVI69E MBS Data Transfer The MVI69E MBS module uses ladder logic to communicate with the CompactLogix or MicroLogix 1500 LRP processor across the backplane The ladder logic handles the module data transfer configuration data transfer special block handling and status data receipt The following topics describe several concepts that are important for understanding the operation of the MVI69E MBS module This is the order of operations on power up 1 The module begins the following logical functions o Initialize hardware components o Initialize CompactLogix or MicroLogix 1500 LRP backplane driver o Test and clear all RAM 2 Read configuration from the CompactLogix or MicroLogix 1500 LRP processor through ladder logic 3 Allocate and initialize Module
85. f the data in the write command changes Conditional Enable If the register data values in the command have not changed since the command was last issued the command is not executed You can use this feature to optimize network performance The MVI69E MBS Master and Slave communication drivers support several data read and write commands When a command is configured the type of data bit 16 bit integer 32 bit float etc and the level of Modbus support in the slave equipment needs to be considered For information on floating point support please See Floating Point Support on page Page 52 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Configuring the MVI69E MBS Using PCB Modbus Serial Enhanced Communication Module User Manual Parameter Value Description Enable 0to4 This field defines whether the command is to be executed under certain conditions Disabled 0 The command is disabled and is not executed in the normal polling sequence Continuous 1 The command is executed each scan of the command list if the Poll Interval see below is set to zero If the Poll nterval is set to a nonzero value the command is executed when the interval timer expires Conditional 2 For write commands only The command executes only if the internal data associated with the command changes Bit Word Override upon Error 3 For read commands only If a command error occurs the module o
86. g 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 Block 9959 Response from Processor to Module Offset Description 0 Write Block ID 9959 1 to n 1 Spare This informs the module that the command has been processed and can be cleared from the Pass Through queue Page 140 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 4 17 Pass through Formatted Block for Function 22 9960 Block 9960 Pass Through Formatted Block for Function 22 Block 9960 Request from Module to Processor Offset Description 0 Read Block ID 9960 1 Write Block ID 9960 2 Number of word registers in Modbus data set 3 Starting address for Modbus data set 4to n 1 Data Length in words n 2 Where n 60 120 or 240 depending on the Block Transfer Size parameter The ladder logic is 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 Block 9960 Response from Processor to Module Offset Description 0 Write Block ID 9960 1 ton Spare Length in words n 2 This informs the module that the c
87. ges that are recognized as valid for broadcast Note This is the structure of the message being sent out to the Modbus network The byte values below are in hexadecimal display The example below is a request to write the value 3 to register 40002 in slave 11 Node Function Data Start Bit Data Start Preset Data Preset Data Error Check Address Code High Bit Low Register High Register Low Field 2 bytes 0B 06 00 01 00 03 CRC Response The response to a preset single register request is to re transmit the query message after the register has been altered Node Function Data Register Data Register Preset Data Preset Data Error Check Address Code High Low Register High Register Low Field 2 bytes 0B 06 00 01 00 03 CRC Page 112 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 2 10 Diagnostics Function Code 08 This function 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 I
88. h 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 cause an Exception Response After the module accepts the command the data is immediately transferred to or from the module s internal database On a read command the data is read from of the database and a response message is built On a write command the data is written directly into the database and a response message is built After Steps 2 and 3 have been completed either a normal response message or an Exception Response message is sent to the Master Counters are available in the Status Block to permit the ladder logic program to determine the level of activity of the Slave driver Page 70 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform MVI69E MBS Backplane Data Exchange Modbus Serial Enhanced Communication Module User Manual In Slave Pass Through mode write commands from the Master are handled differently than they are in Normal mode In Slave Pass Through mode all write requests are passed directly to the processor and data is not written directly into the module s database This mode is especially useful when 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 s
89. hat 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 Adar 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 ignores the Float Flag Y and treat data as composed of 1 word 2 bytes 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 device Reg Count Tells the master how many data points to send to the slave Two counts mean two floating points with Float Flag Y and the Addr in Dev greater than or equal to the Float Start Parameter Swap Code Tells the 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 ProSoft Technology Inc Page 119 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module In the above example the master s Modbus command to transmit inside the Modbus packet is as follows Slave Function Addressin RegCount Byte Count Data Address Code Device DEC 01 16 7100 2 8
90. hat the information field contain the initial coil address to be read Starting Address and the number of locations that are 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 following table is a sample read output status request to read coils 0020 to 0056 37 coils from slave device number 11 Note This is the structure of the message being sent out to the Modbus network The byte values below are in hexadecimal display Node Function Data Start Data Start Number of Number of Error Check Address Code Point High Point Low Points High Points Low Field 2 bytes 0B 01 00 13 00 25 CRC Page 106 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual Response An example response to Read Coil Status is as shown in the table below 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 is 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 follows For coil quantities that
91. he MVI69E MBS Add On Instruction Refer to the section Adding the Module to RSLogix page 17 for information on importing the Add On Instruction into RSLogix Controller Tags Data related to the MVI69E MBS is stored in the ladder logic in variables called controller tags You use controller tags to manage communication between the MVI69E MBS module and the CompactLogix or MicroLogix 1500 LRP processor e View the read and write data being transferred between the module and the processor e View status data for the module e Set up and trigger special functions e Initiate module restarts Warm Boot or Cold Boot Individual controller tags can be grouped into collections of controller tags called controller tag structures A controller tag structure can contain any combination of e Individual controller tags e Controller tag arrays e Lower level controller tag structures The controller tags are included in the MVI69E MBS Add On Instruction ladder logic After you import the Add On Instruction you can find the controller tags in the Controller Tags subfolder located in the Controller folder in the Controller Organizer pane of the main RSLogix 5000 window This controller tag structure is arranged as a tree structure Individual controller tags are found at the lowest level of the tree structure Each individual controller tag is defined to hold data of a specific type such as integer or floating point data The Add On Instruction
92. hows the data flow for a slave port with pass through enabled I Processor Memory _ _ Backplane Interface MBS Module 1 User Data l Database Modbus Files Addresses Addresses 0 m 40001 1 I I 1 i Register I r storage i l Pass Through Slave Mode 1 1 1 l 1 1 1 1 i i 1 Status A Module c i Status l 1 l 1 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 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 a special Block ID code to identify it as a Pass Through Write Block and substitutes this special 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 WriteData controller tag array at an address that corresponds to the Modbus Address received in the write command d During normal backplane communications the data from the WriteData array including the data
93. ial Enhanced Communication Module User Manual Click FINISH when complete The AOP is now installed in RSLogix 5000 You do not need to reboot the PC 4 RSLogix 5000 Module Profiles Setup RA RSLogix 5000 Module Profiles Setup Complete The RSLogix 5000 Module Profiles Setup Wizard configuration tasks have completed Click Finish to exit the wizard I Display RSLogix 5000 Module Profiles Release Notes Using an Add On Profile 1 In RSLogix 5000 expand the I O CONFIGURATION folder in the Project tree Right click the appropriate communications bus and and then click NEW MODULE amp 1 0 Configuration Backplane CompactLogix System fa 1769 L35E My_Controller 1769 L35E Ethernet Port LocalENB ay Ethernet aj New Module Discover Modules Cut Ctri X Copy Ctrl C 1 Paste Ctrl V Delete Del Cross Reference Ctrl E Properties Alt Enter Print ProSoft Technology Inc Page 19 of 156 September 1 2015 Adding the Module to RSLogix User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module This opens the Select Module Type dialog box In the Module Type Vendor Filters area uncheck all boxes except the PROSOFT TECHNOLOGY box A list of ProSoft Technology modules appears in the dialog box Select Module Type n Catalog Module Discovery Favorites Analog Communication Digital Other Specialty EKEAAKRK Module Type Category Filters Clear Fi
94. icroLogix 1500 LRP processor interfaces the input and output image data with data defined in the Controller Tags All data used by the module is stored in its internal database This database is defined as virtual MBS data tables with addresses from 0 to the maximum number of points for each data type 4 3 Normal Data Transfer 4 3 1 Write 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 Size parameter refer to the configuration file The Write Block ID is an index value that determines the location in the module s database where the data is placed 4 3 2 Read 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 65 of 156 September 1 2015 MVI69E MBS Backplane Data Exchange MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Modul
95. ies to blocks 5001 to 5006 and 5101 to 5106 2 Index for the second command applies to blocks 5002 to 5006 and 5102 to 5106 3 Index for the third command applies to blocks 5003 to 5006 and 5103 to 5106 4 Index for the fourth command applies to blocks 5004 to 5006 and 5104 to 5106 5 Index for the fifth command applies to blocks 5005 to 5006 and 5105 to 5106 6 Index for the sixth command applies to blocks 5006 and 5106 7 to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Size parameter Blocks 5001 to 5006 or 5101 to 5106 Response from Module to Processor Offset Description 0 Read Block ID 5001 to 5006 or 5101 to 5106 requested by the processor 1 Write Block ID To be used by the processor in its next Write block 2 Number of commands in the block placed in the command queue 3 Number of commands in the command queue for the specified port 4to n 1 Spare Page 128 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 4 6 Add Event with Data Blocks 8000 8001 Block 8000 Add Event with Data for Port 1 Block 8001 Add Event with Data for Port 2 The 8000 series blocks are similar to the 1000 and 2000 series blocks The 8000 series blocks source the command data from the processor instead of from the module s database Block 8000 or 8001 Request from Pr
96. ile 19 Using Controller Tags 75 Using the Diagnostics Menu in PCB 93 WwW Warranty Information 154 Write Block Request from the Processor to the Module 65 Page 156 of 156 ProSoft Technology Inc September 1 2015
97. ily open and lock into place DIN rail clasp DIN rail gt DIN rail clasp DIN rail clasp DIN rail gt DIN rail clasp 1 6 DVD Contents The DVD contains all the necessary files for the module including the User Manual and the ProSoft Configuration Builder PCB software It also may contain module specific configuration files such as the RSLogix 5000 Add On Profile and sample Add On Instruction where applicable to the module If the DVD is not present please visit http www prosoft technology com for the latest files Page 16 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Adding the Module to RSLogix Modbus Serial Enhanced Communication Module User Manual 2 2 1 Adding the Module to RSLogix In This Chapter Creating the Module in an RSLogix 5000 Project cceceeseeeeeeetees 17 Installing ProSoft Configuration Builder eeeceeeeeeneeeeeeeeeteeeeeeeeenees 24 Generating the AOI L5X File in ProSoft Configuration Builder 25 Creating a New RSLogix 5000 Project ceeecceeeeeeeeeeeeneeeeneeeeeeeeeaees 30 Importing the Add On INStruCtiOn ceccceeeeeeeeeeeeeeeeeneeeeeeeeeneeeneeeeeaees 31 Adding Multiple Modules in the Rack Optional cesesseeeeeeeees 35 To add the MVI69E MBS module in RSLogix 5000 you must 1 2 4 Create a new project in RSLogix 5000 Add the module to the RSLogi
98. imes such as ControlNet networks will benefit from smaller block transfer sizes 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 The following illustration shows the data transfer method used to move data between the CompactLogix or MicroLogix 1500 LRP processor the MVI69E MBS module and the Modbus Network CompactLogix Processor MVI69E MBS Module 1 Processor Controller Tags Status i Ladder Logic aed Herts ese Module s SO CEES TT Input Image Internal lt 3 an Database data areas in Read Data the processor MBS Mi a4 Port Write Data j gt Ladder logic Master Drivers PE transfers data bdar kea isas from gt processor Output Image togic Pe Special data areas to Se Control output image Slave etworn Blocks gt Driver lt gt lt o Logic Page 64 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform MVI69E MBS Backplane Data Exchange Modbus Serial Enhanced Communication Module User Manual All data transferred between the module and the processor over the backplane is through the input and output images Ladder logic in the CompactLogix or M
99. ing User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module 6 4 2 Monitoring Network Configuration Information In the Diagnostics window in Prosoft Configuration Builder click NETWORK and then click CONFIG to view the Ethernet network configuration information Gj Diagnostics Connection Log Module la SAS ils amp MVIGSL MBS Gg GENERAL i G Version Baa NETWORK Be cos Eaa BACKPLANE Config Status E a MODBUS PORT 1 Config Status Master Command List Slave Status List Master Command Status TABASE ASCII Decimal Hex Float Be DODE Wooo Path Ethernet 10 1 3 186 MVI69L MBS gt NETWORK gt Config Link Status Link Lost Auto negotiation Speed Duplex ETHERNET ADDRESS MAC IP Address Sub Net Mask Gateway ILINK OK 33 ON 7100 FULL DUPLEX 00 0d 8d 00 28 80 210 1 3 186 2255 255 255 0 0 0 0 0 Time 14 36 00 Refresh Counter 3 Page 96 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Diagnostics and Troubleshooting Modbus Serial Enhanced Communication Module User Manual 6 4 3 Monitoring Backplane Information In the Diagnostics window in ProSoft Configuration Builder click BACKPLANE to view the backplane information This menu has two submenus e CONFIGURATION e STATUS i Diagnostics Connection Log Module afa SAS ill P MVIBS
100. ing an Add On Profile cceceeeeseeereees 18 2 Creating a Module in the Project Using a Generic 1769 Module Profile 22 2 2 Installing ProSoft Configuration Builder ccccceccceceeeeeeseeeeeeeeseeeeeseaeeeseeeeeneeeaas 24 2 3 Generating the AOI L5X File in ProSoft Configuration Builder ccee 25 2 3 1 Setting Up the Project in PCB ccececeeeseeceeeeeeeeeeeeeeeceaeeeeeaeeeeeeeseeeeseaeeeeeeseeeees 25 2 3 2 Creating and Exporting the L5X File ccceeceeeeeeeeeeeeeeeeeeeaeeeeeeeseeeeesaeeeeeeeseeeees 28 2 4 Creating a New RSLogix 5000 Project ecceseeeeeeeeeceeeeeeeaeeeeeeeseeeesaeeeeaeeseeeees 30 2 5 Importing the Add On Instruction ccecececeeeeeeeeeeeeeeeceaeeeeeaececeeeseeeesaeeeeaaeseeneeeaas 31 2 6 Adding Multiple Modules in the Rack Optional cccccsseeeeeeeeeeeeeeeeeeeeeesaees 35 2 6 1 Adding another module in PCB ccccceceeeceeseeeeeeeeeeeeeesaeeeeaaeseeeeeseaeeesaeeseneeenaees 35 2 6 2 Adding Another Module in RSLogix 5000 ececeeeeeeeeeeeeeeeeeseeeeeseaeeeeaeeseeeeesaees 37 3 Configuring the MVI69E MBS Using PCB 43 3 1 Basic POB FUNCtOMS ersada tuada nd tenes ake uedetd tucson bi cusustadvaesatieedane sun peecbent 44 3 1 1 Creating a New PCB Project and Exporting an L5X File ecceeeeeeeeeeeeteeeeeeees 44 3 1 2 Renaming PCB Objects cccecceeeneeceeeeeeaeeeeaeeeeeeeeceaeeeeaaeseeneeseeeesaee
101. ion 98 Preset Multiple Registers Function Code 16 116 Preset Single Register Function Code 06 112 Printing a Configuration File 46 Product Specifications 103 R Read and Write Block Transfer Sequences 66 Read Block Response from the Module to the Processor 65 Read Coil Status Function Code 01 106 Read Holding Registers Function Code 03 109 Read Input Registers Function Code 04 110 Read Input Status Function Code 02 107 Reference 103 Renaming PCB Objects 44 Reset Status Block 9997 145 RS 232 Modem Connection Hardware Handshaking Required 148 Null Modem Connection Hardware Handshaking 148 Null Modem Connection No Hardware Handshaking 149 RS 232 Wiring 147 RS 422 Wiring 150 RS 485 and RS 422 Tip 150 RS 485 Wiring 150 S Set Port and Command Active Bits Block 9500 135 Setting Jumpers 12 Setting Up a Temporary IP Address 90 Setting Up the Project in PCB 25 Slave Mode 48 70 Slave Polling Disable Blocks 126 Slave Polling Enable Blocks 3001 3101 126 Slave Polling Status Blocks 3002 to 3006 3102 to 3106 127 Standard MODBUS Protocol Exception Code Errors 100 Start Here 9 Sub function Codes Supported 113 Support Service amp Warranty 153 System Requirements 10 37 T Troubleshooting 89 U Uploading the Configuration File from the Processor 59 User Defined Data Types UDTs 77 Using an Add On Prof
102. ion file transfer MBS UTIL ConfigFile WordLength Length of configuration data to be included in block transfer MBS UTIL ConfigFile BlockCount Not used MBS UTIL ConfigFile FileOffset Offset in configuration file to use as a starting point for copying over configuration data MBS UTIL ConnectionInputSize Holds size of the Connection Input array MBS UTIL BlockTransferSize Size of the backplane transfer blocks MBS UTIL SlotNumber Slot number of the module in the rack MBS UTIL EventBlockID Holds Block ID for Event Command MBS UTIL EventCmdPending Keeps an Event Command message from being sent to the module before the previous Event Command is completed MBS UTIL PollStatusOffset Offset in slave status data array to use as a starting point for copying over slave status data MBS UTIL CmdsAddedToQueue Number of Command Control messages added to the command queue MBS UTIL CmdControlBlockID Holds Block ID for Command Control MBS UTIL CmdCntrlPending Keeps a Command Control message from being sent to the module before the previous Command Control is completed MBS UTIL EventDataCmdPending Keeps an Event Command with Data message from being sent to the module before the previous Event Command with Data is completed MBS UTIL BootTimer Timer used to clear both cold and warm boot requests MBS UTIL PassThru Array Holds variables used for processing pas
103. irmware cannot be overwritten The module is shipped with the Setup jumper OFF If an update of the firmware is needed apply the Setup jumper to both pins Page 12 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Start Here Modbus Serial Enhanced Communication Module User Manual The following illustration shows the MVI69E MBS jumper configuration with the Setup Jumper OFF SETUP SETUP SHUNT Lp O NOT JUMPERED 1 5 installing the Module in the Rack Make sure the processor and power supply are installed and configured before installing the MVI69E MBS module Refer to the Rockwell Automation product documentation for installation instructions Warning Please follow all safety instructions when installing this or any other electronic devices Failure to follow safety procedures could result in damage to hardware or data or even serious injury or death to personnel Refer to the documentation for each device to be connected to verify that suitable safety procedures are in place before installing or servicing the device After you verify the jumper placements insert the MVI69E MBS into the rack Use the same technique recommended by Rockwell Automation to remove and install CompactLogix or MicroLogix 1500 LRP modules 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 proce
104. ities differently Page 150 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 6 4 DB9 to RJ45 Adaptor Cable 14 5 Cable Assembly eg J1 J2 RS 232 RS 485 RS 422 J1 Vv V V J2 A pa TXRXD R a O00000 OOQOOOOQO 12345678 87654321 ProSoft Technology Inc Page 151 of 156 September 1 2015 MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module Page 152 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Support Service amp Warranty Modbus Serial Enhanced Communication Module User Manual 8 Support Service amp Warranty In This Chapter Contacting Technical Support eee eeeeeeeeeeeeneeeeeeeeeeeeeaeeteeeeeaeeteas 153 s Warranty Information seioed atin akin ie ete 154 8 1 Contacting Technical Support ProSoft Technology Inc 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 we will also need information regarding Module configuration and associated ladder files if any Module operation a
105. kplane CompactLogix System fa 1769 L35E My_Controller E 1769 L35E Ethernet Port LocalENB a Ethernet 4 CompactBus Local J 1 MYI69E MB5 A MYI69E_MBS ProSoft Technology Inc Page 21 of 156 September 1 2015 Adding the Module to RSLogix MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 2 1 2 Creating a Module in the Project Using a Generic 1769 Module Profile This procedure is not required if you installed the ProSoft Technology Add On Profile for this module 1 Expand the I O CONFIGURATION folder in the Project tree Right click the appropriate communications bus and choose NEW MODULE amp 1 0 Configuration sii Backplane CompactLogix System fa 1769 L35E My_Controller 1769 L35E Ethernet Port LocalENB ay Ethernet aii f CompactBus Loca Discover Modules Cut Ctrl gt Copy Ctrl C Paste tri V Delete Del Cross Reference Ctrl E Properties Alt Enter Print gt This opens the Select Module Type dialog box 2 Enter GENERIC in the search text box and select the GENERIC 1769 MODULE If you re using an earlier version of RSLogix expand OTHER in the Select Module dialog box and then select the GENERIC 1769 MODULE Select Module Type Catalog Module Discovery Favorites generic Clear Filters Hide Filters R Module Type Category Filters be Module Type Vendor Filters Allen Bradley Catalog Number Description Ve
106. l Enhanced Communication Module Vendor ProSoft Technology Parent Local Name MVIG9E_MBS_2 Description Module Definition Revision qe Electronic Keying Compatible Module Connection Output Data Format Integer 1 0 Table Sizes 62 61 words Status Creating OK Cancel Help 5 Click OK The new module is now visible 9 63 0 Configuration B Backplane CompactLogix System fa 1769 L35E My_Controller E 1769 L35E Ethernet Port LocalENB zs Ethernet a CompactBus Local 1 MVI69E MBS 4 M I69E_MBS 2 M I69E MBS 4 MVI69E_MBS_2 6 You must also import the Add On Instruction AOl for the new module see Adding another module in PCB page 35 In the Controller Organizer pane double click MAINROUTINE to open the ladder for the routine Controller Organizer a Controller My_Controller Controller Tags Controller Fault Handler Power Up Handler amp Tasks 5 8 MainTask E MainProgram Program Tags LaiMansoutne Page 38 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Adding the Module to RSLogix User Manual 7 Right click an empty rung in the routine and then choose IMPORT RUNGS ff RSLogix 5000 My_Controller in MVI169_MBS ACD 1769 L35E 20 12 MainProgram MainRoutine Ef File Edit view Search Logic Communications Tools Window Help Ba amp tae Y Sa FE YR AQ Offline
107. l Modbus Serial Enhanced Communication Module 6 1 Ethernet LED Indicators The Ethernet LEDs indicate the module s Ethernet port status LED State Description Data OFF Ethernet connected at 10Mbps duplex speed AMBER Solid Ethernet connected at 100Mbps duplex speed Link OFF No physical network connection is detected No Ethernet communication is possible Check wiring and cables GREEN Solid Physical network connection detected This LED must be ON solid or Blinking for Ethernet communication to be possible 6 2 LED Status Indicators The LEDs indicate the module s operating status LED Status Indication ETH On Ethernet communications are ok Off No Ethernet cable connected P1 Green Data is being transferred between the module and the Modbus network on Port 1 Red Communication error detected Off No Modbus network activity detected P2 Green Data is being transferred between the module and the Modbus network on Port 2 Red Communication error detected Off No Modbus network activity detected CFG Green Configuration is ok Yellow Module is reading configuration Red Error setting up Modbus protocol driver failed startup or module shutting down Off Processor is in Program mode BP Green The LED is on when the module is performing a write operation on the backplane Under normal operation the LED should blink rapidly on and off Red Major fault or module shutting do
108. l module configuration parameters including database allocation and backplane transfer options In the ProSoft Configuration Builder PCB tree view double click MODULE a Default Project Ga Default Location MVI69L MBS sa Module Parameter Value Description Module Name ASCII Assigns a name to the module that can be viewed using the characters configuration debug port Use this parameter to identify the module max 80 and the configuration file Read Register Start 0 to 9999 Specifies the start of the Read Data area in module memory Data in this area is transferred from the module to the processor Read Register Count 0 to 10 000 Specifies the size of the Read Data area Write Register Start 0 to 9999 Specifies the start of the Write Data area in module memory Data in this area is transferred from the processor to the module Write Register Count 0 to 10 000 Specifies the size of the Write Data area Backplane Fail Count 0 to 65535 Specifies the number of consecutive backplane transfer failures that can occur before communications are halted Error Status Block Pointer 1 to 9939 Starting register location in the module s database for the error status table If a value of 1 is entered the error status data is not placed in the database This data must be placed in the read data range of module memory This data ncludes the module version information and all server error status data Refe
109. l support in their drivers for what is commonly called the Enron version of the Modbus protocol In this implementation addresses greater than 7000 are presumed to contain floating point values The significance to this is that the count descriptor for a data transfer now denotes the number of floating point values to transfer instead of the number of words 7 3 2 Configuring the Floating Point Data Transfer A common question is how to handle floating point data when using the module as a Modbus master This really depends on the slave device and how it addresses this application Just because your application is reading or 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 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 uses addressing as shown in Example 2 then you do not need to do anything with the Float Flag or Float Start parameters
110. le in the tree and repeat the above steps to add a second or more module in the PCB project ProSoft Technology Inc Page 35 of 156 September 1 2015 Adding the Module to RSLogix MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module Note You must give each MVIG9E MBS module a unique name The default name on a duplicate module appends a number to the end such as MVI69E MBS_000 MVI69E MBS_001 etc j Untitled ProSoft Configuration Builder File View Project Tools Help Default Project Default Location H B MVI69E MBS i MVIG9E MBS_000 6 You can rename the module by right clicking the module and choosing Rename j Untitled ProSoft Configuration Builder File View Project Tools Help Default Project i Default Location MVI69E MBS cap MVI69E MBS 000 Delete e Rename Copy Paste Choose Module Type Confiaure 7 Configure the module parameters See Module Configuration Parameters page 47 and then export the AOI L5X file for the new module right click the module and choose EXPORT AOI FILE See Creating and Exporting the L5X File page 28 Page 36 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Adding the Module to RSLogix Modbus Serial Enhanced Communication Module User Manual 2 6 2 Adding Another Module in RSLogix 5000
111. lowing 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 securely plugged into the slot that has been configured for the module in the I O Configuration in 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 communications A problem could exist between the processor and any installed I O module not just the MVI69E MBS Verify that all modules in the rack are correctly configured Module Errors Problem description Steps to take BP ACT LED not present on MVI56E modules remains OFF or blinks slowly MVI69 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
112. ls 27 26 23 22 and 20 are to be forced on Note This is the structure of the message being sent out to the Modbus network The byte values below are in hexadecimal display Node Func Coil Coil Number of Number of Byte Force Force Error Check Address Code Address Address Coils High CoilsLow Count DataHigh DataLow Field 2 bytes High Low 20to27 28to 29 0B OF 00 13 00 OA 02 CD 01 CRC Response The normal response is an echo of the slave address function code starting address and quantity of coils forced Node Func Coil Coil Number of Number of Error Check Address Code Address Address Coils High Coils Low Field 2 bytes High Low 0B OF 00 13 00 0A CRC Writing to coils with Modbus function 15 is accomplished regardless of whether the addressed coils are disabled or not Coils that are not programmed in the controller logic program are not automatically cleared upon power 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 is hot ProSoft Technology Inc Page 115 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 2 12 Preset Multiple Registers Function Code 16 Query This Function Code allows you to modify the contents of a Modbus 4x range in the slave This writes up to 125 registers at time Since the controller is actively scanning it also can
113. lt Location BH MVI69E MBS E Pa Module 5 4 MBS Port 1 Pi Mocbus Pon 1 FAH Modbus Port 1 Commands Ha MBS Port 2 fa Ethernet 1 a Comment Configuration Parameters Common to Master and Slave Parameter Value Description Start Active Yes or No Specifies whether or not the port and commands are active upon module boot up Type Master Slave This parameter specifies which device type the port emulates or Slave with See Slave Mode page 70 for more information on Slave Pass Through Pass Through options Protocol RTU or ASCII Specifies the Modbus protocol for the port Baud Rate Multiple options Specifies the baud rate for the port Parity None Odd Specifies the type of parity error checking All devices on this Even port must use the same parity setting Data Bits 7ors 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 Sets the number of stop bits that 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 Sets the number of milliseconds to delay after Ready To Send milliseconds RTS is asserted before data is transmitted R
114. lters AlenB lt LI Prosott Technology gt Catalog Number MVI69 MVI69E MBS MVI69E MBTCP MVI6SL MBS MVI69L MBTCP lt 5 of 54 Module Types Found Description MYVI 1769 Family Modbus Serial Enhanced Communication Module Modbus TCP IP Enhanced Communication Module Modbus Serial Lite Communication Module Modbus TCP IP Lite Communication Module Bradle t Technology Hide Filters 2 Module Type Vendor Filters Vendor Category Prosoft Technol Communication Prosoft Technol Communication Prosoft Technol Communication Prosoft Technol Communication Prosoft Technol Communication i Add to Favorites C Close on Create 2 Select the MVI6G9E MBS module in the list and click CREATE Select Module Type Catalog Module Discovery Favorites Analog Communication Digital Other Specialty KS ESP KS ES IKSIIKS Module Type Category Filters Catalog Number MVI69 gt MVIBSE MBS MVI6SE MBTCP MVIESL MBS MVIBSL MBTCP lt Description MYI 1769 Family Clear Filters E Oo v Allen Bradley Prosoft Technology Modbus Serial Enhanced Communication Module Modbus TCP IP Enhanced Communication Module Modbus Serial Lite Communication Module Modbus TCP IP Lite Communication Module Hide Filters 2 Module Type Vendor Filters Vendor Category Prosoft Technol Communication Prosoft Technol Communication Prosoft Technol Communi
115. m Modbus Serial Enhanced Communication Module 4 4 Data Flow Between the Module and Processor The following topics describe the flow of data between the two pieces of hardware CompactLogix or MicroLogix 1500 LRP processor and MVI69E MBS module and other nodes on the Modbus network You can configure each port on the module to emulate a Modbus Master device or a Modbus Slave device 4 4 1 Slave Mode In Slave Driver mode the MVIG9E MBS module responds to 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 MBS Module User Data Database Modbus 0 40001 Register Data storage Register Files Addresses Addresses Data 1 9999 49999 Status from Module 1 1 1 1 1 1 1 1 1 I 1 1 1 1 1 j 1 1 1 I I T l 1 1 I 1 1 j 1 1 1 I l I 1 1 I 1 1 1 I j 1 1 I I 1 1 1 1 i 1 1 1 1 1 I 1 1 1 I l 1 I Step Description Any time the module restarts boots or reboots the Modbus slave port driver receives configuration information from the MBS controller tags 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 A Modbus Master device suc
116. mands may substantially 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 Blocks 1000 to 1255 or 2000 to 2255 Request from Processor to Module Offset Description 0 Write Block ID 1000 to 1255 for a Port 1 command or 2000 to 2255 for a Port 2 command The last 3 digits of the command specify the slave address to use for the command 1 Internal address in the module to be used with the command 2 Count parameter that determines the number of digital points or registers to associate with the command 3 Swap type for the data 4 Modbus Function Code to be associated with the command 5 Modbus address in the slave device to be used in the command 6 to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Size parameter Blocks 1000 to 1255 or 2000 to 2255 Response from Module to Processor Offset Description 0 Read Block ID 1000 to 1255 or 2000 to 2255 requested by the processor 1 Write Block ID To be used by the processor in its next Write block 2 Result of the event request 1 the command was placed in the command queue 0 no room was found in the command queue 3 Number of commands in the command queue for the specified port 4to n 1 Spare ProSoft Technology Inc Page 125 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platf
117. mbedded Discrete_IO 02 Unrecognized Device MYI69E MBS 10 1 3 189 1756 EN2T 1756 EN2T A j 10 1 3 193 1756 ENBT 4 1756 ENBT A Cancel 4 Notice the ClPConnect path has been updated in the Download Configuration File dialog box Click TEST CONNECTION to verify the path is active and can successfully connect to the processor Download Configuration File Choose Processor CiPConnect 10 1 3 187 p 1 s 0 RSwho Destination Tag MBS CONFIG FileStatus INT 1 FileSize DINT 3307 CRC32 DINT 2c2B3E200 FileData SINT C Program Files ProSoft Technology PCB Proling c Tt Cornecion QQ Donic Status Log Successfully Connected to Processor Checking Destination Tags Destination Tag status OK ProSoft Technology Inc Page 57 of 156 September 1 2015 Configuring the MVI69E MBS Using PCB MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 5 When ready click DOWNLOAD to download the configuration file to the processor Following the download process the module is automatically rebooted Download Configuration File Choose Processor CiPConnect t10 1 3 187 p 1 s 0 RSWho Destination Tag MBS CONFIG FileStatus INT 1 FileSize DINT 3387 CRC32 DINT ece FileData SINT C Program Files ProSoft Technoloay PCBSProlinx c Test Connection Status Log Destination Tag status OK Write to tag MBS CONFIG FileStatus Succeeded
118. messages received on the port MBS STATUS PortxStats CmdListErr Total number of command errors processed on the port These errors could be due to a bad response or command MBS STATUS PortxStats PortReq Total number of messages sent out of the port MBS STATUS PortxStats PortResp Total number of messages received on the port MBS STATUS PortxStats PortErrSent Total number of message errors sent out of the port MBS STATUS PortxStats PortErrRec Total number of message errors received on the port MBS STATUS PortxStats CurrErr Not used MBS STATUS PortxStats LastErr Not used MBS STATUS Block Backplane transfer status MBS STATUS Block Read Total number of read blocks transferred from the module to the processor MBS STATUS Block Write Total number of write blocks transferred from the processor to the module MBS STATUS Block Parse Total number of blocks successfully parsed that were received from the processor MBS STATUS Block Event Total number of event command blocks received from the processor MBS STATUS Block Cmd Total number of command blocks received from the processor MBS STATUS Block Err Total number of block transfer errors recognized by the module MBS STATUS PortxLastErr 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 co
119. mit set by the Response Timeout parameter After the slave fails to respond the master skips sending commands that should have been sent to the slave until the number of skipped commands matches the value entered in this parameter This creates a sort of slow poll mode for slaves that are experiencing communication problems Specifies a time delay in milliseconds to be added to the 3 5 character time delay used by the module to recognize the end of a message Certain applications may require validation of Modbus messages with more than 3 5 character time between consecutive bytes example modem applications A value of 0 causes the default end of message delay to be used Sets the address in the module s database where the command error data is placed If the value is set to 1 the data is not transferred to the database The valid range of values for this parameter is 1 to 4899 For example if this parameter is configured for 1000 the command errors are copied to the database as follows 1000 error code for command 0 1001 error code for command 1 An error code of 0 means that the command was successfully sent no error Page 50 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Configuring the MVI69E MBS Using PCB User Manual Additional Configuration Parameters as Slave The Type parameter must be SLAVE or PASSTHRU SLAVE to configur
120. mmand MBS STATUS PortxPreviousErr 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 September 1 2015 Page 85 of 156 Using Controller Tags User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module 5 3 5 MBS UTIL The array is used for internal ladder processing and must not be modified Tag Name Description MBS UTIL ReadDataSizeGet Holds Read Data array size MBS UTIL WriteDataSizeGet Holds Write Data array size MBS UTIL ReadDataBlkCount Number of Read Data blocks this value is the Read Register Count divided by the Block Transfer Size MBS UTIL WriteDataBlkCount Number of Write Data blocks this value is the Write Register Count divided by the Block Transfer Size MBS UTIL RBTSremainder Remainder from the Read Register Count divided by the Block Transfer Size MBS UTIL WBTSremainder Remainder from the Write Register Count divided by the Block Transfer Size MBS UTIL Blocklndex Computed block offset for data MBS UTIL LastRead Latest Read Block ID received from the module MBS UTIL LastWrite Latest Write Block ID to be sent to the module MBS UTIL LastWritelnit Latest Write Block ID used during initialization MBS UTIL ConfigFile Holds variables for configurat
121. module The Block Transfer Size parameter configures how the Read Data and Write Data areas are broken down into data blocks 60 120 or 240 Page 66 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module MVI69E MBS Backplane Data Exchange User Manual If Block Transfer Size 60 Processor Read Block 1 Read Block 2 Read Block 3 Read Block 4 Read Block 5 Read Block 6 Write Block 1 MVI69E Module 60 120 180 240 300 360 420 ProSoft Technology Inc September 1 2015 Page 67 of 156 MVI69E MBS Backplane Data Exchange MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module If Block Transfer Size 120 Processor MVI69E 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 68 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module MVI69E MBS Backplane Data Exchange User Manual If Block Transfer Size 240 Processor Read Block 1 Read Block 2 Write Block 1 Write Block 2 MVI69E Module 240 480 720 960 ProSoft Technology Inc September 1 2015 Page 69 of 156 MVI69E MBS Backplane Data Exchange User Manual MVI69E MBS CompactLogix Platfor
122. n this parameter The firmware internally adds a 40001 offset to the value entered This is the same for all Modbus addresses 0x 1x 3x 4x This parameter is only applicable for Enable Codes 3 Bit Word Override or 4 Float Override If an error occurs associated to a read command the module automatically populates the associated database area with this override value This section defines the permanent IP address Subnet Mask and Gateway of the module In the ProSoft Configuration Builder tree view double click the ETHERNET 1 icon Default Project al Default Location MVI69E MBS Module sf MBS Port 1 MBS Port 2 Ethernet 1 e EEES Comment Parameter Description IP Address Unique IP address assigned to the module Netmask Subnet mask of module Gateway Gateway if used ProSoft Technology Inc September 1 2015 Page 55 of 156 Configuring the MVI69E MBS Using PCB MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 3 3 Downloading the Configuration File to the Processor 1 Inthe ProSoft Configuration Builder tree view right click the module icon and choose DOWNLOAD FROM PC To DEVICE MVI69E_MBS ppf ProSoft Configuration Builder File View Project Tools Help Default Project Name Status Default Location f MYI69E MBS Configured MB6E value
123. n find them in the User Defined subfolder located in the Data Types folder in the Controller Organizer pane of the main RSLogix window Like the controller tags the UDTs are organized in a multiple level tree structure 5 2 1 MVI69E MBS User Defined Data Types Twenty different UDTs are defined for the MVI69E MBS Add On Instruction The main UDT MBSMODULEDEF contains all the data types for the module and was used to create the main controller tag structure MBS There are five UDTs one level below MBSMODULEDEF These lower level UDTs were used to create the MBS CONFIG MBS DATA MBS CONTROL MBS STATUS and MBS UTIL controller tag structures Name MBSModuleDef L Description j Main module definition Members Data Type Size 69428 byte s Name Data Type Style Description External Access CONFIG MBSCONFIG Configuration file Read Write DATA MBSDATA Database data Read Write CONTROL MBSCONTROL Special tasks request Read Write STATUS MBSSTATUS Status Read Write UTIL MBSUTIL Tags used for intemal Read Write Click the signs to expand the UDT structures and view lower level UDTs ProSoft Technology Inc Page 77 of 156 September 1 2015 Using Controller Tags MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module For example if you expand MBS DATA you see that it contains two UDTs ReaaData and WriteData Both of these are 600 element integer arrays by default
124. n 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 monitors 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 from the communications system Sub function Codes Supported Only Sub function 00 is supported by the MVI69E MBS 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 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
125. ncluded Configuration data obtained from and stored in the processor e Supports CompactLogix or MicroLogix 1500 LRP processors with 1769 I O bus capability and at least 500 mA of 5 VDC backplane current available ProSoft Technology Inc Page 103 of 156 September 1 2015 Reference User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module 7 1 1 Hardware Specifications Specification Description Dimensions Standard 1769 Single slot module Current Load 500 mA max 5 VDC Power supply distance rating of 4 L43 and L45 installations on first 4 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 Module OK Status Backplane Activity Ethernet Port Activity Configuration Activity CFG Port ETH Diagnostics over Ethernet connection App Ports P1 P2 RS 232 RS 485 or RS 422 jumper selectable RJ45 Port DB 9F with supplied cable 500V Optical isolation from backplane Shipped with Unit DVD 001 Product DVD RJ45 to DB 9M cables for each application port 7 1 2 General Specifications Modbus Master Slave Communication Parameters Stop bits 1 or 2 Data size 7 or 8 bits Parity None Even Odd Baud rate 110 to 115K baud RTS timing delays 0 to 65535 milliseconds Modbus Modes
126. nd any unusual behavior Configuration Debug status information LED patterns Details about the serial Ethernet or Fieldbus devices interfaced to the module if any akhOAN Note For technical support calls within the United States ProSoft s 24 7 after hours phone support is available for urgent plant down issues Detailed contact information for all our worldwide locations is available on the following page ProSoft Technology Inc Page 153 of 156 September 1 2015 Support Service amp Warranty MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module Internet Web Site www prosoft technology com support E mail address support prosoft technology com Asia Pacific Tel 603 7724 2080 8 2 location in Malaysia E mail asiapc prosoft technology com Languages spoken include Chinese English Asia Pacific location in China Tel 86 21 5187 7337 x888 E mail asiapc prosoft technology com Languages spoken include Chinese English Europe location in Toulouse France Tel 33 0 5 34 36 87 20 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 prosoft technology com Languages spoken include English
127. ndor Category 1769 MODULE Generic 1769 Module Allen Bradley Other 1 of 51 Module Types Found Add to Favorites Close on Create Create Close l Help Page 22 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Adding the Module to RSLogix User Manual 3 Set the Module Properties values as follows Parameter Value Name Enter a module identification string Example MVIG9EMBS 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 MV69E MBS module is 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 The following illustration shows an example where the module was configured for a block transfer output block size 61 words New Module Type Parent Local Name MVIBSE_MBS Description Comm Format Data INT a Slot 1 Open Module Properties size of 60 words input block size 62 words 1769 MODULE Generic 1769 Module Connection Parameters Assembly Instance Input 101 16 bit Output 100 16 bit Configuration 102 16 bit Cancel Help The following op
128. oadcast Modbus Function 1 2 3 4 5 6 15 16 MB Address in 0 to 9999 Device Specifies the number of registers or digital points to be associated with the command Modbus Function Codes 5 and 6 ignore this field as they only apply to a single data point For Modbus Function Codes 1 2 and 15 this parameter sets the number of single bit digital points inputs or coils to be associated with the command For Modbus Function Codes 3 4 and 16 this parameter sets the number of 16 bit registers to be associated with the command 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 You can set this parameter to order the register data received in an order useful by other applications No Change 0 No change is made in the byte ordering ABCD ABCD Word Swap 1 The words are swapped ABCD CDAB Word and Byte Swap 2 The words are swapped then the bytes in each word are swapped ABCD DCBA Byte Swap 3 The bytes in each word are swapped ABCD BADC Note Each pair of characters is a byte Ex AB and CD Two pairs of characters is 16 bit register Ex ABCD Specifies the Modbus slave node address on the network to be considered Most Modbus devices only accept an address in the range of 1 to 247
129. ocessor to Module Offset Description 0 Write Block ID 8000 for Port 1 or 8001 for Port 2 event command with data request 1 Slave address of Modbus device to reach with the command request 2 Modbus function code to use with command 5 6 15 or 16 3 Modbus address in slave device 4 Count value for operation bit count for function 15 1 to 800 points and word count for function 16 1 to 50 words or 1 to 25 float values For functions 5 and 6 the count is assumed to be 1 5 to 54 Data to be used by command 55 to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Size parameter Block 8000 or 8001 Response from Module to Processor Offset 0 Description Read Block ID 8000 for Port 1 or 8001 for Port 2 event command with data request 1 Write Block ID To be used by the processor in its next Write block 2 Error Code for request 0 no error 1 port is not enabled 2 port is not a master port 3 port is not active enabled 4 port busy with previous event command 5 invalid Modbus command 6 invalid point count for command 3 to n 1 Spare ProSoft Technology Inc Page 129 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 4 7 Get Event with Data Status Block 8100 Block 8100 Get Event with Data Status This block requests status data for Event with Data Commands Blo
130. ock 2 Year 0 9999 3 Month 1 12 4 Day 1 31 5 Hour 0 23 6 7 8 9 Minutes 0 59 Seconds 0 59 Milliseconds to n 1 Spare Page 144 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 4 21 Reset Status Block 9997 Block 9997 Reset Status Block This block resets the module port 1 and or port 2 status Block 9997 Request from Processor to Module Offset Description 0 Write Block ID 9997 1 Reset Module status O no else yes 2 Reset Port 1 status O no else yes 3 Reset Port 2 status O no else yes 4to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Size parameter Block 9997 Response from Module to Processor Offset Description 0 Read Block ID 9997 1 Write Block ID To be used by the processor in its next Write block 2to n 1 Spare 7 4 22 Cold boot Control Block 9999 Block 9999 Cold boot Control Block If the CompactLogix or MicroLogix 1500 LRP processor sends a block number 9999 the firmware performs a cold boot operation The firmware reloads the configuration file from the processor to the module and resets all MBS memory error and status data Block 9999 Request from Processor to Module Offset Description 0 Write Block ID 9999 1 to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Si
131. odule to Processor Offset Description 0 Read Block ID 9500 requested by processor 1 Write Block ID To be used by the processor in its next Write block 2to n 1 Spare ProSoft Technology Inc Page 135 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 4 12 Get Port and Command Active Bits Block 9501 Block 9501 Get Port and command active bits This block requests the enabled disabled status of ports and Master commands Block 9501 Request from Processor to Module Offset Description 0 Write Block ID 9501 to get port and command enable disable state 1 to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Size parameter Block 9501 Response from Module to Processor Offset Description 0 Read Block ID 9501 requested by processor 1 Write Block ID To be used by the processor in its next Write block 2 Port 1 active state O disabled 1 enabled 3 to 22 Command enable bits for Port 1 commands 0 disabled 1 enabled 23 Port 2 active state O disabled 1 enabled 24 to 43 Command enable bits for Port 2 commands 0 disabled 1 enabled 44 to n 1 Spare Page 136 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 4 13 Pass through Formatted Block for Functions 6 and 16 with Word Dat
132. of 156 Diagnostics and Troubleshooting MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 5 The module s default IP address is usually 192 168 0 250 Choose an unused IP within your subnet and then click OK FA Assign Temporary IP Address Temporary IP 105 102 0 233 Network Mask 2 26 26 0 oK i Cancel Important The temporary IP address is only valid until the next time the module is initialized For information on how to set the module s permanent IP address see Ethernet 1 page 55 6 Close the ProSoft Discovery Service window Enter the temporary IP address in the ETHERNET ADDRESS field of the Connection Setup dialog box then click TEST CONNECTION to verify that the module is accessible with the current settings 7 Ifthe Test Connection is successful click CONNECT The Diagnostics window is now accessible Page 92 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Diagnostics and Troubleshooting User Manual 6 4 Using the Diagnostics Menu in PCB ProSoft Configuration Builder PCB provides diagnostic menus for debugging and troubleshooting To connect to the module s Configuration Debug Ethernet port 1 Inthe tree view in ProSoft Configuration Builder right click the MVI69E MBS module and then choose DIAGNOSTICS For instructions on
133. of the Modbus device s on the module s application ports Modbus devices can produce device specific error codes 6 5 1 Standard MODBUS Protocol Exception Code Errors Code Description Illegal Function Code Illegal Data Address Illegal Data Value Failure in Associated Device Acknowledge O a R o pe Busy Rejected Message 6 5 2 Module Communication Error Codes Code Description 1 CTS modem control line not set before transmit 2 Timeout while 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 6 5 3 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 100 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Diagnostics and Troubleshooting Modbus Serial Enhanced Communication Module User Manual 6 6 Connecting to the Module s Web Page The module s internal web server provides access to module version and status information as well as the ability to set the date and time reboot the module and download firmware upgrade to the module Enter the assigned IP address of the modul
134. oft Configuration Builder PCB select the MVI69E MBS module For instructions on opening and using a project in PCB please refer to Configuring the MVIG9E MBS Using PCB page 43 Default Project a Default Location i fh Mees Page 90 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Diagnostics and Troubleshooting User Manual 2 Right click the module icon in the tree and choose DIAGNOSTICS Default Project 3 Default Location H E MVI69E MBS Delete Rename Copy Paste Choose Module Type Configure Verify View Configuration Write to Compact Flash Export Configuration File s Load Config File Add External File Export AOI File Download from PC to Device Upload from Device to PC Diagnostics 3 Inthe Diagnostics window click the SET UP CONNECTION button Pal ofl ls Click to set up connection 4 Inthe Connection Setup dialog box click BROWSE DEVICE S to start ProSoft Discovery Service Right click the module and choose ASSIGN TEMPORARY IP r H Prosoft Discovery Service Sn 000000 Default Cor M OT CONFIGURED 80 Assign Temporary IP Device Details Remove Temporary IP View module s webpage Select for PCB Click the search icon to begin the browse ProSoft Technology Inc September 1 2015 Page 91
135. ogy Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Using Controller Tags User Manual MBS CONTROL CmadControl This array allows the processor to dynamically enable configured commands for execution Tag Name Range Description MBS CONTROL CmdControl 0 or 1 Command Control CmdControlTrigger Disable 0 Enable 1 MBS CONTROL CmdControl 0 to6 Total number of commands to be executed via NumberOfCommands Command Control MBS CONTROL CmdControl 1 or 2 Port number to be associated with Command Control PortNumber function MBS CONTROL CmdControl 0 or 1 Command Index of port command x to be enabled Commandindex x Up to 6 command indexes can be populated at a time MBS CONTROL EventCmd_DBData This array allows the processor to dynamically build Modbus commands with data associated to the MBS database This feature is meant for periodic execution such as resetting the clock and zeroing out counters Tag Name Range Description MBS CONTROL EventCmd_DB_ Oori Toggle to send Event Command Data EventCmdTrigger 0 Disable 1 Enable MBS CONTROL EventCmd_DB 1 or2 Port number to be associated with command Control Data PortNumber function MBS CONTROL EventCmd_DB 1 to 248 Slave ID of Modbus slave Data SlavelD MBS CONTROL EventCmd_DB 0to9999 Used only if UseModuleDBAddress 1 MVI69E Data InternalDBAddress database address
136. ommand has been processed and can be cleared from the Pass Through queue ProSoft Technology Inc Page 141 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 4 18 Pass through Formatted Block for Function 23 9961 Block 9961 Pass Through Formatted Block for Function 23 Block 9961 Request from Module to Processor Offset Description 0 Read Block ID 9961 1 Write Block ID 9961 2 Number of word registers in Modbus data set 3 Starting address for Modbus data set 4to n 1 Data Length in words n 2 Where n 60 120 or 240 depending on the Block Transfer Size parameter The ladder logic is 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 Block 9961 Response from Processor to Module Offset Description 0 Write Block ID 9961 1 ton Spare Length in words n 2 This informs the module that the command has been processed and can be cleared from the Pass Through queue Page 142 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 4 19 Pass through Block for Function 99 9970 Block 9970 Pass Through Block
137. ompactLogix Platform Adding the Module to RSLogix Modbus Serial Enhanced Communication Module User Manual 2 6 Adding Multiple Modules in the Rack Optional Important This procedure is for multiple MVIG9E MBS modules running in the same CompactLogix or MicroLogix 1500 LRP rack You can add additional modules of the same type to the rack 1 Add anew MVI69E MBS module to the ProSoft Configuration Builder PCB project 2 Export the module configuration as an L5X file 3 Add anew MVI69E MBS to the RSLogix 5000 project 4 Import the L5X file into RSLogix 5000 for the new module as an Add On Instruction 2 6 1 Adding another module in PCB 1 Start ProSoft Configuration Builder 2 Right click DEFAULT LOCATION which you can rename and choose ADD MODULE r j Untitled ProSoft Configuration Builder File View Project Tools Help a Default Project sgr Default Location m H MVI69E Add Module Delete Rename Paste Module 3 Right click NEW MODULE and choose CHOOSE MODULE TYPE j Untitled ProSoft Configuration Builder File View Project Tools Help Default Project Default Location MVI69E MBS EY New Module Delete Rename Copy Paste gt Choose Module Type Configure Verif 4 Inthe Choose Module Type dialog box select MVI69E in the PRODUCT LINE FILTER area and then select MVI69E MBS as the MODULE TYPE Click OK 5 Select the MVI69E MBS modu
138. ompactLogix or MicroLogix 1500 LRP chassis type New Controller Vendor Allen Bradley Type 1769 L35E CompactLogixS335E Controller Revision 20 X Cancel Redundancy Enabled Help Name My_Controlley Description Create In C RSLogix SOO0 Projects Browse Security Authority No Protection x Use onl elected Security Authority for Authentication and Authoriz Page 30 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Adding the Module to RSLogix Modbus Serial Enhanced Communication Module User Manual 2 5 Importing the Add On Instruction 1 Open the application in RSLogix 5000 2 Expand the TASKS folder and expand the MAINTASK folder 3 Expand the MAINPROGRAM folder The MAINROUTINE contains rungs of logic The very last rung in this routine is blank This is where you can import the Add On Instruction Note You can place the Add On Instruction in a different routine than the MainRoutine Make sure to add a rung with a jump instruction JSR in the MainRoutine to jump to the routine containing the Add On Instruction 4 Right click an empty rung in the routine and choose IMPORT RUNGS Fe RSLogix 5000 MVI69E_MBS 1769 L35E 20 11 File Edit View Search Logic Communications Tools Window Help asl amp 59 MBOfisetByte egalt OB QQ 3 RA Pon Use I Offline j M RUN No Forces zk Ghd No Edits a aia gt Favorites Aaron K Alarms K Bt K TimerCoui S 2 5 Controle
139. opening and using a project in PCB please refer to Configuring the MVI69E MBS Using PCB page 43 Default Project a Default Location t MITES Delete Rename Copy Paste Choose Module Type Configure Verify View Configuration Write to Compact Flash Export Configuration File s Load Config File Add External File Export AOI File Download from PC to Device Upload from Device to PC Diagnostics 2 After the Diagnostics window opens click the SET UP CONNECTION button to browse for the module s IP address ES as SISAL duly i te al fe Click to set up connection ProSoft Technology Inc September 1 2015 Page 93 of 156 Diagnostics and Troubleshooting MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 3 Inthe Ethernet field of the Connection Setup dialog box enter the current IP address whether it is temporary or permanent Click TEST CONNECTION to verify that the module is accessible with the current settings i Connection Setup Select Connection Type Ethernet v Ethemet 105 102 0 233 ProSoft Discovery Service PDS Browse Device s CiPconnect 192 168 0 100 p 1s 0 56 eae Test Connection Cancel 4 If the TEST CONNECTION is successful click CONNECT The Diagnostics window is now visible j Diagnostics ax Connection Log Module SNA
140. orm User Manual Modbus Serial Enhanced Communication Module 7 4 2 Slave Polling Disable Blocks Block 3000 Port 1 Slave Polling Disable Block 3100 Port 2 Slave Polling Disable These blocks allow the processor to disable polling for specific slaves Block 3000 or 3100 Request from Processor to Module Offset Description 0 Write Block ID 3000 for Port 1 and 3100 for Port 2 slave polling disable request 1 Number of slaves listed in the block 1 to 60 2 61 Slave indexes to disable in the command list for the selected port The number of slaves to process is set in Word 1 of the block Block 3000 or 3100 Response from Module to Processor Offset Description 0 Read Block ID 3000 or 3100 requested by the processor 1 Write Block ID To be used by the processor in its next Write block 2 Number of slaves processed in the last request This number should match the value passed in Word 1of the request block 3to n 1 Spare 7 4 3 Slave Polling Enable Blocks 3001 3101 Block 3001 Port 1 Slave Polling Enable Block 3101 Port 2 Slave Polling Enable These blocks allow the processor to enable polling for specific slaves Block 3001 or 3101 Request from Processor to Module Offset Description 0 Write Block ID 3001 for Port 1 or 3101 for Port 2 slave polling enable request 1 Number of slaves listed in the block 1 to 60 2 to 61 Slave indexes to enable in the command list for the selected port The n
141. r MvI69E_MBS A Controller Tags Controller Fault Handler Power Up Handler 2 8 Tasks 5 8 MainTask MainProgram A Program Tags E MainRoutine Unscheduled Programs Phases amp amp Motion Groups i MainProgram MainRoutine Ungrouped Axes Add Rung Add On Instructions Edit Rung 2 8 Data Types Gi User Defined l GR Strings Import Rungs Gi Add On Defined Og Predefined Gj Module Defined Trends 2 8 1 0 Configuration 5 8 Backplane CompactLogix System fa 1769 L35E MVI69E_MBS 1769 L35E Ethernet Port LocalENB as Ethernet amp 4 CompactBus Local 8 1 1769 MODULE MVI6 9MBS Go To Ctri G Add Ladder Element Alt Ins Mainkoutine aay ProSoft Technology Inc Page 31 of 156 September 1 2015 Adding the Module to RSLogix MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 5 Select the L5X file that you exported from PCB Creating and Exporting the L5X File page 28 Import Rungs Look in Desktop Omur Documents 3 My Computer My Recent my Network Places Documents B MYI69E MBS_60_AddOn_Rung_v1_0 L5x File name mvi 69E MBS_60_AddOn_Rung_v1_0 L amp lt v Files of type My Network Files containing H A Places Into E C Overwrite Selected Rungs This opens the Import Configuration dialog box Click TAGS under MAINROUTINE to display the controller tags in the Add On Instruction
142. r to MBS STATUS page 85 for more information Initialize Input Image Yes or No This parameter determines if the input image data and the Block Transfer Size Slot Number 60 120 or 240 1 tox module s Read Register Data values are initialized with Read Register Data values from the processor If you set the parameter to No the Read Register Data values in the module are set to 0 upon initialization If you set the parameter to Yes the data is initialized with Read Register Data values from the processor This option requires associated ladder logic to pass the data from the processor to the module Specifies the number of words in each block transferred between the module and processor Specifies the slot in the CompactLogix or MicroLogix 1500 LRP rack for the module Important The sum of the Read Register Count and Write Register Count cannot exceed 10 000 total registers Furthermore neither the Read Data nor the Write Data area may extend above module register 9999 The Read Data and Write Data areas must not overlap ProSoft Technology Inc September 1 2015 Page 47 of 156 Configuring the MVI69E MBS Using PCB MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 3 2 2 Modbus Port x Parameters This section applies to both MBS PORT 1 and MBS Port 2 In the ProSoft Configuration Builder tree view double click the MODBUS PORT X icon Default Project Defau
143. s General status for the port e e configured as a Modbus master e Master Command Status Status code for each master command used when port is configured as a Modbus master Master Commands Used when port is configured as a Modbus master Slave Status List Status of each slave on the network used when port is G Gj Diagnostics Connection Log Module ajs olclalo dls E MVI69E MBS Clg GENERAL H E Version S a NETWORK R E Config Saa BACKPLANE E Config i Gd Status sa MODBUS PORT 1 E Tesni E Status i O Master Commands p E Slave Status List i E Master Command Status Ssa MODBUS PORT 2 EF Config P E Status i E Master Commands C Slave Status List f EF Master Command Status Faa DATABASE G ascii MVI69E MBS gt MODBUS PORT 1 gt Config Start Active Active Enabled Port e Pass thru Protocol Interface Baud Rate Parity Databits Stopbits RTS On RTS off Min Response Delay Use CTS Slave ID BitiIn offset wordin offset Output Offset Holding offset Intercharacter Timeout cmd Error offset Float Flag Float Start Float offset Time 14 40 12 Refresh Count Yes Yes Yes Slave DISABLED No Wait Modbus RTU RS 232 19200 NONE 78 TSSSSSRZKS6R Page 98 of 156 ProSoft Technology Inc September 1
144. s Indicators siririn eoa taeae e a aa ag ivi dies 88 6 2 1 Clearing a Fault Condition 0 ccccceccceeeeececeeeeeeeeeeeeeeecaeeeeaaeeseneeseeeeeseaeeeeaeeseeeeeeaas 89 6 2 2 Troubles Noonan a a a titan E ini aie ade ee et 89 6 3 Connecting the PC to the Module s Ethernet Port cccccessecesseteeeesseteeesseeees 90 6 3 1 Setting Up a Temporary IP Address ccccccceeececeeeeeceneeecaeeeeneeceeeesaeeeeaaeseeeeeeaas 90 6 4 Using the Diagnostics Menu in PCB cececcceeeeeeeceeeeeceeeeeeaeeeeeeeeseaeeesaeeneneeseaees 93 6 4 1 Diagnostics MENU ireti E gl e E el nia RS 95 6 4 2 Monitoring Network Configuration Information sseeseseessseseiessiessiesriesrresrresne 96 6 4 3 Monitoring Backplane Information e ce eeeeeeeeeeeneceeeenneeeeeeaeeeeeeaeeeeetaeeeeetnaeeeenes 97 6 4 4 Port x Module Information aiar aa EE EAE ES 98 6 4 5 Monitoring Data Values in the Module s Database eeeeeseeeeeerseeerrerrrresrene 99 6 5 Communication Error Codes cccecceceeececeeeeeeeee scenes caeeeeaaeseeeeeseaeeesaeeeeaeeseeeeess 100 6 5 1 Standard MODBUS Protocol Exception Code Errors cecscceseeeeeeeeeeeteeeeereees 100 6 5 2 Module Communication Error Codes ccccccseeeeeceeceeeeeeeeeeeeaeeseeeeeceaeeeeaeeeeneesaas 100 6 5 3 Command List Entry Errors ccccccccceceeeeeeeeeeeeeeeceeeeesaeeeeaaeeeeeeeseaeeesaeeseneeeneeees 100 6 6 Connecting to the Module s Web Page ececeeeeeeeeeee
145. s OK Values OK Values OK Values OK Choose Module Type Values OK Delete Rename Copy View Configuration Export Configuration File s e Information Load Config File Change Mar 14 2013 11 29 Download Never cation Rev Export AOI File v Download from PC to Device r Rev b ddress Upload from Device to PC gEdit version 4 1 0 Build 4 Diagnostics e configuration module Module Type MVI69E MBS Module Name MVI69E MBS MVI69E MBS 2 Inthe Download Configuration File dialog box click RSWHO Download Configuration File Choose Processor CiPConnect RSWho Destination Tag MBS CONFIG FileStatus INT 1 FileSize DINT 3387 CRC32 DINT 2c2B3E200 FileData SINT C Program Files ProSoft Technology PCB Proling c Test Connection Download Status Log Page 56 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Configuring the MVI69E MBS Using PCB Modbus Serial Enhanced Communication Module User Manual 3 Browse to and then highlight the CompactLogix or MicroLogix 1500 LRP processor and click OK E Browse Device M Autobrowse Leeren Pz E Browsing node 1 found Workstation SUP13RA MASTER gs Linx Gateways Ethernet R s AB_ETHIP 1 Ethernet o0 at 02 i 10 1 3 187 1769 L24ER QB1B LOGIXS324ER 1769 L24ER QE MYI69E_MBS Embedde MYI69E MBS ap CompactBus CompactLogix System ROO 1769 L24ER QB1B LOGIXS3S24ER MVI69E_MBS la 01 E
146. s through messages Page 86 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Diagnostics and Troubleshooting Modbus Serial Enhanced Communication Module User Manual 6 Diagnostics and Troubleshooting In This Chapter Ethernet LED Indicators aE RECT ere ere Yee ETE Ie ee eee 88 LED Status INGiGatOrs s s cec2e 4istecelecenrdesdadeheseexeacdeeaistats catia seseiabiendihare 88 Connecting the PC to the Module s Ethernet Port sccseeeeeeeeee 90 Using the Diagnostics Menu in PCB ceeceeseeeeeeeeeeeeeeeeeeeaeeeeeeeeeneee 93 Communication Error Codes eccceesceeeeeeeeeeeseeeeeeeeeseeeeeeeseeeeneeteas 100 Connecting to the Module s Web Page ceeeseeeesesneeeeesneeerenaeees 101 The MVI69E MBS provides information on diagnostics and troubleshooting in the following forms e LED status indicators on the front of the module provide general information on the module s status e You can view status data contained in the module through the Ethernet port using the troubleshooting and diagnostic capabilities of ProSoft Configuration Builder PCB e You can transfer status data values from the module to processor memory and can monitor them in the processor manually or by customer created logic ProSoft Technology Inc Page 87 of 156 September 1 2015 Diagnostics and Troubleshooting MVI69E MBS CompactLogix Platform User Manua
147. s with respect to the relevant specific application or use thereof Neither ProSoft Technology nor any of its affiliates or subsidiaries shall be responsible or liable for misuse of the information contained herein Information in this document including illustrations specifications and dimensions may contain technical inaccuracies or typographical errors ProSoft Technology makes no warranty or representation as to its accuracy and assumes no liability for and reserves the right to correct such inaccuracies or errors at any time without notice If you have any suggestions for improvements or amendments or have found errors in this publication please notify us No part of this document may be reproduced in any form or by any means electronic or mechanical including photocopying without express written permission of ProSoft Technology All pertinent state regional and local safety regulations must be observed when installing and using this product For reasons of safety and to help ensure compliance with documented system data only the manufacturer should perform repairs to components When devices are used for applications with technical safety requirements the relevant instructions must be followed Failure to use ProSoft Technology software or approved software with our hardware products may result in injury harm or improper operating results Failure to observe this information can result in injury or equipment damage Copyright 2015 ProSoft
148. sable 1 Enable MBS CONTROL ResetStatus This tag allows the processor to reset the module status counters Tag Name Range Description ResetStatus Oor 1 Triggers module status counter reset 0 Disable 1 Enable MBS CONTROL ColdBoot This tag allows the processor to Coldboot the module full reboot Tag Name Range Description ColdBoot Oor 1 Triggers a cold boot of the module 0 Disable 1 Enable MBS CONTROL WarmBoot This tag allows the processor to Warmboot the module driver reboot Tag Name Range Description WarmBoot Oor 1 Triggers a warm boot the module 0 Disable 1 Enable Page 84 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Using Controller Tags User Manual 5 3 4 MBS STATUS This array contains status data for the module Tag Name Description MBS STATUS PassCnt Program cycle counter this value is incremented each time a complete program cycle occurs in the module MBS STATUS Product Product code MBS STATUS Rev Firmware revision level number MBS STATUS OP Operating level number MBS STATUS Run Run number MBS STATUS PortxStats Port x status MBS STATUS PortxStats CmdListReq Total number of requests made from this port to slave devices on the network MBS STATUS PortxStats CmdListResp Total number of slave response
149. sal a t ga Commer Write Register Start 600 Write Register Count 600 Backplane Fail Count Error Status Block Pointer Initialize Input Image Block Transfer Size Comment Slot Number Definition This read only parameter a specifies the number of words in each block transferred between the module and Processor Page 28 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Adding the Module to RSLogix Modbus Serial Enhanced Communication Module User Manual 3 Edit the Slot Number indicating where the module is placed in the 1769 bus GJ Untitled ProSoft Configuration Builder eins File View Project Tools Help Default Project 5 Default Location All Tags Good MVI69E MBS a Module f Edit Module E Modul 1 a MBS Port Module Name MVI69E MBS Slt Number a MBS Port 2 Read Register Start 0 i Read Register Count 600 H a Ethernet 1 Write Register Start a aa Comment Write Register Count Backplane Fail Count x Error Status Block Pointer Commen Initialize Input Image Block Transfer Size Definition Slot number for the MVI69E a MBS Module 4 Click OK to close the Edit Module dialog box The L5X file is now ready to be exported to the PC Laptop 5 Right click the MVI69E MBS icon in the project tree and choose EXPORT AOI
150. seaaeeseneesaas 44 3 1 3 Editing Configuration Parameters ccccccccecceeseeceeeeeceeeeeceaeeeeeeeseeeesaeeeeaeseeeeeeaas 44 3 1 4 Printing a Configuration File ccccccccceeeceseeeeeeneeeeeeeeseaeeesaaeeeeeeeseeeeseaeeesaeseeneeeaas 46 3 2 Module Configuration Parameters ccccccsceeeeeeeeeeeeeseaeeeeeeseeeeeseeesseaeeseneeseneee 47 3 2 1 Module Parameters essea ET basstaltereenentaeeiahi detnagi sansa 47 3 2 2 Modbus Port x ParameterS eccccceeeceeeeseeeeeeeeeeeeeeeeeeeaeeeeeeaaeeeseeaaeeeseeaaeeeeneaeeeeneaas 48 3 2 3 Modbus Port x COMMANCS cc cceeeececeeeeeeeeeeeeeee see eeseaeeeeaaeseneeeseaeeesaeeeeeesenneess 52 3 2 4 AAEE hal leresecreercee A reece E ATA eter Tee carrera E A 55 3 3 Downloading the Configuration File to the ProCeSSOl ssceceeeesseeeseeteeeeeeees 56 3 4 Uploading the Configuration File from the Processor ccccsseeessseeeesessteeeeeeees 59 4 MVI69E MBS Backplane Data Exchange 63 4 1 General Concepts of the MVI69E MBS Data Transfer cceeseeeeeeeeeteeteeeeees 63 4 2 Backplane Data Transfer eccccceeeeeeeeeeeeeeeeeeeeeeeeeeeaeeeseeaaeeeseeaaeeeseeaaeeeeneaeeeeeeaas 64 4 3 Normal Data Transfer ceceesceceeeeceeeeeeeceeeeeeeeeeeeaneeeeeaeeeeeeneaeseeneneeeeeneeeeeeenines 65 ProSoft Technology Inc September 1 2015 Page 5 of 156 Contents User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication
151. sponds to slave ID x 0 based 1 Enable slave MBS CONTROL SlavePoll Portx Oor 1 Triggers disable slaves request DisableSlaves 0 Disable 1 Enable MBS CONTROL SlavePoll Portx 1 to 60 Number of slaves to be disabled DisableSlaveCount MBS CONTROL SlavePoll Portx Data array associated to disable slave request DisableSlaves Ds x where word x corresponds to slave ID x 0 based 1 Disable slave MBS CONTROL SlavePoll Portx Oor 1 Triggers request to read slave status GetSlavesStatus 0 Disable 1 Enabled MBS CONTROL SlavePoll Portx SlavesStatus x Data array with status MBS CONTROL Time This array allows the processor to get or set module time Tag Name Range Description SetTime Oori Sends the PLC time to the module 0 Disable 1 Enable GetTime Oor1 Retrieves the time from the module to PLC 0 Disable 1 Enable Year 0 to 9999 Four digit year value Example 2015 Month 1 to 12 Month Day 1 to 31 Day Hour 0 to 23 Hour Minute 0 to 59 Minute Second 0 to 59 Second Milliseconds Oto 999 Millisecond ProSoft Technology Inc September 1 2015 Page 83 of 156 Using Controller Tags MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module MBS CONTROL GetStatus This tag allows the processor to retrieve status from the module Tag Name Range Description GetStatus Oor 1 Triggers status retrieval from the module 0 Di
152. ssor or other connected devices ProSoft Technology Inc Page 13 of 156 September 1 2015 Start Here MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 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 Page 14 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Start Here Modbus Serial Enhanced 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 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 15 of 156 September 1 2015 Start Here MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 5 Press the DIN rail mounting area of the controller against the DIN rail The latches momentar
153. ster for write commands Example Count 10 Slave driver sends 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 you do not plan to use floating point data in your application then set this parameter to No which is the default setting You also need to set the Float Start and Float Offset parameters to appropriate values whenever the Float Flag parameter is set to YES Defines the first register of floating point data All requests with register values greater than or equal to this value is considered floating point data requests This parameter is only used if the Float Flag is enabled For example if you enter a value of 7000 all requests for registers 7000 and above are considered as floating point data 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 you set the Float Offset value to 3000 and the float start parameter to 7000 data requests for register 7000 use the internal Modbus register 3000 ProSoft Technology Inc September 1 2015 Page 49 of 156 Configuring the MVI69E MBS Using PCB User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Additional Configuration Parameters as Master The Type parameter must be MASTER to configure th
154. ta Status Block 8100 c cecececeeeeeseeeeeeeeeeeeeetaeeeeaeeteeeeeeeas 130 74 8 Get Configuration File Information Block 9000 or 9000 c ceeeeeeseeteereeeeee 131 7 4 9 Get Configuration File Block 9001 or 9001 c ceeceeseseeeeeeeeeeeeeeeeeaeeeeeeteeeeeeeas 132 7 4 10 Get General Module Status Data Block 9250 ceceeeeeeeeeeeeeeeeeeeeeeneeeeeeeetaes 133 7 4 11 Set Port and Command Active Bits Block 9500 sssseessesssesssressressrrssrnssrnssrnees 135 7 4 12 Get Port and Command Active Bits Block 9501 csseeeeeeeeeeeeeeeeeeeneeteeeeeeees 136 7 4 13 Pass through Formatted Block for Functions 6 and 16 with Word Data Block 9956 137 7 4 14 Pass through Formatted Block for Functions 6 and 16 with Float Data Block 9957 138 7 4 15 Pass through Formatted Block for Function 5 9958 eeeeeseeeeeseeeeeeeneeeeeenee 139 7 4 16 Pass through Formatted Block for Function 15 9959 eeeeeseeeeesseeeeeenteeeeeeaee 140 7 4 17 Pass through Formatted Block for Function 22 9960 eeseeeesteeeeeeteeeeeeaee 141 7 4 18 Pass through Formatted Block for Function 23 9961 eeeseeeesseeeeeeeteeeeeeaee 142 7 4 19 Pass through Block for Function 99 9970 cceeceseeeeeeeneeeeeeaeeeeeeaeeeeeeaeeeeseaas 143 7 4 20 Pass Module Time to Processor Block 9972 eccscceeeeseeeeeeeeeeeeeeaeeeeeeaeeeeneaas 144 7 4 21 Reset Status Block 9997 cccsecceeeeeeeeeeeeeeeeeeeece
155. tem requirements Page 10 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Start Here Modbus Serial Enhanced Communication Module User Manual 1 2 Deployment Checklist Before you begin to configure the module consider the following questions Your answers will help you determine the scope of your project and the configuration requirements for a successful deployment e Are you creating a new application or integrating the module into an existing application Most applications can use the Sample Add On Instruction or Sample Ladder Logic without any modification e Which slot number in the chassis does the MVI69E MBS module occupy For communication to occur you must enter the correct slot number in the sample program e Are the RSLogix 5000 and RSLinx software installed RSLogix and RSLinx are required to communicate to the CompactLogix or MicroLogix 1500 LRP processor e How many words of data do you need to transfer in your application from CompactLogix or MicroLogix 1500 LRP to Module to CompactLogix or MicroLogix 1500 LRP from Module 1 3 Package Contents The following components are included with your MVI69E MBS 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 MVI69E MBS Module MVI69E
156. the addressed input and the remainder follows For input quantities that are not even multiples of eight the last characters are 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 the data reflect input status at the end of the scan Some slaves 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 Node Func Byte Data Discrete Data Discrete Data Discrete Error Check Address Code Count Input 10197 to Input 10205to Input 10213to Field 10204 10212 10218 2 bytes 0B 02 03 AC DB 35 CRC The status of inputs 10197 to 10204 is shown as AC HEX 10101 1100 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 Page 108 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 2
157. 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 35 to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Size parameter Page 134 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 4 11 Set Port and Command Active Bits Block 9500 Block 9500 Set Port and command active bits This block enables and disables ports as well as individual Master commands for a port Block 9500 Request from Processor to Module Offset Description 0 Write Block ID 9500 to set port and command enable disable state 1 Port 1 active state O disabled 1 enabled 2 to 21 Command enable bits for Port 1 commands 0 disabled 1 enabled 22 Port 2 active state O disabled 1 enabled 23 to 42 Command enable bits for Port 2 commands 0 disabled 1 enabled 43 to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Size parameter Block 9500 Response from M
158. thernet Port Connection 146 Event Command Blocks 1000 to 1255 2000 to 2255 125 Example and State Diagram 113 F Floating Point Support 117 Force Multiple Coils Function Code 15 115 Force Single Coil Function Code 05 111 Function Blocks 124 Function Codes Supported by the Module 106 G General Concepts of the MVI69E MBS Data Transfer 63 General Specifications Modbus Master Slave 104 Generating the AOI L5X File in ProSoft Configuration Builder 25 Get Configuration File Block 9001 or 9001 132 Get Configuration File Information Block 9000 or 9000 131 Get Event with Data Status Block 8100 130 Get General Module Status Data Block 9250 133 Get Port and Command Active Bits Block 9501 136 H Hardware Specifications 104 If Block Transfer Size 120 68 If Block Transfer Size 240 69 If Block Transfer Size 60 67 Important Safety Information 3 Importing the Add On Instruction 31 Installing an Add On Profile 18 Installing ProSoft Configuration Builder 24 Installing the Module in the Rack 13 L LED Status Indicators 88 ProSoft Technology Inc September 1 2015 Page 155 of 156 Index User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Master Command List 73 Master Mode 72 MBS Controller Tag Overview 79 MBS CONFIG 80 MBS CONTROL 80 MBS CONTROL CmdControl 81 MBS
159. tion Module 8 Select the L5X file you created and exported for the new module and click IMPORT The new L5X file has a unique filename that is specific to the new module Import Rungs Look in Desktop A B My Documents 3 My Computer My Recent E My Network Places M MvI69E MB5_000_60_AddOn_Rung_v1_0 L5X B H MvI69E MB5_60_AddOn_Rung_v1_0 L5X Documents Desktop My Documents g My Computer File name MVI6B9E MBS_O000_60_AddOn_Rung_vi_OL5X Vv Files of type My Network Files containing Places Into ty C Overwrite Selected Rungs 9 This opens the IMPORT CONFIGURATION dialog box Click TAGS to show the controller tags in the AOI You must edit the FINAL NAME column of the tags for the second module to make them unique W import Configuration Fra Jaa Find Within Final Name Import Content fa MainT ask ij MainProgram Configure Tag References MainRoutine Rungs amp References E Add On Instruction _ Data Types lco Errors Warnings ADIGSE_MBS_ Create Local1 Use Existing Local 1 0 Use Existing MBS_000 Create ig Local 1 I ig Local 1 0 MBS_000 import Name Operation FinalName e F Aias For Data Type _ Description 9 _ AQI69E_MBS_000 AOIBSE_M PS MVIBSE PS MVIBSE MBS_OOOM OK Cancel Help Page 40 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform A
160. tion 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 are 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 22 coils from slave number 11 ProSoft Technology Inc Page 107 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module Note This is the structure of the message being sent out to the Modbus network The byte values below are in hexadecimal display Node Function Data Start Data Start Number of Number of Error Check Address Code Point High Point Low Points High Points Low Field 2 bytes 0B 02 00 C4 00 16 CRC Response An example response to Read Input Status is as shown in the table below 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 is packed with one bit for each input 1 ON O OFF The lower order bit of the first character contains
161. tions are available Block Transfer Size Input Block Size Output Block Size 60 62 61 120 122 121 240 242 241 ProSoft Technology Inc September 1 2015 Page 23 of 156 Adding the Module to RSLogix MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 4 Onthe Connection tab set the REQUESTED PACKET INTERVAL value for your project and click OK E Module Properties Local 1 1769 MODULE 1 1 General Connection MV Major Fault On Controller If Connection Fails While in Run Mode Module Fault Status Offline Cancel The MVI69E MBS module is now visible in the I O Configuration tree 3 8 1 0 Configuration 5 8 Backplane CompactLogix System fa 1769 L35E MVI69E_MBS 1769 L35E Ethernet Port LocalENB s Ethernet 4 CompactBus Local WELL 1769 MODULE MVI69MBS 2 2 Installing ProSoft Configuration Builder Use the ProSoft Configuration Builder PCB software to configure the module You can find the latest version of the ProSoft Configuration Builder PCB on our web site http www prosoft technology com or you can install it from the ProSoft Solutions DVD The installation filename contains the PCB version number For example PCB_4 3 4 5 0238 EXE If you are installing PCB from the ProSoft website 1 Open a browser window and navigate to http www prosoft technology com 2 Navigate to the ProSoft Configuration Builder download link and s
162. transferred in multiple blocks and the file offset tells the processor which part of the configuration file is being requested by the individual block 4 5 Number of bytes of the configuration file to include in next block 6 7 Copy of the data contained in registers 2 to 3 Block 9001 or 9001 Response from Processor to Module Offset Description 0 Write Block ID 9001 or 9001 configuration file data 1 2 File offset Same as registers 2 3 of the previous request block 3 4 Data length Same as registers 4 5 of the previous request block 5 to n 1 Contents of configuration file If the size of the configuration file exceeds the block transfer size this information is transferred in multiple blocks Where n 60 120 or 240 depending on the Block Transfer Size parameter Page 132 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 4 10 Get General Module Status Data Block 9250 Block 9250 Get General Module Status Data This block requests the general module status Block 9250 Request from Processor to Module Offset Description 0 Write Block ID 9250 request for general module status 1 to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Size parameter Block 9250 Response from Module to Processor Offset Description
163. troller A Controller Tags Controller Fault Handler Power Up Handler a Tasks 5 MainTask amp MainProgram Program Tags Ea MainRoutine Unscheduled Programs Phases 5 6 Motion Groups Ungrouped Axes J Add On Instructions S AOI69E_MBS_000_60 A Parameters and Local Tags EB Logic E Prescan w J AOI69_MBS_60 w amp Data Types Trends 3 6 Yo Configuration 5 Backplane CompactLogix System a 1769 L3SE My_Controller 1769 L35E Ethernet Port LocalENB Za Ethernet S CompactBus Local E 1 MYVI69E MBS A MYI69E_MBS 8 2 MVI69E MBS A MVI69E_MBS_2 kz Fired Fan 4H tol fet e a h si lt gt Favorites Add on X Alarms K Bit lt none gt Y E gt Timer Counter S SS ES B aa do ab v MainRoutine f Add On instruction for MVIBSE MBS module AOI6S_MBS_60 Add On instruction for MVIGSE MBS mo AOI6S_MBS_60 AOI6S_MBS CJ MBS MBS Connection_Input Local 1 1 Data Connection_Output Local 1 0 Data Add On instruction for MVIBSE MBS module AOIB9E_MBS_000_60 Add On instruction for MYIG9E MBS module AOIG9E_MBS_000_60 AOI6SE_MBS_2 CJ MBS_o00 MBS_2 Connection_Input Local 2 Data Connection_Output Local 2 0 Data Rung 1 of 2 The setup procedure is now complete Save the project It is ready to download to the CompactLogix or MicroLogix 1500 LRP processor Page 42 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Configuring the
164. umber of slaves to process is set in Word 1 of the block Block 3001 or 3101 Response from Module to Processor Offset Description 0 Read Block ID 3000 to 3101 or 3100 to 3101 requested by the processor 1 Write Block ID To be used by the processor in its next Write block 2 Number of slaves processed in the last request This number should match the value passed in Word 1of the request block 3to n 1 Spare Page 126 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Reference Modbus Serial Enhanced Communication Module User Manual 7 4 4 Slave Polling Status Blocks 3002 to 3006 3102 to 3106 Blocks 3002 to 3006 Port 1 Slave Status Blocks 3102 to 3106 Port 2 Slave Status Two arrays are allocated in the module s primary object to hold the polling status of each slave on the Master ports You can use this status data to determine which slaves are currently active on the port in communication error or have their polling suspended and disabled Block 3002 to 3006 or 3102 to 3106 Request from Processor to Module Offset Description 0 Write Block ID 3002 to 3006 for Port 1 and 3102 to 3106 for Port 2 slave polling status request 1 to n 1 Spare Where n 60 120 or 240 depending on the Block Transfer Size parameter Block 3002 to 3006 or 3102 to 3106 Response from Module to Processor Offset Description 0 Read Block ID 3002 to 3006 or 3102 to 310
165. umber of word registers in Modbus data set 3 Starting address for Modbus data set 4to n 1 Data Length in words n 2 Where n 60 120 or 240 depending on the Block Transfer Size parameter The ladder logic is 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 This informs the module that the command has been processed and can be cleared from the Pass Through queue Block 9956 Response from Processor to Module Offset Description 0 Write Block ID 9956 1 ton Spare Length in words n 2 ProSoft Technology Inc Page 137 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 4 14 Pass through Formatted Block for Functions 6 and 16 with Float Data Block 9957 Block 9957 Pass Through Formatted Block for Functions 6 and 16 with Float Data Block Block 9957 Request from Module to Processor Offset Description 0 Read Block ID 9957 1 Write Block ID 9957 2 Number of word registers in Modbus data set 3 Starting address for Modbus data set 4to n 1 Data Length in words n 2 Where n 60 120 or 240 depending on the Block Transfer Size parameter The ladder logic is responsible for parsing and copying the rec
166. 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 Note The ReadData array is not used in Pass Through mode 4 Same as normal mode ProSoft Technology Inc Page 71 of 156 September 1 2015 MVI69E MBS Backplane Data Exchange MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module Step Description 5 Same as normal mode 4 4 2 Master Mode In Master mode the MVIG69E MBS module issues read or write commands to slave devices on the Modbus network These commands are user configured in PCB refer to Modbus Port x Commands page 52 This list is transferred to the module when the module receives its configuration from the processor The commands can also be issued directly from the CompactLogix or MicroLogix 1500 LRP processor Special Command Blocks Command status is returned 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 command data into and out of the module I Processor Memory _ __ Backplane Interface MBS Memory i Piven ons 4 Database Modbus ags Addresses Addresses i 0 40001 I R egister Data R
167. upply distance rating of 2 L43 and L45 installations on first 2 slots of 1769 bus It consumes 500 mA at 5 VDC Important For 1769 L23x processors please make note of the following limitation 1769 L23E QBFC1B 450 mA at 5 VDC No MVI69E module can be used with this processor e The module requires 500 mA of available 5 VDC power Rockwell Automation RSLogix 5000 programming software version 16 or higher Rockwell Automation RSLinx communication software version 2 51 or higher ProSoft Configuration Builder PCB included ProSoft Discovery Service PDS included in PCB Pentium II 450 MHz minimum Pentium III 733 MHz or better recommended e Supported operating systems Microsoft Windows 7 Microsoft Windows Vista Microsoft Windows XP Professional with Service Pack 1 or 2 Microsoft Windows 2000 Professional with Service Pack 1 2 or 3 o Microsoft Windows Server 2003 e 128 Mbytes of RAM minimum 256 Mbytes of RAM recommended e 100 Mbytes of free hard disk space or more based on application requirements e 256 color VGA graphics adapter 800 x 600 minimum resolution True Color 1024 x 768 recommended e DVD drive O O10 O Note The Hardware and Operating System requirements in this list are the minimum recommended to install and run software provided by ProSoft Technology Other third party applications may have different minimum requirements Refer to the documentation for any third party applications for sys
168. uration file information from processor 1 Write Block ID 9000 or 9000 to be used by the processor in its next Write block Block 9000 or 9000 Response from Processor to Module Offset Description Write Block ID 9000 or 9000 configuration file information Module s slot number Size of the module s Input image to the processor Size of the module s Output image from the processor Status of configuration file These two registers contain the size of the configuration file in bytes These two registers contain the CRC for the configuration file NIAJ AI OIN 0 o o ProSoft Technology Inc Page 131 of 156 September 1 2015 Reference User Manual MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module 7 4 9 Get Configuration File Block 9001 or 9001 Block 9001 or 9001 Get Configuration File Information This block requests the configuration file from the processor The module returns the requested contents of the configuration file Block 9001 or 9001 Request from Module to Processor Offset Description 0 Read Block ID 9001 or 9001 request for configuration file from processor 1 Write Block ID 9001 or 9001 to be used by the processor in its next Write block 2 3 File offset Offset of the first register in the configuration file to begin transferring data from If the size of the configuration file exceeds the block transfer size the file is
169. verrides the associated database area with the Override Value Upon Error parameter value Float Override upon Error 4 For read commands only If a command error occurs the module overrides the associated database area 2x word count with the Override Value Upon Error parameter value Internal Address 0 to 9999 word level or 0 to 65535 bit level Specifies the module s internal database register to be associated with the command Allowable range is 0 to 9999 for Modbus Function Codes 3 4 6 or 16 and 0 to 65535 for Modbus Function Codes 1 2 5 or 15 If the command is a read function the data read from the slave device is stored beginning at the module s internal database register value entered in this field This register value must be in the Read Data area of the module s memory defined by the Read Register Start and Read Register Count parameters in the Module section If the command is a write function the data to be written to the slave device is sourced beginning from the module s internal database register specified This register value must come from the Write Data area of the module s memory defined by the Write Register Start and Write Register Count parameters in the Module section Note When using a bit level command you must define this field at the bit level For example when using function codes 1 or 2 for a Read command you must have a enter of 160 to place the data in the MBS DA
170. with the Add On Instruction is visible RSLogix 5000 My_Controller 1769 L35E 20 11 BEJE Fle Edt View Search Logic Communications Tools Window Help sH amp amp amp lt mBOfsetByte aa Pe aa Path lt none gt X a Offline D RUN Fao a ml 4k Ww No Forces ie aos t tol tel eee Se I GER BAT it gt Favorites Add On Alarms A Bit TimevCou No Edits ee Tyo J j K Ken X gani aa Marirask MainProgram A Program Tags Bb narrate ees Unscheduled Programs Phases module 5 6 Motion Groups gt AOl63_MBS_60 Ungrouped Axes 0 Add On instruction for MVIGB9E MBS mo 3 8 Add On Instructions vache anes QJ a amp AOI69_MBS_60 Connection_Input Local 1 Data Parameters and Local Tags Connection_Output Local 1 0 Data D Logic E Prescan amp Data Types 3 User Defined G8 MBSBlockStatus MBSCmdcontrol M MBSCoilArray E MBSCONFIG MBSCONTROL M MBSDATA M MBSEventCmd MBSEventDataCmd M MBSEventPortStatus H MBSModuleDef MBSPassThru E MBSPortControl E MBSPortControlUnit MBSPortStatus E MBSSlavePoll M MBSSlavePollPort MBSSTATUS E MBSTime 8 MBSUTIL MBSUtil_ConfigFile abed 11635 fay Mainkoutine The procedure also imports new user defined data types data objects and the Add On instruction to be used in the project with the MVI69E MBS module Page 34 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS C
171. wn OK Green Module is ok 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 During module configuration the OK LED is red and the BP ACT LED is 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 Technical Support to arrange for repairs Page 88 of 156 ProSoft Technology Inc September 1 2015 MVI69E MBS CompactLogix Platform Modbus Serial Enhanced Communication Module Diagnostics and Troubleshooting User Manual 6 2 1 Clearing a Fault Condition Typically if the OK LED on the front of the module remains RED for more than ten seconds a hardware problem has been detected or the program has exited To clear the condition follow these steps oOahAN Turn off power to the rack Remove the card from the rack Verify that all jumpers are set correctly If the module requires a Compact Flash card verify it 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 1500 LRP 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 6 2 2 Troubleshooting Use the fol
172. x 5000 project There are two ways to do this o You can use the Add On Profile from ProSoft Technology This is the preferred way but requires RSLogix version 15 or later o You can manually create the module using a generic 1769 profile and then manually configure the module parameters Use this method if you have RSLogix version 14 or earlier Create an Add On Instruction file using ProSoft Configuration Builder PCB and export the Add On Instruction to an RSLogix 5000 compatible file L5X file Import the Add On Instruction the L5X file into RSLogix 5000 The L5X file contains the Add On Instruction user defined data types controller tags and ladder logic required to configure the MVIG9E MBS module Creating the Module in an RSLogix 5000 Project In an RSLogix 5000 project there are two ways you can add the MVI69E MBS module to the project You can use an Add On Profile AOP from ProSoft Technology The AOP contains all the configuration information needed to add the module to the project This is the preferred way but requires RSLogix version 15 or later Refer to Creating a Module in the Project Using an Add On Profile page 18 If using an AOP is not an option you can manually create and configure the module using a generic 1769 profile Use this method if you have RSLogix version 14 or earlier Refer to Creating a Module in the Project Using a Generic 1769 Module Profile page 22 ProSoft Technology Inc Page
173. ze parameter ProSoft Technology Inc Page 145 of 156 September 1 2015 Reference MVI69E MBS CompactLogix Platform User Manual Modbus Serial Enhanced Communication Module 7 5 Ethernet Port Connection 7 5 1 Ethernet Cable Specifications The recommended cable is Category 5 or better A Category 5 cable has four twisted pairs of wires which are color coded and cannot be swapped The module uses only two of the four pairs The Ethernet port or ports on the module are Auto Sensing You can use either a standard Ethernet straight through cable or a crossover cable when connecting the module to an Ethernet hub a 10 100 Base T Ethernet switch or directly to a PC The module detects the cable type and uses the appropriate pins to send and receive Ethernet signals Some hubs have one input that can accept either a straight through or crossover cable depending on a switch position In this case you must ensure that the switch position and cable type agree Refer to Ethernet Cable Configuration page 146 for a diagram of how to configure Ethernet cable Ethernet Cable Configuration Note The standard connector view shown is color coded for a straight through cable Crossover cable Straight through cable RJ 45 PIN RJ 45 PIN RJ 45 PIN RJ 45 PIN 1 Rx 3 TX 1 Rx 1 Tx 2 Rx 6 Tx 2 Rx 2 Tx 3 Tx 1 Rx 3 Tx 3 Rx 6 Tx 2 Rx 6 Tx 6 Rx j 12345678 87654321 Page 146 of 156 ProSoft Technology Inc September
Download Pdf Manuals
Related Search
Related Contents
オプション吊り下げキット 取扱説明書 1 2 ! ! ! 3 ! BORADA EPOLUXE DA-HDTV-SDI USER MANUAL User Guide - Cosmodata ジオシンセティックス利用の発展は? - 国際ジオシンセティックス学会 日本 Nähmaschine M40 Jubilee - Migros 深井戸用水中ポンプ定圧制御ユニット (単相 100V /単相 200V シリーズ) Garantia Produtos Solares Junkers Le clivage de l`objet et la clinique contemporaine Copyright © All rights reserved.
Failed to retrieve file