We always want you to feel that you made the right decision to use our products. If you have suggestions, comments,
compliments or complaints about our products, documentation, or support, please write or call us.
ProSoft Technology ®, 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 provide d 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 nonhazardous.
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 Vdc
Operating Temperature: 0°C to 60°C (32°F to 140°F)
Storage Temperature: -40°C to 85°C (-40°F to 185°F)
Shock: 30g Operational; 50g non-operational; Vibration: 5 g from 10 Hz to 150 Hz
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
Agency Approvals and Certifications
Agency Applicable Standards
ANSI / ISA ISA 12.12.01 Class I Division 2, GPs A, B, C, D
CSA/cUL C22.2 No. 213-1987
CSA CB Certified IEC61010
ATEX EN60079-0 Category 3, Zone 2
EN60079-15
243333
MVI46-MCM ♦ SLC Platform Contents
Modbus Communication Module User Manual
Contents
Your Feedback Please ........................................................................................................................ 2
How to Contact Us .............................................................................................................................. 2
6.2.5Disclaimer of all Other Warranties ........................................................................ 103
6.2.6Limitation of Remedies ** ..................................................................................... 104
6.2.7Time Limit for Bringing Suit ................................................................................... 104
6.2.8No Other Warranties ............................................................................................. 104
Page 6 of 108 ProSoft Technology, Inc.
March 29, 2011
MVI46-MCM ♦ SLC Platform Contents
Modbus Communication Module User Manual
6.2.9Allocation of Risks ................................................................................................. 104
6.2.10Controlling Law and Severability ........................................................................... 105
Index 107
ProSoft Technology, Inc. Page 7 of 108
March 29, 2011
Contents MVI46-MCM ♦ SLC Platform
User Manual Modbus Communication Module
Page 8 of 108 ProSoft Technology, Inc.
March 29, 2011
MVI46-MCM ♦ SLC Platform Guide to the MVI46-MCM User Manual
Modbus Communication Module User Manual
Guide to the MVI46-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)
Diagnostics and
Troubleshooting
Reference (page 57)
Product
Specifications (page
57)
Functional Overview
(page 60)
Support, Service
and Warranty (page
97)
Index
This section introduces the customer to the
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 108
March 29, 2011
Guide to the MVI46-MCM User Manual MVI46-MCM ♦ SLC Platform
User Manual Modbus Communication Module
Page 10 of 108 ProSoft Technology, Inc.
March 29, 2011
MVI46-MCM ♦ SLC Platform Start Here
Modbus Communication Module User Manual
1 Start Here
In This Chapter
System Requirements ........................................................................... 12
o Microsoft
o Windows NT
o Windows 2000
o Windows XP
32 Mbytes of RAM minimum, 64 Mbytes of RAM recommended
50 Mbytes of free hard disk space (or more based on application
requirements)
16-color VGA graphics adapter, 640 x 480 minimum resolution (256 Color
800 600 recommended)
CD-ROM drive
3.5 inch floppy disk drive
HyperTerminal or other terminal emulator program capable of file transfers
using Ymodem protocol.
®
II 500 MHz minimum. Pentium III 733 MHz (or better)
®
Windows 98
®
(version 4 with SP4 or higher)
Page 12 of 108 ProSoft Technology, Inc.
March 29, 2011
MVI46-MCM ♦ SLC Platform Start Here
Modbus Communication Module User Manual
1.2 Package Contents
The following components are included with your MVI46-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 MVI46-MCM Module MVI46-MCM Modbus Communication Module
1 Cable
3 Cable
2 Adapter 1454-9F
1 ProSoft Solutions CD
If any of these components are missing, please contact ProSoft Technology
Support for replacement parts.
Cable #15, RS232
Null Modem
Cable #14, RJ45 to
DB9 Male Adapter
cable
For RS232 Connection to the CFG Port
For DB9 Connection to Module’s Port
Two Adapters, DB9 Female to Screw
Terminal. For RS422 or RS485
Connections to Port 1 and 2 of the Module
Contains sample programs, utilities and
documentation for the MVI46-MCM module.
ProSoft Technology, Inc. Page 13 of 108
March 29, 2011
Start Here MVI46-MCM ♦ SLC Platform
User Manual Modbus Communication Module
1.3 Setting Jumpers
If you use an interface other than RS-232 (default), you must change the jumper
configuration to match the interface. The following illustration shows the MVI46MCM jumper configuration:
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.
Page 14 of 108 ProSoft Technology, Inc.
March 29, 2011
MVI46-MCM ♦ SLC Platform Start Here
Modbus Communication Module User Manual
1.4 Installing the Module in the Rack
If you have not already installed and configured your SLC processor and power
supply, please do so before installing the MVI46-MCM module. Refer to your
Rockwell Automation product documentation for installation instructions.
Warning: You must 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 you plan to
connect to verify that suitable safety procedures are in place before installing or servicing the
device.
After you have checked the placement of the jumpers, insert MVI46-MCM into
the SLC™ chassis. Use the same technique recommended by Rockwell
Automation to remove and install SLC™ 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 Turn power OFF.
2 Align the module with the top and bottom guides, and slide it into the rack
until the module is firmly against the backplane connector.
3 With a firm but steady push, snap the module into place.
4 Check that the holding clips on the top and bottom of the module are securely
in the locking holes of the rack.
5 Make a note of the slot location. You will need to identify the slot in which the
module is installed in order for the sample program to work correctly. Slot
numbers are identified on the green circuit board (backplane) of the SLC
rack.
6 Turn power ON.
Note: If you insert the module improperly, the system may stop working, or may behave
unpredictably.
ProSoft Technology, Inc. Page 15 of 108
March 29, 2011
Start Here MVI46-MCM ♦ SLC Platform
User Manual Modbus Communication Module
1.5 Connecting Your PC to the Module
With the module securely mounted, connect your PC to the Configuration/Debug
port using an RJ45-DB-9 Serial Adapter Cable and a Null Modem Cable.
1 Attach both cables as shown.
2 Insert the RJ45 cable connector into the Configuration/Debug port of the
module.
3 Attach the other end to the serial port on your PC.
Page 16 of 108 ProSoft Technology, Inc.
March 29, 2011
MVI46-MCM ♦ SLC Platform Configuring the MVI46-MCM Module
Modbus Communication Module User Manual
2 Configuring the MVI46-MCM Module
In order for the MVI46-MCM module to function, a minimum amount of
configuration data must be transferred to the module. The following table
describes the configuration data that the module will require, depending on the
operating modes to be supported.
Module Register
Address
5000 to 5009 Data Transfer
5010 to 5039 and
5040 to 5069
5200 to 6199 and
6200 to 7199
Functional
Modes
Affected
Master and
Slave
Master
Name Description
General
Module
Configuration
Port
Configuration
Master
Command List
This section of the configuration data
contains the module configuration data
that defines the data transfer between the
module and the SLC processor.
These sections define the characteristics
of each of the Modbus serial
communication ports on the module.
These parameters must be set correctly
for proper module operation.
If the module’s Master Mode functionality
is to be supported on a port, the Master
Command List must be set up.
Refer to the Installing and Configuring the Module section for a description of the
configuration of the module. The MVI46-MCM module must be configured at
least once when the card is first powered, and any time thereafter when the
parameters must be changed.
2.1 Configuration Data
Configuration of the module is performed by filling in a user defined data table. In
the example ladder logic, file N10 stores the general module configuration
information. N11 stores the command list for port 1. N12 stores the command list
for port 2. Each register in the files has an associated symbol and description to
aid in filling in the data. Refer to MVI46-MCM Configuration Data for a list of
items that must be configured for the module and their associated location in the
M0 file.
ProSoft Technology, Inc. Page 17 of 108
March 29, 2011
Configuring the MVI46-MCM Module MVI46-MCM ♦ SLC Platform
User Manual Modbus Communication Module
Backplane Setup
File M0 Offset Register Content Description
N10:0 1 5000 Write Start Reg Not used in this version of the software
N10:1 2 5001 Write Reg Count Not used in this version of the software
N10:2 3 5002 Read Start Reg Not used in this version of the software
N10:3 4 5003 Read Reg Count Not used in this version of the software
N10:4 5 5004 Backplane Fail Not used in this version of the software
N10:5 6 5005 Error Status Pointer This parameter specifies the register location in the
module's database where module status data is
stored. If a value less than 0 is entered, the data will
not be stored in the database. If the value specified
is in the range of 0 to 4940, the data is placed in the
user data area.
N10:6 7 5006 Spare
N10:7 8 5007 Spare
N10:8 9 5008 Spare
N10:9 10 5009 Spare
Port 1 Setup
File M0 Offset Register Content Description
N10:10 11 5010 Enable This parameter defines if this port will be used. If
N10:11 12 5011 Type This parameter defines if the port emulates a
N10:12 13 5012 Float Flag This flag specifies if the floating-point data access
N10:13 14 5013 Float Start This parameter defines the first register of floating-
N10:14 15 5014 Float Offset This parameter defines the start register for
N10:15 16 5015 Protocol 0=RTU, 1=ASCII
the parameter is set to 0, the port is disabled. A
value of 1 enables the port.
master or slave device. Enter 0 to emulate a master
device and 1 to emulate a slave device.
functionality is to be used. If the float flag is set to
Y, Modbus functions 3,6, and 16 will interpret
floating point values for registers as specified by
the two following parameters.
point data. All requests with register values greater
than or equal to this value will be considered
floating-point data requests. This parameter is only
used if the Float Flag is enabled. For example, if a
value of 7000 is entered, all requests for registers
7000 and above will be considered floating-point
data.
floating-point data in the internal database. This
parameter is only used if the Float Flag is enabled.
For example, if the Float Offset value is set to 3000
and the float start parameter is set to 7000, data
requests for register 7000 will use the internal
Modbus register 3000.
Page 18 of 108 ProSoft Technology, Inc.
March 29, 2011
MVI46-MCM ♦ SLC Platform Configuring the MVI46-MCM Module
Modbus Communication Module User Manual
File M0 Offset Register Content Description
N10:16 17 5016 Baud Rate This is the baud rate to be used on the port. Enter
the baud rate as a value. For example, to select
19K baud, enter 19200. Exceptions: 38400 baud,
enter 384. 57600 enter 576. 115000 enter 115.
N10:17 18 5017 Parity This is the parity code to be used on the port. The
coded values are as follows:
0=None
1=Odd
2=Even
N10:18 19 5018 Data Bits This parameter sets the number of data bits for
each word used by the protocol. Enter a value in
the range of 5 to 8.
N10:19 20 5019 Stop Bits This parameter sets the number of stop bits for
each data value sent. Enter a value of 1 or 2.
N10:20 21 5020 RTS On Delay This parameter sets the number of milliseconds to
delay after RTS is asserted before the data will be
transmitted. Enter a value in the range of 0 to
65535.
N10:21 22 5021 RTS Off Delay This parameter sets the number of milliseconds to
delay after the last byte of data is sent before the
RTS modem signal will be set low. Enter a value in
the range of 0 to 65535.
N10:22 23 5022 Minimum Response
Delay
N10:23 24 5023 Use CTS Line This parameter specifies if the CTS modem control
N10:24 25 5024 Slave ID This parameter defines the virtual Modbus slave
N10:25 26 5025 Bit Input Offset This parameter specifies the offset address in the
N10:26 27 5026 Word Input Offset This parameter specifies the offset address in the
This parameter sets the number of milliseconds to
wait before a response message is sent out of the
port. This parameter is required when interfacing to
a slow responding device. Enter a value in the
range of 0 to 65535.
line is to be used. If the parameter is set to 0, the
CTS line will not be monitored. If the parameter is
set to 1, the CTS line will be monitored and must be
high before the module will send data. Normally,
this parameter is required when half-duplex
modems are used for communication (2-wire).
address for the internal database. Any requests
received by the port with this address will be
processed by the module. Verify that each device
has a unique address on the network.
internal Modbus database for network requests for
Modbus function 2 commands. For example, if the
value is set to 150, an address request of 0 will
return the value at register 150 in the database.
internal Modbus database for network requests for
Modbus function 4 commands. For example, if the
value is set to 150, an address request of 0 will
return the value at register 150 in the database.
ProSoft Technology, Inc. Page 19 of 108
March 29, 2011
Configuring the MVI46-MCM Module MVI46-MCM ♦ SLC Platform
User Manual Modbus Communication Module
File M0 Offset Register Content Description
N10:27 28 5027 Output Offset This parameter specifies the offset address in the
internal Modbus database for network requests for
Modbus function 1, 5, or 15 commands. For
example, if the value is set to 100, an address
request of 0 will return the value at register 100 in
the database.
N10:28 29 5028 Holding Register
Offset
N10:29 30 5029 Command Count This parameter specifies the number of commands
N10:30 31 5030 Minimum Command
Delay
N10:31 32 5031 Command Error
Pointer
N10:32 33 5032 Response Timeout This parameter represents the message response
N10:33 34 5033 Retry Count This parameter specifies the number of times a
N10:34 35 5034 Error Delay Count This parameter specifies the number of polls to be
N10:35 36 5035 Reserved
N10:36 37 5036 Use Guard Band
Timer
N10:37 38 5037 Guard Band Timeout A value of 0 uses the default baud rate or you can
N10:38 39 5038 Spare
N10:39 40 5039 Spare
This parameter specifies the offset address in the
internal Modbus database for network requests for
Modbus 3, 6, or 16 commands. For example, if the
value is set to 50, an address request of 0 will
return the value at register 50 in the database.
to be processed for the port. Enter a value of 0 to
100.
This parameter specifies the number of
milliseconds to wait between the initial issuance of
a command. This parameter can be used to delay
all commands sent to slaves to avoid "flooding"
commands on the network. This parameter does
not affect retries of a command as they will be
issued when failure is recognized. Enter a value in
the range of 0 to 65535.
This parameter sets the address in the internal
Modbus database where the command error data
will be placed. If the value is set to -1, the data will
not be transferred to the database. Enter a value of
0 to 4999.
timeout period in 1 ms increments. This is the time
that a port configured as a master will wait before
re-transmitting a command if no response is
received from the addressed slave. The value is set
depending on to communication network used and
the expected response time of the slowest device
on the network.
command will be retried if it fails. Enter a value in
the range of 0 to 10.
skipped on the slave before trying to re-establish
communications. After the slave fails to respond,
the master will skip commands to be sent to the
slave the number of times entered in the
parameter. Enter a value in the range of 0 to
65535.
Use packet gap timeout for messages (Yes or No).
Use only in multi-drop applications.
set a value in milliseconds (0 to 65535)
Page 20 of 108 ProSoft Technology, Inc.
March 29, 2011
MVI46-MCM ♦ SLC Platform Configuring the MVI46-MCM Module
Modbus Communication Module User Manual
Port 2 Setup
File M0 Offset Register Content Description
N10:40 41 5040 Enable This parameter defines if this port will be used. If the
parameter is set to 0, the port is disabled. A value of 1
enables the port.
N10:41 42 5041 Type This parameter defines if the port emulates a master or
slave device. Enter 0 to emulate a master device and 1
to emulate a slave device.
N10:42 43 5042 Float Flag This flag specifies if the floating-point data access
functionality is to be used. If the float flag is set to Y,
Modbus functions 3,6, and 16 will interpret floating point
values for registers as specified by the two following
parameters.
N10:43 44 5043 Float Start This parameter defines the first register of floating-point
data. All requests with register values greater than or
equal to this value will be considered floating-point data
requests. This parameter is only used if the Float Flag
is enabled. For example, if a value of 7000 is entered,
all requests for registers 7000 and above will be
considered floating-point data.
N10:44 45 5044 Float Offset This parameter defines the start register for floating-
point data in the internal database. This parameter is
only used if the Float Flag is enabled. For example, if
the Float Offset value is set to 3000 and the float start
parameter is set to 7000, data requests for register
7000 will use the internal Modbus register 3000.
N10:45 46 5045 Protocol 0=RTU, 1=ASCII
N10:46 47 5046 Baud Rate This is the baud rate to be used on the port. Enter the
baud rate as a value. For example, to select 19K baud,
enter 19200. Exceptions: 38400 baud, enter 384. 57600
enter 576. 115000 enter 115.
N10:47 48 5047 Parity This is the parity code to be used on the port. The
coded values are as follows:
0=None
1=Odd
2=Even
N10:48 49 5048 Data Bits This parameter sets the number of data bits for each
word used by the protocol. Enter a value in the range of
5 to 8.
N10:49 50 5049 Stop Bits This parameter sets the number of stop bits for each
data value sent. Enter a value of 1 or 2.
N10:50 51 5050 RTS On Delay This parameter sets the number of milliseconds to
delay after RTS is asserted before the data will be
transmitted. Enter a value in the range of 0 to 65535.
N10:51 52 5051 RTS Off Delay This parameter sets the number of milliseconds to
delay after the last byte of data is sent before the RTS
modem signal will be set low. Enter a value in the range
of 0 to 65535.
ProSoft Technology, Inc. Page 21 of 108
March 29, 2011
Configuring the MVI46-MCM Module MVI46-MCM ♦ SLC Platform
User Manual Modbus Communication Module
File M0 Offset Register Content Description
N10:52 53 5052 Minimum
Response Delay
N10:53 54 5053 Use CTS Line This parameter specifies if the CTS modem control line
N10:54 55 5054 Slave ID This parameter defines the virtual Modbus slave
N10:55 56 5055 Bit Input Offset This parameter specifies the offset address in the
N10:56 57 5056 Word Input Offset This parameter specifies the offset address in the
N10:57 58 5057 Output Offset This parameter specifies the offset address in the
N10:58 59 5058 Holding Register
Offset
N10:59 60 5059 Command Count This parameter specifies the number of commands to
N10:60 61 5060 Minimum
Command Delay
N10:61 62 5061 Command Error
Pointer
This parameter sets the number of milliseconds to wait
before a response message is sent out of the port. This
parameter is required when interfacing to a slow
responding device. Enter a value in the range of 0 to
65535.
is to be used. If the parameter is set to 0, the CTS line
will not be monitored. If the parameter is set to 1, the
CTS line will be monitored and must be high before the
module will send data. Normally, this parameter is
required when half-duplex modems are used for
communication (2-wire).
address for the internal database. Any requests
received by the port with this address will be processed
by the module. Verify that each device has a unique
address on the network.
internal Modbus database for network requests for
Modbus function 2 commands. For example, if the
value is set to 150, an address request of 0 will return
the value at register 150 in the database.
internal Modbus database for network requests for
Modbus function 4 commands. For example, if the
value is set to 150, an address request of 0 will return
the value at register 150 in the database.
internal Modbus database for network requests for
Modbus function 1, 5, or 15 commands. For example, if
the value is set to 100, an address request of 0 will
return the value at register 100 in the database.
This parameter specifies the offset address in the
internal Modbus database for network requests for
Modbus 3, 6, or 16 commands. For example, if the
value is set to 50, an address request of 0 will return
the value at register 50 in the database.
be processed for the port. Enter a value of 0 to 100.
This parameter specifies the number of milliseconds to
wait between the initial issuance of a command. This
parameter can be used to delay all commands sent to
slaves to avoid "flooding" commands on the network.
This parameter does not affect retries of a command as
they will be issued when failure is recognized. Enter a
value in the range of 0 to 65535.
This parameter sets the address in the internal Modbus
database where the command error data will be placed.
If the value is set to -1, the data will not be transferred
to the database. Enter a value of 0 to 4999.
Page 22 of 108 ProSoft Technology, Inc.
March 29, 2011
MVI46-MCM ♦ SLC Platform Configuring the MVI46-MCM Module
Modbus Communication Module User Manual
File M0 Offset Register Content Description
N10:62 63 5062 Response
Timeout
N10:63 64 5063 Retry Count This parameter specifies the number of times a
N10:64 65 5064 Error Delay Count This parameter specifies the number of polls to be
N10:65 66 5065 Reserved
N10:66 67 5066 Use Guard Band
Timer
N10:67 68 5067 Guard Band
Timeout
N10:68 69 5068 Spare
N10:69 70 5069 Spare
This parameter represents the message response
timeout period in 1 ms increments. This is the time that
a port configured as a master will wait before retransmitting a command if no response is received from
the addressed slave. The value is set depending on to
communication network used and the expected
response time of the slowest device on the network.
command will be retried if it fails. Enter a value in the
range of 0 to 10.
skipped on the slave before trying to re-establish
communications. After the slave fails to respond, the
master will skip commands to be sent to the slave the
number of times entered in the parameter. Enter a
value in the range of 0 to 65535.
Use packet gap timeout for messages (Yes or No). Use
only in multi-drop applications.
A value of 0 uses the default baud rate or you can set a
timeout value in milliseconds (0 to 65535).
Guard Band parameters
With multiple nodes in the network (multidrop), the module must be able to define
the time period used to properly recognize the received data sequence as a valid
Modbus message. This time period is defined through the guardband timer
parameter. Failure to set the Guard Band functionality may cause successive
communication errors in the Modbus network.
This functionality is only used for Modbus RTU mode, when the module is
configured as a slave device in a multidrop network (RS-422 or RS-485 wiring).
In RTU mode, when the module receives sequence of data from another node, it
will recognize the end of the message when it detects a 3.5 character gap. The
next byte received after a 3.5 character gap will be recognized as the start of a
new Modbus message.
The 3.5 character gap depends on the port communication settings, especially
the baud rate. The higher the baud rate, the lower the corresponding time period
equivalent to the 3.5 character delay.
ProSoft Technology, Inc. Page 23 of 108
March 29, 2011
Configuring the MVI46-MCM Module MVI46-MCM ♦ SLC Platform
User Manual Modbus Communication Module
To enable the Guard Band Timeout parameter:
1 First of all, enable the functionality through the Use Guard Band Timer
parameter as follows:
Use Guard Band Timer = Y
2 Then, set the Guard Band Timeout as follows:
Guard Band Timeout = 0
This configuration will set the module to use a pre-defined time interval for
Modbus message recognition calculated for each baud rate. This should
provide optimal performance for most applications.
The following guard band timer values will be automatically used by the module
with the default parameter value (Guard Band Timeout = 0) is selected:
If you still observe a considerable number of communication errors, try to
increase the Guard Band Timeout value (in milliseconds) until the network
performance is improved.
Page 24 of 108 ProSoft Technology, Inc.
March 29, 2011
MVI46-MCM ♦ SLC Platform Configuring the MVI46-MCM Module
Modbus Communication Module User Manual
Port 1 Commands
File M0 Offset Register Content Description
N11:0 to
N11:09
71 to 80 5200 to 5209 Command #1 This set of registers contains the parameters for the
first command in the master command list. Refer to
the data object section of the documentation.
N11:10 to
81 to 90 5210 to 5219 Command #2 Command #2 dataset
N11:19
1061 to 1070 6190 to 6199 Command #100 Command #100 dataset
Port 2 Commands
File M0 Offset Register Content Description
N12:0 to
1071 to 1080 6200 to 6209 Command #1 This set of registers contains the parameters for the
N12:09
N12:10 to
1081 to 1090 6210 to 6219 Command #2 Command #2 dataset
N12:19
2061 to 2070 7190 to 7199 Command #100 Command #100 dataset
first command in the master command list. Refer to
the data object section of the documentation.
Command Control
Register Content Description
7800 Command Code Enter one of the valid control command codes in this register to control the
7801 to 7999 Command Data Reserved for future use.
module (9997, 9998, or 9999). Refer to Command Control (page 69, page 25,
page 64) for more information.
ProSoft Technology, Inc. Page 25 of 108
March 29, 2011
Configuring the MVI46-MCM Module MVI46-MCM ♦ SLC Platform
User Manual Modbus Communication Module
Page 26 of 108 ProSoft Technology, Inc.
March 29, 2011
MVI46-MCM ♦ SLC Platform Ladder Logic
Modbus Communication Module User Manual
3 Ladder Logic
In This Chapter
Module Data .......................................................................................... 28
Adding the Module to an Existing Project .............................................. 31
Ladder logic is required for application of the MVI46-MCM module. Tasks that
must be handled by the ladder logic are module data transfer, special block
handling, and status data receipt. Additionally, a power-up handler may be
needed to handle the initialization of the module’s data and to clear any
processor fault conditions.
The sample ladder logic, on the ProSoft Solutions CD-ROM, is extensively
commented, to provide information on the purpose and function of each rung. For
most applications, the sample ladder will work without modification.
ProSoft Technology, Inc. Page 27 of 108
March 29, 2011
Ladder Logic MVI46-MCM ♦ SLC Platform
User Manual Modbus Communication Module
3.1 Module Data
All data related to the MVI46-MCM module is stored in user defined data areas.
The user is responsible for setting up the data areas to match the specific
application for which the module is used. Each data area is discussed in the
following topics.
3.1.1 Backplane Parameters
In this revision of the module, all data to be transferred between the SLC
processor and the module is held in the module's M1 file. This simplifies the
ladder logic. In order to read data in the module, copy the specific data area in
the M1 file into a user defined file. Repeat this operation for each data area.
Remember, the maximum data area that can be copied with the COP instruction
is 128 words. In order to write data to the module, copy the data in the user
defined file to the specific data area in the M1 file. The read and write data
operations should be limited to the M1 words 0 to 4999. The modules status data
can be read from the M1 file starting at register 7200.
Only one parameter is used in this section of the configuration.
The Error Status Pointer parameter defines the location in the module's database
where the error/status data is stored. If the value is set to -1, the data will not be
stored in the user data area. A value between 0 and 4939 will cause the module's
program to store the data at the specified location.
3.1.2 Port Parameters
These parameters define the operation of each of the Modbus ports on the
module. Refer to MVI46-MCM Configuration Data Definition for a definition of
each parameter.
Page 28 of 108 ProSoft Technology, Inc.
March 29, 2011
MVI46-MCM ♦ SLC Platform Ladder Logic
Modbus Communication Module User Manual
3.1.3 Master Commands
These records define the commands in the master command list. Each
parameter is described in the following table.
Parameter Description
Enable
IntAddress
Polllnt
Count
Swap
Node
Func
DevAddress
This parameter defines if the command is executed or disregarded. The
following values are valid: 0=Disables the command and it will not
execute. 1=The command will be considered for execution each scan of
the command list and will be controlled by the PollInt parameter. And
2=The command will only execute if the data associated with the
command has changed since the command was last issued. This option
is only available for write commands.
This parameter specifies the starting internal register address to be
associated with the command. Valid entry for this parameter is 0 to 4999
for Register Address (0 to 65535 for Bit Address).
This parameter defines the minimum number of seconds to wait between
the execution of continuous commands (Enable=1). This poll interval
command can be used to lighten the communications load on a busy
network. Valid entry for this parameter is 0 to 65535.
This parameter defines the number of registers to be considered by the
command. Valid entry for this parameter depends on the Modbus
specification for the command.
This parameter specifies if the data used in the command must be
altered when a Modbus function code 3 reads data from a node on the
network. Values that can be assigned are as follows: 0=no swapping of
data, 1=swap word values, 2=swap word and byte values and 3=swap
byte values. This option is used when interfacing the module with ASCII
and floating-point data on other devices.
This parameter assigns the Modbus slave node address for the module
to reach with the command on the Modbus network. This parameter can
be assigned values from 0 to 255. Most Modbus networks limit the upper
value to 247.
This parameter specifies the Modbus function to be performed by the
command. Valid entries are 1, 2, 3, 4, 5, 6, 15 and 16.
This parameter defines the starting address in the device being
considered by the command. Values entered in this field are dependent
on the node’s database definition. Refer to the specific manufacture’s
database definition for the device to determine the location of the data to
be interfaced.
3.1.4 Status Data
This data area views the status of the module. Use this data to monitor the state
of the module at a "real-time rate". Refer to the MVI46-MCM Status Data
Definition (page 82) for a complete listing of the data stored in this object. This
data can be read from the module’s M1 file starting at register 7200. User data
file N30 is defined in the example ladder logic for this purpose.
ProSoft Technology, Inc. Page 29 of 108
March 29, 2011
Ladder Logic MVI46-MCM ♦ SLC Platform
User Manual Modbus Communication Module
3.1.5 User Data
All user data is stored in the module’s M1 file in registers 0 to 4999. This 5000word area is directly accessible from the ladder logic. The COP instruction should
be used to move blocks of data between the user data files and the module’s M1
file. This limits the number of accesses to the M1 data area and provides faster
system response. In the example ladder logic, N31 holds data read from the
module, and N32 stores data to write to the module.
3.1.6 Slave Polling Control and Status
Two data areas can be allocated in the SLC to hold the polling status of each
slave on the master ports. This status data can be used to determine which
slaves are currently active on the port, are in communications error, or have their
polling suspended and disabled. If the configuration supplies an address where
this data resides, copy the data from the M1 file to the reserved files in the SLC.
Using special blocks, the processor can enable or disable the polling of selected
slaves.
Page 30 of 108 ProSoft Technology, Inc.
March 29, 2011
Loading...
+ 78 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.