ProSoft Technology MVI56-MCM User Manual Download Page 72

MVI56-MCM 

 ControlLogix Platform 

Diagnostics and Troubleshooting 

Modbus Communication Module  

 

Page 72 of 159  

ProSoft Technology, Inc. 

July 24, 2008 

 

Viewing Version Information 

Press 

[V] 

to view Version information for the module. 

Use this command to view the current version of the software for the module, as 
well as other important values. You may be asked to provide this information 
when calling for technical support on the product. 

Values at the bottom of the display are important in determining module 
operation. The Program Scan Counter value is incremented each time a 
module's program cycle is complete. 

Tip: Repeat this command at one-second intervals to determine the frequency of program 
execution. 

 

Warm Booting the Module 

Caution: Some of the commands available to you from this menu are designed for advanced 
debugging and system testing only, and can cause the module to stop communicating with the 
processor or with other devices, resulting in potential data loss or other failures. Only use these 
commands if you are specifically directed to do so by ProSoft Technology Technical Support staff. 
Some of these command keys are not listed on the menu, but are active nevertheless. Please be 
careful when pressing keys so that you do not accidentally execute an unwanted command. 

Press 

[W] 

from the Main Menu to warm boot (restart) the module. This command 

will cause the program to exit and reload, refreshing configuration parameters 
that must be set on program initialization. Only use this command if you must 
force the module to re-boot. 

 

Transferring Module Configuration to the Processor 

Press 

[Y]

 to transfer the module's configuration data to the processor. Ladder 

logic is required in the processor to receive and implement the updated 
configuration. You will be prompted to confirm the transfer.  

If the operation is not successful, an error code will be returned. 

Code Description 

0 Transfer 

successful 

-1 

Error transferring module configuration data (block -9000) 

-2 

Error transferring device definition data (blocks -9100 to -9103) 

-3 

Error transferring master command list data (blocks -6000 to -6007) 

After successful data transfer, the module will perform a warm-boot operation to 
read in the new data. 

 

Communication Status (Ports 1 and 2) 

Press 

[1]

 or 

[2]

 to view the communication status and statistics of the specified 

Modbus port. This information can be useful for troubleshooting network 
problems.  

 

Summary of Contents for MVI56-MCM

Page 1: ...MVI56 MCM ControlLogix Platform Modbus Communication Module User Manual July 24 2008...

Page 2: ...ange without notice and does not represent a commitment on the part of ProSoft Technology Improvements and or changes in this manual or the product may be made at any time These changes will be made p...

Page 3: ...CMOS setup and configuration data the real time clock and the 512K SRAM memory for approximately 21 days Before you remove a module from its power source ensure that the battery within the module is f...

Page 4: ...ort please write or call us ProSoft Technology 1675 Chester Avenue Fourth Floor Bakersfield CA 93301 1 661 716 5100 1 661 716 5101 Fax http www prosoft technology com Copyright ProSoft Technology Inc...

Page 5: ...dule to Rack Configuration 16 3 2 Import Add On Instruction 18 3 3 Download the Sample Program to the Processor 21 4 CONFIGURATION AS A MODBUS MASTER 25 4 1 Overview 25 4 2 ModDef Settings 26 4 3 Mast...

Page 6: ...ions 105 8 4 MVI56 MCM Database Definition 111 8 5 MVI56 MCM Configuration Data 111 8 6 MVI56 MCM Status Data Definition 119 8 7 MVI56 MCM Command Control 121 8 8 MVI56 MCM User Defined Data Types 121...

Page 7: ...nostic and Troubleshooting Verifying Communication page 61 Diagnostics and Troubleshooting page 67 This section describes how to verify communications with the network Diagnostic and Troubleshooting p...

Page 8: ...MVI56 MCM ControlLogix Platform Guide to the MVI56 MCM User Manual Modbus Communication Module Page 8 of 159 ProSoft Technology Inc July 24 2008...

