Application Note. Connection of an WAGO ETHERNET Coupler/Controller to a S controller

Similar documents
Application Note. Building. Automation WAGO-I/O-PRO V2.3. openvpn with Linux based Devices A500880_en. Version 1.1.1

Using the WagoAppEtherNetIP_Adapter library with a CompactLogix Controller A500930

Application Note. a HART Tool-routing with Emerson AMS HART over TH LINK PROFIBUS for Asset Management 1.0.0

Library Description. DALI_647_SpecialSensor_02.lib Specific Sensor Solutions. Version 1.0.1

Application Note. WAGO-I/O-SYSTEM 750 Connecting energy meters with M-Bus interface to the WAGO-I/O-SYSTEM

Using power measurement module with TIA A500671

WAGO-I/O-SYSTEM 750 CODESYS-2-Library WagoLibWakeOnLan.lib Wake on lan Remote wake up of network devices

WAGO Remote IO with Fanuc Robot using EtherNet/IP Protocol Application note

Redundant ethernet communication with WAGO Ethernet-Controller Application note

Library Description. MBUS_649_01.lib WAGO M-Bus Library. Version 1.0.1

Using the WAGO as Remote I/O with an Omron SYSMAC CJ2 Series PLC. Application note. A116700, English Version 1.1.0

Application note. WAGO-I/O-SYSTEM 750 DALI Multi-Master Module Configuration of a DALI Lighting System via WAGO- I/O-PRO V2.

The HART Module on the WAGO ETHERNET Controller Application Note

Fieldbus Independent I/O Modules Bluetooth RF Transceiver Quick Start

Fieldbus Independent I/O Modules 8 DI DC 24 V 3.0 ms, Manual

PROFIsafe modules V2 ipar 75x-66x/ WAGO Safety-Editor-75x Quickstart

Using PROFIsafe modules in combination with PROFIBUS-DP and PROFINET Application note

Using the WAGO as Remote I/O with a ControlLogix Ethernet/IP Bridge Module Application note

Using WAGO Series 750 DeviceNet IO with an A-B SLC SDN Scanner Application note

Fieldbus Independent I/O Modules End Module (/xxx-xxx) Manual

Using WAGO Series 750 DeviceNet IO with an A-B ControlLogix 1756-DNB Scanner Application note

Fieldbus Independent I/O Modules 4 AI Pt100/ RTD , (/xxx-xxx) Manual

Application Note. Enable port forwarding for PFC. A500840, English Version 1.0.0

Fieldbus Independent I/O Modules 4 AI DC 0-10 V, Single-Ended Manual

Fieldbus Independent I/O Modules 2 DI DC 24 V 3.0 ms, High-Side Switching (/xxx-xxx) Manual

Fieldbus Independent I/O Modules SSI Transmitter Interface Manual

Fieldbus Independent I/O Modules 1 AI DMS Manual

Fieldbus Independent I/O Modules Field Side Connection Manual

Fieldbus Independent I/O Modules 4 DO DC 24 V 0.5 A, High-Side Switching (/xxx-xxx)

Fieldbus Independent I/O Modules 2 AI 4-20 ma, Single-Ended Manual

Library for Building Automation. Module Descriptions for KNX IP Master

Using WAGO Series 750 EtherCAT coupler with CoDeSys SP Win V3 Application note

Fieldbus Independent I/O Modules 24 V DC Power Supply/Fuse/Diagn Manual

Fieldbus Independent I/O Modules 2 AO 4-20 ma Manual

Configuring National Instruments Lab View with WAGO I/O Application note

Manual Version WAGO TO-PASS 761. Telecontrol Modules. 761-xxx. System Description

Libraries for Building Automation. Module Descriptions for the WINSTA Sunblind Box /

Library Description. ColourConverter_01.lib Library for Converting Color Formats. Version 1.0.2

Libraries for Building Automation. Function Block Description for DALI Multi-Master Module

WagoLib_CAN_Gateway_02.lib

Libraries for Building Automation. Function Blocks and Data Types for the BACnet Controller

Library for Building Automation. Library Description for for the WAGO BACnet Library BACnet_02.lib

