INAT OPC Server Manual
INAT OPC Server Manual
���������������������������������������������
Getting Started
I NAT
ETHERNET
O PC S E R V E R
OPC Server
Manual Version 0706-003ek
COPYRIGHT
The contents of this manual and the related software are the property of INAT
GmbH. This information is subject to the conditions of a general or special
licence agreement (i.e., one-time licence) and may only be used or copied in
accordance with the specifications of this agreement.
The information in these documents is not binding.
Changes to the contents can occur at any time without prior notification. Subject
to change due to technological advances.
I M P O R TA N T N O T E S
You will find the recent version of this manual at:
www.inat.de
_______________________________
Windows 98, ME, 2000, NT, XP and 2003 are registered trademarks of the
Microsoft Corp.
SCOPE OF S U P P LY
Before getting started with INAT OPC Server, check the following list of ele-
ments that should be contained in the OPC Server package.
• CDROM with
INAT OPC Servers
INAT Demo Software
INAT Manuals
OPC Test Client
• Manual „Getting Started“
• Optional Dongle
• Optional Certificate
CONTENT
1 Installation and Licencing ..........................................................................6
1.1 Installation of the OPC Server.................................................................6
1.2 Installation of the H1 driver ....................................................................8
1.3. Installation of the Server as Service.......................................................8
1.4 Licencing the OPC Server.......................................................................9
1.4.1 Licencing with Dongle ...................................................................9
1.4.1 Licencing with licence confirm code ..............................................9
1.5 Updating and Upgrading your OPC Server ........................................... 11
1.5.1 Update ........................................................................................ 11
1.5.2 Upgrade....................................................................................... 11
2 Configuration .............................................................................................14
2.1 General ................................................................................................14
2.2 Setting up a S7 connection ...................................................................20
2.2.1 S7 connections: General .............................................................20
2.2.2 Special Settings for S7 connections ............................................22
2.3 Setting up a S5 connection ..................................................................25
2.3.1 S5 connections: General .............................................................25
2.3.2 Speciel Settings for S5 Connections ...........................................27
2.3.3 Setting up connections on PLC side (S5 CP) .............................28
2.3.4 Programming handling blocks .....................................................40
2.4 Setting up a Modbus connection ..........................................................41
2.5 Setting up a NetLink / IBHLink connection ...........................................43
2.6 Setting up a Send / Receive connection ..............................................44
2.7 Setting up a PLC-5 connection ............................................................46
2.8 Setting up a MELSEC-Q connection ....................................................47
3 Client Settings ..........................................................................................50
3.1 OPC Test Client ....................................................................................50
CHAPTER 1:
I N S TA L L AT I O N
1 INSTALLATION AND LICENCING
1.1 Installation of the OPC Server
1. If you received your OPC Server from the INAT website (Download Area),
please refer to point 5. If you received the OPC Server on a CDROM,
insert the CDROM „OPC Server“.
2. Insert the CDROM „OPC Server“. If autostart is not activated in your PC,
use start.exe or index.html. If autostart is activated, the following dialogue
appears:
Chapter 1: Installation and Licencing
Page 6
4. Click the OPC Server Ethernet.
5. Save the file in a directory of your choice.
6. Run the .exe file. Be sure that there are no Windows programs running.
7. Select the installation language and accept the licence conditions. Select
the directory, where the file shall be saved. Default: C:\Programs\INAT\
OPC Server Ethernet\
8. Select complete, minimal or user installation.
9. After the OPC Server installation, the Hardlock Device Driver and the OPC
Core Components are installed - if selected! If using a OPC Server, that
Note:
If you have already installed and licenced
a server and change the server type your
licence expires. You need a new licence
confirm code or a new dongle!
11. If you do not licence the OPC Server, it runs for 72 hours after every start
or restart.
Page 7
1.2 Installation of the H1 driver
Note
During the installation of the OPC Server
the H1 driver will automatically be copied
to the hard disc. A PC-H1 subdirectory will
be created in the installation directory of the
Server.
default: C:\Programs\INAT\OPC Server
Ethernet\pch1
The Server will be registered in the registry as service, that starts „manually“.
With the next start of the server, it runs as service. In order to run the service
automatically, change the start type in the system control.
Page 8
1.4 Licencing the OPC Server
Note
Before licencing your OPC Server, the H1
driver has to be installed (this pertains only
OPC Servers, that support the H1 protocol)
After successful tests with the unlicenced test version install the Server at
the final hardware location. Select „Help“ in the menu and then „Licen-
cing“.
Compare the entries under Product and Order No. with your ordering
data.
Enter your company name and the user name in order to get a unique
licence.
Use the button Clipboard. The data for the licencing request are now
available in the clipboard for pasting them to your favorite Email program.
Note: The request code is unique for your system!
Page 9
Send the Licence Request Code
via Fax to 0911/54427-27 or
via Email to info@inat.de.
Due to the contract with INAT you will get an unlimited Licence Confirm
Code or a limited Licence Confirm Code for test purposes. Under Licence
the following messages are possible:
Page 10
1.5 Updating and Upgrading your OPC Server
INAT OPC Servers are improved and extended with helpful features on a regu-
lar basis. At the Download Area of the INAT website, the current version of the
OPC Servers is available. If you are already licensee of a OPC Server licence
and want to use the latest version by replacing it with your earlier version,
please determine, if it is an Update or an Upgrade.
1.5.1 Update
Updates are free. If the version number of your OPC Server begins with the
same number as the version number of the current version on the INAT Web
Site, it is an Update.
Example:
1.5.2 Upgrade
Upgrades are not free. If the version number of your OPC Server begins with
another number than the version number of the current version in the Internet, it
Example:
To Upgrade, install the OPC Server (proceed as normal). You will then receive
the new license confirm code or a new dongle from us.
NOTE!
You find the version number of your Server in
the menu Help >About... in your Server.
Page 11
Page 12
Chapter 1: Installation and Licencing
CHAPTER 2:
C O N F I G U R AT I O N
2 CONFIGURATION
2.1 General
The configuration of the INAT OPC Server is very easy.
Start the Server via Start > Programs
Page 14
Name: Enter a connection name.
Type of Connection: Here you select the desired transport pro-
tocol in the Ethernet network: TCP/IP or H1
(select TCP/IP when using RFC1006)
Type of Protocol: Here you select the used application
protocol S5, S7, Modbus, NetLink, PLC-5 or
MELSEC-Q
If NO application protocol is used (raw data)
select „Send / Receive“.
Page 15
General connection parameters
Read and Write through one Connection
With all application protocols (exception S5 protocol) it is possible to
read and write through one connection. This is the default setting.
There is only one port for read and write required when communica-
ting via TCP/IP. There is only one TSAP for read and write required
when communicating via RFC1006 or H1.
Exception: S5 protocol
Siemens S5 CPs, It is NOT POSSIBLE to read and write through
INAT S5-TCP/IP one connection. One connection is required for the
write job and another connection is required for the
read job.
one port number (or TSAP) for read and one
port number (or TSAP) for write is required.
echolink It is possible to read and write through one
connection.
Page 16
General connection parameters
Connection active / passive
Select the type of connection establishment (i.e. which station is to
initiate connection establishment). At regular intervals, the active
station attempts to set up the appropriate connection. There must not
be the same entry on both sides of the connection.
Special Settings: Read Optimisation
With activation of the radio button Read optimization, the OPC
Server combines data bytes to blocks of a size, which can determine
under Bytes for a new block. This procedure is very helpful if large
gaps exist in the datablock structure of your PLC.
Example: If you enter the value 100 bytes, all data ranges of 100
bytes and bigger are ignored by the Server, if they contain no data.
In this way you are able to adjust the read procedure to the data
structure of your PLC.
Page 17
Special TCP/IP Parameters
Port for Read, Port for Write, Port for Unsolicited
The port number is a 16-bit address from 0 to 65535. It specifies the
channel via which the applicable connection is to be established. You
should use a port between 1024 and 65535. On both sides of the
connection, the port number must be the same. Port for Read, Write
and Unsolicited should be addressed differently.
Life Acks / Life Data Acks
This item „Life Acks / Life Data Acks“ activates the connection
monitoring function which is restricted in many socket libraries. These
telegrams are used to transfer the connection status to process
visualization.
The default setting of the „Life Acks“ and „Life Data Acks“ is activated.
Protocol TCP/ UDP
TCP is a secure protocol with checksum and confirmation. UDP is
not a secure protocol. It is handled by datagam services. The TCP
protocol should be selected for normal data transmission.
High Performance Protocol
(together with S7, Modbus, PLC-5 and MELSEC-Q)
With activation of the High Performance Protocol, read and write
requests are intelligently converted into a single field access to the
target device. This reduces the number of data packets that must
be transported over the network. This means greater shares of user
data, better utilization of data packets and reduction of the network
load. The server works particularly fast in this mode.
Note: The S7-TCP/IP CP does not support the High Performance
Protocol. It may not be activated.
Chapter 2: Configuration
Page 18
Special H1 Parameters
Destination: Ethernet Address, Card
If the connection is set „active“, enter the Ethernet address of the
partner station in the H1 network. The Ethernet address has a length
of 6 Bytes. Enter the number of the Ethernet card, that is connected
with the ISO (H1) network.
Line Type
„Line Type“ specifies whether the telegrams of this connection will
be sent to all stations (i.e., broadcast) or only to certain groups of
stations (i.e., multicast), and whether a secure (i.e., normal) or non-
secure connection is to be used to transfer the data (i.e., datagram).
„Normal“ is usually set here.
Priority
„Line Priority” is a value from 0 (i.e., highest priority) to 4 (i.e., lowest
priority). 0 and 1 are the so-called express priorities while 2 and 3 are
the normal priorities. Priority 4 is seldom used since the connection
must be reestablished for each sending job. If not used often, this
priority puts less strain on the network load than the other priorities
since the line is not monitored (i.e., the connection is disconnected
after each sending job). Remember that the express priorities do not
increase the transmission speed any more than the normal priorities.
Chapter 2: Configuration
Page 19
2.2 Setting up a S7 connection
Reading of data from a S7 PLC and writing of data into a S7 PLC (Layer 7
communication) is handled via:
not parameterizable connections
Chapter 2: Configuration
parameterizable connections
Page 20
NOT PARAMETERIZABLE CONNECTIONS
• Only on the OPC side a connection must be paramete-
rized, NOT on the PLC side.
• Standard connections are used: these standard con-
nections use standard TSAPs / standard Ports.
• There is only a limited number of standard connections
available. If they are not sufficient, „parameterizable
connections“ must be used.
• Standard connections are available with Siemens CPs
and with INAT S7-TCP/IP-CP.
• Standard connections with Siemens CPs are handled
via RFC1006 or H1.
• Standard connections with INAT S7-TCP/IP are
handled via TCP/IP with PLC Header.
PARAMETERIZABLE CONNECTIONS
• The connection must be parameterized on both sides
of the communication (one connection in the OPC
Server AND one connection in the S7-CP).
• If the communication is handled via echolink, parame-
terizable connections are required.
Normally the standard connections are sufficient. That´s why in this manual only
this connection type is explained. Please refer to the Online Help of the OPC
Server or the Manual to learn more about „parameterizable connections“.
Chapter 2: Configuration
Page 21
2.2.2 Special Settings for S7 connections
RFC1006
With the activation of RFC1006 the H1 frames, which have to be trans-
mitted, are implemented in a TCP/IP-frame. This special TCP/IP channel
enables you to communicate with the Siemens CPs of the S5 and S7
series.
Page 22
Special Parameters for S7 connections
TSAPs – Special rules for S7
With „not parameterizable connections“(= standard connections), stan-
dard TSPAs are used:
First group: contains device codes, for which ressources are provided
in the S7.
01 PG or PC
02 OS (MMI device)
03 Simatic S7 PLC
Second group: contains the addresses of these components
Left character Rack number multiplied by 2.
(Bit 7...4)
Right character Slot (< 16) of the CPU. For S7-300 always slot 2 is
(Bit 3...0) used
00 Direct addressing
Examples:
01 00 PC with OPC Server; direct addressing
03 02 OPC communication with S7 CPU in rack 0, slot 2
03 43 OPC communication with S7 CPU in rack 2, slot 3
Chapter 2: Configuration
Standard TSAPs must be used on PLC side (remote TSAP of the OPC
Server station); the own TSAP (local TSAP of the OPC Server station)
is arbitraty, but should contain the same format (e.g. 01 01)
Note: Enter the standard TSAPs in the HEX field! The remote
TSAP of S7 connections is always 03 XY. X is the rack number
multiplied by 2 and Y is the slot of the CPU.
Page 23
Special Parameters for S7 connections
Port for Read and Write
When using INAT S7-TCP/IP with standard connections, use the standard
port 991.
Page 24
2.3 Setting up a S5 connection
Chapter 2: Configuration
Page 25
on the local side and the local TSAP on the remote side must be the same.
If there is a echolink used (S5 PLC is connected to the echolink), it is possible
to read and write through one connection.
Page 26
2.3.2 Speciel Settings for S5 Connections
INAT S5 CPs as well. For the mode „Unsolicited Data from PLC“ the
connection establishment active or passive can be chosen indepen-
dent from the connection establishement of read and write connec-
tions.
Fetch on Event
The Fetch on Event protocol is activated via the read connection.
Data from the PLC will no longer be polled cyclic, but transferred if a
event occurs.
Note: This option can only be used with the INAT S7-TCP/IP CP
and S5-TCP/IP CP.
Page 27
Confirm your entries with „OK“.
The connection in the OPC Server is parameterized now.
Exit the OPC Server and start it again to activate the changes.
The corresponding connections of the read connection and of the Write
connection have to be parameterized on the other side (PLC side, S5
CP).
See that the corresponding Ports / TSAPs are used.
Examples S5 Connection
S5-TCP/IP OPC communication via TCP/IP see chapter 2.2.3.1
with PLC Header
Siemens CP OPC communication via TCP/IP see chapter 2.2.3.2
with RFC1006 Header
Siemens CP OPC communication via ISO (H1) see chapter 2.2.3.3
Chapter 2: Configuration
Page 28
2.3.3.1 OPC communication via TCP/IP with PLC Header: S5-TCP/IP
In the INAT parameterization software, select Connection > New. Select
the network and the type of protocol S5.
Select the job type „Fetch Passive“ for the read connection. Confirm with
„OK“.
The port number of the Fetch Passive connection in the S5 CP must be
the same like the port for read in the OPC connection.
Chapter 2: Configuration
Page 29
Settings in OPC Server
Settings in S5-TCP/IP
Chapter 2: Configuration
Page 30
Along the lines of the Fetch passive connection, a Write passive connec-
tion must be parameterized in the S5-TCP/IP.
Select the job type „Write Passive“ for the write connection. Confirm with
„OK“.
The port number of the Write Passive connection in the S5 CP must be
the same like the port for write in the OPC connection.
Chapter 2: Configuration
Page 31
Settings in OPC Server
Settings in S5-TCP/IP
Page 32
2.3.3.2 OPC communication via TCP/IP with RFC1006 (Siemens CP)
In Step 5 parameterize a Fetch passive connection and a Receive pas-
sive connection.
Settings in Step 5
Chapter 2: Configuration
Page 33
The „local TSAP“ of the Fetch passive connection in the S5-CP (in this example
fetch_s5) and the „TSAP for Read“ in the OPC connection must be the same.
The „remote TSAP“ of the Fetch passive connection in the S5-CP (in this
example tsappc01) and „Own TSAP“ in the OPC connection must be the same.
Chapter 2: Configuration
Page 34
Along the lines of the Fetch passive connection, a Write passive connec-
tion (Receive passive) must be parameterized in the S5-CP.
Settings in Step 5
Chapter 2: Configuration
Page 35
The „local TSAP“ of the Write / Receive passive connection in the S5-CP (in
this example write_s5) and the „TSAP for Write“ in the OPC connection must be
the same.
The „remote TSAP“ of the Write / Receive passive connection in the S5-CP (in
this example tsappc01) and „Own TSAP“ in the OPC connection must be the
same.
Chapter 2: Configuration
Page 36
2.3.3.3 OPC communication via ISO (H1) (Siemens CP1430)
In Step 5 parameterize a Fetch passive connection and a Write / Receive
passive connection.
Einstellungen in Step 5
Chapter 2: Configuration
Page 37
The „local TSAP“ of the Fetch passive connection in the S5-CP (in this example
FETCHXXX) and the „TSAP for Read“ in the OPC connection must be the
same.
The „remote TSAP“ of the Fetch passive connection in the S5-CP (in this
example OPCSERVV) and „Own TSAP“ in the OPC connection must be the
same.
Chapter 2: Configuration
Page 38
Along the lines of the Fetch passive connection, a Write / Receive pas-
sive connection must be parameterized in the S5-CP.
Settings in Step 5
Chapter 2: Configuration
Page 39
The „local TSAP“ of the Write passive connection in the S5-CP (in this example
WRITEXXX) and the „TSAP for Read“ in the OPC connection must be the
same.
The „remote TSAP“ of the Write passive connection in the S5-CP (in this
example OPCSERVV) and „Own TSAP“ in the OPC connection must be the
same.
Now you can access process data with your OPC client. Read chapter 3
for more details.
Chapter 2: Configuration
Page 40
2.4 Setting up a Modbus connection
Page 41
Special Settings for Modbus connections
Port for Read, Port for Write
The port number is the channel number via which a connection is
identified. For Modbus communication the port 502 is used as default.
The port can be changed. Be sure to use the same port on both sides
of the connection.
Page 42
2.5 Setting up a NetLink / IBHLink connection
NetLink is an application protocol to read data from S7 PLCs / write data into S7
PLCs via a NetLink / IBHLink Adapter. Read and write jobs can be handled via
one connection.
Page 43
2.6 Setting up a Send / Receive connection
With Send / Receive communication, data are transferred without application
header i.e. raw data are transferred.
The communication partner may be any station, that supports the Send /
Receive Direct interface.
Page 44
TCP/IP Parameters for Send / Receive connections
ISO-on-TCP (RFC1006): Local TSAP, remote TSAP
TSAP are required with H1 connections and with RFC1006 connec-
tions.
Local TSAP
Your own TSAP (Transport Service Access Point) specifies the con-
nection address in the system by which data is to be exchanged.
Remote TSAP
Remote TSAP for Read, Remote TSAP for Write and TSAP for Unso-
licited specifies the connection address of the other system. Remote
TSAP for Read, for Write and for Unsolicited should be addressed
differently.
Note
For Send / Receive communication a special
Item Syntax is used. Please refer to the
Online help to learn more about that Syntax.
Page 45
2.7 Setting up a PLC-5 connection
Read and write jobs can be handled via one connection. If the standard port is
used (2222), no parameterization is required on PLC side.
Note
For PLC-5 communication a special Item
Syntax is used. Please refer to the Online
help to learn more about that Syntax.
Page 46
2.8 Setting up a MELSEC-Q connection
MELSEC-Q is an application protocol to read data from Mitsubishi Q-Series
PLC / write data into Mitsubishi Q-Series PLC. Read and write jobs can be
handled via one connection. The connection must be parameterized on both
sides of the communication (one connection in the OPC Server and one con-
nection in the MELSEC-Q).
Note
For MELSEC-Q communication a special
Item Syntax is used. Please refer to the
Online help to learn more about that Syntax.
Page 47
Page 48
Chapter 2: Configuration
CHAPTER 3:
CLIENT SETTINGS
3 CLIENT SETTINGS
3.1 OPC Test Client
You have parameterized the connection in the OPC Server and (if required)
in the PLC ==> you can access data with your OPC Client. A OPC Test Client
is part of the scope of supply of the OPC package. This Test Client has been
installed together with the Server.
Start the OPC Test Client with Start > Programs
With Server > Connect you establish the connection between Client and
Server
Page 50
Note
Access Path: enter the name you have
parameterized as connection name in the
OPC Server.
Item: enter the Item for the required data.
Note
Please refer to the Online Help for a detailed
description of the Item Syntax.
Chapter 3: Client Settings
Page 51
INDEX
A L
Access Path Definitions ...................... 14 Licencing .............................................. 9
Allow Cyclic Poll ................................. 15 Local TSAP ......................................... 16
C M
Client Settings .................................... 49 MELSEC-Q connection ...................... 47
Configuration ...................................... 13 Modbus connection ............................ 41
General ........................................... 14 MPI Address PLC ............................... 43
Modbus connection ......................... 41
NetLink / IBHLink connection ........... 43 N
S7 connection ................................. 41
Send / Receive connection ............. 44 NetLink / IBHLink connection . 43, 46, 47
Connection active / passive ................ 17 No Header .......................................... 17
Copyright .............................................. 2
CP1430 ............................................... 37 O
E OPC Test Client .................................. 50
Page 52
T
TCP/IP Parameters ............................ 17
Test Client ........................................... 50
TSAP ................................................ 16
Rules for S7 .................................... 23
U
Unit ID ................................................ 41
W
Write Access to PLC Permitted .......... 15
Index
Page 53
WHICH PROTOCOLS ARE SUPPORTED?
TCP/IP
RFC1006
PLC Header
ISO (H1)
S7 Protocol
S5-AP
Modbus on TCP
MELSEC-Q
PLC-5
Send/Receive
NetLink