Wago I/o
Wago I/o
Wago I/o
Application note
A203000, English
Version 1.0.0
2 General
http://www.wago.com
Technical Support
Phone: +49 (0) 571/8 87 5 55
Fax:
+49 (0) 571/8 87 85 55
E-Mail: [email protected]
Every conceivable measure has been taken to ensure the correctness and completeness of this documentation. However, as errors can never be fully excluded we would appreciate any information or ideas at any time.
We wish to point out that the software and hardware terms as well as the
trademarks of companies used and/or mentioned in the present manual are
generally trademark or patent protected.
Application note
A203000
Table of Contents
TABLE OF CONTENTS
1 Important comments ................................................................................. 4
1.1
Legal principles...................................................................................... 4
1.1.1 Copyright ............................................................................................... 4
1.1.2 Personnel qualification .......................................................................... 4
1.1.3 Intended use ........................................................................................... 4
1.2
Range of validity.................................................................................... 5
1.3
Symbols ................................................................................................. 5
2
Description.................................................................................................. 6
4 Solution ....................................................................................................... 7
4.1
Configuring the IP Addresses of the Mettler Toledo JAGXTREME.... 7
4.2
Enabling the WAGO 750-841 Controller for Ethernet/IP
Communications .................................................................................. 10
4.3
Programming the WAGO 750-841 Controller to send unscheduled
messages to the JAGXTREME............................................................ 11
4.4
Assigning the PLC Configuration........................................................ 13
4.5
Downloading The Project .................................................................... 14
Application note
A203000
Important comments
1 Important comments
To ensure fast installation and start-up of the units described in this manual,
we strongly recommend that the following information and explanation is
carefully read and adhered to.
Application note
A203000
Important comments
1.3 Symbols
Danger
Always observe this information to protect persons from injury.
Warning
Always observe this information to prevent damage to the device.
Attention
Marginal conditions must always be observed to ensure smooth operation.
ESD (Electrostatic Discharge)
Warning of damage to the components by electrostatic discharge. Observe
the precautionary measure for handling components at risk.
Note
Routines or advice for efficient use of the device and software optimisation.
More information
References to additional literature, manuals, data sheets and INTERNET
pages
Application note
A203000
Description
2 Description
The purpose of this document is to provide an example of interfacing the
WAGO 750-841 Ethernet Controller with a Mettler Toledo JAGXTREME
terminal using the Ethernet/IP protocol. In this example, the WAGO 750-841
communicates to the JAGXTREME via unscheduled messaging (also known
as explicit messaging). The JAGXTREME responds to unscheduled messages originated by the WAGO 750-841, allowing the 750-841 to configure
and read the JAGXTREMEs batch process data.
3 Reference Material
- Mettler Toledo JAGXTREME w/ ControlNet Interface Card
- WAGO 750-841 Ethernet Controller
- CoDeSys (WAGO-IO-PRO CAA) Version 2.3.2.7 Programming Software
NOTE: This procedure assumes that the WAGO 750-841 contains a valid IP
address and it is installed on a working network, along with the JAGXTREME
and the Programming Terminal. If necessary, refer to WAGOs Application
Note A202900 for assigning a static IP address to the WAGO 750-841.
Application note
A203000
Solution
4 Solution
There are three main steps in setting up this system:
1) Configuring the IP Addresses of the Mettler Toledo JAGXTREME
2) Enable the WAGO 750-841 Controller for Ethernet/IP Communications
3) Programming the WAGO 750-841 Controller to send unscheduled messages to the JAGXTREME
4) Press the Scroll Menu key repeatedly, until the text Config. Network is
displayed.
Application note
A203000
Solution
14) Press the Enter key. The new settings are now in place.
Once the IP Address of the standard ethernet port is set, it is now possible to
configure the IP address of the Ethernet/IP port. This is done using a browser
to access the internal webpages of the JAGXTREME.
To configure the IP address of the JAGXTREMEs Ethernet/IP port via a
browser:
15) Run the browser utility (e.g. Microsofts Internet Explorer) on the programming terminal.
16) In the address bar, enter the IP address of the JAGXTREMEs standard
Ethernet port, and hit Enter.
Application note
A203000
Solution
20) Change the IP Address, Subnet mask, and Gateway as required. Click
Save Changes when finished.
21) Put the JAGXTREME back in Run Mode by clicking the Run Mode
button.
Application note
A203000
10
Solution
The 750-841s internal webpage should appear. If it does not appear, check
that you have an Ethernet link to the 750-841s Ethernet port, and the IP address of the programming terminal is compatible with the IP address of the
750-841.
3) Click Port in the left browser frame. The following will appear:
Solution
11
5) In this frame, you must check Ethernet IP as enabled. You may enable
or disable other protocols at this time as well. Click SUBMIT when finished.
The WAGO 750-841 Ethernet Controller is now enabled for Ethernet/IP
communications.
4.3 Programming the WAGO 750-841 Controller to send unscheduled messages to the JAGXTREME
The 750-841 Ethernet Controller can be programmed to send unscheduled
messages to other Ethernet/IP devices using the CoDeSys software development tool. The library EML.LIB contains the function block that will be used
for sending and receiving Ethernet/IP messages. Make sure the CoDeSys development tool and the library EML.LIB are installed on the programming
terminal before proceeding.
To program the 750-841 Controller to send unscheduled messages to the
JAGXTREME:
1) Start CoDeSys.
2) From the top menu bar, select File..New. You may be asked if youd like
to save your existing program. Answer accordingly.
A Target Settings window will appear. Select the appropriate target device for
your application. Several configuration options will appear. Click OK to continue.
A window will appear labeled New POU.
12
Solution
4) In the Variable Editor window, declare the project variables so they appear
as shown below. These variables can be declared by simply typing the text as
it is shown.
Application note
A203000
Solution
13
To insert the circle in front of the ENABLE input, right-click on the short line
in front of the input, and select NEGATE from the menu.
To delete the tail at the end of the CONFIRM output, click on the right end
of the tail, and hit Delete.
8) Check your project for errors, by selecting Project..Build from the top
menu bar. At this point, there should be no errors in the project. Error messages will be reported in the bottom window below the logic editor window.
All errors must be corrected before a project can be downloaded to the controller.
Application note
A203000
14
Solution
3) In the Name field, type in a unique name for the communications channel.
Application note
A203000
Solution
15
http://www.wago.com
http://www.wago.com