Quickstart reference for the software e!cockpit

Manual / Electronic Circuit Breaker DC 24 V, A. Version 1.0.0

Modbus/TCP OPC Server

Library Description. KNX_02.lib. CODESYS V2.3 Function Block for the KNX/EIB/TP1 Module

Library Description. Enocean_06.lib WAGO EnOcean Profile Library. Version 1.0.1

Library for Building Automation. Function block descriptions for time- switching functions

Library for Building Automation

Library Description. Building WAGO-I/O- PRO V2.3. Automation. MpBus_03.lib CODESYS V2.3 Module for MP-Bus. Version 1.0.1

Port 100Base-TX Industrial Eco Switch

Manual DNP3 Solution for programmable Controls of Telecontrol Technology. Version 1.4.0

Fieldbus Independent I/O Modules Serial Interface RS 232 C (/xxx-xxx) Manual

WAGO-I/O-SYSTEM 750 IO-Link Master

Applications & Tools. Brief instructions on the communication connection of the MSS 3RK3 to the S via AS-Interface.

Siemens Drives & PLCs

S Data Transfer with SEND/RECEIVE Interface



PROFIenergy product information SIMATIC. ET 200SP PROFIenergy product information. PROFIenergy 1. Product Information 12/2015 A5E AH

User Manual Gateway component for EtherNet/IP

Anybus Communicator PROFINET

Manual. WAGO-I/O-SYSTEM 750 Programmable Fieldbus Controller ETHERNET /100 Mbit/s; digital and analog signals. Version 1.1.

Open user communication to 3rd party control system. STEP 7 (TIA Portal), S7-1200/S7-1500, Allen-Bradley. Library description 01/2015

Service & Support. MODBUS/TCP Communication over Integrated PROFINET Interface of S7-300 and S7-400 CPU. Modbus/TCP PN CPU.

The Next Level of Energy Data Management Fast Data Acquisition via Parameterization No Programming

WAGO Energy Data Management Efficiency Is That Easy!

YJKP with Mitsubishi Q series PLC control via Modbus TCP

Preface 1. Scope of Delivery 2 SIPLUS CMS4000 Introducing the Product 3 Interface Node SIPLUS CMS4000 ION SIMATIC S7 PN Block Description 4

Application Note. Modbus on CMMP-AS- -M3/M0. Connection and configuration of the motor controller CMMP-AS- -M3/M0 within a Modbus/TCP network.

SIMATIC HMI. Configuring Graphics Displays. Product Brief. Edition 12/01. Table of Contents. Introduction. Commissioning Operating Units

Preface 1. Master Data System 2. Contact Information 3. User Manual Master Data System. English. Release English

SIMATIC/SINAMICS. Getting started with SINAMICS V90 PN on S Motion Control. Fundamental safety instructions 1. Introduction

Data Synchronization between Head and Field PLCs with Storage of the Process Values in CSV Files

Acyclic communication between S and V90PN via PROFINET. Application example 12/

Libraries for Building Automation



Servo press kit YJKP - Host interface


VIPA SPEED7 Library. OPL_SP7-LIB SW90BS0MA Manual. HB00 OPL_SP7-LIB SW90BS0MA en Block library - Modbus Communication

Digital output module. DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0) SIMATIC

DF FA SE. SIPLUS RIC IEConS7. File Transfer Version V1.6

TIA Portal V11 Exercises

Getting Started - Startdrive. Startdrive SINAMICS. Introduction 1. Connecting the drive unit to the PC. Creating a project 3


Safety I/O Modules PROFIsafe 4FDO 0,5A/4FDI 24V DC PROFIsafe / Manual

Preface Master Data System Contact Information SIPLUS CMS

Diagnostics for enabled Configuration Control with S and ET200SP

IP67 IP20. Controllers Open Flexible Compact SPEEDWAY. Programmable. Fieldbus Couplers. Programmable. Fieldbus Controllers

SIMATIC HMI. Software RemoteOperate V2. Preface. Overview 1. Range of functions of the RemoteOperate software. Hardware and software requirements


Position Control with SIMATIC S and SINAMICS V90 via IRT PROFINET SINAMICS V90 PROFINET. Application description 03/2016