Page 9: ...stem Requirements The MVI56 MCM module requires the following minimum hardware and software components Rockwell Automation ControlLogix processor with compatible power supply and one free slot in the...

Page 10: ...er in your application from ControlLogix to Module to ControlLogix from Module The MVI module can transfer a maximum of 5000 16 bit registers to from the CLX processor The Sample Ladder transfers 600...

Page 11: ...ion For EXISTING system installations go to Integrating the Sample Ladder Logic into an Existing Project page 142 Note Most applications can use the Sample Ladder Logic without any edits to the sample...

Page 12: ...h memory In write protected mode the Setup pins are not connected and the module s firmware cannot be overwritten Do not jumper the Setup pins together unless you are directed to do so by ProSoft Tech...

Page 13: ...epeated electrical arcing causes excessive wear to contacts on both the module and its mating connector Worn contacts may create electrical resistance that can affect module operation 1 Turn power OFF...

Page 14: ...stalling MVI56 MCM with other modules connected to the PCI bus the peripheral modules will not have holding clips Make sure all of the modules are aligned with their respective slots before you snap t...

Page 15: ...e ProSoft Solutions CD ROM into the CD drive of your PC Wait for the startup screen to appear 2 On the startup screen click Product Documentation This action opens an Explorer window Files are arrange...

Page 16: ...rogram to download for your version of RSLogix 5000 and your processor 3 1 Add Module to Rack Configuration As with any project the first step is to define the module in the I O configuration of your...

Page 17: ...to open the Module Properties dialog box An RPI time of the default 5 0 ms will work well for the MVI56 MCM module in a local I O rack If the module is being used in a remote rack over Control Net fo...

Page 18: ...g illustration 3 2 Import Add On Instruction 1 Open your application in RSLogix 5000 2 Expand the Tasks folder and then expand the Main Task folder 3 On the Main Program folder click the right mouse b...

Page 19: ...Module ProSoft Technology Inc Page 19 of 159 July 24 2008 6 Select the MVI56MCM_AddOnRung L5X file 7 The following window will be displayed showing the controller tags to be created during the import...

Page 20: ...e Page 20 of 159 ProSoft Technology Inc July 24 2008 When the import is completed the new rung with the Add On instruction will be visible as shown in the following illustration The procedure has also...

Page 21: ...Communications menu and then choose Download RSLogix will establish communication with the processor 2 When communication is established RSLogix will open a confirmation dialog box Click the Download...

Page 22: ...sh communication with the processor follow these steps 1 Open RSLinx 2 Open the Communications menu and choose Configure Drivers This action opens the Configure Drivers dialog box Note If the list of...

Page 23: ...he Auto Configure button RSLinx will attempt to configure your serial port to work with the selected driver 5 When you see the message Auto Configuration Successful click the OK button to dismiss the...

Page 24: ...MVI56 MCM ControlLogix Platform Using the RSLogix 5000 v16 Add On Instruction Modbus Communication Module Page 24 of 159 ProSoft Technology Inc July 24 2008...

Page 25: ...r a timeout has occurred the module as a master will then move on to the next command in the list Configuration of the module as a master must be done in the following three locations 1 ModDef configu...

Page 26: ...g Determines where in the 5000 register module memory to place the data obtained from the ControlLogix processor from the WriteData tags WriteRegCnt Sets how many registers of data the MVI module will...

Page 27: ...steps described below Because the module pages data in blocks of 200 registers at a time you will want to keep this as a number divisible by 200 Note Changing the array size may zero out all tags in...

Page 28: ...to open the MCM CONFIG ModDef section and change the ReadRegCnt parameter from the default 600 to 1000 for your application 6 Click ReadData to open ladder file and go to rung 2 of this file 7 Change...

Page 29: ...parameters not mentioned in this section are not used when the module is configured as a Modbus Master Parameters in BOLD are required for all applications as a master Verify you are in Monitor Tags...

