I’m using ScadaMobile on a Siemens S7-1200 application.
My cliënt wants to use the ScadaMobile when he is at home, using Wifi, and also outside home, using 3G.
We have installed the Siemens in his home network with a fixed IP-adres.
This means that he must use this fixed, internal IP-adres when he’s at home (using WiFi), and his public IP-adres (with portforwarding to the fixed, internal IP-adres) when he’s outside (using 3G).
I would like to know if it is possible that ScadaMobile recognizes automatically that he’s inside (using WiFi) or outside (using 3G) and than automatically uses the right IP-adres.
If this is not possible, how would you suggest to make this work.
I’ve already studied the examples and read the forum, but i could not find anything that matches my particular question.
This is described in a general way in the “Network Settings for remote access” section of the manual. ScadaMobile uses the fact that by international convention Local IP Addresses never overlap Remote Addresses. In the app you only need to enter both your Local IP and your Remote IP (i.e the public IP of your router). The app then switches automatically to one of the two. As you state you also need to enable port forwarding to your internal IP on your router.
Still, for this to work there is one remaining step: your PLC needs to know that you intent to access it through a “gateway” (i.e your router). In our manual we provide screenshots of the relevant configuration panels for Omron and Rockwell Automation software. You should be able to find a similar configuration panel on your Siemens software.
It works as you described. I’ve entered a local_ip in the sourcefile and also i’ve entered the public ip as remote_host in the same sourcefile.
The app automatically switches between WiFi and 3G.
I made the Gateway setting in the Siemens PLC and it works fine here in the office.