Manual. WAGO-I/O-SYSTEM DI 24VDC 3.0ms Channel Digital Input Module 24 V DC, High-side switching. Version 1.1.0

DF FA SE. SIPLUS RIC IEConS7. Advanced Buffer Version V1.6. Siemens Parts

Preface 1. X-Tools Client 2. Contact Information 3. User Manual X-Tools Client. English. Release English. Release / 25

SIMATIC PC. Panel PC Industrial Lite Without Operating System. Preface, Table of Contents

Configuration Control with the S and ET 200SP

Preface 1. Storage System 2. Contact Information 3 SIPLUS CMS. SIPLUS CMS X-Tools - User Manual Storage System. English.

Controllers Open Flexible Compact

Transcription:

Application Note Building TIA Automation Connection of an WAGO ETHERNET Coupler/Controller to a S7-1500 controller A101401

2 Application Note A101401 2016 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 Email: Online: info@wago.com http://www.wago.com Technical Support Phone: +49 (0) 571/8 87 5 55 Fax: +49 (0) 571/8 87 85 55 Email: support@wago.com Every conceivable measure has been taken to ensure the accuracy and completeness of this documentation. However, as errors can never be fully excluded, we always appreciate any information or suggestions for improving the documentation. 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 document are generally protected by trademark or patent.

Application Note A101401 Description 3 Notes about this Documentation Copyright This documentation, including all figures and illustrations contained therein, is subject to copyright protection. Any use of this documentation that infringes upon the copyright provisions stipulated herein is prohibited. Reproduction, translation, electronic and phototechnical filing/archiving (e.g., photocopying), as well as any amendments require the written consent of WAGO Kontakttechnik GmbH & Co. KG, Minden, Germany. Non-observance will entail the right of claims for damages. Number Notation Table 1: Number Notation Number code Example Note Decimal 100 Normal notation Hexadecimal 0x64 C notation Binary '100' '0110.0100' In quotation marks, nibble separated with dots (.) Font Conventions Table 2: Font Conventions Font type Indicates italic Names of paths and data files are marked in italic-type. e.g.: C:\Programme\WAGO-I/O-CHECK Menu Menu items are marked in bold letters. e.g.: Save > A greater-than sign between two names means the selection of a menu item from a menu. e.g.: File > New Input Designation of input or optional fields are marked in bold letters, e.g.: Start of measurement range Value Input or selective values are marked in inverted commas. e.g.: Enter the value 4 ma under Start of measurement range. [Button] Pushbuttons in dialog boxes are marked with bold letters in square brackets. e.g.: [Input] [Key] Keys are marked with bold letters in square brackets. e.g.: [F5]

4 Description Application Note A101401 Symbols Personal Injury! Indicates a high-risk, imminently hazardous situation which, if not avoided, will result in death or serious injury. Personal Injury Caused by Electric Current! Indicates a high-risk, imminently hazardous situation which, if not avoided, will result in death or serious injury. Personal Injury! Indicates a moderate-risk, potentially hazardous situation which, if not avoided, could result in death or serious injury. Personal Injury! Indicates a low-risk, potentially hazardous situation which, if not avoided, may result in minor or moderate injury. Damage to Property! Indicates a potentially hazardous situation which, if not avoided, may result in damage to property. Damage to Property Caused by Electrostatic Discharge (ESD)! Indicates a potentially hazardous situation which, if not avoided, may result in damage to property. Important Note! Indicates a potential malfunction which, if not avoided, however, will not result in damage to property.

Application Note A101401 Description 5 Additional Information: Refers to additional information which is not an integral part of this documentation (e.g., the Internet). Legal Bases Subject to Change WAGO Kontakttechnik GmbH & Co. KG reserves the right to make any alterations or modifications that serve to increase the efficiency of technical progress. WAGO Kontakttechnik GmbH & Co. KG owns all rights arising from granting patents or from the legal protection of utility patents. Third-party products are always mentioned without any reference to patent rights. Thus, the existence of such rights cannot be excluded. Personnel Qualification The use of the product described in this document is exclusively geared to specialists having qualifications in PLC programming, electrical specialists or persons instructed by electrical specialists who are also familiar with the appropriate current standards. Moreover, the persons cited here must also be familiar with all of the products cited in this document, along with the operating instructions. They must also be capable of correctly predicting any hazards which may not arise until the products are combined. WAGO Kontakttechnik GmbH & Co. KG assumes no 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.

