ProSoft Technology MVI69L-MBS User Manual

MVI69L-MBS
CompactLogix Platform
Modbus Serial Lite Communication Module
January 6, 2014
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.
How to Contact Us
ProSoft Technology
5201 Truxtun Ave., 3rd Floor Bakersfield, CA 93309 +1 (661) 716-5100 +1 (661) 716-5101 (Fax) www.prosoft-technology.com support@prosoft-technology.com
Copyright © 2014 ProSoft Technology, Inc., All rights reserved.
MVI69L-MBS User Manual
January 6, 2014
ProSoft Technology ®, ProLinx ®, inRAx ®, ProTalk ®, and RadioLinx ® are Registered Trademarks of ProSoft Technology, Inc. All other brand or product names are or may be trademarks of, and are used to identify products and services of, their respective owners.
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 products 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.
© 2014 ProSoft Technology. 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
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
Important Safety Information - MVI69L-MBS
North America Warnings
A This Equipment is Suitable For Use in Class I, Division 2, Groups A, B, C, D or Non-Hazardous Locations Only. B Warning – Explosion Hazard – Substitution of Any Components May Impair Suitability for Class I, Division 2. C Warning – Explosion Hazard – Do Not Disconnect Equipment Unless Power Has Been Switched Off Or The
Area is Known To Be Non-Hazardous.
D The subject devices are powered by a Switch Model Power Supply (SMPS) that has regulated output voltage of
5 VDC.
ATEX Warnings and Conditions of Safe Usage:
Power, Input, and Output (I/O) wiring must be in accordance with the authority having jurisdiction
A Warning - Explosion Hazard - When in hazardous locations, turn off power before replacing or wiring modules. B Warning - Explosion Hazard - Do not disconnect equipment unless power has been switched off or the area is
known to be non-hazardous.
C These products are intended to be mounted in an IP54 enclosure. The devices shall provide external means to
prevent the rated voltage being exceeded by transient disturbances of more than 40%. This device must be used only with ATEX certified backplanes.
DO NOT OPEN WHEN ENERGIZED
Agency Approvals and Certifications
MVI69L-MBS CompactLogix Platform Contents Communication Module User Manual
Contents
Your Feedback Please ........................................................................................................................ 2
How to Contact Us .............................................................................................................................. 2
Important Safety Information - MVI69L-MBS ...................................................................................... 3
1 Start Here 9
1.1 System Requirements ............................................................................................. 10
1.2 Deployment Checklist .............................................................................................. 11
1.3 Package Contents ................................................................................................... 11
1.4 Jumper Settings ...................................................................................................... 12
1.5 Installing the Module in the Rack ............................................................................ 14
1.6 DVD Contents ......................................................................................................... 17
2 Connecting to RSLogix 5000 19
2.1 Installing ProSoft Configuration Builder .................................................................. 20
2.2 Generating the AOI (.L5X File) in ProSoft Configuration Builder ............................ 21
2.2.1 Creating a New Project in PCB ............................................................................... 21
2.2.2 Exporting the .L5X File from PCB ........................................................................... 23
2.3 Creating a New RSLogix 5000 Project .................................................................... 26
2.4 Creating the Module in an RSLogix 5000 Project ................................................... 27
2.4.1 Installing an Add-On Profile .................................................................................... 27
2.4.2 Creating a Module in the Project Using an Add-On Profile ..................................... 29
2.4.3 Creating a Module in the Project Using a Generic 1769 Module Profile ................. 31
2.5 Importing the Add-On Instruction ............................................................................ 35
2.6 Adding Multiple Modules in the Rack (Optional) ..................................................... 39
2.6.1 Adding a new module in PCB ................................................................................. 39
2.6.2 Adding a new module in RSLogix 5000 .................................................................. 41
3 MVI69L-MBS Configuration 47
3.1 Basic PCB Functions ............................................................................................... 48
3.1.1 Creating a New PCB Project and Exporting an .L5X File ....................................... 48
3.1.2 Renaming PCB Objects .......................................................................................... 48
3.1.3 Editing Configuration Parameters ........................................................................... 48
3.1.4 Printing a Configuration File .................................................................................... 50
3.2 Module Configuration Parameters .......................................................................... 51
3.2.1 Module ..................................................................................................................... 51
3.2.2 MBS Port 1 .............................................................................................................. 52
3.2.3 Modbus Port 1 Commands...................................................................................... 56
3.2.4 Ethernet 1 ................................................................................................................ 59
3.3 Downloading the Configuration File to the Processor ............................................. 60
3.4 Uploading the Configuration File from the Processor ............................................. 63
4 MVI69L-MBS Backplane Data Exchange 67
4.1 General Concepts of the MVI69L-MBS Data Transfer ............................................ 68
4.2 Backplane Data Transfer......................................................................................... 68
4.3 Normal Data Transfer .............................................................................................. 70
ProSoft Technology, Inc. Page 5 of 154 January 6, 2014
Contents MVI69L-MBS CompactLogix Platform User Manual Communication Module
4.3.1 Write Block: Request from the Processor to the Module ........................................ 70
4.3.2 Read Block: Response from the Module to the Processor ..................................... 70
4.3.3 Read and Write Block Transfer Sequences ........................................................... 71
4.4 Data Flow Between the Module and Processor ..................................................... 72
4.4.1 Slave Mode ............................................................................................................. 72
4.4.2 Master Mode ........................................................................................................... 74
5 Using Controller Tags 77
5.1 Controller Tags ....................................................................................................... 78
5.1.1 MVI69L-MBS Controller Tags ................................................................................. 78
5.2 User-Defined Data Types (UDTs)........................................................................... 80
5.2.1 MVI69L-MBS User-Defined Data Types ................................................................. 80
5.3 Using Controller Tags ............................................................................................. 81
5.4 Controller Tag Overview ......................................................................................... 82
5.4.1 MBS.CONFIG ......................................................................................................... 82
5.4.2 MBS.DATA .............................................................................................................. 82
5.4.3 MBS.CONTROL...................................................................................................... 83
5.4.4 MBS.STATUS ......................................................................................................... 87
5.4.5 MBS.UTIL ............................................................................................................... 88
6 Diagnostics and Troubleshooting 89
6.1 Ethernet LED Indicators .......................................................................................... 90
6.2 LED Status Indicators ............................................................................................. 90
6.2.2 Troubleshooting the LEDs ...................................................................................... 91
6.3 Connecting the PC to the Module's Ethernet Port .................................................. 92
6.3.1 Setting Up a Temporary IP Address ....................................................................... 93
6.4 Using the Diagnostics Menu in ProSoft Configuration Builder ............................... 95
6.4.1 Diagnostics Menu ................................................................................................... 97
6.4.2 Monitoring General Information .............................................................................. 97
6.4.3 Monitoring Network Configuration Information ....................................................... 98
6.4.4 Monitoring Backplane Information .......................................................................... 98
6.4.5 Port 1 Module Information ...................................................................................... 99
6.4.6 Monitoring Data Values in the Module’s Database............................................... 100
6.5 Communication Error Codes ................................................................................ 101
6.6 Connecting to the Module’s Web Page ................................................................ 102
7 Reference 103
7.1 Product Specifications .......................................................................................... 104
7.1.1 General Specifications - Modbus Master/Slave .................................................... 104
7.1.2 Hardware Specifications ....................................................................................... 105
7.2 About the Modbus Protocol .................................................................................. 106
7.2.1 Function Codes Supported by the Module ........................................................... 107
7.2.2 Read Coil Status (Function Code 01) ................................................................... 107
7.2.3 Read Input Status (Function Code 02) ................................................................. 108
7.2.4 Read Holding Registers (Function Code 03) ........................................................ 109
7.2.5 Read Input Registers (Function Code 04) ............................................................ 110
7.2.6 Force Single Coil (Function Code 05) .................................................................. 111
7.2.7 Preset Single Register (Function Code 06) .......................................................... 112
7.2.8 Diagnostics (Function Code 08) ........................................................................... 113
7.2.9 Force Multiple Coils (Function Code 15) .............................................................. 115
Page 6 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Contents Communication Module User Manual
7.2.10 Preset Multiple Registers (Function Code 16) ...................................................... 116
7.3 Floating-Point Support ........................................................................................... 117
7.3.1 ENRON Floating-Point Support ............................................................................ 117
7.3.2 Configuring Floating-Point Data Transfer .............................................................. 118
7.4 Function Blocks ..................................................................................................... 123
7.4.1 Event Blocks .......................................................................................................... 124
7.4.2 Slave Polling Disable Blocks ................................................................................. 125
7.4.3 Slave Polling Enable Blocks .................................................................................. 125
7.4.4 Slave Polling Status Blocks ................................................................................... 126
7.4.5 Command Control Blocks...................................................................................... 127
7.4.6 Add Event with Data Blocks .................................................................................. 128
7.4.7 Get Event with Data Status Block ......................................................................... 129
7.4.8 Get Configuration File Information Block .............................................................. 130
7.4.9 Get Configuration File Block ................................................................................. 130
7.4.10 Get General Module Status Data Block ................................................................ 132
7.4.11 Set Port and Command Active Bits Block ............................................................. 133
7.4.12 Get Port and Command Active Bits Block............................................................. 134
7.4.13 Pass-through Formatted Block for Functions 6 and 16 with Word Data Block ..... 135
7.4.14 Pass-through Formatted Block for Functions 6 and 16 with Float Data Block ...... 136
7.4.15 Pass-through Formatted Block for Function 5....................................................... 137
7.4.16 Pass-through Formatted Block for Function 15 .................................................... 137
7.4.17 Pass-through Formatted Block for Function 22 .................................................... 138
7.4.18 Pass-through Formatted Block for Function 23 .................................................... 139
7.4.19 Pass-through Block for Function 99 ...................................................................... 140
7.4.20 Set Module Time Using Received Time Block ...................................................... 140
7.4.21 Pass Module Time to Processor Block ................................................................. 141
7.4.22 Reset Status Block ................................................................................................ 142
7.4.23 Warm-boot Control Block ...................................................................................... 142
7.4.24 Cold-boot Control Block ........................................................................................ 143
7.5 Ethernet Port Connection ...................................................................................... 144
7.5.1 Cable Specifications .............................................................................................. 144
7.5.2 Ethernet Performance ........................................................................................... 144
7.6 Modbus Application Port Connections .................................................................. 145
7.6.1 RS-232 Wiring ....................................................................................................... 145
7.6.2 RS-422 Wiring ....................................................................................................... 147
7.6.3 RS-485 Wiring ....................................................................................................... 147
7.6.4 DB9 to RJ45 Adaptor (Cable 14) .......................................................................... 148
8 Support, Service & Warranty 149
8.1 Contacting Technical Support ............................................................................... 150
8.2 Warranty Information ............................................................................................. 151
Index 153
ProSoft Technology, Inc. Page 7 of 154 January 6, 2014
MVI69L-MBS CompactLogix Platform Communication Module User Manual
ProSoft Technology, Inc. Page 8 of 154 January 6, 2014
MVI69L-MBS CompactLogix Platform Start Here
In This Chapter
System Requirements ........................................................................... 10
Deployment Checklist ............................................................................ 11
Package Contents ................................................................................. 11
Jumper Settings .................................................................................... 12
Installing the Module in the Rack ........................................................... 14
DVD Contents ....................................................................................... 17
Communication Module User Manual
1 Start Here
To get the most benefit from this User Manual, the user should have the following skills:
Rockwell Automation® RSLogix™ software: launch the program, configure
ladder logic, and transfer the ladder logic to the processor
Microsoft Windows: install and launch programs, execute menu commands,
navigate dialog boxes, and enter data
Hardware installation and wiring: install the module, and safely connect
Modbus and CompactLogix devices to a power source and to the MVI69L­MBS module’s application port
ProSoft Technology, Inc. Page 9 of 154 January 6, 2014
Start Here MVI69L-MBS CompactLogix Platform User Manual Communication Module
1.1 System Requirements
The MVI69L-MBS module requires the following minimum hardware and software components:
Rockwell Automation CompactLogix® processor (firmware version 10 or
higher), with compatible power supply, and one free slot in the rack for the MVI69L-MBS module.
Important: The MVI69L-MBS module has a power supply distance rating of 4 (L43 and L45 installations on first 2 slots of 1769 bus). It consumes 450 mA at 5 Vdc.
The module requires 450 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
Supported operating systems:
o Microsoft Windows o Microsoft Windows Vista o Microsoft Windows XP Professional with Service Pack 1 or 2 o Microsoft Windows 2000 Professional with Service Pack 1, 2, or 3 o Microsoft Windows Server 2003
128 Mbytes of RAM minimum, 256 Mbytes of RAM recommended 100 Mbytes of free hard disk space (or more based on application
requirements)
256-color VGA graphics adapter, 800 x 600 minimum resolution (True Color
1024  768 recommended)
DVD drive
®
7
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 system requirements.
Page 10 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Start Here
Qty.
Part Name
Part Number
Part Description
1
MVI69L-MBS Module
MVI69L-MBS
Modbus communication module
1
Adapter Cable
Cable 14
RJ45 to DB9 Male Adapter cable. For DB9 connection to module’s serial application port
1
Screw Terminal Adapter
1454-9F
DB9 female to 9-pin screw terminal. Used for RS422 or RS485 connections to Port 1
1
Ethernet Cable
RL-CBL025
Ethernet straight-through cable
1
ProSoft Solutions DVD
DVD-001
Contains ProSoft Configuration Builder (PCB) and ProSoft Discovery Service (PDS) software.
Files can also be found at www.prosoft-technology.com
Communication Module User Manual
1.2 Deployment Checklist
Before configuring the module, consider the following questions. 1 ____________ Is this a new application or an integration into an existing
application? Most applications use the Sample Add-On Instruction without any edits.
2 ____________ What slot number in the rack will the MVI69L-MBS module
occupy?
3 ____________ Are RSLogix 5000 and RSLinx software installed?
RSLogix and RSLinx are required to communicate to the CompactLogix processor.
4 ____________ How many words of data are needed to transfer in the
application (from CompactLogix to Module / to CompactLogix from Module)?
1.3 Package Contents
The following components are included with the MVI69L-MBS module, and are all required for installation and configuration.
Important: Before beginning the installation, please verify all of the following items are present.
If any of these components are missing, please contact ProSoft Technology Support for replacement parts.
ProSoft Technology, Inc. Page 11 of 154 January 6, 2014
Start Here MVI69L-MBS CompactLogix Platform User Manual Communication Module
1.4 Jumper Settings
When the module is manufactured, the port selection jumper is set to RS-232. To use RS-422 or RS-485, you must set the jumper to the correct position. The following diagram describes the jumper settings.
Note: Jumper pin placement on the circuit board may vary.
Page 12 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Start Here Communication Module User Manual
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 firmware
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.
The following illustration shows the MVI69L-MBS jumper configuration, with the Setup Jumper OFF.
ProSoft Technology, Inc. Page 13 of 154 January 6, 2014
Start Here MVI69L-MBS CompactLogix Platform User Manual Communication Module
1.5 Installing the Module in the Rack
Make sure the processor and power supply are installed and configured before installing the MVI69L-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 the jumper placements are verified, insert the MVI69L-MBS into the rack. Use the same technique recommended by Rockwell Automation to remove and install CompactLogix 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 processor, or other connected devices.
1 Align the module using the upper and lower tongue-and-groove slots with the
adjacent module and slide forward in the direction of the arrow.
Page 14 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Start Here Communication Module User Manual
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.
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.
4 Close all DIN-rail latches.
ProSoft Technology, Inc. Page 15 of 154 January 6, 2014
Start Here MVI69L-MBS CompactLogix Platform User Manual Communication Module
5 Press the DIN-rail mounting area of the controller against the DIN-rail. The
latches momentarily open and lock into place.
Page 16 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Start Here Communication Module User Manual
1.6 DVD Contents
The DVD contains all the necessary files for the module. The User Manual, ProSoft Configuration Builder (PCB), and the sample Add-On Instruction are among the files.
If the DVD is not present, please visit http://www.prosoft-technology.com for the latest files.
ProSoft Technology, Inc. Page 17 of 154 January 6, 2014
Start Here MVI69L-MBS CompactLogix Platform User Manual Communication Module
Page 18 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000
In This Chapter
Installing ProSoft Configuration Builder ................................................. 20
Generating the AOI (.L5X File) in ProSoft Configuration Builder ........... 21
Creating a New RSLogix 5000 Project .................................................. 26
Creating the Module in an RSLogix 5000 Project .................................. 27
Importing the Add-On Instruction ........................................................... 35
Adding Multiple Modules in the Rack (Optional) .................................... 39
Communication Module User Manual
2 Connecting to RSLogix 5000
The .L5X file contains the Add-On Instruction (AOI), user-defined data types, controller tags and ladder logic required to configure the MVI69L-MBS module. This file is generated by ProSoft Configuration Builder (PCB) software and imported into RSLogix 5000.
ProSoft Technology, Inc. Page 19 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
2.1 Installing ProSoft Configuration Builder
The ProSoft Configuration Builder installation file can be found on the product DVD or from our web site: http://www.prosoft-technology.com. The filename contains the version of PCB. For example, PCB_4.1.0.4.0206.exe
Copy the installation file to the local hard drive and run the PCB.exe file to start the InstallShield Wizard. Follow the InstallShield Wizard to properly install PCB.
Page 20 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000 Communication Module User Manual
2.2 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.2.1 Creating a New Project in PCB
To begin, start the PCB software. PCB’s window consists of a tree view on the left, and an information pane and 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 ProSoft Configuration Builder window with a new project.
ProSoft Technology, Inc. Page 21 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
To add the MVI69L-MBS module to the project
1 In the tree view, right-click DEFAULT MODULE. Select CHOOSE MODULE TYPE
from the shortcut menu. This action opens the Choose Module Type dialog box.
2 In the Product Line Filter area of the dialog box, click the MVI69L radio
button. In the Select Module Type dropdown list, select MVI69L-MBS, and click OK to save the settings and return to the ProSoft Configuration Builder window.
Page 22 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000 Communication Module User Manual
3 The MVI69L-MBS module icon is now visible in the tree view.
2.2.2 Exporting the .L5X File from PCB
1 Expand the MVI69L-MBS icon by clicking the [+] symbol beside it. Similarly,
expand the icon. Double-click the icon to open the Edit - Module dialog box.
ProSoft Technology, Inc. Page 23 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
2 Edit the Slot Number indicating where the module is placed in the 1769 bus.
The Slot Number parameter in the PCB configuration affects the format of the .L5X file that is exported. This parameter identifies the residing slot of the module in the CompactLogix rack.
3 Click OK to close the Edit – Module dialog box. The .L5X file is now ready to
be exported to the PC/Laptop.
4 Right-click the MVI69L-MBS icon in the project tree and select EXPORT AOI
FILE.
Page 24 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000 Communication Module User Manual
5 Save the .L5X file to the PC/Laptop in an easily found location, such as
Windows Desktop.
ProSoft Technology, Inc. Page 25 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
2.3 Creating a New RSLogix 5000 Project
1 Open the FILE menu, and select NEW.
2 Select the CompactLogix processer model. 3 Select REVISION 16 or newer. 4 Enter a name for the processor, such as My_Controller. 5 Select the CompactLogix chassis type.
Page 26 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000 Communication Module User Manual
2.4 Creating the Module in an RSLogix 5000 Project
In an RSLogix 5000 project, an Add-On Profile (AOP) can be used to specifically identify the MVI69L-MBS when selecting the type of module to be installed in slot x. Add-On Profiles are supported in RSLogix 5000 version 15 and newer.
If using an AOP is not an option, please see page 31 to install the module using a Generic 1769 Module profile.
2.4.1 Installing an Add-On Profile
Download the MPSetup.exe file from the product webpage or DVD onto the local hard drive. Make sure RSLogix 5000 and RSLinx has been shut down before installing the AOP.
Run the MPSetup.exe file to start the Setup Wizard. Follow the Setup Wizard to properly install the AOP.
ProSoft Technology, Inc. Page 27 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
Continue to follow the steps in the wizard to complete the installation.
Click Finish when complete. The AOP is now installed in RSLogix 5000. There is no need to reboot the PC.
Page 28 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000 Communication Module User Manual
2.4.2 Creating a Module in the Project 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 select NEW MODULE from the shortcut menu.
This action 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 below.
ProSoft Technology, Inc. Page 29 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
2 Select the MVI69L-MBS module in the list and click Create:
3 A New Module dialog box opens. Edit the Name and Slot of the module and
click OK
Page 30 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000 Communication Module User Manual
Note: This module uses a block transfer size of 240 only. Therefore, it uses an I/O Table Size of 242/241 words.
The MVI69L-MBS module is now visible at the I/O Configuration tree.
2.4.3 Creating a Module in the Project Using a Generic 1769 Module Profile
Note: This procedure is not required if the ProSoft Technology AOP is installed.
1 Expand the I/O CONFIGURATION folder in the Project tree. Right-click the
appropriate communications bus and select NEW MODULE from the shortcut menu.
ProSoft Technology, Inc. Page 31 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
This action opens the Select Module Type dialog box. 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.
Page 32 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000
Parameter
Value
Name
Enter a module identification string. Example: MVI69LMBS
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
242
Output Assembly Instance
100
Output Size
241
Configuration Assembly Instance
102
Configuration Size
0
Communication Module User Manual
2 Set the Module Properties values as follows:
This module must be configured with a block transfer size of 240 words (input block size = 242 words, output block size = 241 words):
ProSoft Technology, Inc. Page 33 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
3 On the Connection tab, set the RPI value for your project. Click OK to
confirm.
The MVI69L-MBS module is visible at the I/O Configuration tree.
Page 34 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000 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 the AOI can be imported.
Note: The Add-On Instruction can be placed 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 Select an empty rung in the routine. Right-click the rung and select IMPORT
RUNGS from the shortcut menu.
ProSoft Technology, Inc. Page 35 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
5 Select the .L5X file that was exported from PCB earlier.
This action opens the Import Configuration dialog box. Click TAGS under MAINROUTINE to display the controller tags to be created.
Note: If you are using RSLogix version 16 or earlier, the Import Configuration dialog box does not contain the Import Content tree.
Page 36 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000 Communication Module User Manual
6 If the 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:I in the FINAL NAME column to Local:3:I. 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:
ProSoft Technology, Inc. Page 37 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
When the import is completed, the new rung with the Add-On instruction is visible as shown in the following illustration.
The procedure has also imported new user defined data types, data objects and the Add-On instruction to be used in the project.
Page 38 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000 Communication Module User Manual
2.6 Adding Multiple Modules in the Rack (Optional)
Important: This procedure is for multiple MVI69L-MBS modules running in the same CompactLogix rack
You must export a new Add-On Instruction from PCB for each module. You do this by adding a new module to the PCB project and exporting the module configuration as an L5X file. Finally you import the new .L5X file into RSLogix 5000 for the new module.
2.6.1 Adding a new module in PCB
1 Right click on Default Location (which you can rename) and select Add
Module.
2 Right-click or double-click to open the Choose Module Type window.
ProSoft Technology, Inc. Page 39 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
3 Select the MVI69L-MBS module to add a second (or more) module in the
PCB project.
Note: A duplicate MVI69L-MBS module requires a unique name. The default name on a duplicate module appends a number to the end such as MVI69L-MBS_000, MVI69L-MBS_001, etc.
4 You can rename the module by right clicking the module and selecting
Rename.
5 Configure the proper parameters as described in section 3.2 on page 51 and
export the AOI .L5X file for the new module (as describe in Exporting the .L5X File from PCB on page 23).
Page 40 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000 Communication Module User Manual
2.6.2 Adding a new module in RSLogix 5000
Multiple modules can be placed in the same rack provided it does not exceed the power distance rating of the CompactLogix rack (see page 10). Adding an additional module to the rack is similar to installing a new module earlier in this chapter. However, the name of the module must be unique.
1 In RSLogix 5000, locate the I/O CONFIGURATION folder. Right click to open a
shortcut menu and choose NEW MODULE.
ProSoft Technology, Inc. Page 41 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
2 In the SELECT MODULE TYPE window, select the MVI69L-MBS module as
when installing the first module using the AOP. If using an AOP is not an option, select GENERIC 1769 MODULE and click Create.
3 The NEW MODULE window will appear. Enter a unique name for the new
module. Also confirm the slot number of the new module.
4 Click OK to confirm. The new module is now visible:
Page 42 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000 Communication Module User Manual
5 Importing the AOI for the new module is also required. In the Controller
Organizer pane, double-click and open the MAINROUTINE ladder.
6 Select an empty rung in the routine, and then click the right mouse button to
open a shortcut menu. On the shortcut menu, choose IMPORT RUNGS
ProSoft Technology, Inc. Page 43 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
7 Select the .L5X file of the new module, and click IMPORT. The new .L5X file
will have a unique filename.
8 This action opens the IMPORT CONFIGURATION window, showing the tags to
be imported. You must edit the Final Name column of the tags for the second module.
Page 44 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Connecting to RSLogix 5000 Communication Module User Manual
9 Associate the I/O connection variables to the correct module in the
corresponding slot number. The default values are Local:1:I 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:I and Local:2:O. Also, you can append a _2’ at the end of the Final Name of AOI69_MBS and MBS arrays as shown below.
ProSoft Technology, Inc. Page 45 of 154 January 6, 2014
Connecting to RSLogix 5000 MVI69L-MBS CompactLogix Platform User Manual Communication Module
10 Click OK to confirm.
The setup procedure is now complete. Save the project, it is ready to download to the CompactLogix processor.
Page 46 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Configuration
In This Chapter
Basic PCB Functions ............................................................................. 48
Module Configuration Parameters ......................................................... 51
Downloading the Configuration File to the Processor ............................ 60
Uploading the Configuration File from the Processor ............................ 63
Communication Module User Manual
3 MVI69L-MBS Configuration
ProSoft Configuration Builder software provides a quick and easy way to manage module configuration files customized to meet the application needs.
The module’s configuration is built and edited in ProSoft Configuration Builder (PCB). PCB is used to download the configuration file to the CompactLogix processor, where it is stored in the MBS.CONFIG controller tag generated by the previously exported AOI. When the MVI69L-MBS module boots up, it requests the processor to send it the configuration over the backplane in special Configuration Blocks.
Chapter 2 contains the procedures for creating a new PCB project and exporting a .L5X file for the processor. Chapter 3 offers more insight into using PCB. It describes the configuration parameters in detail, as well as how to download the configuration to the processor.
ProSoft Technology, Inc. Page 47 of 154 January 6, 2014
MVI69L-MBS Configuration MVI69L-MBS CompactLogix Platform User Manual Communication Module
3.1 Basic PCB Functions
3.1.1 Creating a New PCB Project and Exporting an .L5X File
Please see Chapter 2.
3.1.2 Renaming PCB Objects
PCB objects such as the Default Project and Default Location folders as well as the Module icon can be renamed to customize the project.
1 Right-click the object to be renamed, and select RENAME from the shortcut
menu.
2 Type the name to assign to the object. 3 Click away from the object to save the new name.
3.1.3 Editing Configuration Parameters
1 Click on the [+] sign next to the MODULE icon to expand module information. 2 Click on the [+] sign next to any icon to view module information and
configuration options.
3 Double-click any icon to open an Edit dialog box.
To edit a parameter, highlight the parameter name in the left pane and edit the field in the right pane.
Note: Depending on the parameter, the editable field accepts typed input in the form of text or a valid numerical value, or it has a dropdown list with options.
Page 48 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Configuration Communication Module User Manual
4 Double-clicking any icon opens an Edit dialog box with a table. Use this
dialog box to build and edit Modbus Master Commands.
To add a row to the table, click the ADD ROW button.
ProSoft Technology, Inc. Page 49 of 154 January 6, 2014
MVI69L-MBS Configuration MVI69L-MBS CompactLogix Platform User Manual Communication Module
To edit the row, click the EDIT ROW button. This opens an Edit dialog box.
3.1.4 Printing a Configuration File
1 In the main PCB window, right-click the MODULE icon and select VIEW
CONFIGURATION from the shortcut menu. This action opens the View
Configuration window.
2 In the View Configuration window, open the FILE menu, and choose PRINT.
This action opens the Print dialog box.
3 In the Print dialog box, choose the printer to use from the drop-down list,
select printing options, and then click OK.
Page 50 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Configuration
Parameter
Value
Description
Module Name
ASCII characters (max. 80)
Assigns a name to the module that can be viewed using the configuration/debug port. Use this parameter to identify the module and the configuration file.
Backplane Fail Count
0 to 65535
Specifies the number of consecutive backplane transfer failures that can occur before communications should be halted.
Error/Status Block Pointer
-1 to 239
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. All other valid values determine the starting location of the data. This data should be placed within the read data range of module memory.
This data area includes the module version information and all server error/status data. Refer to MBS.STATUS on page 87 for more information.
Initialize Input Image
Yes or No
This parameter is used to determine if the input image
data, the module’s Read Register Data values, should be
initialized with Read Register Data values from the processor. If the value is set to No, the Read Register Data values in the module is set to 0 upon initialization. If the value is set to Yes, the data is initialized with Read Register Data values from the processor. Using this option requires associated ladder logic to pass the data from the processor to the module.
Slot Number
1 to x
Represents the slot in the CompactLogix rack where the module resides.
Communication Module User Manual
3.2 Module Configuration Parameters
3.2.1 Module
This section contains general module configuration parameters. The module uses 240 words of read data (user input data) and 240 words of write data (user output data).
ProSoft Technology, Inc. Page 51 of 154 January 6, 2014
MVI69L-MBS Configuration MVI69L-MBS CompactLogix Platform
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, or Slave with Pass-Through
This parameter specifies which device type the port emulates. Refer to Slave on page 72 for more information on Slave Pass-Through options.
Protocol
RTU or ASCII
Specifies the Modbus protocol to be used on the port.
Baud Rate
Multiple options
Specifies the baud rate to be used on the port.
Parity
None Odd Even
Specifies the type of parity checking to use. Parity is a simple error checking algorithm used in serial communication. All devices communicating through this port must use the same parity setting.
Data Bits
7 or 8
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
1 or 2
Stop bits signal the end of a character in the data stream. For most applications, use one stop bit. For slower devices that require more time to re-synchronize, use two stop bits. All devices communicating through this port must use the same number of stop bits.
RTS On
0 to 65535 milliseconds
Sets the number of milliseconds to delay after Ready To Send (RTS) is asserted before data is transmitted.
RTS Off
0 to 65535 milliseconds
Sets the number of milliseconds to delay after the last byte of 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 the parameter is set to NO, the CTS line is not monitored. If the parameter is set 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.
Float Flag
Yes or No
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 Master for write commands. Example: Count = 10, Slave driver sends 20
User Manual Communication Module
3.2.2 MBS Port 1
The section applies to the Modbus application port.
Configuration Parameters Common to Master and Slave
Page 52 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Configuration
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.
Float Start
0 to 479
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 a value of 200 is entered, all requests for registers 200 and above is considered as floating-point data.
Float Offset
0 to 479
Defines the start register for floating-point data in the internal database. This parameter is used only if the Float Flag is enabled. For example, if the Float Offset value is set to 100 and the float start parameter is set to 200, data requests for register 200 uses the internal Modbus register 100.
Communication Module User Manual
ProSoft Technology, Inc. Page 53 of 154 January 6, 2014
MVI69L-MBS Configuration MVI69L-MBS CompactLogix Platform
Parameter
Value
Description
Response Timeout
0 to 65535 milliseconds
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. This parameter can be used to place a delay after each command to avoid sending commands on the network faster than the slaves can be ready to receive them. This parameter does not affect retries of a command, as retries are issued when a command failure is recognized.
Error Delay Counter
0 to 60000
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 limit 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.
Inter-character Timeout
0 to 65535 milliseconds
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
Command Error Offset
-1 to 239
This parameter 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 230, the command errors are copied to the database as follows:
230: error code for command 0 231: error code for command 1 Etc… An error code of 0 means that the command was successfully
sent (no error).
User Manual Communication Module
Additional Configuration Parameters (As a Master)
Page 54 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Configuration
Parameter
Value
Description
Minimum Response Delay
0 to 65535 milliseconds
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 479
Specifies the offset address into the internal Modbus database for network requests for Modbus function 2 commands. For example, if the value is set to 150, an address request of 0 returns the value at register 150 in the database.
Word Input Offset
240 to 479
Specifies the offset address into the internal Modbus database for network requests for Modbus function 4 commands. For example, if the value is set to 350, an address request of 0 returns the value at register 350 in the database.
Output Offset
0 to 479
Specifies the offset address into the internal Modbus database for network requests for Modbus function 1, 5 or 15 commands. For example, if the value is set to 100, an address request of 0 corresponds to register 100 in the database.
Holding Register Offset
0 to 479
Specifies the offset address in the internal Modbus database for network requests for Modbus function 3, 6, or 16 commands. For example, if a value of 250 is entered, a request for address 0 corresponds to the register 250 in the database.
Communication Module User Manual
Additional Configuration Parameters as a Slave
ProSoft Technology, Inc. Page 55 of 154 January 6, 2014
MVI69L-MBS Configuration MVI69L-MBS CompactLogix Platform
Parameter
Value
Description
Enable
0 to 4
This field defines whether the command is to be executed and under what 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 Interval 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 overrides 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 239 (word­level)
or 0 to 3839 (bit-
level)
Specifies the module’s internal database register to be
associated with the command. Allowable range is 0 to 239 for Modbus Function Codes 3, 4, 6, or 16, and 0 to 3839 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 lie within the Read Data area of the module’s
memory, defined by the Read Register Start and Read
User Manual Communication Module
3.2.3 Modbus Port 1 Commands
This section defines the master command list specifications for a Master port. In order to interface the MVI69L-MBS module with Modbus slave devices, a
command list needs to be created. 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 30 commands. The command list is processed from top (Command #0) to bottom.
Read commands are executed without condition. Write commands can be set to execute only if 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. This feature can be used to optimize network performance.
The MBS Modbus 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 117.
Page 56 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Configuration
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.
Poll Interval
0 to 65535 seconds
Specifies the minimum interval between executions of continuous commands (Enable code = 1).
Example: If a value of 10 is entered, 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)
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.
Swap Code
0,1,2,3
Defines if the data received from the Modbus slave is to be ordered differently than received from the slave device. This parameter is helpful when dealing with floating-point or other multi-register values, as there is no standard method of storage of these data types in slave devices. This parameter can be set to order the register data received in an order useful by other applications.
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.
Node Address
1 to 255 (0 = broadcast)
Specifies the Modbus slave node address on the network to be considered. Values of 1 to 255 are permitted. Most Modbus devices only accept an address in the range of 1 to 247 so be careful. If the value is set to zero, the command 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.
Modbus Function
1,2,3,4,5,6,15,16
Specifies the Modbus function to be executed by the command. These function codes are defined in the Modbus protocol.
1 – Read Coil Status (0xxxx) 2 – Read Input Status (1xxxx)
Communication Module User Manual
ProSoft Technology, Inc. Page 57 of 154 January 6, 2014
MVI69L-MBS Configuration MVI69L-MBS CompactLogix Platform
3 – Read Holding Registers (4xxxx) 4 – Read Input Registers (3xxxx) 5 – Force (Write Single) Coil (0xxxx) 6 – Force (Write Single) Holding Register (4xxxx) 15 – Preset (Write) Multiple Coils (0xxxx) 16 – Preset (Write) Multiple Registers (4xxxx)
MB Address in Device
0 to 9999
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 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
in 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).
Override Value Upon Error
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.
User Manual Communication Module
Page 58 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Configuration
Parameter
Description
IP Address
Unique IP address assigned to the module
Netmask
Subnet mask of module
Gateway
Gateway (if used)
Communication Module User Manual
3.2.4 Ethernet 1
This section defines the permanent IP address, Subnet Mask, and Gateway of the module.
ProSoft Technology, Inc. Page 59 of 154 January 6, 2014
MVI69L-MBS Configuration MVI69L-MBS CompactLogix Platform User Manual Communication Module
3.3 Downloading the Configuration File to the Processor
1 In PCB’s tree view, right-click the module icon and select DOWNLOAD FROM
PC TO DEVICE from the shortcut menu.
2 In the Download Configuration File window, click the RSWHO button.
Page 60 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Configuration Communication Module User Manual
3 Browse and highlight the CompactLogix processor and click OK.
4 Notice the CIPConnect path has been updated in the Download Configuration
File. Click TEST CONNECTION to verify the path is active and can successfully connect to the processor.
ProSoft Technology, Inc. Page 61 of 154 January 6, 2014
MVI69L-MBS Configuration MVI69L-MBS CompactLogix Platform User Manual Communication Module
5 When ready, click DOWNLOAD to download the configuration file to the
processor. Following the download process, the module automatically is rebooted.
6 Upon reboot, the ladder logic sends the configuration data from the processor
to the module. Upon completion, the module starts Modbus communications.
Page 62 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Configuration Communication Module User Manual
3.4 Uploading the Configuration File from the Processor
1 In PCB’s tree view, right-click the module icon and select UPLOAD FROM
DEVICE TO PC from the shortcut menu.
2 In the Upload Configuration File window, the CIPConnect path should already
be constructed if you have previously downloaded the configuration file from the same PC. If not, click on the RSWHO button, browse to select the CompactLogix Processor, and click OK.
ProSoft Technology, Inc. Page 63 of 154 January 6, 2014
MVI69L-MBS Configuration MVI69L-MBS CompactLogix Platform User Manual Communication Module
3 Click TEST CONNECTION to verify the path is active and can successfully
connect to the processor.
Page 64 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Configuration Communication Module User Manual
4 When ready, click UPLOAD. When complete, click Close.
5 PCB will now display the uploaded configuration file.
ProSoft Technology, Inc. Page 65 of 154 January 6, 2014
MVI69L-MBS CompactLogix Platform User Manual Communication Module
Page 66 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Backplane Data Exchange Communication Module User Manual
4 MVI69L-MBS Backplane Data Exchange
In This Chapter
General Concepts of the MVI69L-MBS Data Transfer .......................... 68
Backplane Data Transfer ....................................................................... 68
Normal Data Transfer ............................................................................ 70
Data Flow Between the Module and Processor ..................................... 72
ProSoft Technology, Inc. Page 67 of 154 January 6, 2014
MVI69L-MBS Backplane Data Exchange MVI69L-MBS CompactLogix Platform User Manual Communication Module
4.1 General Concepts of the MVI69L-MBS Data Transfer
Ladder logic is required for the MVI69L-MBS module to communicate with the CompactLogix processor across the backplane. The ladder logic handles the module data transfer, configuration data transfer, special block handling, and status data receipt.
For most applications, the sample Add-On Instruction (which includes the ladder logic) works without modification.
The following topics describe several concepts that are important for understanding the operation of the MVI69L-MBS module.
1. On power up the module begins the following logical functions:
- Initialize hardware components
- Initialize CompactLogix backplane driver
- Test and clear all RAM
2. Read configuration from the CompactLogix processor via ladder logic
3. Allocate and initialize Module Register space
4. Enable Modbus application port
5. After the module has received the Module Configuration, the module begins communicating with other nodes on the Modbus network, depending on the configuration
4.2 Backplane Data Transfer
The MVI69L-MBS module communicates directly over the CompactLogix backplane. Data is paged between the module and the CompactLogix processor across the backplane using the module's input and output images. The update frequency of the images is determined by the scheduled scan rate defined by the user for the module and the communication load on the module. Typical updates are in the range of 1 to 10 milliseconds per block of information.
This bi-directional transference of data is accomplished by the module filling in data in the module's input image to send to the processor. Data in the input image is placed in the Controller Tags in the processor by the ladder logic. The input image for the module is 242 words. This data area permits fast throughput of data between the module and the processor.
Page 68 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Backplane Data Exchange Communication Module User Manual
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 is 241 words.
The following illustration shows the data transfer method used to move data between the CompactLogix processor, the MVI69L-MBS module and the Modbus Network.
All data transferred between the module and the processor over the backplane is through the input and output images. Ladder logic is needed in the CompactLogix processor to interface 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 239 each.
ProSoft Technology, Inc. Page 69 of 154 January 6, 2014
MVI69L-MBS Backplane Data Exchange MVI69L-MBS CompactLogix Platform
Offset
Description
Length (words)
0
Write Block ID
1
1 to 240
Write Data
240
Offset
Description
Length (words)
0
Read Block ID
1 1 Write Block ID
1
2 to 241
Read Data
240
User Manual Communication Module
4.3 Normal Data Transfer
Normal data transfer includes the paging of the user data found in the module’s
internal database and the status data. These data are transferred through read (input image) and write (output image) blocks. The following topics describe the structure and function of each block.
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:
The Write Block ID is an index value used to determine 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:
Page 70 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Backplane Data Exchange Communication Module User Manual
4.3.3 Read and Write Block Transfer Sequences
There are 240 words of data transferred per block along the backplane between the module and the processor.
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. The application uses one read and one write block, the sequence is as follows:
R1W1 R1W1 R1W1 R1W1 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 Ethernet port.
The backplane communication is configured as follows:
Database address 0 to 239 is continuously transferred from the module to the processor. Database address 240 to 479 is continuously transferred from the processor to the module.
ProSoft Technology, Inc. Page 71 of 154 January 6, 2014
MVI69L-MBS Backplane Data Exchange MVI69L-MBS CompactLogix Platform
Step
Description
1
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 application port and defines slave node characteristics. The configuration information may also contain instructions to offset data stored in the database to addresses different from addresses requested in the received messages.
2
A Modbus Master device, such as a Modicon PLC or an HMI application, issues a read or
write command to the module’s node address. The port driver qualifies the message before
accepting it into the module. Rejected commands will cause an Exception Response.
3
After the module accepts the command, the data is immediately transferred to or from the module’s internal database. 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.
4
After Steps 2 and 3 have been completed, either a normal response message or an Exception Response message is sent to the Master.
5
Counters are available in the Status Block to permit the ladder logic program to determine the level of activity of the Slave driver.
User Manual 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 processor and MVI69L-MBS module) and other nodes on the Modbus network. Each port on the module can be configured to emulate a Modbus Master device or a Modbus Slave device.
4.4.1 Slave Mode
The Slave Driver Mode allows the MVI69L-MBS module to respond to read and write commands issued by a master on the Modbus network. The following diagram shows the data flow for normal slave mode.
Page 72 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Backplane Data Exchange
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 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.
5
Same as normal mode.
Communication Module User Manual
In Slave Pass-Through mode, write commands from the Master are handled differently than they are in Normal mode. In Pass-Through mode, all write requests 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 shows the data flow for a slave port with pass-through enabled:
ProSoft Technology, Inc. Page 73 of 154 January 6, 2014
MVI69L-MBS Backplane Data Exchange MVI69L-MBS CompactLogix Platform User Manual Communication Module
4.4.2 Master Mode
In Master mode, the MVI69L-MBS module issues read or write commands to slave devices on the Modbus network. These commands are user-configured in ProSoft Configuration Builder as the Port 1 Master Command List. 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 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.
Page 74 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform MVI69L-MBS Backplane Data Exchange
Step
Description
1
Upon module boot-up, the Master Driver obtains configuration data from the MBS controller tags. The configuration data obtained includes port configuration and the Master Command List. Special Commands can be issued directly from the CompactLogix 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 obtained 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.
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 Command List.
Communication Module User Manual
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. This list contains up to 30 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.
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.
Slave node address Modbus Function Code: This is the type of command that is issued. Source or destination address in the slave device
ProSoft Technology, Inc. Page 75 of 154 January 6, 2014
MVI69L-MBS Backplane Data Exchange MVI69L-MBS CompactLogix Platform User Manual Communication Module
Command Error Codes
As the list is read in from the processor and as the commands are processed, an error value is maintained in the module for each command. The definition for these command error codes is listed in Communication Error Codes on page
101. The command error codes can be viewed through the Ethernet diagnostics port (see chapter 6, Diagnostics and Troubleshooting). 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.
Note: The Command Error List must be placed in the Read Data area of the database (Registers 0 to 239), so it can be transferred to the processor in the input image.
Page 76 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Using Controller Tags
In This Chapter
Controller Tags ...................................................................................... 78
User-Defined Data Types (UDTs) ......................................................... 80
Using Controller Tags ............................................................................ 81
Controller Tag Overview ........................................................................ 82
Communication Module User Manual
5 Using Controller Tags
Ladder logic is required for managing communication between the MVI69L-MBS module and the CompactLogix processor. The ladder logic handles tasks such as:
Module backplane data transfer Special block handling Status data receipt
Additionally, a power-up handler may be needed to initialize the module’s database and may clear some processor fault conditions.
The sample Import Rung with 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 Import Rung with Add-On Instruction works without modification.
ProSoft Technology, Inc. Page 77 of 154 January 6, 2014
Using Controller Tags MVI69L-MBS CompactLogix Platform User Manual Communication Module
5.1 Controller Tags
Data related to the MVI69L-MBS is stored in the ladder logic in variables called controller tags. Individual controller tags can be grouped into collections of controller tags called controller tag structures. A controller tag structure can contain any combination of:
Individual controller tags Controller tag arrays Lower-level controller tag structures
The controller tags for the module are pre-programmed into the Add-On Instruction Import Rung ladder logic. You can find them 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. Controller tag structures are declared with user-defined data types, which are collections of data types.
5.1.1 MVI69L-MBS Controller Tags
The main controller tag structure, MBS, is broken down into five lower-level controller tag structures.
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.
Page 78 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Using Controller Tags Communication Module User Manual
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 240-element integer arrays.
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).
ProSoft Technology, Inc. Page 79 of 154 January 6, 2014
Using Controller Tags MVI69L-MBS CompactLogix Platform User Manual Communication Module
5.2 User-Defined Data Types (UDTs)
User-defined data types (UDTs) allow users to organize collections of data types into groupings. These groupings, or data type structures, can then be used to declare the data types for controller tag structures. Another advantage of defining a UDT is that it may be re-used in other controller tag structures that use the same data types.
The Add-On Instruction Import Rung ladder logic for the module has pre-defined UDTs. You can 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 MVI69L-MBS User-Defined Data Types
Twenty different UDTs are defined for the MVI69L-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.
Click the [+] signs to expand the UDT structures and view lower-level UDTs.
Page 80 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Using Controller Tags Communication Module User Manual
For example, if you expand MBS.DATA, you see that it contains two UDTs, ReadData and WriteData. Both of these are 240-element integer arrays.
Notice that these UDTs are the data types used to declare the MBS.DATA.ReadData and MBS.DATA.WriteData controller tag arrays.
The UDTs are commented in the Description column.
5.3 Using Controller Tags
You can use controller tags to: View the read and write being transferred between the module and the
processor.
View status data for the module. Set up and trigger special functions. Initiate module restarts (Warm Boot or Cold Boot).
ProSoft Technology, Inc. Page 81 of 154 January 6, 2014
Using Controller Tags MVI69L-MBS CompactLogix Platform
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)
Tag Name
Description
MBS.CONFIG.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 via PCB.
MBS.CONFIG.FileSize
Configuration file size (MBS.CONFIG.FileData array) in bytes.
MBS.CONFIG.FileCRC32
CRC checksum of the configuration file stored in the array.
MBS.CONFIG.FileStatus
Configuration file status. 0 = No file present, 1 = File present
Tag Name
Description
MBS.DATA.ReadData
Data area copied from the module to the processor. This 240­element 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 240­element array stores the outgoing data sent from the module to the Modbus network.
User Manual Communication Module
5.4 Controller Tag Overview
The following sections describe each of these controller tag structures in more detail.
5.4.1 MBS.CONFIG
When PCB downloads the configuration file from the PC to the processor, the configuration file data and its CRC are stored in this array.
Edits cannot be done directly in this array. All configuration edits must be done in PCB since a unique CRC is calculated for data integrity. Any change to the configuration parameters directly in this array will not match the calculated CRC.
5.4.2 MBS.DATA
This structure contains the Read Data and Write Data arrays for processor-to­module communication.
Page 82 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Using Controller Tags
Tag Name
Range
Description
MBS.CONTROL.PortControl.Set
0 or 1
Sends Port Control to module
MBS.CONTROL.PortControl.Get
0 or 1
Reads Port Control from module
MBS.CONTROL.PortControl.Port1
n/a
Definition of Port 1 Control
MBS.CONTROL.PortControl.Port1. Active
0 or 1
Port Control: Disable = 0, Enable = 1
MBS.CONTROL.PortControl.Port1. CmdEnableBits[x]
0 or 1
Index of command to be controlled. Example: Command 20 in port 1 command list can be controlled at CmdEnableBits[1].3 - This is the 20th bit offset.
Tag Name
Range
Description
MBS.CONTROL.CmdControl. CmdControlTrigger
0 or 1
Command Control: Disable = 0, Enable = 1
MBS.CONTROL.CmdControl. NumberOfCommands
0 to 6
Total number of commands to be executed via Command Control
MBS.CONTROL.CmdControl. PortNumber
1
Port number to be associated with Command Control function
MBS.CONTROL.CmdControl. CommandIndex[x]
0 or 1
Command Index of port command [x] to be enabled. Up to 6 command indexes can be populated at a time.
Communication Module User Manual
5.4.3 MBS.CONTROL
5.4.3.1 MBS.CONTROL.PortControl This array allows port commands to be controlled by the processor.
5.4.3.2 MBS.CONTROL.CmdControl
This array allows the processor to dynamically enable configured commands for execution.
ProSoft Technology, Inc. Page 83 of 154 January 6, 2014
Using Controller Tags MVI69L-MBS CompactLogix Platform
Tag Name
Range
Description
MBS.CONTROL.EventCmd_DBData. EventCmdTrigger
0 or 1
Toggle to send Event Command. 0 = Disable, 1 = Enable
MBS.CONTROL.EventCmd_DBData. PortNumber
1
Port number to be associated with command Control function
MBS.CONTROL.EventCmd_DBData. SlaveID
1 to 248
Slave ID of Modbus slave
MBS.CONTROL.EventCmd_DBData. InternalDBAddress
0 to 479 or 0 to 3839
(bit-level)
Used only if UseModuleDBAddress=1. Allowable range is 0 to 479 for Modbus Function Codes 3, 4, 6, or 16, and 0 to 3839 for Function Codes 1, 2, 5, or 15.
MBS.CONTROL.EventCmd_DBData. PointCount
0 to 125
Number of bit/words associated with this command.
MBS.CONTROL.EventCmd_DBData. SwapCode
0 to 3
Swap code 0 = no swap, 1 = word swap, 2 = words & byte swap, 3 = byte swap
MBS.CONTROL.EventCmd_DBData. ModbusFunctionCode
-
Modbus function code (1,2,3,4,5,6,15,or
16)
MBS.CONTROL.EventCmd_DBData. DeviceDBAddress
0 to 9999
Modbus address of the target slave database
MBS.CONTROL.EventCmd_DBData. EventCmdStatusReturned
-
Event status returned by the module
Tag Name
Range
Description
MBS.CONTROL.EventCmd_ProcessorData. CmdTrigger
0 or 1
Toggle to send Event Command. 0 = Disable, 1 = Enable
MBS.CONTROL.EventCmd_ProcessorData. GetStatusTrigger
0 or 1
Toggle to retrieve event status. 0 = Disable, 1 = Enable
MBS.CONTROL.EventCmd_ProcessorData. PortNumber
1
Port number to be associated with command
MBS.CONTROL.EventCmd_ProcessorData. SlaveAddress
1 to 248
Slave ID of Modbus slave
MBS.CONTROL.EventCmd_ProcessorData. ModbusFunctionCode
-
Modbus function code (5,6,15,or 16)
MBS.CONTROL.EventCmd_ProcessorData. DeviceDBAddress
0 to 9999
Modbus address of the target slave database
MBS.CONTROL.EventCmd_ProcessorData. PointCount
0 to 125
Number of bit/words associated with this command.
MBS.CONTROL.EventCmd_ProcessorData. Data[x]
0 to 49
Data values to be sent to the slave
MBS.CONTROL.EventCmd_ProcessorData. EventCmdStatusReturned
-
Command status
MBS.CONTROL.EventCmd_ProcessorData. Port1Status
-
Port 1 Status array
MBS.CONTROL.EventCmd_ProcessorData. Port1Status.Status
-
Status code (Check error code listings on page 101)
MBS.CONTROL.EventCmd_ProcessorData. Port1Status.LastError
-
Last error code
User Manual Communication Module
5.4.3.3 MBS.CONTROL.EventCmd_DBData
This array allows the processor to dynamically build Modbus commands (for periodic use) with data associated to the MBS database.
5.4.3.4 MBS.CONTROL.EventCmd_ProcessorData
This array allows the processor to dynamically build Modbus commands (for periodic use) with processor data.
Page 84 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Using Controller Tags
Tag Name
Range
Description
MBS.CONTROL.SlavePoll. Port1
-
Port 1 slave polling control array
MBS.CONTROL.SlavePoll. Port1.EnableSlaves
0 or 1
Slave Poll request 0 = Disable, 1 = Enable
MBS.CONTROL.SlavePoll. Port1.EnableSlaveCount
1 to 60
Number of slaves to be enabled
MBS.CONTROL.SlavePoll. Port1.EnableSlavesIDs[x]
-
Data array associated to enable slave request where word x corresponds to slave ID x (0-based). 1 = Enable slave
MBS.CONTROL.SlavePoll. Port1.DisableSlaves
0 or 1
Triggers disable slaves request 0 = Disable, 1 = Enable
MBS.CONTROL.SlavePoll. Port1.DisableSlaveCount
1 to 60
Number of slaves to be disabled
MBS.CONTROL.SlavePoll. Port1.DisableSlavesIDs[x]
-
Data array associated to disable slave request where word x corresponds to slave ID x (0-based). 1 = Disable slave
MBS.CONTROL.SlavePoll. Port1.GetSlavesStatus
0 or 1
Triggers request to read slave status 0 = Disable, 1 = Enabled
MBS.CONTROL.SlavePoll. Port1.SlavesStatus[x]
-
Data array with status
Tag Name
Range
Description
MBS.CONTROL.Time.SetTime
0 or 1
Sends the PLC time to the module 0 = Disable, 1 = Enable
MBS.CONTROL.Time.GetTime
0 or 1
Retrieves the time from the module to PLC 0 = Disable, 1 = Enable
MBS.CONTROL.Time.Year
0 to 9999
Four digit year value. Example: 2014
MBS.CONTROL.Time.Month
1 to 12
Month
MBS.CONTROL.Time.Day
1 to 31
Day
MBS.CONTROL.Time.Hour
0 to 23
Hour
MBS.CONTROL.Time.Minute
0 to 59
Minute
MBS.CONTROL.Time.Second
0 to 59
Second
MBS.CONTROL.Time.Milliseconds
0 to 999
Millisecond
Communication Module User Manual
5.4.3.5 MBS.CONTROL.SlavePoll
This array allows the processor to enable, disable and retrieve status for slaves.
5.4.3.6 MBS.CONTROL.Time
This array allows the processor to get or set module time.
ProSoft Technology, Inc. Page 85 of 154 January 6, 2014
Using Controller Tags MVI69L-MBS CompactLogix Platform
Tag Name
Range
Description
MBS.CONTROL.GetStatus
0 or 1
Triggers status retrieval from the module 0 = Disable, 1 = Enable
Tag Name
Range
Description
MBS.CONTROL.ResetStatus
0 or 1
Triggers module status counter reset 0 = Disable, 1 = Enable
Tag Name
Range
Description
MBS.CONTROL.ColdBoot
0 or 1
Triggers a cold boot of the module 0 = Disable, 1 = Enable
Tag Name
Range
Description
MBS.CONTROL.WarmBoot
0 or 1
Triggers a warm boot the module 0 = Disable, 1 = Enable
User Manual Communication Module
5.4.3.7 MBS.CONTROL.GetStatus
This tag allows the processor to retrieve status from the module.
5.4.3.8 MBS.CONTROL.ResetStatus
This tag allows the processor to reset the module status counters.
5.4.3.9 MBS.CONTROL. ColdBoot This tag allows the processor to Coldboot the module (full reboot).
5.4.3.10 MBS.CONTROL.WarmBoot
This tag allows the processor to Warmboot the module (driver reboot).
Page 86 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Using Controller Tags
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.Port1Stats
Port 1 status
MBS.STATUS.Port1Stats.CmdListReq
Total number of requests made from port 1 to slave devices on the network
MBS.STATUS.Port1Stats.CmdListResp
Total number of slave response messages received port 1
MBS.STATUS.Port1Stats.CmdListErr
Total number of command errors processed on port 1. These errors could be due to a bad response or command
MBS.STATUS.Port1Stats.PortReq
Total number of messages sent out of port 1
MBS.STATUS.Port1Stats.PortResp
Total number of messages received on port 1
MBS.STATUS.Port1Stats.PortErrSent
Total number of message errors sent out of port 1
MBS.STATUS.Port1Stats.PortErrRec
Total number of message errors received on port 1
MBS.STATUS.Port1Stats.CurrErr
Not used
MBS.STATUS.Port1Stats.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.Port1LastErr
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.
MBS.STATUS.Port1PreviousErr
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.
Communication Module User Manual
5.4.4 MBS.STATUS
This array contains status data for the module.
ProSoft Technology, Inc. Page 87 of 154 January 6, 2014
Using Controller Tags MVI69L-MBS CompactLogix Platform
Tag Name
Description
MBS.UTIL.ReadDataSizeGet
Holds Read Data array size (240)
MBS.UTIL.WriteDataSizeGet
Holds Write Data array size (240)
MBS.UTIL.ReadDataBlkCount
Number of Read Data blocks (1)
MBS.UTIL.WriteDataBlkCount
Number of Write Data blocks (1)
MBS.UTIL.RBTSremainder
Not used
MBS.UTIL.WBTSremainder
Not used
MBS.UTIL.BlockIndex
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.LastWriteInit
Latest Write Block ID used during initialization
MBS.UTIL.ConfigFile
Holds variables for configuration 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 (242)
MBS.UTIL.BlockTransferSize
Size of the backplane transfer blocks (240)
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 pass-through messages
User Manual Communication Module
5.4.5 MBS.UTIL
The array is used for internal ladder processing. It should not be modified.
Page 88 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Diagnostics and Troubleshooting
In This Chapter
Ethernet LED Indicators ........................................................................ 90
LED Status Indicators ............................................................................ 90
Connecting the PC to the Module's Ethernet Port ................................. 92
Using the Diagnostics Menu in ProSoft Configuration Builder ............... 95
Communication Error Codes ............................................................... 101
Connecting to the Module’s Web Page ............................................... 102
Communication Module User Manual
6 Diagnostics and Troubleshooting
The module provides information on diagnostics and troubleshooting in the following forms:
LED status indicators on the front of the module provide information on the
module’s status.
Status data contained in the module can be viewed in ProSoft Configuration
Builder through the Ethernet port.
Status data values are transferred from the module to the processor.
ProSoft Technology, Inc. Page 89 of 154 January 6, 2014
Diagnostics and Troubleshooting MVI69L-MBS CompactLogix Platform
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 or Blinking
Physical network connection detected. This LED must be ON solid for Ethernet communication to be possible.
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
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 down
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.
User Manual Communication Module
6.1 Ethernet LED Indicators
The Ethernet LEDs indicate the module's Ethernet port status as follows:
6.2 LED Status Indicators
The LEDs indicate the module’s operating status as follows:
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 support to arrange for repairs.
Page 90 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Diagnostics and Troubleshooting
Problem Description
Steps to take
Processor Fault
Verify the module is securely plugged into the slot that has been configured for it in the I/O Configuration of RSLogix.
Verify 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 MVI69L-MBS. Verify all modules in the rack are configured correctly.
Problem Description
Steps to take
BP 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 communications, verify the following items:
The processor is in RUN or REM RUN mode.  The backplane driver is loaded in the module.  The module is configured for read and write data block transfer.  The ladder logic handles all read and write block situations.  The module is properly configured in the processor I/O configuration
and ladder logic.
OK LED remains RED
The program has halted or a critical error has occurred. Connect to the 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 and re­insert the card in the rack, and then restore power to the rack.
Communication Module 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:
1 Turn off power to the rack. 2 Remove the card from the rack. 3 Verify all jumpers are set correctly. 4 Re-insert the card in the rack and turn the power back on. 5 Verify correct configuration data is being transferred to the module from the
CompactLogix 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 the LEDs
Use the following troubleshooting steps if problems occur when the module is powered up. If these steps do not resolve the problem, please contact ProSoft Technology Technical Support.
Processor Errors
Module Errors
ProSoft Technology, Inc. Page 91 of 154 January 6, 2014
Diagnostics and Troubleshooting MVI69L-MBS CompactLogix Platform User Manual 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.
Page 92 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Diagnostics and Troubleshooting Communication Module User Manual
6.3.1 Setting Up a Temporary IP Address
Important: ProSoft Configuration Builder locates MVI69L-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 In the tree view in ProSoft Configuration Builder (PCB), select the MVI69L-
MBS module. (For instructions on opening and using a project in PCB, please
refer to Chapter 2.)
2 Click the right mouse button to open a shortcut menu. On the shortcut menu,
choose DIAGNOSTICS.
ProSoft Technology, Inc. Page 93 of 154 January 6, 2014
Diagnostics and Troubleshooting MVI69L-MBS CompactLogix Platform User Manual Communication Module
3 In the Diagnostics window, click the SET UP CONNECTION button.
4 In the Connection Setup dialog box, click the BROWSE DEVICE(S) button to
open the ProSoft Discovery Service. Select the module, then right-click and choose ASSIGN TEMPORARY IP.
5 The module’s default IP address is usually 192.168.0.250. Choose an unused
IP within your subnet, and then click OK.
Important: The temporary IP address is only valid until the next time the module is initialized. For
information on how to set the module’s permanent IP address, see Ethernet 1 on page 59.
Page 94 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Diagnostics and Troubleshooting Communication Module User Manual
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 the TEST CONNECTION button to verify that the module is accessible with the current settings.
7 If the Test Connection is successful, click CONNECT. The Diagnostics menu
displays in the Diagnostics window. At this point, the module has been established on the Ethernet network with a unique IP address.
6.4 Using the Diagnostics Menu in ProSoft Configuration Builder
ProSoft Configuration Builder (PCB) provides diagnostic menus for debugging and troubleshooting.
To connect to the module’s Configuration/Debug Ethernet port
1 In ProSoft Configuration Builder, select the module, and then click the right
mouse button to open a shortcut menu.
2 On the shortcut menu, choose DIAGNOSTICS.
ProSoft Technology, Inc. Page 95 of 154 January 6, 2014
Diagnostics and Troubleshooting MVI69L-MBS CompactLogix Platform User Manual Communication Module
3 After the Diagnostics window opens, click the SETUP CONNECTION button to
browse for the module’s IP address.
4 In the Ethernet field of the Connection Setup dialog box, enter the current IP
address, whether it is temporary or permanent. Click the TEST CONNECTION button to verify that the module is accessible with the current settings.
5 If the Test Connection is successful, click CONNECT. The Diagnostics Window
is now accessible.
Page 96 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Diagnostics and Troubleshooting Communication Module User Manual
6.4.1 Diagnostics Menu
The Diagnostics menu is available through the Ethernet configuration port. The menu is arranged as a tree structure.
6.4.2 Monitoring General Information
Use the GENERAL>Version menu to view module version information.
ProSoft Technology, Inc. Page 97 of 154 January 6, 2014
Diagnostics and Troubleshooting MVI69L-MBS CompactLogix Platform User Manual Communication Module
6.4.3 Monitoring Network Configuration Information
Use the NETWORK>Config menu to view the Ethernet network configuration information.
6.4.4 Monitoring Backplane Information
Use the BACKPLANE>Config and Status menu to view the backplane information.
Page 98 of 154 ProSoft Technology, Inc. January 6, 2014
MVI69L-MBS CompactLogix Platform Diagnostics and Troubleshooting Communication Module User Manual
6.4.5 Port 1 Module Information
The MODBUS PORT 1 menu includes the following submenus:
-Configuration
-Status (General status for the port)
-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 configured as a Modbus master)
-Master Command Status (Status code for each master command, used when port is configured as a Modbus master)
ProSoft Technology, Inc. Page 99 of 154 January 6, 2014
Diagnostics and Troubleshooting MVI69L-MBS CompactLogix Platform User Manual Communication Module
6.4.6 Monitoring Data Values in the Module’s Database
Use the DATABASE>Decimal menu to view the contents of the MVI69L-MBS
module’s internal database. Data values can also be viewed in ASCII, Hexadecimal, and Float format.
Page 100 of 154 ProSoft Technology, Inc. January 6, 2014
Loading...