ProSoft Technology MVI69-MCM User Manual

MVI69-MCM
CompactLogix or MicroLogix Platform
Modbus Communication Module
March 22, 2011
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 © 2011 ProSoft Technology, Inc., all rights reserved.
MVI69-MCM User Manual
March 22, 2011
ProSoft Technology ®, ProLinx ®, inRAx ®, ProTalk ®, and RadioLinx ® are Registered Trademarks of ProSoft Technology, Inc. All other brand or product names are or may be trademarks of, and are used to identify products and services of, their respective owners.
ProSoft Technology® Product Documentation
In an effort to conserve paper, ProSoft Technology no longer includes printed manuals with our product shipments. User Manuals, Datasheets, Sample Ladder Files, and Configuration Files are provided on the enclosed CD-ROM, and are available at no charge from our web site: www.prosoft-technology.com
Important Installation Instructions
Power, Input, and Output (I/O) wiring must be in accordance with Class I, Division 2 wiring methods, Article 501-4 (b) of the National Electrical Code, NFPA 70 for installation in the U.S., or as specified in Section 18-1J2 of the Canadian Electrical Code for installations in Canada, and in accordance with the authority having jurisdiction. The following warnings must be heeded:
A WARNING - EXPLOSION HAZARD - SUBSTITUTION OF COMPONENTS MAY IMPAIR SUITABILITY FOR
CLASS I, DIV. 2;
B WARNING - EXPLOSION HAZARD - WHEN IN HAZARDOUS LOCATIONS, TURN OFF POWER BEFORE
REPLACING OR WIRING MODULES
C WARNING - EXPLOSION HAZARD - DO NOT DISCONNECT EQUIPMENT UNLESS POWER HAS BEEN
SWITCHED OFF OR THE AREA IS KNOWN TO BE NON-HAZARDOUS.
D THIS DEVICE SHALL BE POWERED BY CLASS 2 OUTPUTS ONLY.
MVI (Multi Vendor Interface) Modules
WARNING - EXPLOSION HAZARD - DO NOT DISCONNECT EQUIPMENT UNLESS POWER HAS BEEN SWITCHED OFF OR THE AREA IS KNOWN TO BE NON-HAZARDOUS.
AVERTISSEMENT - RISQUE D'EXPLOSION - AVANT DE DÉCONNECTER L'ÉQUIPEMENT, COUPER LE COURANT OU S'ASSURER QUE L'EMPLACEMENT EST DÉSIGNÉ NON DANGEREUX.
Warnings
North America Warnings
A Warning - Explosion Hazard - Substitution of components may impair suitability for Class I, Division 2. B Warning - Explosion Hazard - When in hazardous locations, turn off power before replacing or rewiring modules.
Warning - Explosion Hazard - Do not disconnect equipment unless power has been switched off or the area is known to be non-hazardous.
C Suitable for use in Class I, Division 2 Groups A, B, C and D Hazardous Locations or Non-Hazardous Locations.
ATEX Warnings and Conditions of Safe Usage
Power, Input, and Output (I/O) wiring must be in accordance with the authority having jurisdiction.
A Warning - Explosion Hazard - When in hazardous locations, turn off power before replacing or wiring modules. B Warning - Explosion Hazard - Do not disconnect equipment unless power has been switched off or the area is
known to be non-hazardous.
C These products are intended to be mounted in an IP54 enclosure. The devices shall provide external means to
prevent the rated voltage being exceeded by transient disturbances of more than 40%. This device must be used only with ATEX certified backplanes.
D DO NOT OPEN WHEN ENERGIZED.
Warning: This module is not hot-swappable! Always remove power from the rack before inserting or removing this module, or damage may result to the module, the processor, or other connected devices.
Battery Life Advisory
The MVI46, MVI56, MVI56E, MVI69, and MVI71 modules use a rechargeable Lithium Vanadium Pentoxide battery to backup the real-time clock and CMOS. The battery should last for the life of the module. The module must be powered for approximately twenty hours before the battery becomes fully charged. After it is fully charged, the battery provides backup power for the CMOS setup and the real-time clock for approximately 21 days. When the battery is fully discharged, the module will revert to the default BIOS and clock settings.
Note: The battery is not user replaceable.
Markings
Electrical Ratings
Backplane Current Load: 800 mA @ 5.1 Vdc  Power Supply Distance Rating: 2  Operating Temperature: 0°C to 60°C (32°F to 140°F)  Storage Temperature: -40°C to 85°C (-40°F to 185°F)  Relative Humidity: 5% to 95% (without condensation)  All phase conductor sizes must be at least 1.3 mm(squared) and all earth ground conductors must be at least
4mm(squared).
Label Markings
Class I, Division 2 Groups A, B, C, D II 3 G Ex nA IIC X 0°C <= Ta <= +60°C II - Equipment intended for above ground use (not for use in mines). 3 - Category 3 equipment, investigated for normal operation only. G - Equipment protected against explosive gasses.
Agency Approvals and Certifications
Agency Applicable Standard(s)
ATEX EN 60079-0:2006, EN 60079-15:2005 DNV DET NORSKE VERITAS Test 2.4 CE EMC-EN61326-1:2006; EN61000-6-4:2007 CB Safety CA/10533/CSA, IEC 61010-1 Ed. 2, CB 243333-2056722
(2090408)
GOST-R EN 61010
ME06
MVI69-MCM ♦ CompactLogix or MicroLogix Platform Contents Modbus Communication Module User Manual
Contents
Your Feedback Please ........................................................................................................................ 2
How to Contact Us .............................................................................................................................. 2
ProSoft Technology® Product Documentation .................................................................................... 2
Important Installation Instructions ....................................................................................................... 3
MVI (Multi Vendor Interface) Modules ................................................................................................ 3
Warnings ............................................................................................................................................. 3
Battery Life Advisory ........................................................................................................................... 3
Markings .............................................................................................................................................. 4
Guide to the MVI69-MCM User Manual 9
1 Start Here 11
1.1
1.2
1.3
1.4
1.5
System Requirements ............................................................................................. 12
Package Contents ................................................................................................... 13
Installing ProSoft Configuration Builder Software ................................................... 14
Setting Jumpers ...................................................................................................... 15
Install the Module in the Rack ................................................................................. 16
2 Configuring the MVI69-MCM Module 19
2.1
2.2
2.3
2.4
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
2.1.6
2.1.7
2.1.8
2.1.9
2.1.10
2.2.1
2.2.2
2.4.1
2.4.2
2.4.3
2.4.4
MVI69-MCM Sample Add-On Instruction Import Procedure ................................... 20
Create a new RSLogix5000 project ........................................................................ 20
Create the Module ................................................................................................... 21
Import the Ladder Rung .......................................................................................... 23
Set the Read/Write Data Lengths ........................................................................... 27
Set the Block Transfer Parameter Size ................................................................... 29
Set the Connection Input Size Values ..................................................................... 30
Adding Multiple Modules (Optional) ........................................................................ 31
Connecting Your PC to the Processor .................................................................... 39
Download the Sample Program to the Processor ................................................... 39
Connect your PC to the Module .............................................................................. 45
Using ProSoft Configuration Builder ....................................................................... 46
Setting Up the Project ............................................................................................. 46
Renaming PCB Objects .......................................................................................... 48
Downloading the Project to the Module Using a Serial COM port .......................... 49
Module Configuration .............................................................................................. 50
[Module] ................................................................................................................... 50
[Backplane 69] ......................................................................................................... 50
[MCM Port x] ........................................................................................................... 53
[Modbus Port x Commands] .................................................................................... 59
3 Ladder Logic 69
3.1
3.2
3.2.1
3.2.2
Ladder Logic and Firmware Compatibility Note ...................................................... 70
Module Data Object (MCM1ModuleDef) ................................................................. 71
Status Object (MCM1Status)................................................................................... 72
User Data Objects ................................................................................................... 73
ProSoft Technology, Inc. Page 5 of 167 March 22, 2011
Contents MVI69-MCM ♦ CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
3.2.3
3.3
3.4
3.2.4
Slave Polling Control and Status ............................................................................ 73
MODBUS Message Data ........................................................................................ 74
Adding the Module to an Existing CompactLogix Project ....................................... 75
Adding the Module to an Existing MicroLogix Project ............................................ 79
4 Diagnostics and Troubleshooting 81
4.1
4.2
4.3
4.1.1
4.1.2
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.7
4.2.8
4.2.9
LED Status Indicators ............................................................................................. 82
Clearing a Fault Condition ...................................................................................... 83
Troubleshooting ...................................................................................................... 84
Using ProSoft Configuration Builder (PCB) for Diagnostics ................................... 85
Using the Diagnostic Window in ProSoft Configuration Builder ............................. 85
Navigation ............................................................................................................... 87
Main Menu .............................................................................................................. 88
Database View Menu .............................................................................................. 90
Backplane Menu ..................................................................................................... 92
Protocol Serial MCM Menu ..................................................................................... 93
Master Command Error List Menu.......................................................................... 94
Serial Port Menu ..................................................................................................... 95
Data Analyzer ......................................................................................................... 96
Reading Status Data from the Module ................................................................... 99
5 Reference 101
5.1
5.1.1
5.1.2
5.1.3
5.1.4
5.2
5.2.1
5.2.2
5.2.3
5.2.4
5.3 Processor 110
5.3.1
5.3.2
5.4
5.4.1
5.4.2
5.4.3
5.4.4
5.4.5
5.4.6
5.4.7
5.5
5.5.1
5.5.2
5.5.3
5.5.4
5.5.5
5.5.6
Product Specifications .......................................................................................... 102
General Specifications .......................................................................................... 102
Hardware Specifications ....................................................................................... 103
General Specifications - Modbus Master/Slave .................................................... 104
Functional Specifications ...................................................................................... 105
Functional Overview ............................................................................................. 106
About the MODBUS Protocol ............................................................................... 106
Module Power Up ................................................................................................. 106
Main Logic Loop ................................................................................................... 107
Backplane Data Transfer ...................................................................................... 107
Data Flow between MVI69-MCM Module and CompactLogix or MicroLogix
Slave Driver .......................................................................................................... 110
Master Driver Mode .............................................................................................. 112
Normal Data Transfer ........................................................................................... 115
Block Request from the Processor to the Module ................................................ 115
Block Response from the Module to the Processor ............................................. 115
Read Block and Write Block Transfer Sequences ................................................ 116
If Block Transfer Size = 60 ................................................................................... 117
If Block Transfer Size = 120 ................................................................................. 118
If Block Transfer Size = 240 ................................................................................. 119
Status Data Block (Read Block ID = 0) ................................................................. 119
Special Control and Status Blocks........................................................................ 121
Slave Disable and Enable Control Blocks ............................................................ 121
Slave Status Blocks .............................................................................................. 124
Event Command ................................................................................................... 125
Command Control ................................................................................................. 127
Pass-Through Control Blocks ............................................................................... 129
Initialize Output Data ............................................................................................ 133
Page 6 of 167 ProSoft Technology, Inc. March 22, 2011
MVI69-MCM ♦ CompactLogix or MicroLogix Platform Contents Modbus Communication Module User Manual
5.5.7
5.6
5.7
5.8
5.9
5.5.8
5.6.1
5.6.2
5.6.3
5.6.4
5.6.5
5.6.6
5.6.7
5.6.8
5.6.9
5.6.10
5.6.11
5.7.1
5.7.2
5.7.3
5.7.4
5.7.5
Warm Boot Block (9998) ....................................................................................... 133
Cold Boot Block (9999) ......................................................................................... 133
Modbus Protocol Specification .............................................................................. 134
Commands Supported by the Module ................................................................... 134
Read Coil Status (Function Code 01) ................................................................... 134
Read Input Status (Function Code 02) .................................................................. 135
Read Holding Registers (Function Code 03) ........................................................ 136
Read Input Registers (Function Code 04) ............................................................. 137
Force Single Coil (Function Code 05) ................................................................... 138
Preset Single Register (Function Code 06) ........................................................... 139
Diagnostics (Function Code 08) ............................................................................ 140
Force Multiple Coils (Function Code 15) ............................................................... 142
Preset Multiple Registers (Function Code 16) ...................................................... 143
MODBUS Exception Responses ........................................................................... 144
Cable Connections ................................................................................................ 146
RS-232 Configuration/Debug Port ........................................................................ 146
RS-232 Application Port(s) ................................................................................... 146
RS-422 .................................................................................................................. 149
RS-485 Application Port(s) .................................................................................... 149
DB9 to RJ45 Adaptor (Cable 14) .......................................................................... 150
MCM Database Definition ..................................................................................... 151
Status Data Definition ............................................................................................ 152
6 Support, Service & Warranty 155
Contacting Technical Support ......................................................................................................... 155
6.1
6.2
6.1.1
6.1.2
6.1.3
6.2.1
6.2.2
6.2.3
6.2.4
6.2.5
6.2.6
6.2.7
6.2.8
6.2.9
6.2.10
Return Material Authorization (RMA) Policies and Conditions.............................. 157
Returning Any Product .......................................................................................... 157
Returning Units Under Warranty ........................................................................... 158
Returning Units Out of Warranty ........................................................................... 158
LIMITED WARRANTY ........................................................................................... 159
What Is Covered By This Warranty ....................................................................... 159
What Is Not Covered By This Warranty ................................................................ 160
Disclaimer Regarding High Risk Activities ............................................................ 160
Intellectual Property Indemnity .............................................................................. 161
Disclaimer of all Other Warranties ........................................................................ 161
Limitation of Remedies ** ...................................................................................... 162
Time Limit for Bringing Suit ................................................................................... 162
No Other Warranties ............................................................................................. 162
Allocation of Risks ................................................................................................. 162
Controlling Law and Severability ........................................................................... 163
Index 165
ProSoft Technology, Inc. Page 7 of 167 March 22, 2011
Contents MVI69-MCM ♦ CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
Page 8 of 167 ProSoft Technology, Inc. March 22, 2011
MVI69-MCM ♦ CompactLogix or MicroLogix Platform Guide to the MVI69-MCM User Manual Modbus Communication Module User Manual
Guide to the MVI69-MCM User Manual
Function
Introduction (Must Do)
Diagnostic and Troubleshooting
Reference
Product Specifications
Functional Overview
Support, Service, and Warranty
Index
Section to Read Details
Start Here (page 11) This section introduces the customer to the
Diagnostics and
Troubleshooting (page 81)
Reference (page
101)
Product Specifications (page
102)
Functional Overview (page 106, page 91)
Support, Service
and Warranty (page
155)
Index
module. Included are: package contents, system requirements, hardware installation, and basic configuration.
This section describes Diagnostic and Troubleshooting procedures.
These sections contain general references associated with this product, Specifications, and the Functional Overview.
This section contains Support, Service and Warranty information.
Index of chapters.
ProSoft Technology, Inc. Page 9 of 167 March 22, 2011
Guide to the MVI69-MCM User Manual MVI69-MCM ♦ CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
Page 10 of 167 ProSoft Technology, Inc. March 22, 2011
MVI69-MCM ♦ CompactLogix or MicroLogix Platform Start Here Modbus Communication Module User Manual
1 Start Here
In This Chapter
System Requirements ........................................................................... 12
Package Contents ................................................................................. 13
Installing ProSoft Configuration Builder Software .................................. 14
Setting Jumpers .................................................................................... 15
Install the Module in the Rack ............................................................... 16
To get the most benefit from this User Manual, you 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 or MicroLogix devices to a power source and to the MVI69-MCM module’s application port(s)
ProSoft Technology, Inc. Page 11 of 167 March 22, 2011
Start Here MVI69-MCM ♦ CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
1.1 System Requirements
The MVI69-MCM module requires the following minimum hardware and software components:
Rockwell Automation CompactLogix or MicroLogix processor, with
compatible power supply and one free slot in the rack, for the MVI69-MCM module. The module requires 800 mA of available power.
Important: The MVI69-MCM module has a power supply distance rating of 2 (L43 and L45 installations on first 2 slots of 1769 bus). Important: For 1769-L23x processors, please make note of the following limitations. 1769-L23-QBFC1B = 800 mA at 5 Vdc (One MVI69-MCM will use all 800 mA of available
power. No other modules can be used with an MVI69 module connected to this processor.)
1769-L23E-QB1B = 1000 mA at 5 Vdc (One MVI69-MCM will use 800 mA of available power.
One other module can be used on this rack provided it consumes less than 200 mA at 5 Vdc.)
1769-L23E-QBFC1B = 450 mA at 5 Vdc (No MVI69 module can be used with this processor.)
Rockwell Automation RSLogix 5000 (CompactLogix) or RSLogix 500
(MicroLogix) programming software
Rockwell Automation RSLinx communication software  Pentium® II 450 MHz minimum. Pentium III 733 MHz (or better)
recommended
Supported operating systems:
o
Microsoft Windows XP Professional with Service Pack 1 or 2
o
Microsoft Windows 2000 Professional with Service Pack 1, 2, or 3
o
Microsoft Windows Server 2003
128 Mbytes of RAM minimum, 256 Mbytes of RAM recommended 100 Mbytes of free hard disk space (or more based on application
requirements)
256-color VGA graphics adapter, 800 x 600 minimum resolution (True Color
1024 × 768 recommended)
CD-ROM drive HyperTerminal or other terminal emulator program capable of file transfers
using Ymodem protocol.
Page 12 of 167 ProSoft Technology, Inc. March 22, 2011
MVI69-MCM ♦ CompactLogix or MicroLogix Platform Start Here Modbus Communication Module User Manual
1.2 Package Contents
The following components are included with your MVI69-MCM module, and are all required for installation and configuration.
Important: Before beginning the installation, please verify that all of the following items are present.
Qty. Part Name Part Number Part Description
1 MVI69-MCM Module MVI69-MCM Modbus Communication Module 1 Cable Cable #15, RS232
3 Cable Cable #14, RJ45 to
2 Adapter 1454-9F Two Adapters, DB9 Female to Screw
1 ProSoft Solutions CD Contains sample programs, utilities and
If any of these components are missing, please contact ProSoft Technology Support for replacement parts.
For RS232 Connection to the CFG Port
Null Modem
For DB9 Connection to Module’s Port DB9 Male Adapter cable
Terminal. For RS422 or RS485
Connections to Port 1 and 2 of the Module
documentation for the MVI69-MCM module.
ProSoft Technology, Inc. Page 13 of 167 March 22, 2011
Start Here MVI69-MCM ♦ CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
1.3 Installing ProSoft Configuration Builder Software
You must install the ProSoft Configuration Builder (PCB) software to configure the module. You can always get the newest version of ProSoft Configuration Builder from the ProSoft Technology website.
Installing ProSoft Configuration Builder from the ProSoft website
1 Open your web browser and navigate to http://www.prosoft-
technology.com/pcb
2 Click the D
Configuration Builder.
3 Choose S 4 Save the file to your Windows Desktop, so that you can find it easily when
you have finished downloading.
5 When the download is complete, locate and open the file, and then follow the
instructions on your screen to install the program.
If you do not have access to the Internet, you can install ProSoft Configuration Builder from the ProSoft Solutions Product CD-ROM, included in the package with your module.
Installing ProSoft Configuration Builder from the Product CD-ROM
1 Insert the ProSoft Solutions Product CD-ROM into the CD-ROM drive of your
PC. Wait for the startup screen to appear.
2 On the startup screen, click P
Windows Explorer file tree window.
3 Click to open the U
and files you will need to set up and configure your module.
4 Double-click the S
PCB_*.
software on your PC. The information represented by the "*" character in the file name is the PCB version number and, therefore, subject to change as new versions of PCB are released.
OWNLOAD HERE
AVE
or S
AVE FILE
TILITIES
ETUP CONFIGURATION TOOL
EXE
file and follow the instructions on your screen to install the
link to download the latest version of ProSoft
when prompted.
RODUCT DOCUMENTATION
folder. This folder contains all of the applications
folder, double-click the
. This action opens a
Note: Many of the configuration and maintenance procedures use files and other utilities on the CD-ROM. You may wish to copy the files from the Utilities folder on the CD-ROM to a convenient location on your hard drive.
Page 14 of 167 ProSoft Technology, Inc. March 22, 2011
MVI69-MCM ♦ CompactLogix or MicroLogix Platform Start Here Modbus Communication Module User Manual
1.4 Setting Jumpers
When the module is manufactured, the port selection jumpers are set to RS-232. To use RS-422 or RS-485, you must set the jumpers to the correct position. The following diagram describes the jumper settings.
The Setup Jumper acts as "write protection" for the module’s flash memory. In "write protected" mode, the Setup pins are not connected, and the module’s firmware cannot be overwritten. Do not jumper the Setup pins together unless you are directed to do so by ProSoft Technical Support.
ProSoft Technology, Inc. Page 15 of 167 March 22, 2011
Start Here MVI69-MCM ♦ CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
1.5 Install the Module in the Rack
This section describes how to install the module into a CompactLogix or MicroLogix rack
Before you attempt to install the module, make sure that the bus lever of the adjacent module is in the unlocked (fully right) position.
Warning: This module is not hot-swappable! Always remove power from the rack before inserting or removing this module, or damage may result to the module, the processor, or other connected devices.
1 Align the module using the upper and lower tongue-and-groove slots with the
adjacent module and slide forward in the direction of the arrow.
2 Move the module back along the tongue-and-groove slots until the bus
connectors on the MVI69 module and the adjacent module line up with each other.
Page 16 of 167 ProSoft Technology, Inc. March 22, 2011
MVI69-MCM ♦ CompactLogix or MicroLogix Platform Start Here Modbus Communication Module User Manual
3 Push the module’s bus lever back slightly to clear the positioning tab and
move it firmly to the left until it clicks. Ensure that it is locked firmly in place.
4 Close all DIN-rail latches.
ProSoft Technology, Inc. Page 17 of 167 March 22, 2011
Start Here MVI69-MCM ♦ CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
5 Press the DIN-rail mounting area of the controller against the DIN-rail. The
latches will momentarily open and lock into place.
Page 18 of 167 ProSoft Technology, Inc. March 22, 2011
MVI69-MCM ♦ CompactLogix or MicroLogix Platform Configuring the MVI69-MCM Module Modbus Communication Module User Manual
2 Configuring the MVI69-MCM Module
In This Chapter
MVI69-MCM Sample Add-On Instruction Import Procedure .................. 20
Using ProSoft Configuration Builder ...................................................... 46
Downloading the Project to the Module Using a Serial COM port ......... 49
Module Configuration ............................................................................ 50
ProSoft Technology, Inc. Page 19 of 167 March 22, 2011
Configuring the MVI69-MCM Module MVI69-MCM ♦ CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
2.1 MVI69-MCM Sample Add-On Instruction Import Procedure
Note: this section only applies if you are using RSLogix 5000 version 16 or higher. If you are configuring the MVI69-MCM module with an earlier version of RSLogix 5000, please refer to Installing and Configuring the Module with a CompactLogix Processor (page 75).
The following file is required before you start this procedure. Copy the file from the ProSoft Solutions CD-ROM, or download it from www.prosoft-technology.com.
File Name Description
MVI69MCM_AddOn_Rung_v1_4.L 5x
L5X file contains the Add-On instruction, the user defined data types, data objects and ladder logic required to set up the MVI69-MCM module
2.1.1 Create a new RSLogix5000 project
1 Open the F
ILE
menu, and then choose NEW…
2 Select R
EVISION
16
Page 20 of 167 ProSoft Technology, Inc. March 22, 2011
MVI69-MCM ♦ CompactLogix or MicroLogix Platform Configuring the MVI69-MCM Module Modbus Communication Module User Manual
2.1.2 Create the Module
1 Right-click I/O C
ONFIGURATION
2 Select 1769-MODULE
and choose N
EW MODULE
3 Set the Module Properties values as follows:
Parameter Value
Name Enter a module identification string. Example: MVI69MCM Description Enter a description for the module. Example: ProSoft
communication module for Serial Modbus communications. Comm Format Select Data-INT Slot Enter the slot number in the rack where the MV69-MCM
module will be installed. Input Assembly Instance 101 Input Size 62 / 122 / 242 Output Assembly Instance 100 Output Size 61 / 121 / 241 Configuration Assembly Instance 102 Configuration Size 0
ProSoft Technology, Inc. Page 21 of 167 March 22, 2011
Configuring the MVI69-MCM Module MVI69-MCM ♦ CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
The following illustration shows an example where the module was configured for a block transfer size of 60 words (input block size = 62 words, output block size = 61 words):
The following options are available:
Block Transfer Size Input Block Size Output Block Size
60 62 61 120 122 121 240 242 241
4 On the Connection tab, set the RPI value for your project. Click OK to
confirm.
Now the MVI69-MCM module will be visible at the I/O Configuration section.
Page 22 of 167 ProSoft Technology, Inc. March 22, 2011
MVI69-MCM ♦ CompactLogix or MicroLogix Platform Configuring the MVI69-MCM Module Modbus Communication Module User Manual
2.1.3 Import the Ladder Rung
1 Open your application in RSLogix 5000. 2 To create a new routine, expand the T
T
ASK
folder.
3 On the M
AIN PROGRAM
folder, click the right mouse button to open a shortcut
menu. On the shortcut menu, choose N
4 In the N
EW ROUTINE
dialog box, enter the name and description of your routine, and then click OK. In this example we are demonstrating the importing of the ladder rung using the default MainRoutine. In the case where you create a routine by an other name for placing the Add-On instruction, then in your original routine where your other ladder logic is located you need to add a rung with a jump instruction to the new routine holding the Add-On instruction.
5 Select an empty rung in the new routine, and then click the right mouse
button to open a shortcut menu. On the shortcut menu, choose "I
R
UNG
…".
ASKS
folder, and then expand the M
EW ROUTINE
.
AIN
MPORT
ProSoft Technology, Inc. Page 23 of 167 March 22, 2011
Configuring the MVI69-MCM Module MVI69-MCM ♦ CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
6 Select the MVI69MCM_ADDON_R
UNG_V
1_4.L5X file
7 The following window will be displayed showing the controller tags to be
created during the import procedure: If desired, the description, "MVI69-MCM Interface AOI" may be typed into the description field for MVI69MCM_AddOn_Rung_v1_4.L5x file.
Page 24 of 167 ProSoft Technology, Inc. March 22, 2011
MVI69-MCM ♦ CompactLogix or MicroLogix Platform Configuring the MVI69-MCM Module Modbus Communication Module User Manual
8 If you are using the module in a different slot (or remote rack) select the
correct connection input and output variables associated to the module. If your module is located in slot 1 of the local rack this step is not required.
9 Click OK to confirm the import. RSLogix will indicate that the import is under
progress:
ProSoft Technology, Inc. Page 25 of 167 March 22, 2011
Configuring the MVI69-MCM Module MVI69-MCM ♦ CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
When the import is completed, the new rung with the Add-On instruction will be visible as shown in the following illustration.
The procedure has also imported new user defined data types, data objects and the Add-On instruction to be used at your project.
Page 26 of 167 ProSoft Technology, Inc. March 22, 2011
MVI69-MCM ♦ CompactLogix or MicroLogix Platform Configuring the MVI69-MCM Module Modbus Communication Module User Manual
10 The imported rung will contain the Add-On instruction with two CPS
instructions as follows below. The CPS instructions are set by default for a length of 62/61 words as follows:
Edit the above CPS instructions Length field values according to the following table.
"Block Transfer Size Parameter" – 60/120/240 options)
Connection Parameters: CPS instructions Length field values:
Input Size: Output Size:
62 61 62 61 122 121 122 121 242 241 242 241
Ladder Routine window:
2.1.4 Set the Read/Write Data Lengths
1 The imported rung contains the MCMDATA object Tag arrays R
W
RITEDATA
o READDATA o
W
RITEDATA
set to the factory default values of 480. These tags will contain:
- data area copied from the module to the processor
- data area copied from the processor to the module
EADDATA
and
ProSoft Technology, Inc. Page 27 of 167 March 22, 2011
Configuring the MVI69-MCM Module MVI69-MCM ♦ CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
2 If you have changed the R
values in the [B
ACKPLANE
EAD REGISTER COUNT
and W
RITE REGISTER COUNT
69] section of the module’s configuration file, you
must adjust these array sizes to match those values.
Example: If in the configuration file section [Backplane 69] the parameter setting is "Read Register Count : 1440" then set ReadData tag array size to INT[1440].
Page 28 of 167 ProSoft Technology, Inc. March 22, 2011
MVI69-MCM ♦ CompactLogix or MicroLogix Platform Configuring the MVI69-MCM Module Modbus Communication Module User Manual
Example: If in the configuration file section [Backplane 69] the parameter setting is "Write Register Count : 1880" then set WriteData tag array size to INT[1880].
You will be prompted to confirm the changes. Click Yes to continue.
2.1.5 Set the Block Transfer Parameter Size
The MCM.B Instruction. If you have configured a different block transfer size in the module’s configuration file, you must change this value to match.
LOCKTRANSFERSIZE
controller tag is set to 60 in the Add-On
Edit the tag values according to the following table.
ProSoft Technology, Inc. Page 29 of 167 March 22, 2011
Configuring the MVI69-MCM Module MVI69-MCM ♦ CompactLogix or MicroLogix Platform User Manual Modbus Communication Module
Module Properties dialog box: Controller Organizer’s Controller Tags folder:
Connection Parameters: MCM.BlockTransferSize tag value:
Input Size: Output Size: 62 61 60 122 121 120 242 241 240
2.1.6 Set the Connection Input Size Values
If you change the block transfer size, you must also change the following data types:
MCMC
Add-On instruction.
MCMC
the Add-On instruction.
Access the user data type definition MCMC
ONNECTIONINPUT
ONNECTIONOUTPUT
– Data type used for the Connection Input pin in the
– Data type used for the Connection Output pin in
ONNECTIONINPUT
as follows
Edit the tag values according to the following table.
Module Properties dialog box: Controller Organizer’s Controller Tags folder:
Connection Parameters: MCMConnectionInput.Data tag value:
Input Size:
62 62 122 122 242 242
Page 30 of 167 ProSoft Technology, Inc. March 22, 2011
Loading...
+ 137 hidden pages