6 Description Application Note A101401 Limitation of Liability This documentation describes the use of various hardware and software components in specific example applications. The components may represent products or parts of products from different manufacturers. The respective operating instructions from the manufacturers apply exclusively with regard to intended and safe use of the products. The manufacturers of the respective products are solely responsible for the contents of these instructions. The sample applications described in this documentation represent concepts, that is, technically feasible application. Whether these concepts can actually be implemented depends on various boundary conditions. For example, different versions of the hardware or software components can require different handling than that described here. Therefore, the descriptions contained in this documentation do not form the basis for assertion of a certain product characteristic. Responsibility for safe use of a specific software or hardware configuration lies with the party that produces or operates the configuration. This also applies when one of the concepts described in this document was used for implementation of the configuration. WAGO Kontakttechnik GmbH & Co. KG is not liable for any actual implementation of the concepts.

Application Note A101401 Description 7 Table of Contents Table of Contents...7 1 Description...8 2 Used material...8 2.1 Devices... 8 2.2 Tools... 9 3 Solution... 10 3.1 Starting Up the ETHERNET Fieldbus Coupler... 10 3.2 Example 1... 10 3.2.1 Configuring Hardware... 11 3.2.2 Siemens Open User Communication... 13 3.2.3 TCON... 14 3.2.4 Coupler Process Image... 15 3.2.5 Setting a Digital Output... 16 3.2.6 Setting an Analog Output Value... 17 3.2.7 Reading the Input Range... 18 3.3 Example 2... 20 3.3.1 Configuring Hardware... 21 3.3.2 Configuring WAGO MODBUS Modules... 23 4 Appendix... 29

8 Description Application Note A101401 1 Description This application note describes the connection to a Simatic S7-1500 controller through the example of a WAGO ETHERNET fieldbus coupler (750-342). Example 1 uses the Siemens Open User Communication modules. In example 2 data exchange is implemented with the S7-MODBUS functional modules from application note 101406 offered by WAGO. The modules are offered as TCP and UDP variants and use function code 23 (Read/Write Multiple Registers) exclusively. 2 Used material 2.1 Devices Supplier Quantity Designation Item No. Version* WAGO 1 Ethernet TCP/IP Fieldbus Coupler WAGO 2 2-Channel Digital Input Module 24V DC WAGO 4 2-Channel Digital Output Module 24V DC WAGO 1 2-Channel Analog Input Module 0-10V WAGO 1 2-Channel Analog Output Module 0-10V 750-342 FW 18 HW 02/ SW 750-400 750-501 750-476 750-550 WAGO 1 End Module 750-600 SIEMENS 1 CPU1511-1 PN 6ES7 511-1AK00-0AB0 FW 1.1.2 HW 3 SIEMENS 1 DI 16x24VDC HF 6ES7 521-1BH00-0AB0 SIEMENS 1 DO 16x24VDC/0.5A ST 6ES7 522-1BH00-0AB0

Application Note A101401 Used material 9 SIEMENS 1 PM 70W 120/230VAC 6EP 1332-4BA00 *This version was used when the instructions for use were created. 2.2 Tools Designation Item No. Version* SIEMENS TIA PORTAL V13 SP1 Update 5 WAGO ETHERNET Settings *This version was used when the instructions for use were created.

10 Solution Application Note A101401 3 Solution 3.1 Starting Up the ETHERNET Fieldbus Coupler A IP address must be assigned uniquely to the ETHERNET fieldbus coupler. This is done with the WAGO ETHERNET Settings program. This requires a communication cable (750-920 or 750-923). After a connection has been established with the device, an IP address can be entered via the TCP/IP settings and written to the device. After successful configuration, the I/O LED lights up green and the error LED is off. Subsequently, the communication with the ETHERNET fieldbus coupler can be tested via the new IP address by using the ping command, e.g. ping 192.168.1.100. 3.2 Example 1 The corresponding station is added after a new project is created.

