The Configurable Gateway PURPOSE You have just received your brand new! ACT L produces a complete range of Ethernet/Internet gateways also known as Programmable Industrial Routers (PIR). See our web site http://www.ewon.biz to get further information about the ewon range. The is a configurable gateway: it can retrieve data from several protocols and publish them as Modbus TCP registers or SNMP registers. The goal of the current document is to teach you how to correctly configure the as a Configurable Gateway to address a wide range of various Programmable Logic Controllers (PLC), from the Ethernet side to the serial side through the ewon interface. is just out of the box, you have already powered it ON (12-24VDC) and connected its Ethernet cable. Every ewons are shipped with the pre configured IP address 10.0.0.53 and adm/adm as User Name/Password. Enter http://10.0.0.53 in the address bar from your Internet Explorer (refer to the ebuddy User Guide if you need to change the ewon IP address and subnet mask) Enter adm (User Name)/adm (Password) then Enter You are now navigating on your! Page 1
The Configurable Gateway ModbusTCP/SERIAL GATEWAY Principles The is a configurable gateway: it enables a connection between a supervisor or an industrial software and the through the TCP link (with protocol=modbustcp). This gateway then allows to read in the an existing Tag which reads a word on a PLC linked to it by its serial interface (with a serial protocol such as UNITE, NETMPI, DF1, FINS and S5-AS511). Configurable Gateway configuration with The configurable serial port Depending on the serial link which is supported by the target PLC, the serial port dipswitches (left bottom side from the when you face its LEDs panel) must be configured for RS-232 or RS-485 mode. A label describing the switches configuration stands just close from the dip-switch panel. In case of doubt, please refer to the Installation Guide (Configurable serial port chapter) you can download from the ewon web site: (http://www.ewon.biz Support/Documentation/User guides). The IO servers The requires a kind of driver to be able to speak the protocol from the PLC. At this time, the embeds several drivers (called IO servers), each of them can be configured from a distinct configuration web page from the interface: From the main menu, click on IO Server Config then select the required IO Server: You will find in the following pages detailed examples on how to configure each of the ewon IO servers and Tags to enable the configurable gateway feature. Page 2
The Configurable Gateway Enabling the ModbusTCP gateway The ModbusTCP is activated by default in the. Nevertheless, you have to know where to restablish it if it has been unactivated. Check that the feature is active by clicking on Main menu from the menu bar, then select IO Server Config/Modbus and Edit. Activate the ewonserver checkbox if required. The Modbus TCP Unit Address is set to 100 by default. You can modify this value if e.g. this address is affected to another device on your industrial network. Don t forget to click on the Update Config button to validate your changes. SNMP publication First of all : you ll find the MIB file of the ewon on the Download Software page on ewon.biz. To publish a tag in SNMP, in the Tag Setup page of the tag, you only need to enable the SNMP publication with a defined OID (Object IDentification). Page 3
The Configurable Gateway Rem: the SNMP publication and the ModbusTCP publication are independent and thus can be enabled at the same time. The doesn t act as SNMP server by default, you need to enable it and configure it correctly. Go on the menu Config/System Setup/General/SNMP to enable SNMP on the. A simple configuration is shown below: You can restrict SNMP access to specific hosts by disabling the Accept SNMP from any host checkbox. Page 4
ModbusTCP/Unitelway Gateway The ModbusTCP/UNITELWAY Gateway configuration Serial connection configuration Set up ewon dip switches to RS485 mode (with or without polarization depending on your network type) Connect the serial cable between your and the PLC (see page 14) UNITELWAY IO server configuration Go to the UNITE IO server page: Configuration/IO Server Config/UNITE/Edit COM Setup Topic Setup Baud Rate 9600 Tx message timeout Default Topic A Enabled Parity ODD Force Unitelway V2 Unchecked Global Device Address 0,254,0 (Default) Stop Bit(s) 1 Disable 0,254 translation Unchecked Poll Rate Default (2000) HW Mode Half Duplex ADO Default (4) Master Response timeout Rx message timeout Default Default XWAY Network Station Let empty Click on Update Config to validate the IO server configuration Page 5
ModbusTCP/Unitelway Gateway Creating a UNITELWAY Tag - Testing from the ewon500 Go to the Tag Setup page: Configuration/Tag Setup/Create New Tag Tag Page - Main Settings Tag Name e.g. test_unite Page Default Tag Description A free text e.g. MW word on the TSX Micro Tag Page - I/O Server Setup Server Name Select UNITE in the scroll list Topic Name Enter A (The one you have previously created) Address MW0 Type Choose Analog in the scoll list Force Read Only Validate the checkbox ewon value Let 1+0 (default) Click on Add/Update Only to validate the Tag configuration At this stage, we are able to read the value from the Tag on the PLC, providing the MW0 word matches a running program in the PLC. The Technical Note 15: Gateway XIP - Unitelway for Schneider PLC you can download from the ewon web site http://www.ewon.biz (Support/Documentation/Technical notes) explains how to create such a program from PL7 Pro, then transferring it from PL7 Pro to the PLC. For the moment, the ewon is connected to the PLC through its serial link; now we are going to read the value in the ewon (Main Menu/View I/O). Providing the serial connection works and the program is running on the PLC, you should see the Tag value changing in the View I/O page (click at regular interval on the Update link to see the value changing). Page 6
ModbusTCP/Unitelway Gateway Enabling the Modbus TCP/UNITELWAY Configurable Gateway Now we have to configure the in order for it to allow the PC to see the PLC through the ModbusTCP link. Return to the configuration from the Tag you have just created (Configuration/Tag Setup then click on the previously created Tag name) ewon value Modbus TCP Register Tag Page - Tag Visibility Setup Let the default value Validate the Enabled checkbox Enter the register number published by the The UNITE Tag will be published by the on the register 26. The supervisor will reach the in ModbusTCP with the following parameters: Destination IP address: the IP address from the Slave address: 100 (default Modbus TCP Unit Address) Register: 26 Page 7
ModbusTCP/DF1 Gateway The ModbusTCP/DF1 Gateway configuration Serial connection configuration Set up ewon dip switches to RS232 mode (all switches OFF) Connect the serial cable of type 1756-CP3 between your and the PLC (see page 15) DF1 IO server configuration Go to the DF1 IO server page: Configuration/IO Server Config/DF1/Edit COM Setup Baud Rate 19200 Master response timeout Topic Setup Default Topic A Enabled Parity NONE Rx message timeout Default Destination Device Type and Stop Bit(s) 1 Tx message timeout Default Address SLC500-0 Frame Error Detection HW Mode BCC ewon DF1 Address Default (4) Poll Rate 1000 Full Duplex Destination DF1 Address Empty Click on Update Config to validate the IO server configuration Page 8
ModbusTCP/DF1 Gateway Creating a DF1 Tag - Testing from the ewon500 Go to the Tag Setup page: Configuration/Tag Setup/Create New Tag Tag Page - Main Settings Tag Name e.g. test_df1 Page Tag Description Server Name Topic Name Address Type Force Read Only ewon value Click on Add/Update Only to validate the Tag configuration Tag Page - I/O Server Setup Default A free text e.g. Counter on the SLC500 Select DF1 in the scroll list Enter A (The one you have previously created) Enter the DF1 address matching the value you want to read on the PLC e.g. C5:1.ACC Select Analog in the scroll list Validate the checkbox Let 1+0 (default) At this stage, we are able to read the value from the Tag on the PLC, providing the C5:1.ACC matches a running counter on the SLC500 PLC. The Technical Note 23: Gateway for EIP- DF1 Allen-Bradley PLC you can download from the ewon web site http://www.ewon.biz (Support/Documentation/Technical notes) explains how to create such a program from RSLogix500, then transferring it from the PC to the PLC. For the moment, the ewon is connected to the PLC through its serial link; now we are going to read the value in the ewon (Main Menu/View I/O). Providing the serial connection works and the program is running on the PLC, you should see the Tag value changing in the View I/O page (click at regular interval on the Update link to see the value changing). Page 9
ModbusTCP/DF1 Gateway Enabling the Modbus TCP/DF1 Configurable Gateway Now we have to configure the in order for it to allow the PC to see the PLC through the ModbusTCP link. Return to the configuration from the Tag you have just created (Configuration/Tag Setup then click on the previously created Tag name) Tag Page - Tag Visibility Setup ewon value Modbus TCP Register Let the default value Validate the Enabled checkbox Enter the register number published by the The DF1 Tag will be published by the on the register 1. The supervisor will reach the in ModbusTCP with the following parameters: Destination IP address: the IP address from the Slave address: 100 (default Modbus TCP Unit Address) Register: 1 Page 10
ModbusTCP/FINS Gateway The ModbusTCP/FINS Gateway configuration Serial connection configuration Set up ewon dip switches to RS232 mode (all switches OFF) Connect the serial cable of type CS1W-CN226 between your and the PLC (see page 16) FINS IO server configuration Go to the FINS IO server page: Configuration/IO Server Config/FINS/Edit COM Setup Topic Setup Baud Rate 9600 Reply Timeout 4000 Topic A Enabled Parity Even Ethernet FINS network Empty Protocol SLC500-0 Databits 7 Ethernet FINS node Empty Global Device Address 0,0,2 Stop Bit(s) 2 Serial FINS network Empty Polling Rate 3000 HW Mode Full Duplex NO Handshaking Serial FINS node Empty Click on Update Config to validate the IO server configuration Page 11
ModbusTCP/FINS Gateway Creating a FINS Tag - Testing from the ewon500 Go to the Tag Setup page: Configuration/Tag Setup/Create New Tag Tag Name Page Tag Description Server Name Topic Name Address Type Force Read Only ewon value Click on Add/Update Only to validate the Tag configuration Tag Page - Main Settings Tag Page - I/O Server Setup e.g. test_fins Default A free text e.g. Data Memory area on CS1G Select FINS in the scroll list Enter A (The one you have previously created) Enter the FINS address matching the value you want to read on the PLC e.g. D0 Select Analog in the scroll list Validate the checkbox Let 1+0 (default) At this stage, we are able to read the value from the Tag on the PLC, providing D0 matches a running variable on the CS1G PLC. The Technical Note 26: Gateway FINS for Omron PLC you can download from the ewon web site http://www.ewon.biz (Support/Documentation/Technical notes) explains how to create such a program from Cx-Programmer, then transferring it from the PC to the PLC. For the moment, the ewon is connected to the PLC through its serial link; now we are going to read the value in the ewon (Main Menu/View I/O). Providing the serial connection works and the program is running on the PLC, you should see the Tag value changing in the View I/O page (click at regular interval on the Update link to see the value changing). Page 12
ModbusTCP/FINS Gateway Enabling the Modbus TCP/FINS Configurable Gateway Now we have to configure the in order for it to allow the PC to see the PLC through the ModbusTCP link. Return to the configuration from the Tag you have just created (Configuration/Tag Setup then click on the previously created Tag name) Tag Page - Tag Visibility Setup ewon value Modbus TCP Register Let the default value Validate the Enabled checkbox Enter the register number published by the The FINS Tag will be published by the on the register 10. The supervisor will reach the in ModbusTCP with the following parameters: Destination IP address: the IP address from the Slave address: 100 (default Modbus TCP Unit Address) Register: 10 Page 13
The Configurable Gateway TSX CX 100 Schneider cable (between ewon and the PLC) - Pinout This 2m cable can be delivered as accessory to connect Shneider PLCs; it has a SUBD9 connector at the ewon side and a MiniDIN connector at the PLC side. MiniDIN PIN Schneider Signal Name ewon Signal Name ewon SUBD9 PIN 1 D(B) A+ DB9 pin 3: A+ 2 D(A) B- DB9 pin 8: B- 3 4 5 6 7 GND GND DB9 pin 5:GND 8 Connector Shield Table 1: Schneider cable pinout Page 14
The Configurable Gateway 1747-CP3 cable between ewon and SLC-500 - pinout 9-pin ewon 1 2 Rx 3 Tx 4 5 COM 6 7 RTS 8 CTS Table 2: 1747-CP3 cable pinout The connectors are SUBD9 female at both sides. Page 15
The Configurable Gateway XW2Z-S002 cable between ewon and OMRON PLC - Pinout 9pin Dsub (Female) 9pin Dsub (Male) 3 SD SD 2 2 RD RD 3 7 RS RS 4 8 CS CS 5 5 SG SG 9 ewon Table 3: XW2Z-S002 cable pinout NS-series PT Page 16