User Manual
OPC Server
Omron HostLink Serial
Configuration Manual
UMHMIOm1EA
1st Edition, 08/2010
Omron HostLink OPC Server
Table of Contents
Table of Contents
Chapter 1 Hardware Settings............................................................................................4
1-1 Support PLC Models ..............................................................................................5
1-2 Data Type Description ............................................................................................6
1-3 Signal Type of Omron PLC .....................................................................................6
1-4 Cable Diagram........................................................................................................7
1-4-1 RS232/422 Modules and Figure...................................................................8
1-5 Communication Parameter Settings of Omron PLC ...............................................9
Chapter 2 Editing Configuration.....................................................................................15
2-1
Communication Setting of Omron PLC ............................................................16
2-1-1 Port Define .................................................................................................17
2-1-2 Device Define.............................................................................................20
2-1-3 Folder Define..............................................................................................23
2-1-4 Data Item Define ........................................................................................25
Appendix A Cable of wiring ..........................................................................................28
ALL Series (CPU Port)/(RS232) .................................................................................29
C Series (RS232)........................................................................................................30
C Series (RS422)........................................................................................................31
CJ Series (RS232)......................................................................................................32
CJ Series (RS485)......................................................................................................33
CJ Series (RS422)......................................................................................................34
CPM1/2A Series (CPM1-CIF01)/(RS232)...................................................................35
CPM1/2A Series (CQM1-CIF02)/(RS232) ..................................................................36
CPM1/2A Series (CPM1-CIF11)/(RS422) ...................................................................37
CPM1L/H/E Series (CP1W-CIF01)/(RS232)...............................................................38
CPM1L/H/E Series (CP1W-CIF11/12)/(RS485) ..........................................................39
CPM1L/H/E Series (CP1W-CIF11/12)/(RS422) ..........................................................40
CPM2C Series (CPM2C-CIF11)/(RS422) ...................................................................41
CQM1H Series (CQM1H-CIF12)/(RS422) ..................................................................42
CS1 Series (RS232) ...................................................................................................43
CS1 Series (RS485) ...................................................................................................44
CS1 Series (RS422) ...................................................................................................45
CV Series (CPU Host Link Port)/ (RS232)..................................................................46
CV Series (CPU Host Link Port)/ (RS422)..................................................................47
CV Series (CV500-LK201/Port1)/(RS232)..................................................................48
CV Series (CV500-LK201/Port2)/ (RS232).................................................................49
CV Series (CV500-LK201/Port2)/ (RS422).................................................................50
Alpha Series (RS232) .................................................................................................51
Alpha Series (RS485) .................................................................................................52
Alpha Series (RS422) .................................................................................................53
Omron HostLink OPC Server
Table of Contents
Chapter 1 Hardware Settings
Hardware Settings
Omron HostLink OPC Server
1-1 Support PLC Models
PLC
C200H
C200HE
C200HE-Z
CPU
CPU11
CPU31
CPU32
CPU12
CPU42
CPU21
CPU53
CPU23
CPU63
CPU42
CPU43
CJ1G
CPU53
CPU33
CPU43
CPU44
CPU45
CQM1H
CPU31
CPU51
CPU42
CS1G
CPU43
CPU44
CPU44
CPU45
CPU54
CPU63
CPU64
CPU64
CS1H
CPU65
CPU44
CPU66
CPU54
CPU67
CPU64
CV500
CPU01
CPU65
CV1000
CPU01
CPU85
CV2000
CPU01
CPU01
C1000H
CPU01
C2000H
CPU01
CPU42
CPU43
CPU44
CPU45
CPU13
CPU22
C500
CJ1G-H
CJ1M
CPU43
CPU34
C200HX-Z
CPU66
CPU11
CPU34
C200HX
CJ1H-H
CPU42
CPU63
C200HS
CPU65
CPU67
CPU33
C200HG-Z
CPU
CPU32
CPU33
C200HG
PLC
CVM1
CPU01
CPU11
CPU01
CVM1-V2
CPU11
CPU21
Omron HostLink OPC Server
Hardware Settings
1-2 Data Type Description
OPC Server Data Type
Description
Bool
Single bit
Int
Signed 16 bit value
Dint
Signed 32 bit value
UINT
Unsigned 16 bit value
UDINT
Unsigned 32 bit value
Real
32 bit floating point value
String
String type with Null character
at the end
1-3 Signal Type of Omron PLC
Signal Type
Range
Data Type
Access
CIO0000-CIO06143
Read / Write
Int / Word
Work Area (Q)
W000-W511
Read / Write
Int / Word
Holding Area (M)
H000-H511
Read / Write
Int / Word
Auxiliary Area (T)
A000-A959
Read / Write
Int / Word
IO Area (I)
A000-A447 is read only
Task Flag (S)
TK00-TK31
Read Only
Int / Word t
Timer Flag(G)
TS0000-TS4095
Read / Write
Int / Word
Counter Falg (R)
CS0000-CS4095
Read / Write
Int / Word
Timer PV(G)
T0000- T4096
Read / Write
Int / Word
Counter PV (R)
C0000- C4095
Read / Write
Int / Word
DM Area
D00000-D32767
Read / Write
Int / Word
EM Area
E00000-E32767
Read / Write
Int / Word
Index Register
IR00-IR15
Read / Write
Int / Word
Data Register
DR00-DR15
Read / Write
Int / Word
The address will be different from each PLC. Please look it up in the configuration
manual.
Hardware Settings
Omron HostLink OPC Server
1-4 Cable Diagram
Omron HostLink PLC can transmit the data through RS 232 or RS422 serial
communication. It is suitable for the small amount data transmission. If some devices
need high transmission speed and the bulk data transmission, users can use Ethernet for
data transmission.
To connect OPC Server to Omron C Series PLC, CJ1M-SCU41/ CJ1M-SCU21
(RS232/RS422 serial module) communication module should be installed. The cable
diagram is shown as below.
Please refer to the Appendix A.
Usually, RS232 serial port is used for short distance communication; on the contrary,
RS422 or modem is the better choice for the long distance communication.
RS 485 is only used for the communication between PLCs.
Omron HostLink OPC Server
Hardware Settings
1-4-1 RS232/422 Modules and Figure
Hardware Figure
CJ1M-SCU41
CQM1H-SCB41
Hardware Settings
Omron HostLink OPC Server
1-5 Communication Parameter Settings of Omron PLC
Connect Omron communication module with PLC CPU Port and start CX-Program.
Process: PLCAuto Online Auto Online
Start CX-Programmer
Click PLCOperating ModeProgram
Omron HostLink OPC Server
Hardware Settings
Click [IO Table and Unit Setup] to show up PLC IO Table
Click [Inner Board] to show the communication module settings. Users can modify the
communication settings here. (Defaults: Host Link station number 0 9600E72)
10
Hardware Settings
Omron HostLink OPC Server
Select the Port
Set up the Baud rate
The setting for the above figure are as follows
Parameter
Port1Serial communications mode
Value
Port1Baud rate
9600 bps
Port1Parity
Even
Port1Data length
7 bits
Port1Stop bits
2 bits
Port1Host Link unit number
Click [OK] after finishing setting.
11
Host Link
Omron HostLink OPC Server
Hardware Settings
OptionsTransfer to PLC means to download the new setting parameters into PLC.
Run Reset [PLC Mode] into [Run].
12
Hardware Settings
13
Omron HostLink OPC Server
Chapter 2 Editing Configuration
2-1 Communication Setting of Omron PLC
Sample
PLC Type
Omron CQM1H-cpu21
Communication Module
The Port2 of Omron CQM1H cpu
The Address Space tree control in the Configurator, shown in the figure below, sets the
properties and connection parameters for the following items:
Ports
Devices
Folders
Data Items
Data items can be organized hierarchically. It is similar to organizing directories and
files on your computer's hard disk. The OPC Server offers several levels of hierarchy. The
Configurator module uses the terms Folder and Data Item. A folder can contain
additional folders and also data items. The data items are always the branches in the tree
control hierarchy.
The hierarchical structure of the folders and data items helps to organize the devices
and tags, as shown below.
16
2-1-1 Port Define
A port is equivalent to a physical serial port in the computer. To correctly configure a
port means to set up a serial port as a File name (COM 1, COM2),
communication speed (Baud rate), and protocol characteristics: RTS flow control, Stop bits
and Parity scheme.
When the Parity checking enabled check box is not checked, it will force the server to
ignore the parity bits in the message.
1 Select Address Space Edit New Port
You can also use [Ctrl+T] as the shortcut to create a Port.
17
Port Define Operation platform
Item
Description
Specify a name of the new device. The special
symbols such as +/*- are not allowed.
Define the Port number.
The value must match the Baud rate value of Omron
PLC.
The value must match the Data length value of Omron
PLC.
The value must match the Stop bit value of Omron
PLC.
The value must match the Parity scheme value of
Omron PLC.
Also, check Parity checking enabled
18
Particular setting will be required if the device works
under RTS flow control. If not, please choose Disable
Select this item if the device works under CTS for
output flow control. If not, just skip this item.
All of the devices under this port will in the simulation
mode. Simulation function will simulate the real
communication situation between devices and OPC
Server.
Apply: Saves all changes specified in the properties
dialog box.
Reset: Undo the setting configuration
Add New: Add the new Port
19
2-1-2 Device Define
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.
1. Select Port Edit New Device
2. You can also press [Ctrl+D] as the shortcut to create a Device.
20
Device define Operation Platform
Item
Description
Specify a name of the new device. The special
symbols such as +/*- are not allowed.
The value must match the Host Link unit number.
Device Type: Host Link
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.
21
Timeouts to Suspend: The number of
consecutive read/write attempts that
timeout before the OPC server will
suspend communication with the device.
Suspend Period: Amount of time the
OPC server will wait before attempting to
reconnect to the device.
Note: The Suspend Period setting can be
decreased to reconnect faster with a
device that has been restarted, but this
will cause the OPC server to generate
more network traffic while a device is
down.
The server tries to optimize the communication
with the devices by requesting as much data
as possible in one message. Consecutive
registers are merged together into one request
for efficiency.
Define the Parameters. You could do it in detail
in the [ Device Parameters ] on the Tree View
All of the groups and data items under this device are
in the simulation mode. Simulation function will
simulate the real communication situation between
devices and OPC Server.
Please see
[Link].
Apply: Saves all changes specified in the properties
dialog box.
Reset: Undo the setting configuration
Add New: Add the new Device
22
2-1-3 Folder Define
Folders can be used to group items logically. You can configure as many folders as
required. Each folder can even have subfolders. The 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]
23
Folder define Operation Platform
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
[Link]
.
Apply: Saves all changes specified in the
properties dialog box.
Reset: Undo the setting configuration
Add New: Add the new Folder
24
2-1-4 Data Item Define
A Data Item represents a register in the device or a range of registers. A symbolic
name and description is associated with the data item. An OPC client can obtain the data
item description.
The actual OPC item name (tag) is compounded from the Address Space root, the names
of the folder and its subfolders, and the name of the data item. Data items can be located
in any folder, even in the root of the address space.
The steps to create the data item (tag) are as below.
Select [Device] or [Folder], Press the right button of the mouse, it will show you the Popup
menu. Then select New Data Item
25
Then define the data Items, the picture is as below
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: IO Relay, DM Area, Holding
Relay, etc
Look for more information in Chapter 1.
Data Type
IO Relay Bool
DM Area IntUINT
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 [Link] gray column
shows the decimal value.
26
Read Only does not allow you to save new value into
OPC Client.
If the data type is UINT, you can choose the number of
bits and analyze the value and put into this item. Bit#
means the starting Bit No. Count means the constant
Bits number.
To get the data value converted according to a
prescribed form, choose one of the predefined or
user-defined conversions.
Simulation function will simulate the real
communication situation between devices and OPC
Server. Executing Monitor View or press F12 as the
shortcut, the Tag Value will keep changing for testing
the connecting situation.
To test the client functionality, choose a Simulation
Signal from the Signal drop-down list and check the
Simulate check box. All levels in the Address Space
(port, device, folder, data item) support the process of
simulation (Simulate check box). The parent list in the
tree is superior; it has a higher priority when deciding to
simulate the data item or not. In other words, a data
item is simulated, if it itself has a simulation selected, or
if any of its parents has the Simulate check box
checked. (It may be simulated even if its Simulate
check box stays unchecked)
If checked, the data item will offer constant parameter
value, because Manual setting is of the highest priority.
The changes in the configuration take effect only when
the server reloads the configuration (on startup).
Apply: Saves all changes specified in the properties
dialog box.
Reset: Undo the setting configuration
Add New: Add the new Data Item
27
Appendix A Cable of wiring
28
ALL Series (CPU Port)/(RS232)
29
C Series (RS232)
30
C Series (RS422)
31
CJ Series (RS232)
32
CJ Series (RS485)
33
CJ Series (RS422)
34
CPM1/2A Series (CPM1-CIF01)/(RS232)
35
CPM1/2A Series (CQM1-CIF02)/(RS232)
36
CPM1/2A Series (CPM1-CIF11)/(RS422)
37
CPM1L/H/E Series (CP1W-CIF01)/(RS232)
38
CPM1L/H/E Series (CP1W-CIF11/12)/(RS485)
39
CPM1L/H/E Series (CP1W-CIF11/12)/(RS422)
40
CPM2C Series (CPM2C-CIF11)/(RS422)
41
CQM1H Series (CQM1H-CIF12)/(RS422)
42
CS1 Series (RS232)
43
CS1 Series (RS485)
44
CS1 Series (RS422)
45
CV Series (CPU Host Link Port)/ (RS232)
46
CV Series (CPU Host Link Port)/ (RS422)
47
CV Series (CV500-LK201/Port1)/(RS232)
48
CV Series (CV500-LK201/Port2)/ (RS232)
49
CV Series (CV500-LK201/Port2)/ (RS422)
50
Alpha Series (RS232)
51
Alpha Series (RS485)
52
Alpha Series (RS422)
53