Application Note A101401 Solution 11 3.2.1 Configuring Hardware The remaining structure can be added through the hardware catalog in the device view.

12 Solution Application Note A101401 The IP address, here 192.168.1.9, is set in the CPU properties. Furthermore the interface ID of the PROFINET interface is found under the HW identifier. This is required for configuring the modules.

Application Note A101401 Solution 13 3.2.2 Siemens Open User Communication To allow communication with the WAGO coupler, the TCON, TDISCON, TSEND, and TRCV modules are used in this example. As a general rule it is first necessary to establish a connection to the coupler through the application program. This is done with the TCON module. The CPU will maintain the connection until it is terminated by a call from TDISCON. Once a connection exists, a query can be sent to the WAGO coupler. This is done via TSEND. One bit is provided for this activation in the monitoring tables. The query is sent on a rising edge for this bit. The reply from the coupler is then recorded via TRCV. Only one query should ever be sent through a given ID so that the data will be read correctly.

14 Solution Application Note A101401 3.2.3 TCON The connection to the WAGO coupler can be configured in the TCON properties. First select Connection data > new. This creates a data module containing the connection information configured here. This DB (PLC_1_Connection_DB) must be provided on module input CONNECT. The partner should be selected as Unspecified, and its IP address should be provided. TCP was selected as the Connection type in this example. Active connection establishment should be set for Local. Important note! It is absolutely necessary to enter 502 as the partner port (Modbus/TCP). A connection can then be established by a rising edge on input REQ.

Application Note A101401 Solution 15 3.2.4 Coupler Process Image Data exchange has been implemented with the following WAGO nodes. TYPE Description Address in the process image 750-342 ETHERNET coupler 750-402 2-channel digital input module EW2 750-402 2-channel digital input module EW2 750-502 2-channel digital output module AW2 750-502 2-channel digital output module AW2 750-502 2-channel digital output module AW2 750-502 2-channel digital output module AW2 750-476 2-channel analog input module EW0, EW1 750-550 2-channel analog output module AW0, AW1 The addresses listed follow automatically from the node structure. Analog input and output modules and complex modules are first assigned an address in the process image, then addresses are assigned to the digital input and output modules. In this example the data over MB 100 are stored in the control program. Three monitoring tables are available for basic testing of the communication.

16 Solution Application Note A101401 3.2.5 Setting a Digital Output A MODBUS telegram must be sent to the coupler via the TSEND module. The structure of this telegram is stored in the WriteSingleCoil data module. Outputs can be set and reset easily with the WriteSingleCoil monitoring table. The Write Single Coil service of the MODBUS protocol is used for writing to an individual digital output. Therefore function code 5 should be provided in byte 7. The address of the bit is entered in bytes 8 and 9. To switch the output on B#16#FF must be written to byte 10. To switch the output off, B#16#00 should be assigned to byte 10. Additional Information: More detailed information can be found in the manual of the 750-342 fieldbus coupler in section 4.2, MODBUS Functions.

Application Note A101401 Solution 17 3.2.6 Setting an Analog Output Value A MODBUS telegram must be sent to the coupler via the TSEND module. The structure of this telegram is stored in the WriteMultipleRegister data module. Analog values can be written to the outputs with the WriteMultipleRegister monitoring table. The Write Multiple Register service of the MODBUS protocol is used. Therefore function code 16 (hex=10) should be provided in byte 7. The start address of the bit is entered in bytes 8 and 9. The number of words that should be written from the start address on is transferred in bytes 10 and 11. The value of byte 12 is twice the value of byte 11. The data should be stored starting from byte 13. It is possible to set an analog output value between 0 and 10 V by writing a value between 0-7FFF (see process image 750-550) into the register. Additional Information: More detailed information can be found in the manual of the fieldbus coupler (750-342) in section 4.2, MODBUS functions.

