.png)
What do I want to achieve?
I have a PLC (programmable logic controller) of the type Bosch Rexroth ctrlX CORE and would like to be able to access it remotely via cellular radio.
Other Bosch Rexroth controllers?
The procedure described here was verified with a Bosch Rexroth ctrlX CORE controller. The procedure for other Bosch Rexroth ctrlX CORE controllers is identical or very similar.
How do I accomplish this?
With an INSYS router, a SIM card and the VPN service icom Connectivity Suite, remote access to the control system via cellular radio is possible.
Required hardware
You will need the following in addition to your controller to be able to access it remotely.
1 INSYS router, e. g. MIRO L-200
1 suitable cellular antenna
1 M2M SIM card in industrial quality
1 Ethernet cable
1 power supply unit or-power supply (12-24 V DC)
1 Configuration PC with browser (for initial setup, can also be the remote access PC)
1 Remote access PC with browser and PLC-specific software, such as e. g. ctrlX PLC Engineer
Preparation
In our exemplary configuration, which is described in the following steps, we use a typical installation as a basis for the IP address of the controller. We give the router an IP address in the same network. Netmapping is used to create a virtual IP network via which the controller and the router (or other devices) in the network behind the router can be accessed remotely.
IP address of the Bosch Rexroth controller: 192.168.1.2/24
IP address of the INSYS router: 192.168.1.1/24 (standard setting)
IP network accessible from remote: 192.168.11.0/24
.png)
icom Connectivity Suite
How to log in to the icom Connectivity Suite and add a remote access PC and router.
If you do not already have an account for the icom Connectivity Suite, register on the portal. See this Configuration Guide.
Sign in to the portal.
Add the PC, from which you want to access the controller, to the VPN network. See this Configuration Guide.
Please note!
You do not have to set an accessible IP for the remote access PC, since access to the PC from the VPN network is not necessary.
Add the router, which you want to use to access the controller, to the VPN network. See this Configuration Guide.
Please note!
If you assign a device code here, keep it in mind for the subsequent configuration of the router.
Enter as accessible IP the IP address, which the router should get in the network accessible from remote, in this case 192.168.11.1.
Check Netmapping.
Enter as Router/LAN IP the IP address, which the router should get in the local network, which also contains the controller, in this case 192.168.1.1.
.png)
Configuration PC
How to prepare your configuration PC.
You will need a PC with a free Ethernet socket. A DHCP client should be activated on the PC; otherwise you must set up a static IP address in the address range 192.168.1.0/24. The IP address 192.168.1.1 is already occupied by the router.
Router
How to commission your router.
The router should be in default settings for this configuration!
Reset the router to default settings in case it has already been used.
Insert the SIM card into the router (for routers with two SIM card slots, make sure that you insert the SIM card into SIM1).
Install the router on the DIN rail (installation notes are available in the Installation and User Manual).
Connect the antenna (when using an antenna on routers with two antenna sockets, make sure that you connect the antenna to LTE1).
Connect the configuration PC to the router to socket ETH1 using an Ethernet cable.
Connect the power supply to terminals V+ (or VIN, positive) and V- (or GND, negative).
The uppermost LED PWR (Power) should light now and signal that the router is supplied with power.
How to configure your router using the Startup wizard
Open a new browser window or tab - keep the browser window with the icom Connectivity Suite - VPN open.
Enter https://insys.icom into the address bar of the browser.
Click on the welcome screen on To Startup wizard.
Please note!
If the welcome screen is not displayed, you may also start the Startup wizard in the Wizards → Startup wizard menu.
Click in step 1 - System time - on NEXT - this takes over the system time from the configuration PC and configures a regular update of the time.
Enter in step 2 - Authentication - a user name and a safe password for future access to the router and click on NEXT .
Select in step 3 - Internet connection - the interface you want to use to establish the connection, here LTE - SIM1, enter a PIN for the SIM cad if required, select the APN and click on NEXT .
.png)
Enable in step 4 - VPN connection - the Configure VPN switch, select as Type of VPN connection the icom Connectivity Suite, select Download configuration automatically and enter Customer name as well as Device code or Default code.
.png)
If you did not specify a device code when registering the router, the default code will be used here. Customer name and default code can be found in the icom Connectivity Suite - VPN on the System → My VPN Hub page in the Account Information field..png)
Click on NEXT .Click in step 5 - LAN connection - on NEXT - the LAN connection will be configured automatically by the icom Connectivity Suite - VPN.
Step 6 - icom Router Management - allows to configure your router for the icom Router Management. For this purpose, the router must first be set up as described here.
Click on RUN WIZARD.
The Startup wizard is executed and displays the progress of the configurations it has made. The Ethernet interface of the router will be reconfigured. However, after clicking on EXIT WIZARD, the router can still be accessed via the Ethernet connection from the configuration PC, as its default setting is in the same network as that of the controller. Otherwise, the router could only be accessed from the remote access PC via the icom Connectivity Suite - VPN.
The router should be indicated as Online in the device list in the portal of the icom Connectivity Suite - VPN (VPN > Devices menu) after a few minutes.
PLC
How to check the IP settings of your Bosch Rexroth controller.
Compatibility of the controller with the PLC software!
Make sure that the controller firmware is up-to-date and works with the PLC-specific software used (in this case ctrlX PLC Engineer).
Establish a local direct connection to the controller, open a command prompt or terminal window and send a Ping to the IP address of the controller (in our example 192.168.1.2): > ping 192.168.1.2
If the ping is received successfully, you have verified the IP address of the controller.
Remote access PC
How to configure the PC with which you want to access your controller remotely for a connection with the icom Connectivity Suite - VPN. The installation and configuration of the PLC-specific ctrlX PLC Engineer software is not part of these instructions.
Use this Configuration Guide to set up a Windows PC for a connection to the icom Connectivity Suite - VPN. Proceed in the same way for a computer with a Linux operating system. It is important to download the OpenVPN configuration file generated by the icom Connectivity Suite - VPN and import this configuration file into the OpenVPN software. Instructions for iOS and Android are available here.
How do I establish the remote access?
To connect the router, proceed as described above and connect the controller to the router via Ethernet (in our example, we have connected the router to the controller via the Ethernet port XF10).
On the remote access PC, establish the OpenVPN connection as described here.
How to establish remote access to the user interface of the controller.
Open a command prompt or terminal window and send a Ping to the remote access address of the controller (in our example 192.168.11.2): > ping 192.168.11.2
If the ping is received successfully, you have verified the access to the controller.
Access to other devices in the network!
If there are other devices in the local network on the router, you can also access them via the IP network 192.168.22.0/24 that can be reached for remote access. For example, if another controller in the local network has the IP address 192.168.1.23, you can access it via the remote access address 192.168.22.23.
How to establish remote access from ctrlX PLC Engineering to the controller.
In order to program the controller, it is necessary that the PC on which the required ctrlX PLC Engineering software is installed is located in the local network of the controller or has remote access to this network. In the following, we describe remote access to the controller in this network.
Start ctrlX PLC Engineering and open the project of the controller to which you want to establish remote access.
.png)
Change to Device and open it using a double-click.
.png)
Change the existing IP address for access from the local network 192.168.1.2 to the remote access address 192.168.11.2 and confirm this by clicking Apply. Then enter the user name and password for the controller and confirm the change with OK.
.png)
Confirm the use of the certificate by clicking on OK.
The controller is read out and displayed..png)
The controller is now shown as online by the green LED symbol..png)
Click on the online icon to connect to the controller..
.png)
.png)
If the controller and the application are highlighted in green, the connection has been successfully established.
You can now monitor the controller and make changes to its programming.
The connection can be terminated again with a click on the offline icon..png)
How do I set up a webproxy access to the controller?
How to set up a webproxy access to the controller
A webproxy enables access to the user interface of the controller also from a device that is not in the VPN network of the icom Connectivity Suite - VPN.
Security risk!
The controller is accessible via the Internet when using a webproxy.
The encrypted connection is only protected against Internet access by a password. This is either the device code of the INSYS routers or, if the password has been deactivated in the webproxy, the password of your application. Obey the security of your application and the rules for strong passwords. We do not recommend this function for applications that are relevant to security.
To access the user interface of your controller via a webproxy, the web server must be activated on your controller.
Log in to the Portal of the icom Connectivity Suite - VPN.
Click on the VPN → Endpoints (Webproxies) page on + ADD ENDPOINT.
Select the Device network of your router that you previously added in icom Connectivity Suite - VPN.
Select HTTPS as the Protocol for accessing the endpoint.
Enter the IP address that is accessible from remote under IP in VPN, in our example 192.168.11.2.
Enter the Port that is used for access to the device, this is for HTTPS 443.
Enter an Endpoint name that uniquely describes the endpoint so that it can be distinguished from others.
Activate the Add webproxy switch and click NEXT.
.png)
Change the randomly generated string in Name in URL to a ‘descriptive’ address. The resulting URL is displayed as a preview below the field.
For Basic Authentication, optionally select No Authentication to disable the password request by the icom Connectivity Suite - VPN. Please note the information above!
Click on CREATE to add the endpoint.
.png)
You can now access the user interface of your controller directly via the link in the Webproxy call column, even if the device used is not in the VPN network of the icom Connectivity Suite - VPN or the VPN connection does not exist.
What to do if it doesn't work?
If remote access to the controller does not work, you can troubleshoot the fault using the following methods:
Are remote access PC and router indicated as Online in the device list of the icom Connectivity Suite - VPN (VPN > Devices menu)?
Does remote access to the router work via the address https://192.168.11.1?
Is it possible to ping the controller in the local network of the router? To do this, go to the Administration → Debugging menu and enter for the Ping Tool the local address of the controller 192.168.1.2 as Parameter.
Does local access to the controller work via the local address 192.168.1.2 from a PC in the local network of the controller?
Open the Status → Dashboard page and check the necessary connections.
.png)
Further configuration options
In this Configuration Guide, you will learn how to configure the router so that it can be enabled locally with a key switch for an Internet connection - and thus for a connection to the icom Connectivity Suite - VPN - in order to be able to authorize remote access locally, for example.