Page 30: ...r code See Verifying Communications of this manual CmdErrPtr value should be within the range of the ReadData array per MCM CONFIG ModDef of this manual RespTO 1000 1000 milliseconds 1 second before i...

Page 31: ...it will be placed in the module database On read commands you will want to configure this for a location that is setup for ReadData The internal database location of the ReadData and WriteData tags is...

Page 32: ...g Function Code 5 or 15 2 Read Input Coils This will read modbus addresses 10001 to 29999 Like Function Code 1 these are also bit values but Function Code 2 values are Read Only data values while FC 5...

Page 33: ...91 DevAddress 590 FC 4 DevAddress Modbus address in device 30001 Example Modbus address 30001 DevAddress 0 Modbus address 34290 DevAddress 4289 4 2 3 More Master Command Configuration Q My Modbus addr...

Page 34: ...odbus address 400591 DevAddress 590 FC 4 DevAddress Modbus address in device 300001 Example Modbus address 300001 DevAddress 0 Modbus address 304290 DevAddress 4289 For example our device listed above...

Page 35: ...e 4 Like the 4x holding registers 3x input registers are used for reading analog values that are 16 bit register values but can also be used for the storage of floating point data see Floating Point S...

Page 36: ...e module at address 16320 IntAddress 16320 of the module memory will be copied into the tag MCM DATA ReadData 20 because 16320 represents a bit address within the memory of the MVI56 MCM module 16320...

Page 37: ...vice these are single bit addresses within a Modbus slave device The IntAddress field of this command is defined down to the bit level within the module memory and should come from an area of memory t...

Page 38: ...Causes the module to send the command to the slave device only when the data associated within the IntAddress of the MVI56 MCM module memory has changed IntAddress 320 Writes the data in bit 320 of th...

Page 39: ...ers 4xxxx this function code will write multiple registers to the slave device The Enable code can be set to a value of 1 for a continuous write or a value of 2 to write the data to the slave device o...

Page 40: ...resent a single floating point value 4 4 1 Read Floating Point Data Here is the addressing of a slave device with a parameter Energy Consumption that is shown as two registers 40257 and 40258 Value De...

Page 41: ...e used Notice the length of the COP statement is a value of 1 Within a Rockwell Automation processor a COP statement will copy the required amount of Source values to fill the Dest tag for the Length...

Page 42: ...TA ReadData array 4 4 3 Write Floats to Slave Device To issue a Write command to Floating Point addresses the following configuration can be used Below is the Modbus Map for the slave device Value Des...

Page 43: ...o the slave device node 1 addresses 40261 to 40274 4 4 4 Read Floats with Single Modbus Register Address Enron Daniel Float Some Modbus slave devices will utilize one Modbus address to store 32 bits o...

Page 44: ...f the Float Flag and Float Start parameters within the configuration file This table provides the addresses that will be written to by the module Address Data Type Parameter 47001 32 bit REAL Demand 4...

Page 45: ...Event Command are features for the module in the master mode of operation that will allow the user to change the command execution based on some conditions in ladder The module goes through the comma...

Page 46: ...MCM CONFIG Port1MasterCmd 0 MCM CONFIG Port1MasterCmd 5 will be enabled with this configuration Error codes for each individual command will be returned into the Error Status table Tag Value Descript...

Page 47: ...write to the slave contains that latest value from the WriteData tag that corresponds to the Event Command Below is the structure of the EventCommand block Parameter Value Description EventCmdTrigger...

Page 48: ...Communication Module Page 48 of 159 ProSoft Technology Inc July 24 2008 Note Event Command blocks can only send 1 command to the command queue per block Note Event Commands like Command Control will...

Page 49: ...he Modbus Master device will be placed into the MCM DATA ReadData array To set up module as a Modbus Slave you must determine how much data you must transfer to and from the module to the Modbus Maste...

Page 50: ...m the MVI module to the CLX processor ReadData The WriteStartReg will be used to determine the starting register location for WriteData 0 to 599 and the WriteRegCnt will be used to determine how many...

