Modbus TCP
Modbus TCP
OPC Server
ModbusTCP
Configuration Manual
UMHMIMo2EA
1st Edition, 08/2010
Modbus TCP OPC Server Table of Contents
Table of Contents
Chapter 1 Hardware Settings............................................................................................3
1-1 Data Type Description ............................................................................................4
1-2 Signal Type of Modbus PLC ...................................................................................4
1-3 Cable Diagram........................................................................................................5
Chapter 2 Editing Configuration.......................................................................................7
2-1 Modbus Communication Setting.............................................................................8
2-1-1 Device Define...............................................................................................9
2-1-2 Folder Define..............................................................................................12
2-1-3 Data Item Define ........................................................................................14
2
Chapter 1 Hardware Settings
Modbus TCP OPC Server Hardware Settings
4
Hardware Settings Modbus TCP OPC Server
The devices which use Modbus TCP communication protocol based on Ethernet
platform. General speaking, you can use the cross over Ethernet cable or HUB and easily
let the PC connect to the Modbus devices. The hardware cable diagram is as follows:
Lots of devices use Modbus TCP Protocol, but the cable diagram of each device may
differ from another.
5
Modbus TCP OPC Server Hardware Settings
6
Hardware Settings Modbus TCP OPC Server
7
Modbus TCP OPC Server Creating a New Configuration
Sample
A device using Modbus TCP protocol and stands the slave side.
The Address Space tree control in the Configurator, shown in the figure below, sets the
properties and connection parameters for the following items:
• Devices
• Folders
• Data Items
8
Creating a New Configuration Modbus TCP OPC Server
Every device is connected to particular port, so it logically creates the second level in
the Address Space tree. Each device is represented by its symbolic name, and is
uniquely identified by the Address value. It is impossible to have two devices with the same
address connected to one port.
Setting up a device requires configuration of its unique address, type, timeouts and
optimization parameters, as shown in the figure below.
9
Modbus TCP OPC Server Creating a New Configuration
Item Description
Specify a name of the new device. The special
symbols such as ‘+’、’/’、’*、’-‘ are not allowed.
The number must match the network IP address setting
of the device.
The port connected with the device. (Usually, the
number is 502 in Modbus TCP)
The Unit Identifier must match the station number.
There is a group of six predefined standard device types
enhanced with Other (Any) and Custom options. A
device with the most limited parameters and the lowest
performance is called the Other (Any) alternative.
Timeout parameters (separately for reading and
writing data) specify the period of time (in
milliseconds) the server will wait for a response
from the device:
Read/Write: Amount of time (in
milliseconds) the OPC server will wait for a
response (read/write) from the device.
Timeouts to Suspend: The number of
10
Creating a New Configuration Modbus TCP OPC Server
11
Modbus TCP OPC Server Creating a New Configuration
Folders can be used to group items logically. You can configure as many folders as
required. Each folder can even have subfolders. The Modbus OPC Server supports up to
three folder levels. The use of folders is not required.
If desirable, the configuration could just contain data items without any folders. But most
likely this will only be useful if the application does not demand too many persistent tags.
Select [ Device ] or [ Folder ] on the Tree View. Press the right key of the mouse and select
[New ]Æ [Fold]
12
Creating a New Configuration Modbus TCP OPC Server
Item Description
Specify a name of the new folder. The
special symbols such as ‘+’、/、*、- are not
allowed.
All of the data items under this group are in
the simulation mode. Simulation function will
simulate the real communication situation
between devices and OPC Server.
Please see
“UMHMIOPCEA.pdf”.
13
Modbus TCP OPC Server Creating a New Configuration
14
Creating a New Configuration Modbus TCP OPC Server
Item Description
Specify a name of the new data item. The special
symbols such as ‘+’、’/’、’*、’-‘ are not allowed.
Description of Data Item
Register/ Replay Type: Output Coil, Input Coil, Input
Register and Output Register.
Look for more information in Chapter 1
Data Type:
Output Coil、Input Coil Æ Bool
Input Register、Output Register ÆInt、UINT
String Æ When selecting String type, you must specify
the data length
From the starting address to access the data by block,
not point to point to access the data. It could speed up
the communication speed. You do not have to define a
lot of items to get the values. Using [ Vector ] function
will let OPC server put the values into the arrays.
This value specifies the data item address (register
number) in the device data space.
Note: The starting address of Modbus OPC Server
15
Modbus TCP OPC Server Creating a New Configuration
16