Advantech Webaccess Device Driver Guide Wago 750 Ethernet Tcp/Ip Modbus
Advantech Webaccess Device Driver Guide Wago 750 Ethernet Tcp/Ip Modbus
Advantech Webaccess Device Driver Guide Wago 750 Ethernet Tcp/Ip Modbus
Table of Contents
Wago 750 Ethernet TCP/IP (Modbus) Device Driver Guide 1
1. Wago 750 TCP/IP (Modbus) Communications 2
1.1 Introduction to Wago 750 Ethernet .................................................. 2
1.1.1 Introduction to Modbus Ethernet /TCPIP ............................. 3
1.1.2 Modbus Ethernet TCP/IP .................................................... 4
1.1.3 Ease of Use: Parameters .................................................... 4
1.1.4 Redundant Comports.......................................................... 5
1.1.5 Modbus Protocols ............................................................... 5
1.1.5.1 Modbus Ethernet / TCP/IP ................................................ 5
1.2 Configure Wago 750 device ............................................................ 5
1.3 TCPIP Comport Properties .............................................................. 7
1.3.1 Comport Number ................................................................ 7
1.3.2 Description ......................................................................... 7
1.3.3 Scan Time .......................................................................... 7
1.3.4 Timeout .............................................................................. 8
1.3.5 Retry Count ........................................................................ 9
1.3.6 Auto Recover Time ............................................................. 9
1.3.7 Backup Port ........................................................................ 9
1.4 Device Properties – Wago 750 ...................................................... 11
1.4.1 Device Name .................................................................... 12
1.4.2 Description ....................................................................... 12
1.4.3 Unit Number ..................................................................... 12
1.4.4 Device Type ..................................................................... 13
1.4.5 Com Port .......................................................................... 13
1.4.6 Unit Number ..................................................................... 13
1.4.7 Device Address ................................................................ 13
1.4.7.1 Multiple Devices with same Device Address.................... 13
1.5 Configure a Tag ............................................................................ 14
1.6 Step by Step Guide ....................................................................... 15
1.6.1 Task 1: Configure a Communication Port .......................... 15
1.6.2 Task 2: Add Device (a FIELDBUS COUPLER).................. 19
1.6.3 Task 3: Add an Analog Input Tag ...................................... 22
1.6.4 Task 4: Add an Analog Output Tag ................................... 25
1.6.5 Task 5: Add a Discrete Output (also called Digital Output). 29
1.6.6 Task 6: Download changes to the SCADA Node ............... 32
1.6.7 Task 7: Start the SCADA Node via Project Manager ......... 34
1.6.8 Task 8: Start VIEW to verify communications to FIELDBUS COUPLER
36
1.6.9 Task 9: Use Point Info (Tag Browser) to verify new tag ..... 38
1.6.10 Task 10: Review the Port and Device List ......................... 40
1.7 Addendum .................................................................................... 43
1.7.1 Device Failure................................................................... 43
1.7.2 Troubleshooting an asterisk (*) ......................................... 43
1.7.3 Use Station Status to diagnose problems .......................... 44
August 8, 2005
75-4XX…6XX IO Modules
The SCADA node must have a TCP/IP (typically Ethernet) connection pat to
the WAGO 750 Device.
other devices can communicate throughout plants and substations via Modbus
RTU or Modbus Ethernet network.
The computer communication port must be designed for use with the
Windows 32-bit operating system.
Users can select a parameter type, and then modify the address to the
correct register in order to build a tag.
Note - It is recommended to select a Comport number greater than 2 so that it does not conflict
with a Serial comport that you may want to use later.
7. Configure a Scan time and Timeout for the Com Port.
8. Configure a WAGO 750 Device (determines the communications
Protocol or Device Driver) using Add Device
9. Configure IP Address, Port Number, Unit Number and Device Number
to match those in the FIELDBUS COUPLER.
Note – Many Modbus Ethernet devices ignore the Device Number if there is only one device at a
given IP Address. Device Number = 0 uses the Unit Number as the Device Number. The
Unit Number is used for display purposes in Advantech WebAccess. The Device Number
is used by the communications protocol to the device.
10. Refer to later sections in this guide for other fields (they usually are
not needed).
11. Use Add Tag or Add Block to create tags.
12. Select a Parameter (AI, AO, DI, DO) to match the type of data to be
read (Analog Input, Analog Output, Digital Input, Digital Output). The
Address of the data must match the Parameter Type:
For the Modbus TCP/IP driver, it is recommended to use a Com Port number
greater then 2 and that does not utilize an actual Serial com port (e.g. COM1,
COM2, etc) on the SCADA Node.
1.3.2 Description
This is an optional field used for user reference.
If the FIELDBUS COUPLER cannot respond as fast as the SCAN Time entered,
Advantech WebAccess will scan at a slower rate.
1.3.4 Timeout
Timeout is the time waited before re-sending a communications packet that
did not have a reply.
Timeout specifies how long the software waits for a response to a data
request, specifically to wait for a reply from one packet. A recommended
value is 7 to 10 ticks, longer if the communication device is slow. This is
protocol dependent: some protocols do not allow changes in time out.
TimeOut, multiplied by Retry Count plus scan time, is how long Advantech
WebAccess will wait before it considers a device bad. Advantech WebAccess
will send a packet, wait for the TimeOut for a reply. If retry count is non-zero,
Advantech WebAccess will repeat the request, wait the Timeout, and repeat
for the number of Retry Times. A device is marked Bad (or Failed) after the
number of Retries fail.
In the example above, Scan Time is 1 second, Retry Count is 3, and Timeout
is 200, Advantech WebAccess will:
• Waits 1 second
• Send a packet.
In addition, Indicates the number of times after the first attempt has failed
that communication should be attempted before indicating a failure.
Specifically, how many times to send a single packet after the field device
fails to respond to the first packet. After the retry count is exceeded, all the
tags in the packet are marked with asterisks and the next packet of requests
is sent. A reasonable value is 3 to 5 times. After this number of tries, the tags
in this packet are marked as "fail to respond" (i.e. asterisks) and are disabled.
In reality, increasing the number of retries hides failures on the part of the
field device to respond to a request. Essentially, increasing the retries gives
the field device more chances to reply.
In the above example fro Timeout, Advantech WebAccess will wait 1 minute
after a device fails before retrying communications. Every One minute the
device will go Good, 1.6 seconds later it will be marked Bad if it is still failed,
repeat.
The Backup Port is usually configured as the same type. However, some
Device Types allow the backup port to be another physical type; for example,
Modicon Device can use a Serial Port as a backup port to TCP/IP (network)
port. The FIELDBUS COUPLER must have both TCPIP Interface and a Serial
Interface connected to the SCADA node, in this example.
Device Name is any user-defined name. See Device Name for more
information.
Many Modbus Ethernet devices ignore the Device Number if there is only one
device at a given IP Address. The Device Type is Modicon.
Device Type Modicon. Advantech WebAccess uses the official version the
Modbus TCPIP specified by the inventors of Modbus, MODICON.
Port Number is the TCP Port (or UDP port) of the FIELDBUS COUPLER. A
common TCP Port for WAGO Field bus couplers is 502. Note that yours
maybe different and you should consult the configuration of your Wago Field
bus Coupler or the Wago User Manual.
Device Address is the Modbus Device Address (0 - 255) used by the Modbus
RTU protocol. WAGO always uses 1 (and probably ignores this address) since
there is usually only one FIELDBUS COUPLER at a given IP Address. How this
is handled varies by device / manufacturer. Many Modbus TCP/IP devices
ignore this Device Address (the Modbus RTU Address). Some Modbus TCP/IP
devices have multiple FIELDBUS COUPLERs/ RTUs at the same IP Address,
and use the Device Address to route to the correct FIELDBUS COUPLER
sharing the same IP address.
Use UDP: The default protocol of the Advantech WebAccess TCP/IP driver
and WAGO 750 is TCP. However, some devices use UDP. For the FIELDBUS
COUPLER Use UDP = 0. If other Devices use UDP, then you must specify
Use UDP = 1 for the Advantech WebAccess configuration of this device.
Changing only the Device Name will rename the existing device.
Changing both the Device Name and the Unit Number will make a copy of
the device (e.g. create another device).
1.4.2 Description
User assigned description up to 70 characters
This Unit Number will appear on the System Status Display, Point Detail,
user-built displays and tags to reference the status of this device.
Changing only the Unit Number here will change the existing device.
Changing both the Device Name and the Unit Number will make a copy of
the device (e.g. create another device).
Auto Recover Time is the time to wait after a Device is marked Bad (or
Failed) before re-initializing communications. Advantech WebAccess will mark
the device good, send a packet and begin the whole retry / timeout process
above. In the above example, Advantech WebAccess will wait 1 minute after
a device fails before retrying communications. Every One minute the device
will go Good, 1.6 seconds later it will be marked Bad if it is still failed, repeat.
This example is to configure two Tags that read an Analog Input (Address
30003) and an Analog Output (Address 40015).
4. Select Project.
8. From Parameter Pull Down List Select AI. This will configure an
Analog Input. Wait for the Page to update.
9. Optionally, select ALARM from the ALARM pulldown list. Wait for the
Page to update with a PINK highlight around alarm (an additional
Alarm Fields at bottom of page).
10. Enter a Tagname users can use to identify this Analog Input
measurement. For example, if this is a Flow measurement, enter
Flow1.
11. Edit the Address to the actual address. From the example, Enter:
30003
12. Enter a Description. This will help identify this tag to Users and
Operators. For example, enter Boiler #1 Steam Flow.
13. Optionally enter, Scaling, Span Hi, Span Low, Engineering Units, and
Alarms; enable data logging, etc.
15. From Parameter Pull Down List Select AO. This will configure an
Analog Output. Wait for the Page to update.
16. Optionally, select ALARM from the ALARM pulldown list. Wait for the
Page to update with a PINK highlight around alarm (and additional
Alarm Fields at bottom of page).
17. Enter a Tagname users can use to identify this Analog Output
measurement. For example, if this is a signal to a Valve, enter Valve1.
18. Edit the Address to the actual address. From the above example,
Enter: 40015
19. Enter a Description. This will help identify this tag to Users and
Operators. For example, enter Boiler #1 Steam Valve.
20. Optionally enter, Scaling, Span Hi, Span Low, Output Limits,
Engineering Units, and Alarms; enable data logging, etc.
This can take a long time while tables are created in the database on
the Project Node / Web Server.
There are too many people accessing the Web site at this time.
4. Select the TCP/IP as the Interface Name for this Comport. (Also
called the Comport Type).
8. Enter a Scan Time and select the radio button for the units
(Millisecond, Second, Minute or Hour).
All devices are scanned at the same frequency on a given comport. All
Constant Scan type Tags are scanned at the same frequency on a
comport. Display Scan Tags are scanned at this same frequency, but
only when they appear on a Display.
9. Accept the default values for the other fields, or modify them. For a
description of the data entry fields for a TCP/IP Network Interface see,
section 3.3.4 TCP/IP Com Port Properties.
11. The SCADA Node page appears. The Port should appear as a folder
under the SCADA node. (In this example Port 3 under Node 1) in the
menu tree at left.
14. The Create Device Page opens. This also can take some time while
data tables are created in the database on the Project Node.
15. Select Modicon form the Device Type pull down list.
(Alternatively, you can select one of the other Modbus TCP/IP devices:
ADAM 5000 Ethernet driver (ADAM5KE), ADAM 6000 (ADAM6K) or
Wago 750.
16. Enter a Device Name. This will appear as a folder under the comport
in the Project Manager. It will also appear in VIEW during runtime in
the Point Detail Display for any tags created.
18. Enter the Unit Number. This number will appear in VIEW during
runtime on the Station Status display and will be the reference to
Enable and Disable communications to the Device. It also will be the
reference for communication alarms. (1 to 254)
Important! – Use the IP Address and Port given by your Instructor for the FIELDBUS COUPLER
in your classroom. The Modbus TCP Simulator software can be installed locally on a
SCADA node and use the SCADA nodes IP address.
If you installed the ModSim.exe simulator software on your PC, then enter the IP Address
of your PC or 127.0.0.1
20. Enter the TCP or UDP Port Number for the Device. 502 is a common
TCP Port for WAGO 750 field bus couplers. Yours may be different;
consult your WAGO configuration or the WAGO 750 User manual.
Important! – Use the TCP Port specified in the configuration or the User Manual for the
FIELDBUS COUPLER in your classroom. Port 502 is commonly used for WAGO, but
yours could be different.
21. Enter a Device Address if different from the Unit Number. For Wago,
this entry is usually 1.
At the time of this writing, the WAGO 750 field bus coupler ignores the Device Address in the
Modbus Protocol, Use the Device Address given by in the User Manual for the
FIELDBUS COUPLER if it is specified.
23. If using TCP (the official Modbus Ethernet protocol for WAGO 750)
enter 0 for Use UDP. This will use TCP protocol (not UDP).
24. Press Submit. This can be a wait while data tables are created on the
Project Node.
28. Use the AI Parameter from the Parameter pull down List
32. Accept the default values for the other fields. Press Submit.
Important! – Press SUBMIT before continuing to next step or you will loose your data.
For more information, see Section 4.2 Analog Tag Properties in the Engineering Manual.
34. Select the AO Parameter from the Parameter Pull Down List.
Notice that the Address field changes from 30001 (for AI) to 40001
(for the AO Parameter).
AO005 Parameter: AO
Address: 40005
Span
Important! – Press submit to save your data before continuing with the next step.
Notice that the Address field Changes to data type changes from
analog to discrete. Also, the Data Fields change: State Descriptors
appear. There is no Scaling, Span or Output Limits for a Discrete.
Also notice how any data entered is lost if you change the
Parameter before pressing submit! It is best to select Parameter
before entering tag name. You cannot change the parameter type
of a tag once it is created.
The page refreshes and alarm fields appear at the top and bottom of
the page.
For more information on these fields, see the Engineering Manual 4.3
Discrete Tag Properties
44. Enable Data Logging for the Tag by selecting the radio button next
to Log Data.
45. Modify the State0 and State1 descriptors to read ON and OFF.
48. Optionally, enable Send Email and enter your email address in the
Email To fields to receive an Alarm Email.
49. In this example, leave the other fields at their default values. For
more information on these fields, see the Engineering Manual 4.3
Discrete Tag Properties.
The Tag Name appears under the Device Name in the Project Manager
(SCADNode1, Port3, Modbus FIELDBUS COUPLER in this example.) You
should see three tags AI0002, AO0005 and PUMP_STATUS.
1. Select the SCADA Node under your Project Name in the Project/Node list
(Figure 4-31).
2. Select Download.
Download to the SCADA Node will temporarily STOP the SCADA Node. Users
will see a blank screen. Trend and reports will stop collecting
data. Communications to field devices will stop. When the SCADA restarts,
Alarms will be re-set to unacknowledged.
If you make changes to a Tag, you must download (which will stop and
restart the SCADA Node).
1. Select the SCADA Node under your Project Name in the Project/Node list.
Figure 4.34 - Start SCADA Node kernel remotely via the Project Manager
Use the radio button to unselect a node and the click Submit to continue.
Warning - if communications times out between the SCADA Node and Project Node, you will
still get the above Dialog Box stating the Node has started. You should always start
View and connect to that SCADA node to confirm it has started. It may take a long
time to start if there are many Data Log files and/or the hard drive is fragmented.
Note – Not all Downloads require restarting the SCADA Node. Only downloading new Tags
and new SCADA Node Properties requires the use of the Download from SCADA
(which temporarily stops the SCADA Node kernel). Graphics, Scripts, Recipes, the
Scheduler and other features can be downloaded from their respective properties page
without stopping the SCADA node.
There are other ways to START VIEW described in VIEW Client Options and Start Advantech
WebAccess VIEW
9. If you have not already installed the Client, you will see a message:
"Please Click here to install Advantech WebAccess Client first".
If you get this message, just follow the steps to download and install the
client.
Hint - After Downloading Client, close all Web browser windows before running the Client Setup
program. If you close all web browser windows, you will not have to reboot your
computer.
14. Right Click with the mouse or press the Enter key.
15. The default Main Graphic Display appears (you can edit or create a new
Main.bgr later)
1.6.9 Task 9: Use Point Info (Tag Browser) to verify new tag
The Point Info Dialog Box is opened using:
• Right Click -> Goto -> Point Info (ViewDAQ users skip the right
click)
18. You should see a ON or OFF as the value. It may be flashing Red if in
Alarm.
Troubleshooting
This section assumes you have started Internet Explorer 6 or later Web
Browser and connected to your Project Node.
5. You may need to expand the Port List by clicking on the Folder icon
to the left of SCADA Node (Node 1 in the example).
7. You may need to expand the list of Devices under your Comport by
clicking on the Folder icon to the left of the Comport.
8. Drag the slider bar on the left Frame down to reveal Communication
Port (e.g. Port 3 in the example above).
9. You may need to expand the list of Devices by clicking on the Folder
icon to the left of the Port (in the example, pick Port3).
10. You may need to expand the list of Tags and Blocks by clicking on
the Folder icon to the left of the device (in the example, pick
DemoPLC).
You may have to scroll down to see the Tag or Block associated with
the device.
1.7 Addendum
If the failed device sends gibberish on the network that somehow blocks
communication (unlikely with TCP/IP), a failed device might affect others.
This is possible with multi-drop serial connections on a single TCP/IP address,
but unlikely.
The Station Status Display can be viewed from the Toolbar or Ctrl+F7
function key or a pushbutton with the <GOTO>STATION keymacro. The
Right-Click Menu can also call up the Action Log (Right Click -> Goto ->
Station Status).
Only Power Users and the admin account can view the Station Status through
a Web Browser. (General Users and Restricted users cannot view the Station
Status through a Web Browser). All users can view the Station Status locally
on the SCADA node using ViewDAQ.
The Station Status Display shows status of all communication Ports and
automation devices (e.g. stations).
A Communications Alarm will appear in the Status Bar at the bottom of all
displays (a Red letter C). See the Engineering Manual, section 7.10 , for more
information on the Alarm Windows in the Status Bar.
Using the Ramp Keys , users can change the Comport viewed.
21. If the Device is Blue, this implies you have the Tags Address wrong
(e.g. the Modbus Address, 00001, 00002, 00003, etc.)
23. Try to ping the FIELDBUS COUPLER Address from the Windows
Command prompt. (For more help, see Eng. Manual, 22.2.11 PING to
test TCP/IP communications).
24. Confirm the TCP Port and Modbus Device Address from the FIELDBUS
COUPLER configurator or Jumper settings on its Network Card (NIC).