Page 51: ...dule can be accessed as a 0xxx bit address 1xxxx bit address 3xxxx register address or 4xxxx register address MVI Address 0xxx 1xxxx 3xxxx 4xxxx Tag Address 0 0001 to 0016 10001 to 10016 30001 40001 W...

Page 52: ...dData 50 1100 31101 41101 ReadData 100 1200 31201 41201 ReadData 200 1500 31501 41501 ReadData 500 1598 31599 41599 ReadData 598 1599 31600 41600 ReadData 599 The above addressing chart will work with...

Page 53: ...iteData 100 200 13201 to 13216 30191 WriteData 200 500 18001 to 18016 30491 WriteData 500 598 19569 to 19584 30489 WriteData 598 599 19585 to 19600 30490 WriteData 599 600 to 999 N A N A N A N A Reser...

Page 54: ...the Modbus Master to have the ability to read and write to the exact same Modbus address within the module In all of the examples listed above this is not possible as data can either be read from the...

Page 55: ...justment The Sample Ladder Logic will only allow for the first 416 coils 26 registers to be processed This is due to the size of the Coil Array within the _UTIL Passthru MBCoil setup and the Sample La...

Page 56: ...Baudrate Sets the baud rate that the port will operate at Valid values for this field are 110 150 300 600 1200 4800 9600 19200 384 or 3840 for 38 400 baud 576 or 5760 for 57 600 baud and 115 1152 or...

Page 57: ...r file will handle this information InterCharacterDelay Within Modbus RTU a character gap or quiet time on the line signals the end of the message This is typically 3 5 character widths as specified b...

Page 58: ...difference is the addressing of the module For instance and Enron Float device is required to access address 47001 for floating point data and each Modbus register would emulate a single float value d...

Page 59: ...figuration this would be the addressing for the module Module Address Modbus Address Tag Address 100 47001 MCM DATA WriteData 100 102 47002 MCM DATA WriteData 102 104 47003 MCM DATA WriteData 104 110...

Page 60: ...MVI56 MCM ControlLogix Platform Configuration as a Modbus Slave Modbus Communication Module Page 60 of 159 ProSoft Technology Inc July 24 2008...

Page 61: ...the module 203 to 204 Product Code These two registers contain the product code of MCM 205 to 206 Product Version These two registers contain the product version for the current running software 207...

Page 62: ...s successfully parsed that were received from the processor 228 Command Event Block Count This field contains the total number of command event blocks received from the processor 229 Command Block Cou...

Page 63: ...e configuration values for ReadStartReg and ReadRegCnt this will be addresses 1000 to 1599 of the module memory Below are the sample configuration values Based on these values shown above a good place...

Page 64: ...d command for addresses 40001 to 40010 function code 3 DevAddress 0 Count 10 because address 40006 is not a valid address for this slave Try reading just one register and see if the error code goes aw...

Page 65: ...bit to make sure that the values you have entered for within the MCM CONFIG array are downloaded to the module You can also cycle power to the module to perform a reboot and force the module to read t...

Page 66: ...s the command index that last generated an error and does not indicate a command currently in error In the above example a value of 2 in Port1LastErr indicates that the last error was generated by MCM...

Page 67: ...located in the module s database at registers 6670 to 6698 and at the location specified in the configuration This data is transferred to the ControlLogix processor continuously with each read block...

Page 68: ...ing DOS you must obtain and install a compatible communication program The following table lists communication programs that have been tested by ProSoft Technology DOS ProComm as well as several other...

Page 69: ...revious menu You can always return from a sub menu to the next higher menu by pressing M on your keyboard The organization of the menu structure is represented in simplified form in the following illu...

Page 70: ...pear on your terminal screen Caution Some of the commands available to you from this menu are designed for advanced debugging and system testing only and can cause the module to stop communicating wit...

Page 71: ...he information on this screen can help determine if there are communication problems between the processor and the module Tip To determine the number of blocks transferred each second mark the numbers...

