Documente Academic
Documente Profesional
Documente Cultură
Abstract
This document describes how a Wago Ethernet bus coupler (Ref.: 750-342) can be accessed
from OPC servers. The principles of the coupler Modbus TCP/IP interface are described as
well as the configuration of several Modbus TCP/IP OPC servers.
1 Introduction
The Wago company offers a large set of bus couplers and controllers (See [1]). These devices
can be integrated in control systems by means of OPC servers. The connected remote
inputs/outputs will then be accessible from any OPC clients in particular from SCADA
systems such as ETM’s PVSS or National Instrument’s Labview.
The configuration of such OPC servers requires to understand, on the one hand, the way the
bus coupler process image is built and made available to Modbus masters. On the other hand,
one has to handle the OPC servers configuration to map the OPC Items with the proper
Modbus functions and address locations.
There are many Modbus TCP/IP OPC servers available on the market, the two servers
described hereafter are the ones currently recommended at CERN. The Applicom OPC server
is very easy to use and supports a large set of fieldbuses and PLC protocols. The version 3.4
however requires the use of dedicated Ethernet card for the TCP/IP based PLC protocols. The
Schneider OFS does not require any Ethernet card but is focused on the Schneider protocols.
Final page 1
Accessing the 750-342 from OPC Getting started with the Wago Ethernet coupler and OPC.
1 Introduction Version/Issue: 1.3/0
More detailed information an be found on the IT-CO-FE web site [5] or on the respective
company web sites [6][7].
In order to validate the OPC servers setting, several OPC clients have been used:
• Applicom OPC client, version 3.4.1.2;
• Schneider OFS client, version 2.2.1
• National Instrument server explorer, version x.x
This is not the purpose of this document to detail the use of these OPC clients. For more
information please refer to [5].
Module Channels
Reference Type Label/Location Label
C DO2
B DO3
D DO4
Right AI2
Right AI4
Right AO2
Right AO4
Right DO6
Right DO8
Right DO10
page 2 Final
Accessing the 750-342 from OPC Getting started with the Wago Ethernet coupler and OPC.
2 Process image Version/Issue: 1.3/0
2 Process image
As for all Wago bus couplers, the process image is automatically built according to the
hardware setup of the bus coupler.
2.1 HW Setup
The I/O modules of Wago (750 family) systems can be assembled in any order (See [1]). The
order of the DI (resp. DO, AI, AO) modules determines the way process image is built. For the
750-342 the process image consists in four parts which correspond to the Modbus four
primary tables (See [2]):
1. the input bits table;
2. the output bits table;
3. the input registers table;
4. the output registers table.
The process output image (bits) will contain all the DO channels, the process output (words)
will contain all AO channels followed by extra words combining the previously mentioned
DOs.
Final page 3
Accessing the 750-342 from OPC Getting started with the Wago Ethernet coupler and OPC.
2 Process image Version/Issue: 1.3/0
The process input image (bits) will contain all the DI channels and from the offset 0x0200 the
copy of the DO channels. The process input (words) will contain all AI channels followed by
extra words combining the previously mentioned DIs. From the offset 0x0200 it will as well
contain a copy of the POI.
page 4 Final
Accessing the 750-342 from OPC Getting started with the Wago Ethernet coupler and OPC.
2 Process image Version/Issue: 1.3/0
Address Input
0x0000 AI1
0x0001 AI2
0x0002 AI3
0x0003 AI4
0x0004 AI5
0x0005 AI6
0x0200 AO1
Final page 5
Accessing the 750-342 from OPC Getting started with the Wago Ethernet coupler and OPC.
2 Process image Version/Issue: 1.3/0
Address Input
0x0201 AO2
0x0202 AO3
0x0203 AO4
Address Input
0x0200 DO1
0x0201 DO2
0x0202 DO3
0x0203 DO4
0x0204 DO5
0x0205 DO6
0x0206 DO7
0x0207 DO8
0x0208 DO9
0x0209 DO10
Address Output
0x0000 AO1
0x0001 AO2
0x0002 AO3
0x0003 AO4
page 6 Final
Accessing the 750-342 from OPC Getting started with the Wago Ethernet coupler and OPC.
2 Process image Version/Issue: 1.3/0
Address Output
0x0000 DO1
0x0001 DO2
0x0002 DO3
0x0003 DO4
0x0004 DO5
0x0005 DO6
0x0006 DO7
0x0007 DO8
0x0008 DO9
0x0009 DO10
2.2 SW Setup
The bus coupler should be given an IP address. This requires the use a bootp server, the
recommended approach is to use the CERN service: once the module is declared in the CERN
network database (wwwcs.cern.ch), the field “manufacturer” should be set to
“WAGO/Bootp”. One could also use a independent bootp server as described in [3].
Once the bootp server is ready to provide the coupler with an IP address, the setup of the
coupler can be tested with simple Modbus Master such as the WinTECH ModScan32
application (See [3]). This tool supports the Modbus functions 01 to 06, 15 and 16. For
information about the general setup of this tool please refer to the WinTech site [8].
513 6 01: Coil Status Values of DO1, DO2, DO3, DO4, DO5, DO6
FC1 PII (Bit) accessed.
513 6 02: Input Status Values of DO1, DO2, DO3, DO4, DO5, DO6
FC2 PII (Bit) accessed.
1 6 04: Input Register Values of AI1, AI2, AI3, AI4, AI5, AI6
FC4 PII (Word) accessed.
Final page 7
Accessing the 750-342 from OPC Getting started with the Wago Ethernet coupler and OPC.
3 OPC servers setup Version/Issue: 1.3/0
1 4 Force multiple coils On, Off, On, Off DO1 and DO3 switched on
FC DO2 and DO4 switched off
513 4 Force multiple coils On, Off, On, Off DO1 and DO3 switched on
FC DO2 and DO4 switched off
The applicom OPC server v3.4 requires the use of the Applicom PCI2000ETH card to access
Modbus TCP IP devices.
page 8 Final
Accessing the 750-342 from OPC Getting started with the Wago Ethernet coupler and OPC.
3 OPC servers setup Version/Issue: 1.3/0
The card is configured with the PCCONF applicom tool (See example in [4]):
• Enter the Card IP address;
• Declare the coupler as a server nodes;
• Enter the IP address of the coupler.
When declaring the coupler, it is recommended to select the “generic modbus” option
instead of the “TSX Premium”. This has an impact on the available addressing modes.
Figure 3 Addressing modes for a “Generic Modbus” device (copied from Applicom help files)
When the Generic Modbus option is selected, Digital (resp. Analog) Inputs are read using the
BI (resp. WI) tag prefix, Digital Outputs are read using the B (resp. W) tag prefix. There is no
ambiguity.
Figure 4 Addressing modes for a “TSX Premium” device (copied from applicom help files)
When the “TSX Premium” option is selected, both Digital (resp. Analog) Inputs and outputs are read using
the %MX (resp. %MW ) tag prefix. to avoid the ambiguity on the I/O addressing, the 0x0200 will be applied for
reading and writing to DO (resp. AO).
Final page 9
Accessing the 750-342 from OPC Getting started with the Wago Ethernet coupler and OPC.
3 OPC servers setup Version/Issue: 1.3/0
The Applicom ReadWait and WriteWait tools an then be used to test the coupler access from
the card.
B0 6 READPACKIBIT Irrelevant
page 10 Final
Accessing the 750-342 from OPC Getting started with the Wago Ethernet coupler and OPC.
3 OPC servers setup Version/Issue: 1.3/0
One shall first define a symbol file for the process data the would like to make available
through the OPC server. The file will be a csv file with two columns: symbol, descriptor
(address syntax) detailed in the table above.
Symbol Descriptor
504-A B0
504-C B1
504-B B2
504-D B3
514-Left B4
514-Right B5
509-Left B6
509-Right B7
509-Left B8
509-Right B9
504-A-r BI512
504-C-r BI513
504-B-r BI514
504-D-r BI515
514-Left-r BI516
514-Right-r BI517
509-Left-r BI518
509-Right-r BI519
Final page 11
Accessing the 750-342 from OPC Getting started with the Wago Ethernet coupler and OPC.
3 OPC servers setup Version/Issue: 1.3/0
Symbol Descriptor
509-Left-r BI520
509-Right-r BI521
456-1-UL WI0
456-1-UR WI1
456-2-UL WI2
456-2-UR WI3
550-1-A-r WI512
550-1-C-r WI513
550-2-A-r WI514
550-2-C-r WI515
PackDO-r WI516
550-1-A W0
550-1-C W1
550-2-A W2
550-2-C W3
PackDO W4
From the list above, the item 504_A is used to write in DO1, the 504_A_r is used to read back t
written value.
The OFS server does not require any special Ethernet card to access Modbus TCP IP devices.
The server is configured with a dedicated tool, “OFS Configuration tool”.
One shall first define a symbol file for the process data the would like to make available
through the OPC server. The file will be a csv file with three columns: descriptor, name,
comment.
The descriptor has the syntax described for applicom TSX Premium. The address will start to
1 (resp 0) if the option TSX is chosen (not chosen) later
The name can be anything (space should e avoided)
The comment are visible when using the OFS Client
page 12 Final
Accessing the 750-342 from OPC Getting started with the Wago Ethernet coupler and OPC.
3 OPC servers setup Version/Issue: 1.3/0
%MX513 504-C
%MX514 504-B
%MX515 504-D
%MX517 514-Right
The next step are done with the OFS configurator tool.
1. In the options set up your communication parameter (voir avec JR)
2. Create a new alias for the coupler, WATA1GS01
3. Associate he driver
1. Modbus TCP/IP
2. Enter the address or the name if a DNS if available
3. Select the addressing mode (e.g. TSX)
4. Associate the symbol file
5. Close the tool
Warning: The above steps will be taken in effect the next time the OFS will be started.
Final page 13
Accessing the 750-342 from OPC Getting started with the Wago Ethernet coupler and OPC.
4 References Version/Issue: 1.3/0
4 References
1 Wago manual on the Ethernet bus coupler and bus controller, 750-129/000-002
version 2.0.0, URL:
http://www.wago.com/wagoweb/documentation/navigate/nm0me__e.htm;
2 Modbus specifications, URL: http://www.modicon.com/openmbus/;
3 Wago France, Mise en service des stations Wago 750-342 et 750-842., URL:
http://itcofe.web.cern.ch/itcofe/
4 Wago France, Mise en service des stations Wago 750-342 et 750-842 avec carte
Applicom PCI2000ETH., URL:
5 IT-CO-FE OPC support Web site: URL:
http://itcofe.web.cern.ch/itcofe/Services/OPC/welcome.html;
6 Applicom Web site URL: http://www.applicom-int.com/
7 Schneider Web site URL: http://public.modicon.com/
8 WinTECH, URL: http://www.win-tech.com
This document has been prepared using the SDLT Single File Template that have been prepared by the IPT
Group (Information, Process and Technology), IT Division, CERN (The European Laboratory for Particle
Physics). For more information, go to http://framemaker.cern.ch/.
page 14 Final