Redundant ethernet communication with WAGO Ethernet-Controller 750-882, English Version 1.0.0
2 Content Copyright 2010 by WAGO Kontakttechnik GmbH & Co. KG All rights reserved. WAGO Kontakttechnik GmbH & Co. KG Hansastraße 27 D-32423 Minden Phone: +49 (0) 571/8 87 0 Fax: +49 (0) 571/8 87 1 69 E-Mail: info@wago.com Web: http://www.wago.com Technical Support Phone: +49 (0) 571/8 87 5 55 Fax: +49 (0) 571/8 87 85 55 E-Mail: support@wago.com 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 protected by trademark or patent.
Content 3 Table of contents 1 Important notes... 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 3 Prepare Modbus-Slave... 7 4 Configure network interfaces... 8 5 The Modbus-Master application... 9
4 Important notes 1 Important notes 1.1 Legal principles 1.1.1 Copyright To ensure fast installation and start-up of the units, we strongly recommend that the following information and explanations are carefully read and adhered to. This document including all figures and illustrations contained therein is subject to copyright. Any use of this document which infringes the copyright provisions stipulated herein, is not permitted. Reproduction, translation and electronic and phototechnical archiving and amendments require the written consent of WAGO Kontakttechnik GmbH & Co. KG, Minden. Non-observance will entail the right of claims for damages. WAGO Kontakttechnik GmbH & Co. KG reserves the right of changes serving technical progress. All rights developing from the issue of a patent or the legal protection of utility patents are reserved to WAGO Kontakttechnik GmbH & Co. KG. Third-party products are always indicated without any notes concerning patent rights. Thus, the existence of such rights must not be excluded. 1.1.2 Personnel qualification 1.1.3 Intended use The use of the product described in this document is exclusively geared to specialists having qualifications in SPS programming, electrical specialists or persons instructed by electrical specialists who are also familiar with the appropriate current standards. WAGO Kontakttechnik GmbH & Co. KG declines any liability resulting from improper action and damage to WAGO products and third party products due to non-observance of the information contained in this document. For each individual application, the components are supplied from the factory with a dedicated hardware and software configuration. Modifications are only admitted within the framework of the possibilities documented in the manuals. All other changes to the hardware and/or software and any use of the components that is not in accordance with the intended use entail the exclusion of liability on the part of WAGO Kontakttechnik GmbH. Please direct any requirements pertaining to a modified and/or new hardware or software configuration directly to WAGO Kontakttechnik GmbH & Co. KG.
Important notes 5 1.2 Range of validity This application note is based on the stated hardware and software of the specific manufacturer as well as the correspondent documentation. This application note is therefore only valid for the described installation. New hardware and software versions may need to be handled differently. Please note the detailed description in the specific manuals. 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 that must always be observed to ensure smooth operation. ESD (Electrostatic Discharge) Warning of damage to the components through electrostatic discharge. Observe the precautionary measure for handling components at risk of electrostatic discharge. Note Routines or advice for efficient use of a device and software optimization. Additional information References to additional literature, manuals, data sheets and INTERNET pages.
6 Description 2 Description The WAGO Ethernet-Controller 750-882 provide two individual network interfaces, who can be used for any kind of ethernet communication. This application note shows how to setup a redundant Modbus_UDP connection between two 750-882, where one Controller act as a Modbus-Master who calculate and send process data to another 750-882 whos operate as Modbus- Slave. The Modbus-Master need a PLC program based on WagoLibModbus_IP.lib. The Modbus-Slave functionality are fixed part of Controllers firmware, no PLC program is needed. Global information about Modbus-Protocol and WAGO specific extension refer applcation note a300003 Modbus communication between WAGO Ethethern-Couplers and Controllers.
Prepare Modbus-Slave 7 3 Prepare Modbus-Slave The Modbus-Slave functionality are fixed part of Controllers firmware, no PLC program is needed. When you operate with a fresh unused Controller, you can ignore the rest of this chapter. A special feature of the 750-882 is that you can or must assign write permission to every connected I/O module. The write permission can be assigned to the PLC-Program, the Modbus- Protocol or the Ethernet_IP-Protocol. The write permission assignment is stored in the "/etc/ea-config.xml" file. Every time you download a PLC-Program into the Controller, the given IO- Configuration are also downloaded and set the write permission to the PLC- Program. From this point the Controller respond Modbus-Request, but outputs will not switch on or off, because Modbus has no write permission. If you run into this situation you can alternatively: - Login with CoDeSys and execute RESET(original). - Use WAGO-Ethernet-Settings.exe to format and extract file system.
8 Configure network interfaces 4 Configure network interfaces The actual network setting could be monitored and modified in Web-Based- Management(WBM). In WBM on page TCP/IP assign IP-Addresses for Modbus-Master and Mobus-Slave as shown below. See manual for details.
The Modbus-Master application 9 5 The Modbus-Master application The Modbus-Master need a PLC program based on WagoLibModbus_IP.lib. Series 750-88x Controller supports network library SysLibSockets.lib only. The outdated library Ethernet.lib are not supported. For this reason libraries based on Ethernet.lib like ModbusEthernet_04.lib are not usable on 750-88x Controllers.
10 The Modbus-Master application What the PLC-Program do: - Generate processdata for chaser light. - Cyclic sending process data on both ports to Modbus-Slave. - Monitor communication status on local digital outputs module.
The Modbus-Master application 11
WAGO Kontakttechnik GmbH & Co. KG P.O. box 2880 D-32385 Minden Hansastraße 27 D-32423 Minden Phone: +49 (0) 571/8 87 0 Fax: +49 (0) 571/8 87 1 69 E-Mail: info@wago.com Internet: http://www.wago.com