Page 72: ...t staff Some of these command keys are not listed on the menu but are active nevertheless Please be careful when pressing keys so that you do not accidentally execute an unwanted command Press W from...

Page 73: ...7 1 6 Data Analyzer The data analyzer mode allows you to view all bytes of data transferred on each port Both the transmitted and received data bytes are displayed Use of this feature is limited witho...

Page 74: ...onds ticks 0 Turn off timing marks Removing Timing Marks in the Data Analyzer Press 0 to turn off timing marks in the Data Analyzer screen Viewing Data in Hexadecimal Format Press H to display the dat...

Page 75: ...arameter is user defined Stopping the Data Analyzer Press S to stop the data analyzer Use this option to freeze the display so the data can be analyzed To restart the analyzer press B Important When i...

Page 76: ...no data on the line Usually 10milliseconds is the best value to start with After you have selected the Port Format and Tick we are now ready to start a capture of this data The easiest way to do so i...

Page 77: ...ters being sent out by the module The R shows when the module is done transmitting data and is now ready to receive information back And finally all characters shown in the brackets is information bei...

Page 78: ...e of Modbus messages Each option available on the menu is discussed in the following topics Viewing Register Pages To view sets of register pages use the keys described below Command Description 0 Dis...

Page 79: ...d to display the data on the current page in floating point format The program assumes that the values are aligned on even register boundaries If floating point values are not aligned as such they are...

Page 80: ...en the module and the Modbus network on its Modbus Port 2 P2 Green Off No data is being transferred on the port On The MVI56 MCM is working normally APP Amber Off The MVI56 MCM module program has reco...

Page 81: ...base size 0x0001 1 Read block start value is less than zero 0x0002 2 Read block count value is less than zero 0x0004 3 Read block count start is greater than the database size 0x0008 4 Write block sta...

Page 82: ...e module Call ProSoft Technology Support to arrange for repairs 7 2 1 Clearing a Fault Condition Typically if the OK LED on the front of the module turns red for more than ten seconds a hardware probl...

Page 83: ...s to take BP ACT LED remains off or blinks slowly This indicates that backplane transfer operations are failing Connect to the module s Configuration Debug port to check this To establish backplane co...

Page 84: ...MVI56 MCM ControlLogix Platform Diagnostics and Troubleshooting Modbus Communication Module Page 84 of 159 ProSoft Technology Inc July 24 2008...

Page 85: ...network and the ControlLogix processor The data transfer from the processor is asynchronous from the actions on the Modbus network A 5000 word register space in the module exchanges data between the p...

Page 86: ...40 to 85 C 40 to 185 F Shock 30g Operational 50g non operational Vibration 5 g from 10 to 150 Hz Relative Humidity 5 to 95 non condensing LED Indicators Module Status Backplane Transfer Status Applic...

Page 87: ...onally the master ports have an optimized polling characteristic that polls slaves with communication problems less frequently The ControlLogix processor can be programmed to control the activity on t...

Page 88: ...is established the master sends the MODBUS commands to the slave The MVI56 MCM module works both as a master and as a slave The MVI56 MCM module acts as an input output module between devices on a MOD...

Page 89: ...ata 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...

Page 90: ...7 words of data can be transferred from the processor to the module Each image has a defined structure depending on the data content and the function of the data transfer as defined below 8 2 6 Normal...

Page 91: ...W2 R3W1 R1W2 R2W1 R3W2 R1W1 This sequence will continue until interrupted by other write block numbers sent by the controller or by a command request from a node on the Modbus network or operator cont...

Page 92: ...44 249 2 or 3 1 If there are any errors in the configuration the bit associated with the error will be set in one of the three configuration error words The error must be corrected before the module s...

Page 93: ...ort Slaves attached to the master port can have one of the following states 0 The slave is inactive and not defined in the command list for the master port 1 The slave is actively being polled or cont...

