Mvi56E-Mnetc/Mnetcxt: User Manual
Mvi56E-Mnetc/Mnetcxt: User Manual
ControlLogix™ Platform
Modbus TCP/IP Client Enhanced
Communication Module - Client/Server
USER MANUAL
Contents MVI56E-MNETC/MNETCXT ♦ ControlLogix™ Platform
User Manual Modbus TCP/IP Client Enhanced Communication Module - Client/Server
How to Contact Us
ProSoft Technology, Inc.
+1 (661) 716-5100
+1 (661) 716-5101 (Fax)
www.prosoft-technology.com
[email protected]
ProSoft Technology®, is a registered copyright of ProSoft Technology, Inc. All other brand or product names
are or may be trademarks of, and are used to identify products and services of, their respective owners.
In an effort to conserve paper, ProSoft Technology no longer includes printed manuals with our product
shipments. User Manuals, Datasheets, Sample Ladder Files, and Configuration Files are provided at our
website:
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.
Copyright © 2021 ProSoft Technology, Inc. All Rights Reserved.
Contents
Your Feedback Please ................................................................................................................ 2
How to Contact Us ....................................................................................................................... 2
Content Disclaimer ...................................................................................................................... 2
Open Source Information ............................................................................................................ 3
Open Source Software used in the product ............................................................................................. 3
Warranty regarding further use of the Open Source Software ..................................................................... 3
Important Safety Information ....................................................................................................... 4
1 Start Here 8
1.1 System Requirements ....................................................................................... 8
1.2 Setting Jumpers ................................................................................................. 9
1.3 Installing the Module in the Rack .....................................................................10
1.3.1 Before You Import the Add-On Instruction ......................................................11
1.3.2 Creating the Module ........................................................................................12
1.3.3 Importing the Add-On Instruction .....................................................................15
1.3.4 Adding Multiple Modules (Optional) .................................................................18
1.4 Downloading the Sample Program to the Processor.......................................24
2 MVI56E-MNETC/MNETCXT Configuration 25
2.1 Using ProSoft Configuration Builder Software .................................................25
2.1.1 Installing ProSoft Configuration Builder ...........................................................25
2.1.2 Upgrading from MVI56-MNETC in ProSoft Configuration Builder ...................26
2.1.3 Setting Up the Project ......................................................................................27
2.1.4 Setting Module Parameters .............................................................................28
2.1.5 Module .............................................................................................................29
2.1.6 MNET Servers .................................................................................................34
2.1.7 MNET Client x ..................................................................................................37
2.1.8 MNET Client x Commands ..............................................................................40
2.1.9 Static ARP Table .............................................................................................47
2.1.10 Ethernet Configuration .....................................................................................48
2.2 Connecting Your PC to the Module .................................................................49
2.2.1 Using CIPconnect to Connect to the Module ...................................................49
2.2.2 Using RSWho to Connect to the Module .........................................................60
2.2.3 Connecting Your PC to the Module's Ethernet Port ........................................61
2.3 Downloading the Project to the Module ...........................................................64
5 Reference 94
5.1 Product Specifications .....................................................................................94
5.1.1 General Specifications .....................................................................................94
5.1.2 Functional Specifications .................................................................................95
5.1.3 Hardware Specifications ..................................................................................96
5.2 Functional Overview ........................................................................................96
5.2.1 Backplane Data Transfer .................................................................................96
5.2.2 Normal Data Transfer Blocks ...........................................................................99
5.2.3 Special Function Blocks.................................................................................103
5.2.4 Data Flow between MVI56E-MNETC/MNETCXT Module and Processor ....122
5.3 Ethernet Cable Specifications........................................................................126
5.3.1 Ethernet Cable Configuration ........................................................................126
5.3.2 Ethernet Performance ....................................................................................127
5.4 Modbus Protocol Specification ......................................................................127
5.4.1 About the Modbus Protocol ...........................................................................127
5.4.2 Read Coil Status (Function Code 01) ............................................................128
5.4.3 Read Input Status (Function Code 02) ..........................................................130
5.4.4 Read Holding Registers (Function Code 03) .................................................131
5.4.5 Read Input Registers (Function Code 04) .....................................................132
5.4.6 Force Single Coil (Function Code 05) ...........................................................133
5.4.7 Preset Single Register (Function Code 06) ...................................................134
5.4.8 Read Exception Status (Function Code 07) ..................................................134
5.4.9 Diagnostics (Function Code 08) ....................................................................135
5.4.10 Force Multiple Coils (Function Code 15) .......................................................137
5.4.11 Preset Multiple Registers (Function Code 16) ...............................................138
5.4.12 Modbus Exception Responses ......................................................................139
5.5 Using the Optional Add-On Instruction ..........................................................141
5.5.1 Before You Begin ...........................................................................................141
5.5.2 Overview ........................................................................................................141
5.5.3 Importing the Optional Add-On Instruction ....................................................142
5.5.4 Reading the Ethernet Settings from the Module............................................147
5.5.5 Writing the Ethernet Settings to the Module ..................................................148
5.5.6 Reading the Clock Value from the Module ....................................................149
5.5.7 Writing the Clock Value to the Module ..........................................................150
Index 160
1 Start Here
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
TCP/IP and ControlLogix devices to a power source and to the MVI56E-
MNETC/MNETCXT module’s application port(s)
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.
Note: You can install the module in a local or remote rack. For remote rack installation, the module requires
EtherNet/IP or ControlNet communication with the processor.
Note: If you are installing the module in a remote rack, you may prefer to leave the Setup pins jumpered.
You can update the module’s firmware without requiring physical access to the module.
Security considerations:
Leaving the Setup pin jumpered leaves the module open to unexpected firmware updates.
You should consider segmenting the data flow for security reasons. Per IEC 62443-1-1, you should align
with IEC 62443 and implement segmentation of the control system. Relevant capabilities are firewalls,
unidirectional communication, DMZ. Oil and Gas customers should also see DNVGL-RP-G108 for guidance
on partitioning.
You should practice security by design, per IEC 62443-4-1, including layers of security and detection. The
module relies on overall network security design, as it is only one component of what should be a defined
zone or subnet.
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 the MVI56E-
MNETC/MNETCXT into the ControlLogix chassis. Use the same technique
recommended by Rockwell Automation to remove and install ControlLogix modules.
Warning: When you insert or remove the module while backplane power is on, an electrical arc can occur.
An electrical arc can cause personal injury or property damage by sending an erroneous signal to the
system’s actuators. This can cause unintended machine motion or loss of process control. Electrical arcs
may also cause an explosion when they happen in a hazardous environment. Verify that power is removed
or the area is non-hazardous before proceeding.
Repeated electrical arcing causes excessive wear to contacts on both the module and its mating connector.
Worn contacts may create electrical resistance that can affect module operation.
Note: If you insert the module improperly, the system may stop working or may behave unpredictably.
Note: When using the XT version (if applicable), you must use the 1756-A5XT or 1756-A7LXT chassis to
uphold the XT specifications. In these chassis, modules are spaced further apart than in standard
ControlLogix chassis. Blank spacers are inserted between active modules.
Note: This section only applies if your processor is using RSLogix 5000 version 16 or higher. If you have an
earlier version, please see Using the Sample Program (page 154).
Two Add-On Instructions are provided for the MVI56E-MNETC/MNETCXT module. The
first is required for setting up the module; the second is optional.
Download the files from www.prosoft-technology.com. Save them to a convenient
location in your PC, such as Desktop or My Documents.
File Name Description
MVI56EMNETC_AddOn_Rung_v1_x.L5X. L5X file containing Add-On Instruction,
A newer version may be available at: user defined data types, controller tags and
www.prosoft-technology.com ladder logic required to configure the
MVI56E-MNETC/MNETCXT module
MVI56EMNETC_Optional_AddOn_Rung_v1_x.L5X. Optional L5X file containing additional Add-
A newer version may be available at: On Instruction with logic for changing
www.prosoft-technology.com Ethernet configuration and clock settings.
Note: You can also set the date and time from the module's web page. See Connecting to the Module's
Web Page (page 92).
Important: The Optional Add-On Instruction supports only the two features listed above. You must use the
regular MVI56E-MNETC/MNETCXT Add-On Instruction for all other features including backplane transfer
and Modbus data communication.
This action opens the SELECT MODULE dialog box. Enter generic in the text box and
select the GENERIC 1756 MODULE. If you're using a controller revision of 16 or
less, expand OTHER in the SELECT MODULE dialog box, and then select the
GENERIC 1756 MODULE.
2 Click CREATE. This action opens the NEW MODULE dialog box.
Important: You must select the COMM FORMAT as DATA - INT in the dialog box, otherwise the module will
not communicate over the backplane of the ControlLogix rack.
4 Click OK to continue.
5 Edit the Module Properties. Select the REQUESTED PACKET INTERVAL value for
scanning the I/O on the module. This value represents the minimum frequency at
which the module will handle scheduled events. This value should not be set to less
than 1 millisecond. The default value is 5 milliseconds. Values between 1 and 10
milliseconds should work with most applications.
6 Click OK to save the module and close the dialog box. Notice that the module now
appears in the CONTROLLER ORGANIZATION window.
4 Navigate to the location on your PC where you saved the Add-On Instruction (for
example, My Documents or Desktop). Select the .L5X file.
This action opens the IMPORT CONFIGURATION dialog box. Click TAGS under
MAINROUTINE to show the controller tags that will be created. Note that if you are
using a controller revision number of 16 or less, the IMPORT CONFIGURATION dialog
box does not show the IMPORT CONTENT tree.
5 If you are using the module in a different slot (or remote rack), edit the connection
input and output variables that define the path to the module. Edit the text in the
FINAL NAME column (NAME column for controller revision 16 or less). For example, if
your module is located in slot 3, change Local:1:I in the above picture to Local:3:I. Do
the same for Local:1:O. If your module is located in Slot 1 of the local rack, this step
is not required.
6 Click OK to confirm the import.
When the import is completed, the new rung with the Add-On Instruction appears as
shown in the following illustration.
The procedure also imports the new User Defined Data Types, Controller Tags, and
the Add-On instruction for your project.
7 Save the application and then download the sample ladder logic to the processor.
Important: If your application requires more than one MVI56E-MNETC/MNETCXT module in the same
project, follow the steps below.
1 In the I/O CONFIGURATION folder, click the right mouse button to open a shortcut
menu, and then choose NEW MODULE.
5 Expand the TASKS folder, and then expand the MAINTASK folder.
6 In the MAINPROGRAM folder, double-click to open the MAINROUTINE ladder.
7 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…
9 This action opens the IMPORT CONFIGURATION window. Click TAGS under
MAINROUTINE to show the tags that will be imported.
10 Associate the I/O connection variables to the correct module. The default values are
Local:1:I and Local:1:O so you may have to edit the FINAL NAME field to change the
values. You can also click the drop-down arrow to select the correct name.
11 Change the default tags MNETC and AOI56MNETC to avoid conflict with existing
tags. In this step, append the string "_2", as shown in the following illustration.
12 Click OK to confirm.
The setup procedure is now complete. Save the project and download the application to
your ControlLogix processor.
Note: The key switch on the front of the ControlLogix processor must be in the REM or PROG position.
1 If you are not already online with the processor, in RSLogix 5000 open the
Communications menu, and then choose DOWNLOAD. RSLogix 5000 will establish
communication with the processor. You do not have to download through the
processor's serial port, as shown here. You may download through any available
network connection.
2 When communication is established, RSLogix 5000 will open a confirmation dialog
box. Click the DOWNLOAD button to transfer the sample program to the processor.
3 RSLogix 5000 will compile the program and transfer it to the processor. This process
may take a few minutes.
4 When the download is complete, RSLogix 5000 will open another confirmation dialog
box. If the key switch is in the REM position, click OK to switch the processor from
PROGRAM mode to RUN mode.
Note: If you receive an error message during these steps, refer to your RSLogix documentation to interpret
and correct the error.
2 MVI56E-MNETC/MNETCXT Configuration
Note: During startup and initialization, the MVI56E-MNETC/MNETCXT module receives its protocol and
backplane configuration information from the installed Personality Module (Compact Flash). Use ProSoft
Configuration Builder to configure module settings and to download changes to the Personality Module.
Important: For this procedure, ProSoft Configuration Builder version 2.2.2 or later must be installed on your
PC. You can download the latest version from www.prosoft-technology.com.
1 In ProSoft Configuration Builder's tree view, click the MODULE icon and right-click to
open a shortcut menu.
1 In PCB, right-click DEFAULT MODULE in the tree view and then choose CHOOSE
MODULE TYPE. This opens the Choose Module Type dialog box.
2 In the Product Line Filter area of the dialog box, select MVI56E. In the Select Module
Type dropdown list, select MVI56E-MNETC/MNETCXT, and then click OK to save
your settings and return to the ProSoft Configuration Builder window.
At this time, you may wish to rename the Default Project and Default Location folders in
the tree view.
Renaming an Object
1 Right-click the object and then choose RENAME.
2 Type the name to assign to the object.
3 Click away from the object to save the new name.
2.1.5 Module
This section of the configuration describes the database setup and module-level
parameters.
Tip: If you have not installed ProSoft Configuration Builder, see Installing ProSoft Configuration Builder
(page 25).
Important: Because the module pages data in blocks of 200 registers at a time, you must configure your
user data in multiples of 200 registers.
Caution: When you change the array size, RSLogix may reset the MNETC tag values to zero. To avoid
data loss, be sure to save your settings before continuing.
1 In the CONTROLLER ORGANIZATION window, expand the DATA TYPES and USER-
DEFINED folders, and then double-click MNETCDATA. This action opens an edit
window for the MNETCDATA data type.
2 In the edit window, change the value of the READDATA array from INT[600] to
INT[1000] as shown, and then click APPLY.
Note: If RSLogix resets your data values, refer to the backup copy of your program to re-enter your
configuration parameters.
3 Next, navigate to CONTROLLER TAGS and double click to open an edit window. Click
the MONITOR TAGS tab at the bottom of the edit window.
You execute the rest of the steps in ProSoft Configuration Builder.
4 Start ProSoft Configuration Builder.
5 Double-click the MVI56E-MNETC icon to expand the menu for the module in PCB.
6 Click the [+] icon next to the MODULE icon to expand the Module menu.
7 Double-click the MODULE icon to open up the Edit - Module dialog box.
8 Click READ REGISTER COUNT and change the value from 600 to 1000.
9 Click OK to close the dialog box.
10 Save and Downloading the Project to the Module (page 64) and reboot.
To modify the WRITEDATA array, follow the above steps, but substitute:
WRITEDATA for ReadData in RSLogix.
WRITE REGISTER COUNT for Read Register Count in PCB.
Note: make sure that the READDATA and WRITEDATA arrays do not overlap in the module memory. For
example, if your application requires 2000 words of WriteData starting at register 0, then your WRITE
REGISTER START in PCB must be set to a value of 2000 or greater.
Note: To take advantage of the new features described above, your MVI56E-MNETC/MNETCXT module
needs to have firmware version 3.01 or higher, and your MVI56E-MNETC/MNETCXT Add-On Instruction
needs to be version 1.8 or higher. Earlier versions have no server capabilities and support only up to 5000
user database registers.
Note: Total Read Register Count and Write Register Count cannot exceed 10,000 total registers. Read
Data and Write Data Areas must be configured to occupy separate address ranges in module memory and
should not be allowed to overlap.
Note: Total user database memory space is limited to the first 10,000 registers of module memory,
addresses 0 through 9999. Therefore, the practical limit for this parameter is 9999 minus the value entered
for Write Register Count, so that the Write Data Area does not try to extend above address 9999. Read
Data and Write Data Areas must be configured to occupy separate address ranges in module memory and
should not be allowed to overlap.
Note: Total Read Register Count and Write Register Count cannot exceed 10,000 total registers. Read
Data and Write Data Areas must be configured to occupy separate address ranges in module memory and
should not be allowed to overlap.
Pass-Through Mode
0, 1, 2 or 3
This parameter specifies the pass-through mode for write messages received by the
MNET and MBAP server ports.
If the parameter is set to 0, all write messages will be placed in the module’s virtual
database.
If a value of 1 is entered, write messages received will be sent to the processor as
unformatted messages.
If a value of 2 is entered, write messages received will be sent to the processor with
the bytes swapped in a formatted message.
If a value of 3 is entered, write messages received will be sent to the processor as
formatted messages.
Note: To take advantage of the new features described above, your MVI56E-MNETC/MNETCXT module
needs to have firmware version 3.01 or higher, and your MVI56E-MNETC/MNETCXT Add-On Instruction
needs to be version 1.8 or higher. Earlier versions have no server capabilities and support only up to 5000
user database registers.
Duplex/Speed Code
0, 1, 2, 3 or 4
This parameter allows you to cause the module to use a specific duplex and speed
setting.
Value = 1: Half duplex, 10 MB speed
Value = 2: Full duplex, 10 MB speed
Value = 3: Half duplex, 100 MB speed
Value = 4: Full duplex, 100 MB speed
Value = 0: Auto-negotiate
Auto-negotiate is the default value for backward compatibility. This feature is not
implemented in older software revisions.
Note: To take advantage of the new features described above, your MVI56E-MNETC/MNETCXT module
needs to have firmware version 3.01 or higher, and your MVI56E-MNETC/MNETCXT Add-On Instruction
needs to be version 1.8 or higher. Earlier versions have no server capabilities and support only up to 5000
user database registers.
Enron-Daniels
YES or NO
This flag specifies how the Slave driver will respond 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.
If the remote master expects to receive or will send 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 will return 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 will send 20 16-bit
registers for 10 total 32-bit floating-point values.
If, however, the remote master sends a count of two (2) for each 32-bit floating-point
value it expects to receive or send, or, if you do not plan to use floating-point data in your
application, then set this parameter to NO, which is the default setting.
You will also need to set the Enron-Daniels Float Start and Enron-Daniels Float Offset
parameters to appropriate values whenever the Enron-Daniels parameter is set to YES.
Float Start
0 TO 65535
Whenever the Enron-Daniels parameter is set to YES, this parameter determines the
lowest Modbus Address, received in commands from a remote master, to consider as
requests to read or write floating-point data. All commands with address values greater
than or equal to this value will be considered floating-point data requests. All commands
with address values less than this value will be considered normal 16-bit register data
requests.
This parameter is used only if the Enron-Daniels parameter is set to YES. For example, if
a value of 7000 is entered, all commands received with addresses of 47001 (or 407001)
and above will be considered as requests for floating-point data and 32-bits of data will
be returned for each count of one in the command.
You will also need to set the Enron-Daniels Float Offset parameter to an appropriate
value whenever the Enron-Daniels parameter is set to YES.
Output Offset
0 to 9999
This parameter defines the start register for the Modbus command data in the internal
database. This parameter is enabled when a value greater than 0 is set. For example, if
the Output Offset value is set to 3000, data requests for Modbus Coil Register address
00001 will use the internal database register 3000, bit 0. If the Output Offset value is set
to 3000, data requests for Modbus Coil register address 00016 will use the internal
database register 3000, bit 15. Function codes affected are 1, 5, and 15.
Connection Timeout
0 to 1200 seconds
Thhe number of seconds the server will wait to receive new data. If the server does not
receive any new data during this time, it will close the connection.
Error/Status Pointer
-1 to 9980 seconds
This is the database offset for MBAP and MNET server status data.
Response Timeout
0 to 65535 milliseconds
This is the time in milliseconds that a Client will wait before re-transmitting a command if
no response is received from the addressed server. The value to use depends on the
type of communication network used, and the expected response time of the slowest
device on the network.
Retry Count
0 to 10
This parameter specifies the number of times a command will be retried if it fails.
Float Flag
YES or NO
This flag specifies how the Client driver will issue Function Code 3, 6, and 16 commands
(read and write Holding Registers) to a remote server when it is moving 32-bit floating-
point data.
If the remote server expects to receive or will send one complete 32-bit floating-point
value for each count of one (1), then set this parameter to YES. When set to YES, the
Client driver will send values from two consecutive 16-bit internal memory registers (32
total bits) for each count in a write command, or receive 32 bits per count from the server
for read commands. Example: Count = 10, Client driver will send 20 16-bit registers for
10 total 32-bit floating-point values.
If, however, the remote server expects to use a count of two (2) for each 32-bit floating-
point value it sends or receives, 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 will also need to set the Enron-Daniels Float Start and Enron-Daniels Float Offset
parameters to appropriate values whenever the Enron-Daniels parameter is set to YES.
ARP Timeout
1 to 60
This parameter specifies the number of seconds to wait for an ARP reply after a request
is issued.
Note: If you are using only Event Commands or issuing commands from the Command List using
Command Control from ladder logic, it is likely that the module will not leave any inactive TCP/IP socket
connections open for more than 60-seconds. To maintain an open socket connection, your configuration or
application must be designed so that at least one command is issued to each server connection at less than
60-second intervals. The 60-second connection timeout is not user-configurable and was put in place to
prevent long delays between commands.
Each command list record has the same general format. The first part of the record
contains the information relating to the communication module and the second part
contains information required to interface to the Modbus TCP/IP server device.
1 2 3 4 5 6 7 8 9 10
Enable Internal Poll Interval Count Swap IP Address Serv Slave Function Code Device Modbus
Code Address Time Code Port Node Address
Code Register 1/10th Seconds Bit 0 IP Address Port # Address Read Coil (0x) Register
(bit) Count
Code Register 1/10th Seconds Bit 0 IP Address Port # Address Read Input (1x) Register
(bit) Count
Code Register 1/10th Seconds Word Code IP Address Port # Address Read Holding Register
Count Registers (4x)
Code Register 1/10th Seconds Word 0 IP Address Port # Address Read Input Registers Register
Count (3x)
Code 1 bit 1/10th Seconds Bit 0 IP Address Port # Address Force (Write) Single Register
Count Coil (0x)
Code 1 bit 1/10th Seconds Word 0 IP Address Port # Address Preset (Write) Single Register
Count Register (4x)
Code Register 1/10th Seconds Bit 0 IP Address Port # Address Force (Write) Register
(bit) Count Multiple Coil (0x)
Code Register 1/10th Seconds Word 0 IP Address Port # Address Preset (Write) Register
Count Multiple Register (4x)
Enable
NO (0) or YES (1)
This field defines whether or not the command is to be executed.
Value Description
NO (0) The command is disabled and will not be executed in the normal polling
sequence.
YES (1) The command is executed each scan of the command list if the Poll Interval
Time is set to zero (0). If the Poll Interval time is set, the command will be
executed when the interval timer expires.
CONDITIONAL (2) For function codes 5, 15, 6, or 16; data will be sent to the target device only
when the data to be written has been changed. This applies only to write
commands.
Important: The commands must also be enabled in the ladder logic in order for them to be executed. The
MNETC.CONTROL.CmdControl.WriteCmdBits[x] controller tag array holds 16-command bit arrays for each
Client. If a bit for a specific command is set to zero (0) in the WriteCmdBits[x] controller tag, the command
will not be executed, regardless of its enabled or disabled state in the configuration. For more information,
see Command Control Blocks (page 113).
Internal Address
0 to 65535 (for bit-level addressing)
or
0 to 9999 (for word-level addressing)
This field specifies the database address in the module's internal database to use as the
destination for data brought in by a read command or as the source for data to be sent
out by a write command. The database address is interpreted as a bit address or a 16-
bit word (register) address, depending on the Modbus Function Code used in the
command.
For Modbus functions 1, 2, 5, and 15, this parameter is interpreted as a bit-level
address.
For Modbus functions 3, 4, 6, and 16, this parameter is interpreted as a word-level or
register-level address.
Poll Interval
0 to 65535
This parameter specifies the minimum interval between issuances of a command during
continuous command execution (Enable code of 1). The parameter is entered in tenths
of a second. Therefore, if a value of 100 is entered for a command, the command
executes no more frequently than every 10 seconds.
Reg Count
Regs: 1 to 125
Coils: 1 to 800
This parameter specifies the number of 16-bit registers or binary bits to be transferred by
the command.
Functions 5 and 6 ignore this field as they apply only to a single data point.
For functions 1, 2, and 15, this parameter sets the number of bits (inputs or coils) to
be transferred by the command.
For functions 3, 4, and 16, this parameter sets the number of registers to be
transferred by the command.
Swap Code
NONE
SWAP WORDS
SWAP WORDS & BYTES
SWAP BYTES
This parameter defines if and how the order of bytes in data received or sent is to be
rearranged. This option exists to allow for the fact that different manufacturers store and
transmit multi-byte data in different combinations. This parameter is helpful when dealing
with floating-point or other multi-byte values, as there is no one standard method of
storing these data types. The parameter can be set to rearrange the byte order of data
received or sent into an order more useful or convenient for other applications. The
following table defines the valid Swap Code values and the effect they have on the byte-
order of the data.
These swap operations affect 4-byte (or 2-word) groups of data. Therefore, data
swapping using these Swap Codes should be done only when using an even number of
words, such as when 32-bit integer or floating-point data is involved.
Node IP Address
xxx.xxx.xxx.xxx
The IP address of the device being addressed by the command.
Service Port
502 or other port numbers supported on a server
Use a value of 502 when addressing Modbus TCP/IP servers that are compatible with
the Schneider Electric MBAP specifications (this will be most devices). All other service
port values will generate a Modbus command message encapsulated in a TCP/IP
packet.
Slave Address
0 - Broadcast to all nodes
1 to 255
Use this parameter to specify the slave address of a remote Modbus Serial device
through a Modbus Ethernet to Serial converter.
Note: Use the Node IP Address parameter to address commands to a remote Modbus TCP/IP device. See
Node IP Address (page 44).
Note: Most Modbus devices accept an address in the range of only 1 to 247, so check with the slave device
manufacturer to see if a particular slave can use addresses 248 to 255.
If the value is set to zero, the command will be a broadcast message on the network. The Modbus protocol
permits broadcast commands for write operations. Do not use node address 0 for read operations.
Modbus Function
1, 2, 3, 4, 5, 6, 7, 15, or 16
This parameter specifies the Modbus Function Code to be executed by the command.
These function codes are defined in the Modbus protocol. The following table lists the
purpose of each function supported by the module. More information on the protocol is
available from www.modbus.org.
MB Address in Device
This parameter specifies the starting Modbus register or bit address in the server to be
used by the command. Refer to the documentation of each Modbus server device for the
register and bit address assignments valid for that device.
The Modbus Function Code determines whether the address will be a register-level or
bit-level OFFSET address into a given data type range. The offset will be the target data
address in the server minus the base address for that data type. Base addresses for the
different data types are:
00001 or 000001 (0x0001) for bit-level Coil data (Function Codes 1, 5, and 15).
10001 or 100001 (1x0001) for bit-level Input Status data (Function Code 2)
30001 or 300001 (3x0001) for Input Register data (Function Code 4)
40001 or 400001 (4x0001) for Holding Register data (Function Codes 3, 6, and 16).
Address calculation examples:
For bit-level Coil commands (FC 1, 5, or 15) to read or write a Coil 0X address
00001, specify a value of 0 (00001 - 00001 = 0).
For Coil address 00115, specify 114
(00115 - 00001 = 114)
For register read or write commands (FC 3, 6, or 16) 4X range, for 40001, specify a
value of 0
(40001 - 40001 = 0).
For 01101, 11101, 31101 or 41101, specify a value of 1100.
(01101 - 00001 = 1100)
(11101 -10001 = 1100)
(31101 - 30001 = 1100)
(41101 - 40001 = 1100)
Note: If the documentation for a particular Modbus server device lists data addresses in hexadecimal
(base16) notation, you will need to convert the hexadecimal value to a decimal value to enter in this
parameter. In such cases, it is not usually necessary to subtract 1 from the converted decimal number, as
this addressing scheme typically uses the exact offset address expressed as a hexadecimal number.
Comment
0 to 32 alphanumeric characters
Important: If the device in the field is changed, this table must be updated to contain the new MAC address
for the device and downloaded to the module. If the MAC is not changed, no communications with the
module will be provided.
IP Address
Dotted notation
This table contains a list of static IP addresses that the module will use when an ARP is
required. The module will accept up to 40 static IP/MAC address data sets.
Important: If the device in the field is changed, this table must be updated to contain the new MAC address
for the device and downloaded to the module. If the MAC is not changed, no communications with the
module will occur.
Important: If the device in the field is changed, this table must be updated to contain the new MAC address
for the device and downloaded to the module. If the MAC is not changed, no communications with the
module will occur.
Note: The gateway address is optional, and is not required for networks that do not use a default gateway.
2 Double-click the ETHERNET CONFIGURATION icon. This action opens the Edit dialog
box.
3 Edit the values for my_ip, netmask (subnet mask) and gateway (default gateway).
4 When you are finished editing, click OK to save your changes and return to the
ProSoft Configuration Builder window.
3 In the Select Connection Type dropdown list, choose 1756-ENBT. The default path
appears in the text box, as shown in the following illustration.
4 Click CIP PATH EDIT to open the CIPconnect Path Editor dialog box.
The CIPconnect Path Editor allows you to define the path between the PC and the
MVI56E-MNETC/MNETCXT module. The first connection from the PC is always a 1756-
ENBT (Ethernet/IP) module.
Parameter Description
Source Module Source module type. This field is automatically selected
depending on the destination module of the last rack
(1756-CNB or 1756-ENBT).
Source Module IP Address IP address of the source module (only applicable for
1756-ENBT)
Source Module Node Address Node address of the source module (only applicable for
1756-CNB)
Destination Module Select the destination module associated to the source module
in the rack. The connection between the source and destination
modules is performed through the backplane.
Destination Module Slot Number The slot number where the destination MVI56E-
MNETC/MNETCXT module is located.
0 1 2 3
Ethernet
Rack 1
Slot Module Network Address
0 ControlLogix Processor -
1 Any -
2 MVI56E-MNETC/MNETCXT -
3 1756-ENBT IP=192.168.0.100
3 In the Select Connection Type dropdown list, choose 1756-ENBT. The default path
appears in the text box, as shown in the following illustration.
4 Configure the path as shown in the following illustration, and click CONSTRUCT CIP
PATH to build the path in text format.
5 Click OK to close the CIPconnect Path Editor and return to the Connection Setup
dialog box.
6 Check the new path in the Connection Setup dialog box.
7 Click TEST CONNECTION to verify that the physical path is available. The following
message should be displayed upon success.
8 Click OK to close the Test Connection pop-up and then click CONNECT to close the
Connection Set up dialog box. The Diagnostics menu is now connected through
CIPconnect.
1756-CNB 1756-ENBT
Rack 1
0 1 2 3
Ethernet
ControlNet
0 1 2 3 4 5 6
Rack 1
Slot Module Network Address
0 ControlLogix Processor -
1 1756-CNB Node = 1
2 1756-ENBT IP=192.168.0.100
3 Any -
Rack 2
Slot Module Network Address
0 Any -
1 Any -
2 Any -
3 Any -
4 Any -
5 1756-CNB Node = 2
6 MVI56E-MNETC/MNETCXT -
3 In the Select Connection Type dropdown list, choose 1756-ENBT. The default path
appears in the text box, as shown in the following illustration.
4 Configure the path as shown in the following illustration, and click CONSTRUCT CIP
PATH to build the path in text format.
5 Click OK to close the CIPconnect Path Editor and return to the Connection Setup
dialog box.
7 Click TEST CONNECTION to verify that the physical path is available. The following
message should be displayed upon success.
8 Click OK to close the Test Connection pop-up and then click CONNECT to close the
Connection Set up dialog box. The Diagnostics menu is now connected through
CIPconnect.
You need to have RSLinx installed on your PC to use this feature. You also need an ENBT module set up in
the rack. For information on setting up the ENBT module, see Using CIPconnect to Connect to the Module
(page 49).
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.
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.
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 Configuration (page 48).
6 Close the ProSoft Discovery Service window. Enter the temporary IP 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 will
display in the Diagnostics window.
Note: For alternative methods of connecting to the module with your PC, see Connecting Your PC to the
Module (page 48).
In order for the module to use the settings you configured, you must download the
updated Project file from your PC to the module.
1 In the tree view in ProSoft Configuration Builder, right-click the MVI56E-
MNETC/MNETCXT icon and then choose DOWNLOAD FROM PC TO DEVICE. This
opens the Download dialog box.
2 In the Download dialog box, choose the connection type in the Select Connection
Type dropdown box:
o Choose ETHERNET if you are connecting to the module through the Ethernet
cable.
o Choose 1756 ENBT if you are connecting to the module through CIPconnect or
RSWho.
See Connecting Your PC to the Module (page 48) for more information.
Note: If you connected to the module using an Ethernet cable and set a temporary
IP address, the Ethernet address field contains that temporary IP address. ProSoft
Configuration Builder uses this temporary IP address to connect to the module.
3 Click TEST CONNECTION to verify that the IP address allows access to the module.
4 If the connection succeeds, click DOWNLOAD to transfer the Ethernet configuration to
the module.
If the Test Connection procedure fails, you will see an error message. To correct the
error, follow these steps.
1 Click OK to dismiss the error message.
2 In the Download dialog box, click BROWSE DEVICE(S) to open ProSoft Discovery
Service.
The four lower-level controller tag structures contain other controller tags and controller
tag structures. Click the [+] sign next to any controller tag structure to expand it and view
the next level in the structure.
For example, if you expand the MNETC.DATA controller tag structure, you will see that it
contains two controller tag arrays, MNETC.DATA.ReadData and
MNETC.DATA.WriteData, which are 600-element integer arrays by default.
Each controller tag in the Add-On Instruction is 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).
Click the [+] signs to expand the UDT structures and view lower-level UDTs.
For example, if you expand MNETC.DATA, you will see that it contains two UDTs,
ReadData and WriteData. Both of these are 600-element integer arrays by default.
Notice that these UDTs are the data types used to declare the MNETC.DATA.ReadData
and MNETC.DATA.WriteData controller tag arrays.
Each UDT is commented in the Description column.
3.3.1 MNETC.DATA
The controller tags in MNETC.DATA hold data to be transferred between the processor
and the MVI56E-MNETC/MNETCXT module. This read and write data is transferred
between the processor and module as "pages," or blocks, of data up to 200 words long.
The data types for the MNETC.DATA.ReadData and MNETC.DATA.WriteData controller
tag arrays are integer arrays containing variable numbers of elements.
MNETC.DATA.ReadData
The ReadData controller tag array should accommodate the value entered in the Read
Register Count (page 32) parameter of the MVI56E-MNETC/MNETCXT configuration file
in Prosoft Configuration Builder. The default length of this array is 600. If more than 600
registers are needed, please see Adjust the Input and Output Array Sizes.
For ease of use, this array should be dimensioned as a multiple of 200 words. This data
is paged up to 200 words at a time from the module to the processor. The ladder logic
places the data received into the proper position in the ReadData array. This data is
used for status and control in the processor ladder logic.
The ReadData array is related to the contents of the Read Data area of the module's
internal database. To view the actual registers in the module's internal database, access
the database display from ProSoft Configuration Builder's Diagnostics menu. For more
information, see the section on PCB The Diagnostics Menu (page 82).
MNETC.DATA.WriteData
The WriteData controller tag array should accommodate the value entered in the Read
Register Count (page 32) parameter of the MVI56E-MNETC/MNETCXT configuration file
in Prosoft Configuration Builder. The default length of this array is 600. If more than 600
registers are needed, please see Adjust the Input and Output Array Sizes.
For ease of use, this array should be dimensioned as a multiple of 200 words. This data
is paged up to 200 words at a time from the processor to the module. The ladder logic
places the write data into the output image for transfer to the module. This data is
passed from the processor to the module for status and control information for use in
other nodes on the network.
The WriteData array is related to the contents of the Write Data area of the module's
internal database. To view the actual registers in the module's internal database, access
the database display from ProSoft Configuration Builder's Diagnostics menu. For more
information, see the section on PCB The Diagnostics Menu (page 82).
3.3.2 MNETC.CONTROL
This controller tag structure is used to request special tasks from the module. For more
information, see Special Function Blocks (page 103).
3.3.3 MNETC.STATUS
This controller tag structure contains module and Client status data. For a more
complete description of the MNETC.STATUS controller tag structure, refer to the Status
Data Definition (page 87).
3.3.4 MNETC.UTIL
This controller tag structure stores the variables required for the data transfer between
the processor and the MVI56E-MNETC/MNETCXT module.
The LastRead tag stores the latest Read Block ID received from the module. The
LastWrite tag stores the latest Write Block ID to be sent to the module. The BlockIndex
tag is an intermediate variable used during the block calculation.
Initialization Messages
Code Message
Boot / DDOK Module is initializing
Ladd Module is waiting for required module configuration data from
ladder logic to configure the application port(s)
Waiting for Processor Connection Module did not connect to processor during initialization
Sample ladder logic or AOI is not loaded on processor
Module is located in a different slot than the one
configured in the ladder logic/AOI
Processor is not in RUN or REM RUN mode
Last config: <date> Indicates the last date when the module changed its IP
address. You can update the module date and time through
the module’s web page, or with the Optional MVI56E Add-On
Instruction.
After power up and every reconfiguration, the module will
display the configuration of the application port(s). The
information consists of:
Client
C0 C2 C3 C4 ….. C29
Operation Messages
After the initialization step, the following message pattern will be repeated.
<Backplane Status> <IP Address> <Backplane Status> <Port Status>
Code Message
<Backplane Status> OK: Module is communicating with processor
ERR: Module is unable to communicate with processor. For
this scenario, the <Port Status> message above is replaced
with "Processor faulted or is in program mode".
<IP Address> Module IP address
<C0> OK: Port is communicating without error
Communication Errors: port is having communication errors.
Refer to Diagnostics and Troubleshooting (page 75) for
further information about the error.
Processor Errors
Problem Description Steps to take
Processor Fault Verify the module is securely plugged into the slot that has been
configured for the module 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 This indicates a problem with backplane communications. A problem could
flashes exist between the processor and any installed I/O module, not just the
MVI56E-MNETC/MNETCXT. Verify all modules in the rack are configured
correctly.
Module Errors
Problem Description Steps to take
Module Scrolling LED This indicates that backplane transfer operations are failing. Connect to
display: <Backplane the module’s Configuration/Debug port to check this.
Status> condition To establish backplane communications, verify the following items:
reads ERR 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.
Tip: You can have a ProSoft Configuration Builder Diagnostics window open for more than one module at a
time.
3 In the Diagnostics window, click the SET UP CONNECTION button to browse for the
module’s IP address.
4 In the Connection Setup dialog box, click the TEST CONNECTION button to verify that
the module is accessible with the current settings.
You can also use CIPconnect® to connect to the module through a 1756-ENBT card.
Refer to Using CIPconnect to Connect to the Module (page 49) for information on
how to construct a CIP path.
2 Close ProSoft Discovery Service, and click the CONNECT button again.
3 If these troubleshooting steps fail, verify that the Ethernet cable is connected
properly between your computer and the module, either through a hub or switch
(using the grey cable) or directly between your computer and the module (using the
red cable).
If you are still not able to establish a connection, contact ProSoft Technology for
assistance.
Version
Use the Version menu to view module hardware and firmware information.
Config
Use the Configuration menu to view backplane configuration settings for the MVI56E-
MNETC/MNETCXT module.
The information on this menu corresponds with the configuration information in the
Module settings in ProSoft Configuration Builder.
NIC Status
Use the NIC Status (Network Interface Card) menu to view configuration and status
information for the MVI56E-MNETC/MNETCXT module's Ethernet application port.
The information on this menu is useful for troubleshooting Ethernet network connectivity
problems.
Static ARP
Use the Static ARP menu to view the list of IP and MAC addresses that are configured
not to receive ARP (Address Resolution Protocol) messages from the module.
The Static ARP Table (page 47) defines a list of static IP addresses that the module will
use when an ARP is required.
Backplane Status
Use the Status menu to view current backplane status, including
Number of retries
Backplane status
Fail count
Number of words read
Number of words written
Number of words parsed
Error count
Event count
Command count
During normal operation, the read, write, and parsing values should increment
continuously, while the error value should not increment.
The status values on this menu correspond with members of the Status Data Definition.
See Status Data in Read Block (page 100).
ASCII
Decimal
Float
Hexadecimal
Use the scroll bar on the right edge of the window to view each page (100 words) of
data.
Note: To take advantage of the new features described above, your MVI56E-
MNETC/MNETCXT module needs to have firmware version 3.01 or higher, and your
MVI56E-MNETC/MNETCXT Add-On Instruction needs to be version 1.8 or higher.
Earlier versions have no server capabilities and support only up to 5000 user database
registers.
Config
Use the Configuration menu to view configuration settings for MNET servers connected
to the MNET Client.
The information on this menu corresponds with the configuration information in the
MNET Servers settings in ProSoft Configuration Builder MNET Servers (page 34) dialog
box. See MNET Servers (page 34).
Status
Use the Status menu to view the status of each MNET server connected to the MNET
Client 0. During normal operation, the number of requests and responses should
increment, while the number of errors should not change.
Config
Use the Configuration menu to view configuration settings for MNET Client x.
The information on this menu corresponds with the configuration information in the
MNET Client x settings in ProSoft Configuration Builder.
Status
Use the Status menu to view status for MNET Client x. During normal operation, the
number of requests and responses should increment, while the number of errors should
not change.
Command List
Use the Command List menu to view the command list settings for MNET Client x. The
information on this menu corresponds with the MNET Client x Commands settings in
ProSoft Configuration Builder.
Use the scroll bar on the right edge of the window to view each MNET Client command.
Command Status
Use the Command Status menu to view MNET Client x Command status.
A zero indicates no error.
A non-zero value indicates an error. For an explanation of each value, see Client
Command Errors (page 91).
Note: In order to access up-to-date status data from these remaining controller tags, you must ensure that a
Client Status block or Server Status block was recently received from the module. Client Status blocks and
Server Status blocks are not routinely sent from the module; they are returned on a once-per-request basis
as a response to a Client Status block request or Server Status block request from the processor
Note: To take advantage of the new features described above, your MVI56E-MNETC/MNETCXT module
needs to have firmware version 3.01 or higher, and your MVI56E-MNETC/MNETCXT Add-On Instruction
needs to be version 1.8 or higher. Earlier versions have no server capabilities and support only up to 5000
user database registers.
Combinations of errors will result in more than one bit being set in the error word.
Correct any invalid data in the configuration for proper module operation. A value of zero
(0) in this word indicates all bits are clear, which means that all module configuration
parameters contain valid values. However, this does not mean that the configuration is
valid for the user application. Make sure each parameter is set correctly for the intended
application.
For every command that has an error, the module automatically sets the Poll Delay
parameter to the configured value in the Command Error Delay (in seconds). This
instructs the module to wait for X seconds until it attempts to issue the command again.
If set to 0, the module does not use the Command Error Delay and polls based on the
configured Poll Delay in the Client Command list.
As the commands in the Client Command List are polled and executed, an error value is
maintained in the module for each command. This error list can be transferred to the
processor.
Note: When the Client gets error -47 or -48, it uses the adjustable ARP Timeout parameter in the
configuration file to set an amount of time to wait before trying again to connect to this non-existent server.
This feature allows the Client to continue sending commands and polling other existing servers, while
waiting for the non-existent server to appear on the network.
5 Reference
Specification Description
Dimensions Standard 1756 ControlLogix® single-slot module
Backplane current load 800 mA @ 5 VDC
3 mA @ 24 VDC
Operating temperature 0°C to 60°C (32°F to 140°F)
-25°C to 70°C (-13°F to 140°F) - MVI56E-MNETCXT
Storage temperature -40°C to 85°C (-40°F to 185°F)
Extreme/Harsh Environment MVI56E-MNETXT comes with conformal coating
Shock 30 g operational
50 g non-operational
Vibration 5 g from 10 to 150 Hz
Relative humidity 5% to 95% (with no condensation)
LED indicators Battery Status (ERR)
Application Status (APP)
Module Status (OK)
4-character, scrolling, Shows module, version, IP, application port setting, port
alphanumeric LED display status, and error information
Ethernet port 10/100 Base-T, RJ45 Connector, for CAT5 cable
Link and Activity LED indicators
Auto-crossover cable detection
The following illustration shows the data transfer method used to move data between the
ControlLogix processor, the MVI56E-MNETC/MNETCXT module and the Modbus
TCP/IP Network.
All data transferred between the module and the processor over the backplane is
through the input and output images. Ladder logic must be written in the ControlLogix
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 a virtual Modbus data table with addresses from 0 (40001 Modbus) to 9999
(50000 Modbus).
Register Data
9999
Data contained in this database is transferred in blocks, or pages, using the input and
output images. ControlLogix ladder logic and the MVI56E-MNETC/MNETCXT module's
program work together to coordinate these block transfers. Up to 200 words of data can
be transferred from the module to the processor (read block - input image) or from the
processor to the module (write block - output image) in each block transfer. The block
structure of each block type depends on the data content and function of the block. The
module uses the following block identification numbers:
These block identification codes can be broken down into two groups:
Normal data transfer blocks
Read and Write blocks (-1 to 50)
Special function blocks
Initialize Output Data blocks (1000 to 1049)
Event Command blocks (2000 to 2029)
Client Status blocks (3000 to 3029)
Server Status block (3100)
Event Sequence Command blocks (4000 to 4029)
Event Sequence Command Status blocks (4100 to 4129 and 4200)
Command Control blocks (5001 to 5016)
Pass-through Request blocks (9956 to 9961, 9970, and 9996)
Module IP Address blocks (9990 and 9991)
Reset Module Status block (9997)
Warm-boot and Cold-boot blocks (9998 and 9999)
Read Block
These blocks of data transfer information from the module to the ControlLogix processor.
The following table describes the structure of the input image.
The Read Block ID is an index value used to determine where the 200 words of data
from module memory will be placed in the ReadData[x] controller tag array of the
ControlLogix processor. Each transfer can move up to 200 words (block offsets 2 to 201)
of data. In addition to moving user data, the block also contains status data for the
module. The Write Block ID associated with the block requests data from the
ControlLogix processor.
During normal program operation, the module sequentially sends read blocks and
requests write blocks.
For example, if the application uses three read and two write blocks, the sequence will
be as follows:
R1W1R2W2R3W1R1W2R2W1R3W2R1W1
This sequence will continue until interrupted by other write block numbers sent by the
controller or by a command request from a node on the Modbus network or operator
control through the module’s Configuration/Debug port.
Status information transferred in the Read block can be viewed in the MNETC.STATUS
controller tag in the ladder logic. For more information, see the Status Data Definition
(page 87).
Write Block
These blocks of data transfer information from the ControlLogix processor to the module.
The following table describes the structure of the output image.
The Write Block ID is an index value used to determine the location in the module’s
database where the data will be placed. Each transfer can move up to 200 words (block
offsets 1 to 200) of data.
Note: The Select Priority Read Block feature is only available for firmware versions 1.36.000 and higher.
This register allows the processor to select which read blocks will be returned from the
module. If this register equals zero, the module will return all read blocks in sequential
order.
If this register has a non-zero value, the module will return the read block selected, and
the following one.
This feature can be used for applications that require some read blocks to be updated
more frequently than other blocks.
The following illustrations show the effect of changing the value of the Select Priority
Read Block register (Write Block offset 247). In the following histogram curve, the Select
Priority Read Block is equal to 0.
In the example above, all read blocks (1 to 10) are returned in sequential order.
Write Write
Local:X:O Modbus Modbus
Tags Tags Local:X:O
Input Input
Ladder logic subtracts 1000 from the value contained in word 249 to determine a block
index. This bock index determines which 200-word block of data will be taken from the
ReadData array and placed in the output image to be returned to the module.
Note: To use the Event Command Block for polling operations, you must configure at least one command
in the Client even if the command is disabled.
During routine operation, the module continuously cycles through the user-defined
MNET Client x Commands (page 40) for each Client, examining commands in the order
they are listed, and sending enabled commands on the network. However, the module
also has a special command priority queue, which is an internal buffer that holds
commands from special function blocks until they can be sent on the network.
When one or more commands appear in the command priority queue:
1 The routine polling process is temporarily interrupted.
2 The commands in the command priority queue are executed until the queue is
empty.
3 Then the module goes back to where it left off on the MNET Client x Command List
and continues routine polling.
Event Command blocks send Modbus TCP/IP commands directly from controller tags by
ladder logic to the Client command priority queue on the module. Event Commands are
not placed in the module's internal database and are not part of the MNET Client x
Command List.
The module will use the parameters passed in this block to construct the command.
The IP Address for the destination server to reach on the network is entered in four
registers (1 to 4). Each octet value (0 to 255) of the destination server's IP address is
placed in one of the four registers For example, to interface with node
192.168.0.100, enter the values 192, 168, 0 and 100 in registers 1 to 4.
The Service Port field selects the TCP service port on the server to connect. If the
parameter is set to 502, a standard MBAP (Modbus API for network
communications) message will be generated. All other service port values will
generate a Modbus command message encapsulated in a TCP/IP packet.
The Slave Address is the Modbus node address for the message.
The Internal DB Address parameter specifies the module’s database location to
associate with the command.
The Point Count parameter defines the number of points or registers for the
command.
The Swap Code is used with Modbus functions 3 and 4 requests to change the word
or byte order.
The Modbus Function Code has one of the following values 1, 2, 3, 4, 5, 6, 7, 15, or
16.
The Device Database Address is the Modbus register or point in the remote server
device to be associated with the command.
The module then places the command in the command priority queue (if the queue is not
already full; maximum capacity is 16 commands), and returns a response block to tell
the ladder logic whether or not the command has been successfully added to the queue.
Word 2 of the block can be used by the ladder logic to determine if the command was
successfully added to the command priority queue. The command will fail if the queue
for the Client is already full at the time when the Event Command block is received by
the module.
Controller Tags
The elements of the MNETC.CONTROL.EventCmd.Cmd[x] controller tag array contain
all the values needed to build one Modbus TCP/IP command, have it sent to a specific
Client on the module, and control the processing of the returned response block.
Each of the EventCmd.Cmd[x] represents each individual client (one event command
per client).
Status information transferred in the Client Status block can be viewed in the
MNETC.STATUS controller tag in the ladder logic. For more information, see Status
Data Definition (page 87).
Controller Tags
To issue a Client Status block request, enter the appropriate values in the following
members of the MNETC.STATUS controller tag in the ladder logic.
Controller Tag Data Type Description
ClientID INT Enter the Client (0-29) to request status data for.
ClientStatsTrigger BOOL Triggers the Client Status block request.
Status information transferred in the Server Status block can be viewed in the
MNETC.STATUS controller tag in the ladder logic. For more information, see Status
Data Definition (page 87).
Controller Tags
To issue a Server Status block request, enter the appropriate values in the following
members of the MNETC.STATUS controller tag in the ladder logic.
Controller Tag Data Type Description
ServerStatsTrigger BOOL Triggers the Server Status block request.
Event Command Blocks with Sequence Number (4000 to 4029, 4100 to 4129, 4200)
Event Command Block with Sequence Number (4000 to 4029)
Note: To use the Event Command Blocks with Sequence Number for polling operations, you must configure
at least one command in the Client even if the command is disabled.
During routine operation, the module continuously cycles through the user-defined
MNET Client x Commands (page 40) for each Client, examining commands in the order
they are listed, and sending enabled commands on the network. However, the module
also has a special command priority queue, which is an internal buffer that holds
commands from special function blocks until they can be sent on the network.
The module will use the parameters passed in this block to construct the command.
The IP Address for the destination server to reach on the network is entered in four
registers (1 to 4). Each octet value (0 TO 255) of the destination server's IP address
is placed in one of the four registers For example, to interface with node
192.168.0.100, enter the values 192, 168, 0 and 100 in registers 1 to 4.
The Service Port field selects the TCP service port on the server to connect. If the
parameter is set to 502, a standard MBAP (Modbus API for network
communications) message will be generated. All other service port values will
generate a Modbus command message encapsulated in a TCP/IP packet.
The Slave Address is the Modbus node address for the message.
The Internal DB Address parameter specifies the module’s database location to
associate with the command.
The Point Count parameter defines the number of points or registers for the
command.
The Swap Code is used with Modbus functions 3 and 4 requests to change the word
or byte order.
The Modbus Function Code has one of the following values 1, 2, 3, 4, 5, 6, 7, 15 or
16.
The Device Database Address is the Modbus register or point in the remote server
device to be associated with the command.
The Event Command Sequence Number is the identifier for the command.
The module then places the command in the command priority queue (if the queue is not
already full; maximum capacity is 16 commands), and returns a response block to tell
the ladder logic whether or not the command has been successfully added to the queue.
Controller Tags
The elements of the MNETC.CONTROL.EventSeqCmd[x] controller tag array contain all
the values needed to build one Modbus TCP/IP command, have it sent to a specific
Client on the module, and control the processing of the returned response block.
Notes:
The module stores command status data in a queue for the last 15 event sequence
commands it has sent out on the Modbus TCP/IP network. The Event Command
Sequence Number identifies the status data for an Event Sequence Command.
When you retrieve event status data for a Client using Block 4100 to 4129, the
Client's event status data queue is deleted. If more than 15 commands have been
issued since the last retrieval, the early commands are deleted and only the last 15
are saved in the queue.
Controller Tags
To retrieve status data for one client at a time, enter the appropriate values in the
following members of the MNETC.STATUS.EventSeqCmd controller tag in the ladder
logic.
Controller Tags
To retrieve status data for all 30 clients at a time, enter the appropriate values in the
MNETC.STATUS.EventSeqCmd controller tag in the ladder logic.
Controller Tag Data Type Description
Trigger BOOL Triggers the Command queue status data request.
Note: Command Control is not needed for normal Modbus command list polling operations and is needed
only occasionally for special circumstances.
During routine operation, the module continuously cycles through the user-defined
MNET Client x Commands (page 40) for each Client, examining commands in the order
they are listed, and sending enabled commands on the network. However, the module
also has a special command priority queue, which is an internal buffer that holds
commands from special function blocks until they can be sent on the network.
When one or more commands appear in the command priority queue:
1 The routine polling process is temporarily interrupted.
2 The commands in the command priority queue are executed until the queue is
empty.
3 Then the module goes back to where it left off on the MNET Client x Command List
and continues routine polling.
Like Event Command blocks, Command Control blocks place commands into the
module’s command priority queue. Unlike Event Command blocks, which contain all the
values needed for one command, Command Control is used with commands already
defined in the MNET Client x Command List.
Commands in the MNET Client x Command List may be either enabled for routine
polling or disabled and excluded from routine polling. A disabled command has its bit in
the MNETC.CONTROL.CmdControl.WriteCmdBits controller tag set to zero (0) and is
skipped during routine polling. An enabled command has its bit in the WriteCmdBits
controller tag set to one (1) and is sent during routine polling. However, Command
Control allows any command in the predefined MNET Client x Command List to be
added to the command priority queue, whether it is enabled for routine polling or not.
Command Control also gives you the option to use ladder logic to have commands from
the MNET Client x Command List executed at a higher priority and out of routine order, if
such an option might be required in special circumstances.
A single Command Control block request can place up to 16 commands from the MNET
Client x Command List into the command priority queue.
The last digit in the block identification code indicates the number of commands to
process. For example, a block identification code of 5003 indicates that three commands
are to be placed in the queue. In this case, the first three of the 16 available Command
Indexes will be used to determine exactly which three commands will be added to the
queue, and to set their order of execution.
Values to enter for the 16 Command Indexes range from 0 to 15 and correspond to the
MNET Client x Command List entries, which are numbered from 1 to 16. To determine
the Command Index value, subtract one (1) from the row number of the command in the
MNET Client x Command List, as seen in the Command Entry Formats (page 41).
The module responds to a Command Control block request with a response block,
indicating the number of commands added to the command priority queue.
Controller Tags
The MNETC.CONTROL controller tag array holds all the values needed to create one
Command Control block, have it sent to the module, and control the processing of the
returned response block.
Pass-Through Blocks 9956, 9957, 9958, 9960 or 9961 from Module to Processor
Word Offset Description Length
0 0 1
1 9956, 9957, 9958, 9960 or 9961 1
2 Number of word registers in Modbus data set 1
3 Starting address for Modbus data set 1
4 to 248 Modbus data set 245
249 9956, 9957, 9958, 9960 or 9961 1
The ladder logic copies and parses the received message, and controls the processor as
expected by the Client device. The processor responds to the formatted pass-through
blocks with a write block.
Response Blocks 9956, 9957, 9958, 9959, 9960, 9961, or 9970 from Processor to Module
Word Offset Description Length
0 9956, 9957, 9958, 9959, 9960, 9961, or 9970 1
1 to 249 Spare data area 247
The ladder logic copies and parses the received message, and controls the processor as
expected by the Client device. The processor responds to the pass-through block with a
write block.
This informs the module that the command has been processed and can be cleared
from the pass-through queue.
Server Driver
The server driver allows the MVI56E-MNETC/MNETCXT module to respond to data
read and write commands issued by Clients on the Modbus TCP/IP network. The
following illustration describes the flow of data into and out of the module.
1 The server driver receives the configuration information from the configuration file on
the Personality Module (compact flash card), and the module initializes the server.
2 A host device, such as a Modicon PLC or an HMI application, issues a read or write
command to the module’s node address. The server driver validates the message
before accepting it into the module. If the message is considered invalid, an error
response is returned to the originating Client node.
3 After the module accepts the command, the module processes the data contained in
the command.
o If the command is a read command, the data is read out of the database and a
response message is built.
o If the command is a write command, the data is written directly into the database
and a response message is built.
o If the command is a write command and the pass-through feature is utilized, the
write message is transferred to the processor ladder logic and is not written
directly into the module’s database, unless it is returned as a change in the
output image that overwrites data in the WriteData area as a result of such ladder
logic processing.
4 After the data processing has been completed in Step 3, a response is issued to the
originating Client node.
Counters are available in the Status Block that permit the ladder logic program to
determine the level of activity of the server driver.
Client Driver
In the Client driver, the MVI56E-MNETC/MNETCXT module issues read or write
commands to servers on the Modbus TCP/IP network using up to 30 simulated Clients.
The commands originate either from the module's user-configured Client x Command
List for each Client, or directly from the processor as Event Commands. The commands
from the Client x Command List are executed either via routine polling or as a result of
special Command Control block requests from the processor. Client status data is
returned to the processor in special Client Status blocks. The following flowchart
describes the flow of data into and out of the module.
1 The Client driver obtains configuration data when the module restarts. This includes
the timeout parameters and the Command List. These values are used by the driver
to determine the types of commands to be issued to servers on the Modbus TCP/IP
network.
2 When configured, the Client driver begins transmitting read and/or write commands
to servers on the network. The data for write commands is obtained from the
module's internal database.
3 Assuming successful processing by the server specified in the command, a response
message is received into the Client driver for processing.
4 Data received from the server is passed into the module's internal database, if the
command was a read command. General module status information is routinely
returned to the processor in the input images.
5 Status data for a specific Client can be requested by the processor and returned in a
special Client Status block.
6 Special functions, such as Event Commands and Command Control options, can be
generated by the processor and sent to the Client driver for action.
Note: The standard connector view shown is color-coded for a straight-through cable.
Query
This function allows you to obtain the ON/OFF status of logic coils (Modbus 0x range)
used to control discrete outputs from the addressed server only. Broadcast mode is not
supported with this function code. In addition to the server address and function fields,
the message requires that the information field contain the initial coil address to be read
(Starting Address) and the number of locations that are interrogated to obtain status
data.
The addressing allows up to 2000 coils to be obtained at each request; however, the
specific server device may have restrictions that lower the maximum quantity. The coils
are numbered from zero; (coil number 1 = zero, coil number 2 = one, coil number 3 =
two, and so on).
The following table is a sample read output status request to read coils 0020 to 0056 (37
coils) from server device number 11.
Note: This is the structure of the message being sent out to the Modbus network. The byte values below are
in hexadecimal display
Node Function Data Start Data Start Number of Number of Error Check
Address Code Point High Point Low Points High Points Low Field (2 bytes)
0B 01 00 13 00 25 CRC
Response
An example response to Read Coil Status is as shown in the table below. The data is
packed one bit for each coil. The response includes the server address, function code,
quantity of data characters, the data characters, and error checking. Data is packed with
one bit for each coil (1 = ON, 0 = OFF). The low order bit of the first character contains
the addressed coil, and the remainder follows. For coil quantities that are not even
multiples of eight, the last characters are filled in with zeros at high order end. The
quantity of data characters is always specified as quantity of RTU characters, that is, the
number is the same whether RTU or ASCII is used.
Because the server interface device is serviced at the end of a controller's scan, data
reflects coil status at the end of the scan. Some servers limit the quantity of coils
provided each scan; thus, for large coil quantities, multiple PC transactions must be
made using coil status from sequential scans.
Node Func Byte Data Coil Data Coil Data Coil Data Coil Data Coil Error Check
Address Code Count Status 20 Status 28 Status 36 Status 44 Status 52 Field
to 27 to 35 to 43 to 51 to 56 (2 bytes)
0B 01 05 CD 6B B2 OE 1B CRC
The status of coils 20 to 27 is shown as CD (HEX) = 1100 1101 (Binary). Reading from
left to right, this shows that coils 27, 26, 23, 22, and 20 are all on. The other Data Coil
Status bytes are decoded similarly. Due to the quantity of coil statuses requested, the
last data field, which is shown 1B (HEX) = 0001 1011 (Binary), contains the status of
only 5 coils (52 to 56) instead of 8 coils. The 3 left most bits are provided as zeros to fill
the 8-bit format.
Query
This function allows you to obtain the ON/OFF status of discrete inputs (Modbus 1x
range) in the addressed server. PC Broadcast mode is not supported with this function
code. In addition to the server address and function fields, the message requires that the
information field contain the initial input address to be read (Starting Address) and the
number of locations that are interrogated to obtain status data.
The addressing allows up to 2000 inputs to be obtained at each request; however, the
specific server device may have restrictions that lower the maximum quantity. The inputs
are numbered form zero; (input 10001 = zero, input 10002 = one, input 10003 = two, and
so on, for a 584).
The following table is a sample read input status request to read inputs 10197 to 10218
(22 coils) from server number 11.
Note: This is the structure of the message being sent out to the Modbus network. The byte values below are
in hexadecimal display.
Node Function Data Start Data Start Number of Number of Error Check
Address Code Point High Point Low Points High Points Low Field (2 bytes)
0B 02 00 C4 00 16 CRC
Response
An example response to Read Input Status is as shown in the table below. The data is
packed one bit for each input. The response includes the server address, function code,
quantity of data characters, the data characters, and error checking. Data is packed with
one bit for each input (1=ON, 0=OFF). The lower order bit of the first character contains
the addressed input, and the remainder follows. For input quantities that are not even
multiples of eight, the last characters are filled in with zeros at high order end. The
quantity of data characters is always specified as a quantity of RTU characters, that is,
the number is the same whether RTU or ASCII is used.
Because the server interface device is serviced at the end of a controller's scan, the data
reflect input status at the end of the scan. Some servers limit the quantity of inputs
provided each scan; thus, for large coil quantities, multiple PC transactions must be
made using coil status for sequential scans.
Node Func Byte Data Discrete Data Discrete Data Discrete Error Check
Address Code Count Input 10197 to Input 10205 to Input 10213 to Field
10204 10212 10218 (2 bytes)
0B 02 03 AC DB 35 CRC
The status of inputs 10197 to 10204 is shown as AC (HEX) = 10101 1100 (binary).
Reading left to right, this show that inputs 10204, 10202, and 10199 are all on. The other
input data bytes are decoded similar.
Due to the quantity of input statuses requested, the last data field which is shown as 35
HEX = 0011 0101 (binary) contains the status of only 6 inputs (10213 to 102180) instead
of 8 inputs. The two left-most bits are provided as zeros to fill the 8-bit format.
Query
This function allows you to retrieve the contents of holding registers 4xxxx (Modbus 4x
range) in the addressed server. The registers can store the numerical values of
associated timers and counters which can be driven to external devices. The addressing
allows retrieving up to 125 registers at each request; however, the specific server device
may have restrictions that lower this maximum quantity. The registers are numbered
form zero (40001 = zero, 40002 = one, and so on). The broadcast mode is not allowed.
The example below reads registers 40108 through 40110 (three registers) from server
number 11.
Note: This is the structure of the message being sent out to the Modbus network. The byte values below are
in hexadecimal display.
Node Function Data Start Data Start Data Number Data Number Error Check
Address Code Registers Registers Low of Registers of Registers Field
High High Low (2 bytes)
0B 03 00 6B 00 03 CRC
Response
The addressed server responds with its address and the function code, followed by the
information field. The information field contains 1 byte describing the quantity of data
bytes to be returned. The contents of the registers requested (DATA) are two bytes
each, with the binary content right justified within each pair of characters. The first byte
includes the high order bits and the second, the low order bits.
Because the server interface device is normally serviced at the end of the controller's
scan, the data reflect the register content at the end of the scan. Some servers limit the
quantity of register content provided each scan; thus for large register quantities,
multiple transmissions are made using register content from sequential scans.
In the example below, the registers 40108 to 40110 have the decimal contents 555, 0,
and 100 respectively.
Node Function Byte High Low High Low High Low Error Check
Address Code Count Data Data Data Data Data Data Field
(2 bytes)
0B 03 06 02 2B 00 00 00 64 CRC
Query
This function retrieves the contents of the controller's input registers from the Modbus 3x
range. These locations receive their values from devices connected to the I/O structure
and can only be referenced, not altered from within the controller, The addressing allows
retrieving up to 125 registers at each request; however, the specific server device may
have restrictions that lower this maximum quantity. The registers are numbered for zero
(30001 = zero, 30002 = one, and so on). Broadcast mode is not allowed.
The example below requests the contents of register 30009 in server number 11.
Note: This is the structure of the message being sent out to the Modbus network. The byte values below are
in hexadecimal display.
Node Function Data Start Data Start Data Number Data Number Error Check
Address Code Point High Point Low of Points High of Points Low Field
(2 bytes)
0B 04 00 08 00 01 CRC
Response
The addressed server responds with its address and the function code followed by the
information field. The information field contains 1 byte describing the quantity of data
bytes to be returned. The contents of the registers requested (DATA) are 2 bytes each,
with the binary content right justified within each pair of characters. The first byte
includes the high order bits and the second, the low order bits.
Because the server interface is normally serviced at the end of the controller's scan, the
data reflect the register content at the end of the scan. Each PC limits the quantity of
register contents provided each scan; thus for large register quantities, multiple PC
scans are required, and the data provided is from sequential scans.
In the example below the register 30009 contains the decimal value 0.
Node Function Byte Count Data Input Data Input Error Check
Address Code Register High Register Low Field
(2 bytes)
0B 04 02 00 00 CRC
Query
This Function Code forces a single coil (Modbus 0x range) either ON or OFF. Any coil
that exists within the controller can be forced to either state (ON or OFF). However,
because the controller is actively scanning, unless the coil is disabled, the controller can
also alter the state of the coil. Coils are numbered from zero (coil 0001 = zero, coil 0002
= one, and so on). The data value 65,280 (FF00 HEX) sets the coil ON and the value
zero turns it OFF; all other values are illegal and do not affect that coil.
The use of server address 00 (Broadcast Mode) forces all attached servers to modify the
desired coil.
Note: Functions 5, 6, 15, and 16 are the only messages that are recognized as valid for broadcast.
Note: This is the structure of the message being sent out to the Modbus network. The byte values below are
in hexadecimal display.
Node Function Data Start Bit Data Start Bit Number of Number of Error Check
Address Code High Low Bits High Bits Low Field (2 bytes)
0B 05 00 AC FF 00 CRC
Response
The normal response to the Command Request is to re-transmit the message as
received after the coil state has been altered.
Node Function Data Coil Bit Data Coil Bit Data On/Off Data Error Check
Address Code High Low Field (2 bytes)
0B 05 00 AC FF 00 CRC
The forcing of a coil via Modbus function 5 happens regardless of whether the
addressed coil is disabled or not (In ProSoft products, the coil is only affected if you
implement the necessary ladder logic).
Note: The Modbus protocol does not include standard functions for testing or changing the DISABLE state
of discrete inputs or outputs. Where applicable, this may be accomplished via device specific Program
commands (In ProSoft products, this is only accomplished through ladder logic programming).
Coils that are reprogrammed in the controller logic program are not automatically cleared
upon power up. Thus, if such a coil is set ON by function Code 5 and (even months
later), an output is connected to that coil, the output is "hot".
Query
This Function Code allows you to modify the contents of a Modbus 4x range in the
server. This writes to a single register only. Any holding register that exists within the
controller can have its contents changed by this message. However, because the
controller is actively scanning, it also can alter the content of any holding register at any
time. The values are provided in binary up to the maximum capacity of the controller.
Unused high order bits must be set to zero. When used with server address zero
(Broadcast mode), all server controllers load the specified register with the contents
specified.
Note: Functions 5, 6, 15, and 16 are the only messages that are recognized as valid for broadcast.
Note: This is the structure of the message being sent out to the Modbus network. The byte values below are
in hexadecimal display.
The example below is a request to write the value ‘3’ to register 40002 in server 11.
Node Function Data Start Bit Data Start Preset Data Preset Data Error Check
Address Code High Bit Low Register High Register Low Field (2 bytes)
0B 06 00 01 00 03 CRC
Response
The response to a preset single register request is to re-transmit the query message
after the register has been altered.
Node Function Data Register Data Register Preset Data Preset Data Error Check
Address Code High Low Register High Register Low Field (2 bytes)
0B 06 00 01 00 03 CRC
Request Response
Field Name (Hex) Field Name (Hex)
Function 08 Function 08
Sub-function Hi 00 Sub-function Hi 00
Sub-function Lo 00 Sub-function Lo 00
Data Hi A5 Data Hi A5
Data Lo 37 Data Lo 27
The data fields in responses to other kinds of queries could contain error counts or other
data requested by the sub-function code.
Query
This function forces each coil (Modbus 0x range) in a consecutive block of coils to a
desired ON or OFF state. Any coil that exists within the controller can be forced to either
state (ON or OFF). However, because the controller is actively scanning, unless the coils
are disabled, the controller can also alter the state of the coil. Coils are numbered from
zero (coil 00001 = zero, coil 00002 = one, and so on). The desired status of each coil is
packed in the data field, one bit for each coil (1= ON, 0= OFF). The use of server
address 0 (Broadcast Mode) forces all attached servers to modify the desired coils.
Note: Functions 5, 6, 15, and 16 are the only messages (other than Loopback Diagnostic Test) that are
recognized as valid for broadcast.
The following example forces 10 coils starting at address 20 (13 HEX). The two data
fields, CD =1100 and 00 = 0000 000, indicate that coils 27, 26, 23, 22, and 20 are to be
forced on.
Note: This is the structure of the message being sent out to the Modbus network. The byte values below are
in hexadecimal display.
Node Func Coil Coil Number of Number of Byte Force Force Error Check
Address Code Address Address Coils High Coils Low Count Data High Data Low Field (2 bytes)
High Low 20 to 27 28 to 29
0B 0F 00 13 00 0A 02 CD 01 CRC
Response
The normal response is an echo of the server address, function code, starting address,
and quantity of coils forced.
Query
Holding registers existing within the controller can have their contents changed by this
message (a maximum of 60 registers). However, because the controller is actively
scanning, it also can alter the content of any holding register at any time. The values are
provided in binary up to the maximum capacity of the controller (16-bit for the 184/384
and 584); unused high order bits must be set to zero.
Note: Function codes 5, 6, 15, and 16 are the only messages that will be recognized as valid for broadcast.
This is the structure of the message being sent out to the Modbus network. The byte values below are in
hexadecimal display.
Response
The normal response to a function 16 query is to echo the address, function code,
starting address and number of registers to be loaded.
Request Response
Field Name (Hex) Field Name (Hex)
Function 01 Function 81
Starting Address Hi 04 Exception Code 02
Starting Address Lo A1
Quantity of Outputs Hi 00
Quantity of Outputs Lo 01
In this example, the master addresses a request to server device. The function code (01)
is for a Read Output Status operation. It requests the status of the output at address
1245 (04A1 hex). Note that only that one output is to be read, as specified by the
number of outputs field (0001).
If the output address is non-existent in the server device, the server will return the
exception response with the exception code shown (02). This specifies an illegal data
address for the server.
5.5.2 Overview
The Optional Add-On Instruction Rung Import contains optional logic for MVI56E-
MNETC/MNETCXT applications to perform the following tasks.
Read/Write Ethernet Configuration
Allows the processor to read or write the module IP address, netmask and gateway
values.
Note: This is an optional feature. You can perform the same task through PCB (ProSoft Configuration
Builder). Even if your PC is in a different network group you can still access the module through PCB by
setting a temporary IP address.
Important: The Optional Add-On Instruction only supports the two features listed above. You must use the
sample ladder logic for all other features including backplane transfer of Modbus TCP/IP data.
The Add-On Instruction is now visible in the ladder logic. Observe that the procedure
has also imported data types and controller tags associated with the Add-On
Instruction.
You will notice that new tags have been imported: MVI56MNETCEthernet,
MVI56MNETCClock, and four MESSAGE tags.
3 In the Add-On Instruction, click the [...] button next to any MSG tag to open the
Message Configuration dialog box.
4 Click the COMMUNICATION tab and then click the BROWSE button.
2 The bit will be automatically reset and the current Ethernet settings will be copied
to MVI56EMNETCETHERNET controller tag as follows.
2 The bit will be automatically reset and the current clock value will be copied to
MVI56EMNETCCLOCK.Config controller tag as follows.
This action opens the Select Module dialog box .Enter GENERIC in the text box and
select the GENERIC 1756 MODULE. If you're using an earlier version of RSLogix,
expand OTHER in the Select Module dialog box, and then select the GENERIC 1756
MODULE.
2 Select the 1756-MODULE (GENERIC 1756 MODULE) from the list and click OK. This
action opens the New Module dialog box.
3 Fill in the module properties as follows. You must select the Comm Format as DATA -
INT in the dialog box, otherwise the module will not communicate.
Parameter Value
Name Enter a module identification string. Example: MNETC_2
Description Enter a description for the module. Example: MODBUS
TCP/IP CLIENT ENHANCED COMMUNICATION MODULE -
CLIENT/SERVER
Comm Format Select DATA-INT.
Slot Enter the slot number in the rack where the MVI56E-
MNETC/MNETCXT module is located.
Input Assembly Instance 1
Input Size 250
Output Assembly Instance 2
Output Size 248
Configuration Assembly Instance 4
Configuration Size 0
4 Click OK to continue.
5 Select the Requested Packet Interval value for scanning the I/O on the module. This
value represents the minimum frequency that the module will handle scheduled
events. This value should not be set to less than 1 millisecond. The default value is 5
milliseconds. Values between 1 and 10 milliseconds should work with most
applications.
6 Save the module. Click OK to dismiss the dialog box. The Controller Organization
window now shows the module.
7 Copy the User-Defined Data Types from the sample program into your existing
RSLogix 5000 project.
8 Copy the Controller Tags from the sample program into your project.
9 Copy the Ladder Rungs from the sample program into your project.
Important: The RSLinx service must be installed and running on your computer in order for RSLogix to
communicate with the processor. Refer to your RSLinx and RSLogix documentation for help configuring and
troubleshooting these applications.
1 Start RSLogix 5000 and close any existing project that may be loaded.
2 Open the COMMUNICATIONS menu and choose GO ONLINE. RSLogix will establish
communication with the processor. This may take a few moments.
3 When RSLogix has established communication with the processor, the Connected
To Go Online dialog box will open.
4 In the Connected To Go Online dialog box, click the GENERAL tab. This tab shows
information about the processor, including the Revision (firmware) version. In the
following illustration, the firmware version is 11.32
5 Select the sample ladder logic file for your firmware version.
2 Click the CHANGE TYPE or CHANGE CONTROLLER button. This action opens the
Change Controller dialog box.
3 Open the TYPE dropdown list, and then select your ControlLogix controller.
4 Select the correct firmware revision for your controller, if necessary.
5 Click OK to save your changes and return to the previous window.
2 In the SLOT field, use the up and down arrows on the right side of the field to select
the slot number where the module will reside in the rack, and then click OK.
RSLogix will automatically apply the slot number change to all tags, variables and ladder
logic rungs that use the MVI56E-MNETC/MNETCXT slot number for computation.
Note: The key switch on the front of the ControlLogix module must be in the REM position.
1 If you are not already online to the processor, open the COMMUNICATIONS menu, and
then choose DOWNLOAD. RSLogix will establish communication with the processor.
2 When communication is established, RSLogix will open a confirmation dialog box.
Click the DOWNLOAD button to transfer the sample program to the processor.
3 RSLogix will compile the program and transfer it to the processor. This process may
take a few minutes.
4 When the download is complete, RSLogix will open another confirmation dialog box.
Click OK to switch the processor from PROGRAM mode to RUN mode.
Note: If you receive an error message during these steps, refer to your RSLogix documentation to interpret
and correct the error.
Note: For technical support calls within the United States, ProSoft’s 24/7 after-hours phone support is
available for urgent plant-down issues.
North America (Corporate Location) Europe / Middle East / Africa Regional Office
Phone: +1.661.716.5100 Phone: +33.(0)5.34.36.87.20
[email protected] [email protected]
Languages spoken: English, Spanish Languages spoken: French, English
REGIONAL TECH SUPPORT REGIONAL TECH SUPPORT
[email protected] [email protected]
Latin America Regional Office Asia Pacific Regional Office
Phone: +52.222.264.1814 Phone: +60.3.2247.1898
[email protected] [email protected]
Languages spoken: Spanish, English Languages spoken: Bahasa, Chinese, English,
REGIONAL TECH SUPPORT Japanese, Korean
[email protected] REGIONAL TECH SUPPORT
[email protected]
D
Index Data Flow between MVI56E-MNETC/MNETCXT Module
and Processor • 122
Diagnostics (Function Code 08) • 135
0 Diagnostics and Troubleshooting • 75, 76
Downloading the Project to the Module • 30, 64
00 Return Query Data • 135 Downloading the Sample Program to the Processor • 24,
158
A Duplex/Speed Code • 33
About the Modbus Protocol • 127
About the Optional Add-On Instruction • 11 E
Adding Multiple Modules (Optional) • 18 Enable • 42
Adding the Module to an Existing Project • 151 Enron-Daniels • 34
Adding the Sample Ladder to an Existing Application • 158 Enron-Daniels Float Offset • 35, 38
Adjust the Input and Output Array Sizes (Optional) • 29 Enron-Daniels Float Start • 38
ARP Timeout • 39 Error/Status Pointer • 36
Ethernet Cable Configuration • 126
B Ethernet Cable Specifications • 126
Backplane Data Transfer • 96 Ethernet Configuration • 48, 62
Backplane Error/Status Pointer • 31, 87 Ethernet LED Indicators • 75
Backplane Status • 84 Ethernet Performance • 127
Before You Begin • 141 Event Command Block with Sequence Number (4000 to
Before You Import the Add-On Instruction • 11 4029) • 109
Bit Input Offset • 35 Event Command Blocks (2000 to 2029) • 104
Event Command Blocks with Sequence Number (4000 to
C 4029, 4100 to 4129, 4200) • 87, 109
Event Sequence Command Count Status (4200) • 112
Choosing the Controller Type • 156
Event Sequence Command Error Report (4100 to 4129) •
Clearing a Fault Condition • 77
111
Client Command Errors • 86, 91, 125
Example 1
Client Command List • 125
Local Rack Application • 52
Client Driver • 124
Example 2
Client Error/Status Pointer • 37, 87
Remote Rack Application • 56
Client Status Blocks (3000 to 3029) • 37, 87, 107
Example and State Diagram • 135
Cold Boot Block (9999) • 121
Command Control Blocks • 42, 113 F
Command Entry Formats • 41, 114
Command Error Delay • 39 Failure Flag Count • 32
Command Error Pointer • 37, 87 Float Flag • 38
Command List • 86 Float Start • 35
Command List Entry Errors • 92 Force Multiple Coils (Function Code 15) • 137
Command List Overview • 40 Force Single Coil (Function Code 05) • 133
Command Status • 86 Functional Overview • 96
Commands Supported by the Module • 41 Functional Specifications • 95
Comment • 46
Config • 83, 85, 86 G
Configuration Error Word • 90 General Specifications • 94
Configuring Module Parameters • 28 Get Module IP Address Block (9991) • 119
Connecting to the Module's Web Page • 11, 93
Connecting Your PC to the ControlLogix Processor • 79 H
Connecting Your PC to the Module • 49, 64, 93
Connecting Your PC to the Module's Ethernet Port • 61 Hardware MAC Address • 47
Connection Timeout • 36 Hardware Specifications • 96
Contacting Technical Support • 159 Holding Register Offset • 36
Content Disclaimer • 2 How to Contact Us • 2
Controller Tag Overview • 70
Controller Tags • 66
I Product Specifications • 94
V
Version • 83
W
Warm Boot Block (9998) • 120
Warranty Information • 159
Word Input Offset • 36
Write Block • 101
Write Register Count • 32
Write Register Start • 32
Writing the Clock Value to the Module • 150
Writing the Ethernet Settings to the Module • 148
Y
Your Feedback Please • 2