eWON.biz
Knowledge Base

Latest changes
eWON wiki > eWON Support > Knowledge Base > Questions and Answers > How to proxy a PLC protocol

How to proxy a PLC protocol

From $1

Table of contents

 

Question:

I want to use the eWON proxy feature to reach my Ethernet PLC behind the eWON. How can I do that?

Answer:

1) Change the Gateway service port:
If you use one of the PLC types which are supported by the eWON, then you must first change the Port on which eWON is listening for the "Gateway service". If not, eWON may encounter a problem because the same incoming port will be used twice. (see "Socket Bind error" explication)

The port on which eWON listens for the Gateway Service can be modified under following menu: 
IOServer\ GlobalConfig

For example to change the Gateway Service port for the Siemens Ethernet protocol, set the ISOTCP port to 1102
Note that you need to reboot the eWON to apply this change

2) Open the eWON Proxy Configuration page, and set the following proxy rule:
 ProxyPLCProtocol.png

For the Proxy External Interface (EXT) select the interface you want to use for the remote connection (WAN, PPP Incoming, VPN):
    - If you use a Talk2M connection, select VPN.
    - If you use a GPRS connection without VPN, select WAN
    - If you use the second Ethernet interface (Ethernet WAN) without VPN, select WAN
    - If you connect to the eWON using an incoming modem connection (PSTN, ISDN, or GSM data), select PPP Incoming.

For the Incoming port and Destination port set the port which is used by the PLC protocol (ex.: 102 for the Siemens IsoTCP protocol). See table hereunder for other PLC protocols.

In the Destination IP address, enter the IP address of your PLC.

3) Reboot the eWON, to apply point 1.

 

To realize the remote connection to your PLC, you must now use in the programming software the eWON IP address instead of the PLC IP address. So If you use for example a Talk2M Connection, then use the VPN IP address of the eWON in the programming software to allow the remote connection.

 

Standard ports used by PLC protocols

Used ports
TCP 102 ISOTCP
TCP 502 ModbusTCP
TCP/UDP 9600 FINS
TCP 44818 Ethernet IP
UDP 161 SNMP