Page 94: ...can disable state value of 3 by sending a special block of data from the processor to the slave Port 1 slaves are disabled using block 3000 and Port 2 slaves are disabled using block 3100 Each block...

Page 95: ...directly from the ladder logic to one of the master ports The format for these blocks is displayed in the following table Offset Description Length 0 1000 to 1255 or 2000 to 2255 1 1 Internal DB Addr...

Page 96: ...tion the module will only execute commands with the Enable parameter set to one or two If the value is set to zero the command is skipped Commands may be placed in the command list with an Enable para...

Page 97: ...ock contains a value of 9000 in the first word The module will respond with blocks containing the module configuration data Ladder logic must handle the receipt of these blocks The blocks transferred...

Page 98: ...the ladder logic for proper module operation Warm Boot This block is sent from the ControlLogix processor to the module output image when the module is required to perform a warm boot software reset...

Page 99: ...or parsing and copying the received message and performing the proper control operation as expected by the master device The processor must then respond to the pass through control block with a write...

Page 100: ...rsing and copying the received message and performing the proper control operation as expected by the master device The processor must then respond to the pass through control block with a write block...

Page 101: ...odes Each port on the module is configured to emulate a Modbus master device or a Modbus slave device The operation of each port is dependent on this configuration The sections below discuss the opera...

Page 102: ...e the level of activity of the Slave Driver Review Integrating the Sample Ladder Logic into an Existing Project page 142 for a complete list of the parameters that must be defined for a slave port An...

Page 103: ...ued to the other nodes on the Modbus network 2 After configuration the Master driver begins transmitting read and or write commands to the other nodes on the network If writing data to another node th...

Page 104: ...d in from the processor and as the commands are processed an error value is maintained in the module for each command You can view the current command error list page 79 from the module s Config Debug...

Page 105: ...ports on the MVI56 MCM module support RS 232 RS 422 and RS 485 interfaces Please inspect the module to ensure that the jumpers are set correctly to correspond with the type of interface you are using...

Page 106: ...ing shows an actively browsed network 3 Notice how the DF1 driver is opened and the driver is looking for a processor on node 1 If the network is being browsed then you will not be able to stop this d...

Page 107: ...m port to connect to the debug port of the module Note You may need to shut down and restart your PC before it will allow you to stop the driver usually only on Windows NT machines If you have followe...

Page 108: ...is required between the module and a modem or other communication device The Use CTS Line parameter for the port configuration should be set to Y for most modem applications RS 232 Null Modem Connecti...

Page 109: ...8 RS 232 Null Modem Connection No Hardware Handshaking This type of connection can be used to connect the module to a computer or field device communication port Note If the port is configured with th...

Page 110: ...s shown below 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 t...

Page 111: ...twork write commands Detailed definition of the miscellaneous status data area can be found in MVI56 MCM Status Data Definition page 119 Definition of the configuration data areas can be found in the...

Page 112: ...t 5011 Type This parameter specifies if the port will emulate a Modbus master device 0 a Modbus slave device without pass through 1 a Modbus slave device with unformatted pass through 2 a Modbus slave...

Page 113: ...rameter is set to 0 the CTS line will not be monitored If the parameter is set to 1 the CTS line will be monitored and must be high before the module will send data This parameter is normally only req...

Page 114: ...master will wait before re transmitting a command if no response is received from the addressed slave The value is set depending upon the communication network used and the expected response time of...

Page 115: ...8400bps 576 for 57600bps and 115 for 115 200bps 5047 Parity This is the parity code to be used for the port Values are None Odd Even 5048 Data Bits This parameter sets the number of data bits for each...

Page 116: ...the database 5058 Holding Reg Offset This parameter specifies the offset address in the internal Modbus database that is to be used with network requests for Modbus function 3 6 or 16 commands For ex...

Page 117: ...f registers contains the parameters for the first command in the master command list The structure of this data area is as described in Integrating the Sample Ladder Logic into an Existing Project pag...