18 Solution Application Note A101401 3.2.7 Reading the Input Range A MODBUS telegram must be sent to the coupler via the TSEND module. The structure of this telegram is stored in the ReadMultipleRegister data module. In this example, three words should be read starting from address 0. The Read Multiple Register service of the MODBUS protocol is used. Therefore function code 3 should be provided in byte 7. The start address of the bit is provided in bytes 8 and 9. The number of words to be read is entered in bytes 10 and 11.

Application Note A101401 Solution 19 The response telegram of the coupler is interpreted via the TRCV module. In the process the DATA parameter is used to specify where the data is stored. The module asks for the length specification of the response so that the read instruction can be executed successfully. In this example, the response telegram is 15 bytes long. With the entry: P#M 100.0 BYTE 15, the Receive module is told to read 15 bytes. The quantity of data to be read depends on the MODBUS command and must always be adapted by the user. The data of the first analog value can be found in bytes MB109 and MB110. The data of the second analog value can be found in bytes MB111 and MB112. The data of the digital inputs can be found in bytes MB113 and MB114.

20 Solution Application Note A101401 3.3 Example 2 Once the attached example project Modbus_example has been opened, doubleclicking PLC_1 opens the device view.

Application Note A101401 Solution 21 3.3.1 Configuring Hardware Right-click > Swap device can be used to change the setting for the CPU of the existing hardware. The remaining structure can then be added through the hardware catalog.

22 Solution Application Note A101401 The IP address, here 192.168.1.9, is set in the CPU properties. Furthermore the interface ID of the PROFINET interface is found under the HW identifier. This is required for configuring the modules.

Application Note A101401 Solution 23 3.3.2 Configuring WAGO MODBUS Modules PLC_1 > Program Modules > fb.call takes you to the MODBUS module call. The modules for TCP and UDP are opened in networks 2 and 4, and the input and output parameters for the respective module are listed in networks 1 and 3.

24 Solution Application Note A101401 The connection parameters for TCP can be modified in network 1. The LocalID can be freely selected; the HW identifier of the PROFINET interface should be entered for the InterfaceId. The LocalPort can be freely selected; 502 (Modbus/TCP) should be selected as the RemotePort. The IP address of the WAGO coupler is used as the RemoteIpAdress. A connection to the WAGO couipler is established via M 10 TCP.xConnect. Data transfer between the coupler and Siemens controller can be started with M 10.1 TCP.xStartDataTransfer. A list of status messages can be found in application note a101406.

Application Note A101401 Solution 25 Data exchange has been implemented with the following WAGO nodes. TYPE Description Address in the process image 750-342 ETHERNET coupler 750-402 2-channel digital input module EW2 750-402 2-channel digital input module EW2 750-502 2-channel digital output module AW2 750-502 2-channel digital output module AW2 750-502 2-channel digital output module AW2 750-502 2-channel digital output module AW2 750-476 2-channel analog input module EW0, EW1 750-550 2-channel analog output module AW0, AW1 The addresses listed follow automatically from the node structure. Analog input and output modules and complex modules are first assigned an address in the process image, then addresses are assigned to the digital input and output modules.

26 Solution Application Note A101401 WriteAdress indicates the start register from which the data should be written. WriteQuantity indicates how may registers should be written to starting from the start address.

Application Note A101401 Solution 27 The WriteData section contains various examples of writing to the registers. Registers 1 and 2 are the analog outputs. It is possible to set an analog output value between 0 and 10 V by writing a value between 0 and 32767 (see process image 750-550) into the register. Register 3 is assigned to the digital outputs in this case. The can be set by writing a bit value. 1 corresponds to output 1, 256 corresponds to output 8, and 11 corresponds to outputs 1, 2, and 4.

28 Solution Application Note A101401 The registers for reading the process image are found starting from M40. The values of analog inputs 1 and 2 are found in registers 1 and 2. The state of the digital inputs can be read off register 3. A value of 1 again corresponds to input 1, and 256 to input 8.

Application Note A101401 Appendix 29 4 Appendix Example 1 can be found in Modbus_user_communication.zap13. Example 2 can be found in Modbus_FC_23.zap13.

WAGO Kontakttechnik GmbH & Co. KG PO 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 Email: info@wago.com Web: http://www.wago.com