Modbus Applications Panel View
Modbus Applications Panel View
Applications
For PanelView Plus and
PanelView Plus CE Terminals
2711P
User Manual
Important User Information Solid state equipment has operational characteristics differing from those of
electromechanical equipment. Safety Guidelines for the Application,
Installation and Maintenance of Solid State Controls (publication SGI-1.1
available from your local Rockwell Automation sales office or online at
http://literature.rockwellautomation.com) describes some important
differences between solid state equipment and hard-wired electromechanical
devices. Because of this difference, and also because of the wide variety of
uses for solid state equipment, all persons responsible for applying this
equipment must satisfy themselves that each intended application of this
equipment is acceptable.
In no event will Rockwell Automation, Inc. be responsible or liable for
indirect or consequential damages resulting from the use or application of
this equipment.
The examples and diagrams in this manual are included solely for illustrative
purposes. Because of the many variables and requirements associated with
any particular installation, Rockwell Automation, Inc. cannot assume
responsibility or liability for actual use based on the examples and diagrams.
No patent liability is assumed by Rockwell Automation, Inc. with respect to
use of information, circuits, equipment, or software described in this manual.
Reproduction of the contents of this manual, in whole or in part, without
written permission of Rockwell Automation, Inc., is prohibited.
Throughout this manual, when necessary, we use notes to make you aware
of safety considerations.
SHOCK HAZARD Labels may be on or inside the equipment, for example, a drive or
motor, to alert people that dangerous voltage may be present.
BURN HAZARD Labels may be on or inside the equipment, for example, a drive or
motor, to alert people that surfaces may reach dangerous
temperatures.
Table of Contents
Chapter 1
Installing Software Objectives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Install RSView Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Install KEPServer Enterprise. . . . . . . . . . . . . . . . . . . . . . . . . 10
Firmware Upgrade Wizard. . . . . . . . . . . . . . . . . . . . . . . . . . 10
Chapter 2
Modbus KEPServer Drivers Objectives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Modbus Master/Slave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Modbus (RTU) Serial . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Modbus Unsolicited Serial . . . . . . . . . . . . . . . . . . . . . . . 11
Modbus ASCII. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Modbus/TCP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Modbus Device Model . . . . . . . . . . . . . . . . . . . . . . . . . . 13
MailBox. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Guidelines for Developing Modbus Applications . . . . . . . . . 14
Create a Modbus Application . . . . . . . . . . . . . . . . . . . . . 14
Compile, Download and Run a Modbus application . . . . 14
Chapter 3
Configuring KEPServer Drivers for Objectives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Modbus Create a Project File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Select the Default Project File (.pfe) . . . . . . . . . . . . . . . . . .. 16
Configure Drivers for Modbus Protocols. . . . . . . . . . . . . . .. 17
Add a Channel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 17
Add A Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 24
Create Tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 32
Chapter 4
Testing KEPServer Objectives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Communications Use the OPC Quick Client . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Chapter 5
Making KEPServer Drivers and Objectives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Tags Available in RSView Studio Create an OPC Data Server . . . . . . . . . . . . . . . . . . . . . . . . . 37
Browse KEPServer Tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Chapter 6
Installing KEPServer Drivers on Objectives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Terminal Firmware Upgrade Wizard. . . . . . . . . . . . . . . . . . . . . . . . . . 41
Preparing Terminal for Firmware Upgrade . . . . . . . . . . . 41
Copy FUP Files to Development Computer . . . . . . . . . . . . . 42
Upgrade Firmware using a Compact Flash Card . . . . . . . . . . 42
Upgrade Firmware using a Network (Ethernet) Connection. . 46
Chapter 7
Compiling, Downloading, and Objectives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 53
Running Application Compile a Runtime Application File . . . . . . . . . . . . . . . . . .. 53
Download Application to Terminal . . . . . . . . . . . . . . . . . .. 54
Connect Terminal to Modbus Network. . . . . . . . . . . . . . . .. 56
Modbus Serial Cables . . . . . . . . . . . . . . . . . . . . . . . . . .. 56
Modbus Ethernet Cables. . . . . . . . . . . . . . . . . . . . . . . .. 57
Run Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 58
Chapter 8
Troubleshooting Objectives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Common Errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Runtime Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Appendix A
Data Types
Appendix B
Modbus/TCP Address Definitions Output Coils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 63
Input Coils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 63
Internal Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 64
Holding Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 65
Mailbox Addressing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 67
Instromet Addressing. . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 68
Appendix C
Modbus ASCII Address Definitions Output Coils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Input Coils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Internal Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Holding Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Appendix D
Modbus Unsolicited Serial Output Coils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Address Definitions Input Coils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Internal Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Holding Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Appendix E
Modbus (RTU) Serial Address Output Coils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Definitions Input Coils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Internal Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Holding Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Magnetek Address Descriptions . . . . . . . . . . . . . . . . . . . . . . 81
Elliott Flow Computer Address Descriptions . . . . . . . . . . . . . 82
Omni Address Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . 83
Daniel S500 Address Descriptions . . . . . . . . . . . . . . . . . . . . 88
Additional Resources You might want to consult the following sources for additional
information:
• KEPServer Enterprise Software online help
• RSView Enterprise or RSView Studio online help
• PanelView Plus User Manual, publication no. 2711P-UM001
Installing Software
Install RSView Studio RSView Studio Enterprise or RSView Studio for Machine Edition
software is installed from:
• a CD or
• downloaded from the Rockwell Software website at
www.software.rockwell.com.
The installation menu with instructions will appear when inserting the
CD into a computer or you can run setup.exe from the root directory.
The software can be installed by running the setup.exe file from the
CD or downloaded version.
Firmware Upgrade Wizard The Firmware Upgrade Wizard is used to install KEPServer drivers and
upgrade firmware in the following devices:
• PanelView Plus
• PanelView Plus CE
Modbus Master/Slave A Modbus master/slave network provides a protocol for data transfer
and programming with a single RTU master and up to 247 slave
devices. A Modbus network links distributed devices with a central
computer terminal or controller for supervisory control and data
acquisition. Up to 247 nodes can be connected at data rates of up to
19,200 baud using media such as twisted pair cable, common carrier
phone lines, or microwave transmission. This network is commonly
used in SCADA application over large areas such as the water/waste
water and oil & gas industries.
Direct Connection
PanelView Plus
(Modbus Serial or
Unsolicited Serial Driver) Controller (Master or Slave)
RS-232/RS-485 Converter(1)
(1)
1761-NET-AIC or Comparable Device
Master Controller
RS-232/RS-485 RS-232/RS-485
Converters Converters
Modem Connection
(2) PanelView Plus Slave Devices Modbus
Each uses the Modbus Unsolicited Serial Driver
PanelView Plus Master Controller
Modems
PanelView Plus
Modbus ASCII Modbus ASCII protocol is typically used to connect to other ASCII
devices that support the Modbus ASCII protocol. KEPServer support
includes:
• Modbus ASCII compatible devices
• Flow Computers using Daniels/Omni/Elliott register addressing
The most common Modbus device model is where the driver connects
to physical devices (e.g. Modicon TSX Quantum, other Modbus Open
Ethernet compatible devices) and acts as a device on the network
with a device ID equivalent to the machine's IP address. The driver
accepts any unsolicited commands it receives and attempts to process
them as if it were another PLC.
MailBox
Ethernet Ethernet
Switch Switch
Master Controller
PanelView Plus
Guidelines for Developing The section provides general guidelines for creating and running
Modbus applications on PanelView Plus/PanelView Plus CE terminals.
Modbus Applications
Create a Modbus Application
Create a Project File The first thing you need to do is create a project file.
Select the Default Project The steps in this section ensure that the correct project file is used in
your RSView Studio application.
File (.pfe)
When RSView Studio creates a runtime application and the application
contains the KEPware OPC server, RSView Studio will merge the
KEPware project file (.pfe) into the runtime file (.mer). The project file
that RSView Studio uses is defined by the Default project field in the
General tab of the Tools>Options menu in KEPware Server
Enterprise.
Configure Drivers for This section shows how to configure KEPServer drivers that will allow
a PanelView Plus/PanelView Plus CE terminal to communicate on a
Modbus Protocols Modbus network.
Add a Channel
Select a driver from the drop down list. The table below lists the
correct driver for each Modbus protocol.
The Network Adapter selection left allows you to select a specific NIC
card based on either the NIC name or its currently assigned IP
address. The list of available NICs will include either unique NIC cards
or NICs that have multiple IP addresses assigned to them.
Additionally, the selection will display any WAN connections you may
have active such as a dialup connection.
For PanelView Plus/PanelView Plus CE, select Default and click Next.
Modbus ASCII
The New Channel - Socket Usage dialog controls how the Modbus
Ethernet driver will utilize Windows sockets when establishing a
connection to the target device. For a normal Modbus Ethernet
enabled device, the default Use Multiple Sockets for device
connection (checked) mode of operation is designed to give the best
performance from the driver.
Normally, the Modbus Ethernet driver will use a Windows socket for
each device on the network. When using a new socket connection for
each device, the Modbus Ethernet driver maintains that socket as an
active connection. Normally this provides a very high level of
performance since the driver does not need to reestablish a
connection each time it needs to read or write data to a given device.
Click Next.
Modbus/TCP
Add A Device
Now that a new channel is defined, you need to add a new device to
the channel. In most cases, selecting the default settings will allow
you to quickly configure and connect to a device.
In the New Device - Name dialog, enter a device name that will help
you identify the device later and click Next. In most cases, the device
will be a logic controller.
If the device you are defining supports more than one model, select a
model that best describes the device.
Modbus/TCP
Step 8 - Set the Block Size for Reading Data from Device
(Doesn’t apply to Unsolicited Serial Protocol)
The New Device - Block Sizes dialog sets the largest block size for
reading I/O (coils) and data tables (Registers). Click Next.
The New Device - Variable Import Settings dialog sets the location of
the Concept or ProWORX variable import file the driver will use when
the automatic tag database generation feature is enabled for this
device. Refer to the KEPServer Enterprise online help for details on
how to use this feature.
Modbus/TCP
Modbus ASCII
Create Tags With a channel and device defined, you are ready to create tags
within the KEPServer software. These tags are used to link to the
controller addresses. The procedure is similar to creating an HMI tag
database. For details on valid data types and addressing, see
Appendices A - E.
1. In the right hand pane, click on the Click to add a static tag text.
Or right-click on a device (such as the Momentum_IEC) in the
left hand pane and select New Tag…
KEPServer allows you to validate the address based on the device you
will be talking to. Your project configuration should now list the tags
in the right pane.
Use the OPC Quick Client Included with the KEPServer server installation is a simple tool for
testing OPC tags called the OPC Quick Client. When you create a
new KEPServer configuration, there are several system and
communications tags that are also created. In this section, you'll verify
communication with the tags you’ve created before incorporating
them into an HMI project.
2. Highlight the name of the device that you plan to test in the left
pane. This will display the tags that you have created in the right
pane.
3. Right-click the tag in the right pane that you plan to test, and
select Synchronous Write.
The resulting window not only allows you to write new data to
the controller, but it also displays the current value of the tag.
Create an OPC Data Server KEPServer is an OPC data server. You need to add this server to the
RSView Studio project.
Any tags created earlier in the KEPServer software are now available
for the HMI using the standard RSView Studio tag browser.
3. Right-click on the heading in the left pane and select Refresh All
Folders to obtain the list of tags in the KEPServer data server.
4. Drill down and select the tags from the folder you created.
Objectives If you plan to run the Machine Edition project on a PanelView Plus or
PanelView Plus CE terminal, the corresponding CE-based KEPServer
components must be installed. This chapter will show you how to use
the Firmware Upgrade Wizard (FUW) utility to install the KEPServer
drivers on the terminals.
Firmware Upgrade Wizard The Firmware Upgrade Wizard (FUW) will add the necessary
KEPServer components to the terminal firmware. You can:
• create a firmware upgrade card (compact flash card) which you
then load in the card slot of terminal to upgrade firmware.
• upgrade firmware in a terminal that is connected to your
desktop computer using a Serial, Ethernet, or Network
connection via RSLinx Enterprise (for supported protocols).
The Firmware Upgrade Wizard is available in RSView Studio. Refer to
the FUW Help for additional information.
Before starting the Firmware Upgrade Wizard, follow the steps below
to prepare the terminal for a successful upgrade.
1. Backup all .MER files on the terminal to an external storage card
or network.
2. Delete all applications on the terminal.
3. Record any Ethernet communication settings, such as IP address,
subnet masks, and gateways by selecting Terminal
Settings>Network and Communications>Network
Connections>Network Adapters>IP Address.
4. Disable the Auto-start feature on the terminal by selecting
Startup Options>RSView ME Station Startup and select Go to
Configuration Mode.
5. Reset the terminal.
Copy FUP Files to Download the Firmware Upgrade (FUP) files with the KEPServer
drivers to your development computer before using the FUW.
Development Computer
The FUP files are available on the Firmware Upgrade Media Kit (Cat.
No. 2711P-RU31O) which you can order through your local
Allen-Bradley distributor. Run the *.exe file to unzip the files. Unzip
the files to this directory:
Documents and Settings\All User Documents\RSView Enterprise\ME\Firmware Upgrade
Upgrade Firmware using a This section shows how to upgrade firmware in a PanelView Plus
terminal using a Compact Flash Card. This is a two step-process. First,
Compact Flash Card you create a firmware upgrade card with the necessary firmware files.
Second, you load this card in the terminal to upgrade the firmware.
3. From the Firmware source folder list, select the location of the
firmware files. The default location is C:\Program
Files\Rockwell Software\RSView Enterprise\FUPs.
From the Upgrade firmware version list, select the version of the
firmware you want to upgrade to, then press Next.
1. Insert the compact flash card into the card slot of a powered
PanelView Plus terminal. A dialog appears indicating the
firmware upgrade is about to occur.
IMPORTANT Do NOT remove the compact flash card while the upgrade is in
process.
8. Replace the .MER files that you backed up before starting the
upgrade or download a new .MER file to the terminal.
9. Load the .MER file and run the project.
Upgrade Firmware using a You can upgrade the firmware in a terminal that is connected to a
desktop computer using a Serial, Ethernet or Network (using RSLinx
Network (Ethernet) Enterprise) connection.
Connection • Network connection requires RSLinx Enterprise where you
select the terminal on an existing network.
• Serial connection requires a RAS connection to be set up on
computer. During the RAS setup, you select the COM port.
• Ethernet connection requires that you enter the terminal’s IP
Address.
Both the Serial and Ethernet connection requires the PanelView Plus
File Transfer Utility running on the terminal and should only be used
when other methods fail.
8. From the Firmware source folder text box, select the location of
the firmware files. The default location is C:\Program
Files\Rockwell Software\RSView Enterprise\FUPs.
From the Upgrade firmware version list, select the version of the
firmware you want to upgrade to, then select Next.
11. Press Yes to continue the upgrade process. If the terminal was
properly prepared for the upgrade, no applications should be
running.
12. Firmware files are downloaded to the terminal. This may take
several minutes to 15 minutes. When the download is complete,
press OK to reset the terminal.
Compile a Runtime You are now ready to build the Machine Edition runtime (.mer) file to
be downloaded to a PanelView Plus/PanelView Plus CE terminal.
Application File
TIP Before compiling the .mer file, verify that the correct .pfe
B
project file is selected. See page 16.
Load Application
[F1] button
8. Select the .mer file and click the Load [F2] button.
Connect Terminal to Before running your application, you need to connect the PanelView
Plus/PanelView Plus CE terminal to a Modbus network using either:
Modbus Network • Modbus serial cables or
• Modbus Ethernet cables
Modbus Controller or
PanelView Plus RS-232 Port Desktop PC MicroLogix/ DNI
9-pin DCE 9-pin(1) 25-pin 8-pin DIN(2)
1
2 RXD 2 3 4
3 TXD 3 2 7
4 DTR 4 20
5 COM 5 7 2
6 DSR 6 6
7 RTS 7 4
8 CTS 8 5
9
Connector Shell Chassis Gnd
(1)
The 2711-NC13, 2711-NC14, or 2706-NC13 cables have a 9-pin D-Shell connector.
(2)
The 2711-NC21 or 2711-NC22 have an 8-pin Mini DIN connector.
Terminal Controller
9-pin 25-pin 9-pin
3 3 3
2 2 2
5 7 5
1 8 1
4 20 4
6 6 6
8 5 8
7 4 7
Run Application Now that your PanelView Plus/PanelView Plus CE terminal contains
the loaded application and is connected to a Modbus network, you
can run the application.
Load Application
[F2] button
Troubleshooting
Objectives This chapter lists common errors that occur during application
development as well as errors that occur during runtime.
Common Errors Some of the most common errors made during application
development are listed below:
• The .mer file was compiled with the wrong .pfe file. See page 16
for details on setting the default project file.
• The KEPServer driver was not downloaded to the terminal. On
PanelView Plus CE terminals, you can verify that the driver is in
the Storage card/KEPServer/drivers folder.
• The wrong serial cable is connected to the PanelView Plus or
PanelView Plus CE terminal. Refer to Chapter 7.
Runtime Errors The table below lists errors that may occur during runtime. Possible
causes and solutions are provided for each error.
2. The named device may have been assigned 2. Verify that the network ID given to the
an incorrect Network ID. named device matches that of the actual
device.
3. The named device is not responding to write
requests.
Data Types
This appendix describes valid data types for creating tags. This
information is also available in the Modbus driver online help in
KEPServer Enterprise.
Output Coils
Output Coils
Decimal Addressing Hexadecimal Addressing
Type Boolean
Format 0xxxxx H0yyyyy
Security Read/Write
Range 000001 - 065536 H000001 - H01000
Example:
The 255th output coil would be addressed as ’0255’ using decimal
addressing or ’H0FF’ using hexadecimal addressing.
Input Coils
Input Coils
Decimal Addressing Hexadecimal Addressing
Type Boolean
Format 1xxxxx H1yyyyy
Security Read(1)
Range 100001 - 165536 H100001 - H11000
(1)
For unsolicited device 127.0.0.1.0, these locations are Read/Write.
Example:
The 127th input coil would be addressed as ’1127’ using decimal
addressing or ’H17F’ using hexadecimal addressing.
Internal Registers
Decimal Addressing Hexadecimal Addressing
Type Word, Short, BCD
Format 3xxxxx H3yyyyy
Security Read only (1)
Range 300001 - 365536 H300001 - H31000
Type Boolean
Format 3xxxxx.bb H3yyyyy.c
Security Read only (1)
Range 3xxxxx.0 - 3xxxxx.15 3yyyyy.0 - 3yyyyy.F
Arrays
Arrays are also supported for the internal register addresses. The
syntax for declaring an array (using decimal addressing) is 3xxxx[cols]
with assumed row count of 1 and 3xxxx[rows][cols].
For Word, Short and BCD arrays, the base address + (rows * cols)
cannot exceed 65536.
For Float, DWord, Long and Long BCD arrays, the base address +
(rows * cols * 2) cannot exceed 65535.
For all arrays, the total number of registers being requested cannot
exceed the internal register block size that was specified for this
device.
Holding Registers
Decimal Addressing Hexadecimal Addressing
Type Word, Short, BCD
Format 4xxxxx H4yyyyy
Security Read/Write
Range 400001 - 465536 H400001 - H410000
Type Boolean
Format 4xxxxx.bb H4yyyyy.c
Security Read/Write
Range 4xxxxx.0 - 4xxxxx.15 4yyyyy.0 - 4yyyyy.F
String Support
String Example:
To address a string starting at 40200 with a length of 100 bytes and
HiLo byte order enter:
40200.100H
Arrays
Arrays are also supported for the holding register addresses. The
syntax for declaring an array (using decimal addressing) is 4xxxx[cols]
with assumed row count of 1 and 4xxxx[rows][cols].
For Word, Short and BCD arrays, the base address + (rows * cols)
cannot exceed 65536.
For Float, DWord, Long and Long BCD arrays, the base address +
(rows * cols * 2) cannot exceed 65535.
For all arrays, the total number of registers being requested cannot
exceed the holding register block size that was specified for this
device.
Mailbox Addressing
Decimal Addressing Hexadecimal Addressing
Type Word, Short, BCD
Format 4xxxxx H4yyyyy
Security Read/Write
Range 1 - 65536 1 - 10000
Type Boolean
Format 4xxxxx.bb H4yyyyy.c
Security Read/Write
Range xxxxx.0 - xxxxx.15 yyyyy.0 - yyyyy.F
Arrays
Arrays are also supported for the holding register addresses. The
syntax for declaring an array (using decimal addressing) is 4xxxx[cols]
with assumed row count of 1 and 4xxxx[rows][cols].
For Word, Short and BCD arrays, the base address + (rows * cols)
cannot exceed 65536.
For Float, DWord, Long and Long BCD arrays, the base address +
(rows * cols * 2) cannot exceed 65535.
For all arrays, the total number of registers being requested cannot
exceed the holding register block size that was specified for this
device.
Instromet Addressing
Decimal Addressing
Area Short Word Registers (16 Bit)
Type Word, Short
Range 400000 - 400199
Security Read only
TIP The normal Instromet addressing does not include the 40xxx. It
is included here to keep the addresses in a normal Modbus
compatible mode.
Output Coils
Output Coils
Decimal Addressing
Type Boolean
Format 0xxxxx
Security Read/Write
Range 000001 - 065535
Example:
The 255th output coil would be addressed as ’0255’ using decimal
addressing or ’H0FF’ using hexadecimal addressing.
Input Coils
Input Coils
Decimal Addressing
Type Boolean
Format 1xxxxx
Security Read(1)
Range 100001 - 165535
(1)
For unsolicited device 127.0.0.1.0, these locations are Read/Write.
Example:
The 127th input coil would be addressed as ’1127’ using decimal
addressing or ’H17F’ using hexadecimal addressing.
Internal Registers
Decimal Addressing
Type Word, Short, BCD
Format 3xxxxx
Security Read only (1)
Range 300001 - 365535
Type Boolean
Format 3xxxxx.bb
Security Read only (1)
Range 3xxxxx.0 - 3xxxxx.15
Arrays
Arrays are also supported for the internal and holding register
addresses. The syntax for declaring an array (using decimal
addressing) is 3xxxx[cols] with assumed row count of 1 and
3xxxx[rows][cols].
For Word, Short and BCD arrays, the base address + (rows * cols)
cannot exceed 65536.
For Float, DWord, Long and Long BCD arrays, the base address +
(rows * cols * 2) cannot exceed 65535.
For all arrays, the total number of registers being requested cannot
exceed the internal register block size that was specified for this
device.
Holding Registers
Decimal Addressing
Type Word, Short, BCD
Format 4xxxxx
Security Read/Write
Range 400001 - 465535
Type Boolean
Format 4xxxxx.bb
Security Read/Write
Range 4xxxxx.0 - 4xxxxx.15
Output Coils
Output Coils
Decimal Addressing
Type Boolean
Format 0xxxxx
Security Read/Write
Range 000001 - 009999
Input Coils
Input Coils
Decimal Addressing
Type Boolean
Format 1xxxxx
Security Read
Range 100001 - 109999
Internal Registers
Decimal Addressing
Type Word, Short, BCD
Format 3xxxxx
Security Read only (1)
Range 300000 - 309999
Type Boolean
Format 3xxxxx.bb
Security Read only (1)
Range 3xxxxx.0 - 3xxxxx.15
Arrays
Arrays are also supported for the internal and holding register
addresses. The syntax for declaring an array (using decimal
addressing) is 3xxxx[cols] with assumed row count of 1 and
3xxxx[rows][cols].
For Word, Short and BCD arrays, the base address + (rows * cols)
cannot exceed 65536.
For Float, DWord, Long and Long BCD arrays, the base address +
(rows * cols * 2) cannot exceed 65535.
For all arrays, the total number of registers being requested cannot
exceed the internal register block size that was specified for this
device.
Holding Registers
Decimal Addressing
Type Word, Short, BCD
Format 4xxxxx
Security Read/Write
Range 400001 - 409999
Type Boolean
Format 4xxxxx.bb
Security Read/Write
Range 4xxxxx.0 - xxxxx.15
String Support
String Example:
To address a string starting at 40200 with a length of 100 bytes and
HiLo byte order enter:
40200.100H
This appendix describes valid tag addressing for Modbus (RTU) Serial
communications. This information is also available in the Modbus
driver online help in KEPServer Enterprise. KEPServer drivers use
decimal addressing.
Output Coils
Output Coils (Function Codes: 01, 05, 15)
Decimal Addressing Hexadecimal Addressing
Type Boolean
Format 0xxxxx H0yyyyy
Security Read/Write
Range 000001 - 065536 H000001 - H0FFFF
Example:
The 255th output coil would be addressed as ’0255’ using decimal
addressing or ’H0FF’ using hexadecimal addressing.
Input Coils
Input Coils (Function Code 02)
Decimal Addressing Hexadecimal Addressing
Type Boolean
Format 1xxxxx H1yyyyy
Security Read(1)
Range 100001 - 165536 H100001 - H1FFFF
(1)
For unsolicited device 127.0.0.1.0, these locations are Read/Write.
Example:
The 127th input coil would be addressed as ’1127’ using decimal
addressing or ’H17F’ using hexadecimal addressing.
Type Boolean
Format 3xxxxx.bb H3yyyyy.c
Security Read only (1)
Range 3xxxxx.0 - 3xxxxx.15 H3yyyyy.0 - H3yyyyy.F
Arrays
Arrays are also supported for the internal register addresses. The
syntax for declaring an array (using decimal addressing) is 3xxxx[cols]
with assumed row count of 1 and 3xxxx[rows][cols].
For Word, Short and BCD arrays, the base address + (rows * cols)
cannot exceed 65536.
For Float, DWord, Long and Long BCD arrays, the base address +
(rows * cols * 2) cannot exceed 65535.
For all arrays, the total number of registers being requested cannot
exceed the internal register block size that was specified for this
device.
Type Boolean
Format 4xxxxx.bb H4yyyyy.c
Security Read/Write
Range 4xxxxx.0 - 4xxxxx.15 H4yyyyy.0 - H4yyyyy.F
String Support
String Example 1:
To address a string starting at 40200 with a length of 100 bytes and
HiLo byte order, enter:
40200.100H
String Example 2:
To address a string starting at 40500 with a length of 78 bytes and
LoHi byte order, enter:
40500.78L
Arrays
Arrays are also supported for the holding register addresses. The
syntax for declaring an array (using decimal addressing) is 4xxxx[cols]
with assumed row count of 1 and 4xxxx[rows][cols].
For Word, Short and BCD arrays, the base address + (rows * cols)
cannot exceed 65536.
For Float, DWord, Long and Long BCD arrays, the base address +
(rows * cols * 2) cannot exceed 65535.
For all arrays, the total number of registers being requested cannot
exceed the holding register block size that was specified for this
device.
Magnetek Address The following table provides the general ranges of data available for a
Magnetek GPD 515 Drive. Consult the Magnetek Modbus RTU
Descriptions Technical Manual, part number TM4025, for information on how
specific drive parameters can be accessed using Modbus RTU
addressing. In all cases, the letter H (used to signify Hex addressing)
should precede the desired address.
Default data types for dynamically defined tags are shown in bold
where appropriate.
Addressing Example
To access the drive’s Operation Status (address 02BH), enter the
following address in you client application.
H4002B
Important Notes
• When adding a Magnetek device to your OPC Server project,
make sure the setting Use Zero Based Addressing is not checked
(page 27). If this parameter is not set correctly, the Modbus RTU
driver will offset all of your Magnetek addresses by 1.
• Arrays are supported for holding register locations for all data
types except boolean. There are two methods of addressing an
array. Examples are given using holding register locations.
4xxx [rows] [cols]
4xxx [cols] - assumes rows is equal to 1
• Rows multiplied by cols cannot exceed the block size that has
been assigned to the device for the register type.
Elliott Flow Computer Default data types for dynamically defined tags are shown in bold
where appropriate.
Address Descriptions
Elliott Flow Computer Addressing
Address Range Data Type Access
Output Coils 000001 - 065536 Boolean Read-Write
Input Coils 100001 - 165536 Boolean Read Only
Internal Registers 300001 - 365536 Word, Short, Boolean Read Only
300001 - 365535 Float, DWord, Long, LBCD
3xxxxx.0 - 3xxxxx.15 Boolean
Holding Registers 400001 - 465536 Word, Short, BCD (1) Read-Write
400001 - 465535 Float, DWord, Long, LBCD,
4xxxxx.0 - 4xxxxx.15 Boolean
Important Notes
• Address ranges 405001 to 405315 and 407001 to 407315 are 32
bit registers. Addresses in the range of 405001 to 405315 use a
default data type of Long. Addresses in the range of 407001 to
407315 use a default data type of Float. Since these address
registers are 32 bit, only Float, DWord, Long or LBCD data types
are allowed. Arrays are not allowed for these special address
ranges.
• Arrays are supported for internal and holding register locations
(see note 1 above for exceptions) for all data types except
Boolean. There are two methods of addressing an array.
Examples are given using holding register locations.
4xxxx [rows] [cols]
4xxxx [cols] (this method assumes rows is equal to one)
• Rows multiplied by cols cannot exceed the block size that has
been assigned to the device for the register type. For arrays of 32
bit data types, rows multiplied by cols multiplied by 2 cannot
exceed the block size.
Omni Address Descriptions Default data types for dynamically defined tags are shown in bold
where appropriate.
OMNI Addressing
Address Range Data Type Access
Digital I/O Point 1001 - 1024 Boolean Read-Write
Programmable Boolean 1025 - 1088 Boolean Read-Write
Point
Meter Run Status and 1n01 - 001n59 Boolean Read-Write
Alarm Points 1n76 - 1n99
n = Number of Meter Run
Micro Motion 1n60 - 1n75 Boolean Read-Write
Alarm Status Points n=Number of Meter Run
User Scratch Pad 1501 - 1599 Boolean Read-Write
Boolean Points 1601 - 1649
User Scratch Pad One 1650 - 1699 Boolean Read/Write
Shot Points
Command Boolean 1700 - 1798 Boolean Read/Write
Points/Variables
Meter Station Alarm and 1801 - 1899 Boolean Read/Write
Status Points
Prover Alarm and 1901 - 1967 Boolean Read/Write
Status Points
Meter Totalizer 2n01 - 2n37 Boolean Read/Write
Roll-over Flags n = Number of Meter Run
Misc. Meter Station 2601 - 2623 Boolean Read/Write
Alarm and Status
Station Totalizer 2801 - 2851 Boolean Read/Write
Roll-over Flats
Station Totalizer 2852 - 2862 Boolean Read/Write
Decimal Resolution 2865 - 2999
Prover 16-Bit Integer Data 3901 - 3999 Short, Word, BCD Read/Write
Station 32-Bit Integer Data 5801 - 5818 Long, DWord, LBCD, Float Read-Write
Meter #1 Batch Size 5819 - 5824 Long, DWord, LBCD, Float Read-Write
Meter #2 Batch Size 5825 - 5830 Long, DWord, LBCD, Float Read-Write
Meter #3 Batch Size 5831 - 5836 Long, DWord, LBCD, Float Read-Write
Meter #4 Batch Size 5837 - 5842 Long, DWord, LBCD, Float Read-Write
Daniel S500 Address Default data types are dynamically defined tags are shown in bold
where appropriate.
Descriptions
Symbols I
.mer file 53 Instromet addressing 68
.pfe file 15
K
A KEPServer communications, testing 35
address definitions KEPServer drivers
MODBUS (RTU) Serial 77 Firmware Upgrade Wizard 41
MODBUS ASCII 69 installing on terminal 41
MODBUS Unsolicited ASCII 73 KEPServer drivers and tags
MODBUS/TCP 63 making available to RSView Studio 37
application KEPServer Enterprise 10
compiling 53
downloading 54
guidelines for creating 14 M
loading 55 Magnatek address definitions 81
running 58 MODBUS (RTU) Serial
application guidelines 13 address definitions 77
Danieles S500 address definitions 88
holding registers 79
C input coils 77
cables internal registers 78
Ethernet cables 57 OMNI address definitions 83
null modem cable 57 output coils 77
serial cables 56 MODBUS ASCII 11
channel 17 address definitions 69
compiling application 53 holding registers 71
input coils 69
internal registers 70
D output coils 69
Daniles S500 address definitions 88 MODBUS drivers
data types 61 adding a channel 17
downloading adding a device 24
application 54 configuring 17
Firmware Upgrade Wizard 42 MODBUS master/slave protocol
MODBUS (RTU) Serial 11
MODBUS Unsolicited Serial 11
E network illustrations 12
Elliott address definitions 82 MODBUS protocols
Ethernet cable 57 master/slave 11
MODBUS (RTU) Serial 11
F MODBUS ASCII 13
MODBUS Unsolicited Serial 11
firmware upgrade MODBUS/TCP 13
creating a firmware upgrade card 42 MODBUS Unsolicited ASCII
firmware upgrade wizard 41 address definitions 73
upgrading via network connection 46 holding registers 75
using a firmware upgrade card 44 input coils 73
Firmware Upgrade Wizard 10 internal registers 74
using a compact flash card 42 output coils 73
using network connection 46
MODBUS/TCP 13 R
address definitions 63 RSView Studio 9
holding registers 65 available KEPServer drivers 37
input coils 63 running application 58
Instromet addressing 65
runtime errors 59
internal registers 64
mailbox addressing 65
output coils 63 S
serial cables
N MODBUS cables 56
network connections 56 null modem cable 57
software, required
Firmware Upgrade Wizard 10
O KEPServer Enterprise 10
OMNI address definitions 83 RSView Studio 9
OPC Data Server 37
OPC Quick Client 35 T
tags
P browsing 37
project .pfe file creating 32
creating 15 terminal
saving 31, 33 connecting to MODBUS network 56
setting default project 16 troubleshooting
common operating errors 59
runtime errors 59
Installation Assistance
Rockwell tests all of its products to ensure that they are fully operational
when shipped from the manufacturing facility. However, if your product is
not functioning and needs to be returned:
United States Contact your distributor. You must provide a Customer Support case
number (see phone number above to obtain one) to your distributor in
order to complete the return process.
Outside United Please contact your local Rockwell Automation representative for
States return procedure.
PanelView Plus, VersaView, ControlLogix, Tech Connect, RSView Studio, RSView Machine Edition, RSNetWorx
for DeviceNet, RSLogix 5000, RSView, PLC-5, SLC, RSLinx, RSLinx Enterprise, RSNetWorx, Allen-Bradley, and
Rockwell Automation are trademarks of Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.