Page 118: ...ut the port 6690 Port 2 Responses This field contains the total number of messages received on the port 6691 Port 2 Errors Sent This field contains the total number of message errors sent out the port...

Page 119: ...lid control command codes in this register to control the module 9997 9998 or 9999 8 6 MVI56 MCM Status Data Definition This section contains a description of the members present in the MCM STATUS obj...

Page 120: ...of message errors received on the port 225 Read Block Count This field contains the total number of read blocks transferred from the module to the processor 226 Write Block Count This field contains t...

Page 121: ...the 9997 command If the module fails to successfully transfer the configuration to the processor an error code will be returned in the control register as follows 0 No error transfer successful 1 Err...

Page 122: ...rtReg INT Start reg to transfer from PLC to module WriteRegCnt INT Number of registers to write from PLC ReadStartReg INT Start reg to transfer from module to PLC ReadRegCnt INT Number of registers to...

Page 123: ...Command cycle count if error Master Reserved INT Reserved Previously was UseGuardBand parameter InterCharacterDelay INT 0 65535 milliseconds time between characters to signal end of message Fcn99Offs...

Page 124: ...and index that received an error on Port 2 Port2PreviousErr INT Previous Command index that received an error on Port 2 MCMPortErrors This object stores the port statistics for an MVI56 MCM port Tag N...

Page 125: ...ontains PassThru objects required when PortX Type is set to a value between 2 4 MBCoil _CoilArray page 127 _CmdControl Tag Name Data Type Description TriggerCmdCntrl BOOL Trigger command control User...

Page 126: ...ucess EventBlockID INT Temporary variable to calculate event block ID _SlavePollStatus This object contains all of the Slave Polling status used when the port is used as a master Tag Name Data Type De...

Page 127: ...m slave device number 11 Adr Func Data Start Pt Hi Data Start Pt Lo Data Of Pts Ho Data Of Pts Lo Error Check Field 11 01 00 13 00 25 CRC Response An example response to Read Output Status is as shown...

Page 128: ...uest to read inputs 10197 to 10218 from slave number 11 Adr Func Data Start Pt Hi Data Start Pt Lo Data of Pts Hi Data of Pts Lo Error Check Field 11 02 00 C4 00 16 CRC Response An example response to...

Page 129: ...n 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 justifi...

Page 130: ...s In the example below the register 3009 contains the decimal value 0 Adr Func Byte Count Data Input Reg Hi Data Input Reg Lo Error Check Field 11 04 02 00 00 E9 8 9 5 Force Single Coil Function Code...

Page 131: ...f the controller unused high order bits must be set to zero When used with slave address zero Broadcast mode all slave controllers will load the specified register with the contents specified NOTE Fun...

Page 132: ...ta N x 2 Bytes Response Function code 1 Byte 0x08 Sub function 2 Bytes Data N x 2 Bytes Error Error code 1 Byte 0x88 Exception code 1 Byte 01 or 03 or 04 Sub function codes supported by the serial lin...

Page 133: ...t 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 functi...

Page 134: ...ror Check Field 11 0F 00 13 00 0A 02 CD 00 CRC Response The normal response will be an echo of the slave address function code starting address and quantity of coils forced Adr Func Hi Addr Lo Addr Qu...

Page 135: ...or register the server will return an exception response informing the client of the nature of the error The exception response message has two fields that differentiate it from a normal response Fun...

Page 136: ...ata Value A value contained in the query data field is not an allowable value for server or slave This indicates a fault in the structure of the remainder of a complex request such as that the implied...

Page 137: ...l For most applications you can run the sample program without modification or for advanced applications you can incorporate the sample program into your existing application The ProSoft Solutions CD...

Page 138: ...choose the sample program to download for your version of RSLogix 5000 and your processor To determine the firmware version of your processor Important The RSLinx service must be installed and running...

Page 139: ...click the Select File button 2 Choose the sample program file that matches your firmware version and then click the Select button 3 RSLogix will load the sample program The next step is to configure...

