- Establish VPN server
When there is a public fixed IP, open a communication port for the vpn-hub software on the ECS console or gateway to install the vpn-hub software and set relevant parameters.
When there is only public network dynamic IP, open a communication port for vpn-hub software at the gateway, contact the company's technical support to apply for comway dynamic domain name, and then install vpn-hub software and set relevant parameters。
- Set DTU access to VPN network
As shown in the figure below, set the public IP or dynamic domain name (888. Comway. Com) + port (1276) of VPN server and VPN IP (172.16.12.99) in DTU configuration software to access VPN network。
- Install Dc-vpn software and add DTU
As shown in the figure below, install Dc-vpn software and set relevant VPN parameters. When adding DTU, input its VPN IP and display online, which means that DTU is connected to VPN network and the communication connection is normal。
- Add S7-200 TCP device in Scada software
Create a new IO device in Scada software---PLC Siemens S7-200 (TCP). Take the VPN IP of DTU as the IP of IO device and the port number mapped by the port set by DTU as the communication port of IO device to establish communication.