Page 140: ...your controller if necessary 6 Click OK to save your changes and return to the previous window Select the Slot Number for the Module The sample application is for a module installed in Slot 1 in a Con...

Page 141: ...hat use the MVI56 MCM slot number for computation Download the Sample Program to the Processor To download the sample program from RSLogix 5000 to the ControlLogix processor Note The key switch on the...

Page 142: ...Open the Sample Ladder Logic in RSLogix 5000 2 Start another instance of RSLogix 5000 and then open your existing application You will be adding the MVI56 MCM module definition and then copying contr...

Page 143: ...t and and then click OK This action opens the Module Properties dialog box 3 In the Module Properties dialog box enter the Name Description and Slot options for your application using the examples in...

Page 144: ...t they are side by side 2 In the Controller Organization pane in the Sample Program expand the Data Types folder until the list of User Defined data types is visible 3 In the Sample Program window sel...

Page 145: ...ogic must constantly scan this input word for a new value The ladder logic should only perform the ReadData and WriteData tasks in that order when a new value is present in Local 1 I Data 249 otherwis...

Page 146: ...odule MCM STATUS This status data can be used to determine the health of the MVI56 MCM module This rung computes offset into the Modbus Data Table for the received data block and to store the data int...

Page 147: ...cation then this rung and the _ReadControl and _WriteControl ladder files may be removed _WriteControl This optional task is used to send commands to the Modbus devices connected to the MVI56 MCM modu...

Page 148: ...ting the Controller Tags The MVI56 MCM module configuration is stored in the MCM CONFIG structure in the Controller Tags dialog box The sample program configures the module as a Modbus Master on Port...

Page 149: ...regarding 1 Module configuration and contents of file o Module Operation o Configuration Debug status information o LED patterns 2 Information about the processor and user data files as viewed through...

Page 150: ...eturn a Product for repair exchange or otherwise the Customer must obtain a Returned Material Authorization RMA number from ProSoft and comply with ProSoft shipping instructions b In the event that th...

Page 151: ...unit in for evaluation b If no defect is found Customer will be charged the equivalent of 100 USD plus freight charges duties and taxes as applicable A new purchase order will be required c If unit is...

Page 152: ...od If the Customer discovers within the Warranty Period a failure of the Product to conform to specifications or a defect in material or workmanship of the Product the Customer must promptly notify Pr...

Page 153: ...written consent from ProSoft 9 3 3 Disclaimer Regarding High Risk Activities Product manufactured or supplied by ProSoft is not fault tolerant and is not designed manufactured or intended for use in h...

Page 154: ...orized in connection with use of Product f Additional Restrictions Relating To Software And Other Intellectual Property In addition to compliance with the Terms of this Warranty Customers purchasing s...

Page 155: ...that it correctly reflects those terms that are important to the Customer 9 3 9 Allocation of Risks This Warranty allocates the risk of product failure between ProSoft and the Customer This allocation...

Page 156: ...MVI56 MCM ControlLogix Platform Support Service Warranty Modbus Communication Module Page 156 of 159 ProSoft Technology Inc July 24 2008...

Page 157: ...y the User Defined Data Types 144 Customizing the Memory Map 52 D Data Analyzer 73 Data Analyzer Tips 75 Data Flow Between MVI56 MCM Module and ControlLogix Processor 101 DB9 to RJ45 Adaptor Cable 14...

Page 158: ...rview 25 49 56 P Package Contents 11 Pass Thru Coil Adjustment 55 Pass Through Control Blocks 99 Please Read This Notice 2 Port 1 Commands 117 Port 1 Setup 112 Port 2 Commands 117 Port 2 Setup 114 Por...

Page 159: ...90 91 102 103 117 142 V Verify Communications 7 61 Verify Master Communications 62 Verify Slave Communications 66 Viewing Block Transfer Statistics 71 Viewing Data in ASCII Text Format 74 79 Viewing...

Reviews: