CP1L-E Remote Connection with 3G/4G modem

Updated October 18, 2024

Introduction

This guide will show you how to configure the Omron CP1L-E for remote connection on a 3G/4G modem.

Delete

Please refer to these Precautions and Terms and Conditions‍ which relate to the information and program samples provided before proceeding


Procedure

Network Setup

Delete

Step 1 - PC Configuration

Setup the PC so it has a static IP within the 192.168.250.XXX network. For this example, set it to 192.168.250.50

Right click the Windows (start button) in the bottom left corner of the screen and select Settings

Select Network & Internet

Change adapter options

Double click the Ethernet adapter in use and click on Properties.

Double click Internet Protocol Version 4 (TCP/IPv4) to open its properties. Make the IP address static by selecting Use the following IP address and entering the IP address and subnet mask:
IP address: 192.168.250.50
Subnet mask: 255.255.255.0

Then click Advanced to add additional subnet to the network adapter.

Click Add

Enter IP address for modem subnet:
IP address: 192.168.8.50
Subnet mask: 255.255.255.0

Click Add and OK to exit all the menus. The network adapter is now set up for both PLC and modem factory default IP ranges.

Delete

Step 2 - Modem Configuration

2.1 - Accessing the modem locally

The modem’s settings can be changed through a web browser – in this example Chrome is used.

Enter the IP address of the modem into the URL. By default, the IP address of the modem is

192.168.8.1. This will be changed to 192.168.250.31 for this example.

Login with:

Username: admin

Password: admin


Under Network - > LAN, give an appropriate host name – in this case router.
IP1: 192.168.250.31/24 (/24 sets the subnet to 255.255.255.0)
Click Save

2.2 - Network and SIM Setup

Under Network -> Modem click Add. Enable Auto-Dialup and give an Interface Name.

Ensure that the sim card in the modem is extranet enabled – call the service provider. In this example the sim card used is a Telstra extranet enabled 4G sim.

APN: 
Service Code: 
Network Type: 
Connection Mode: 
telstra.extranet
GPTEXB3 (linked to telstra.extranet)
auto
dhcp

Click Save

Under Network -> Network Type set the following

Default Route: 
DNS Type: 
Interface Name
modem
interface
modem

Then click Save.

2.3 - Configuring a Dynamic DNS


To utilise a dynamic dns, this example will use the free service duckdns.org. Configuring a static ip address with Telstra is expensive.

Head over to www.duckdns.org and create an account.

Under domains, add a new subdomain – for this example http://omronsydintercel.duckdns.org is used – click add domain

Back to the modem settings under Applications -> DDNS,

DDNS Service: 
Service Provider: 
Token: 
Username: 
Password: 
User Domain: 
Update interval:
Enable
duckdns
0f9d3e59-fb7a-498e-b8d0-9cbdc28b33b6 (Token provided by duckdns)
Use any (Not important)
Use any(Not important)
omronsydintercel.duckdns.org
120

Then click Save.

2.4 Port Forwarding

2.4.1 CP1L-E

To access the CP1L-E PLC remotely, we will need to port forward its IP address and port. 

Under Forward -> NAT, click Add

NAT Type: 
Protocol: 
DNAT
all
Original Address Type: Interface
Interface
Original Port: 
Mapping Address: 
modem
9600 (CP1L-E Ethernet Port)
192.168.250.1 (CP1L-E IP address)

Click Save.

Port forwarding for the CP1L-E is configured and ready.

Delete

Step 3 - PLC Configuration

3.1 - Setting PLC LAN IP Address and Default Gateways

3.1.1 - CP1L-E - CX- Programmer

Open CX-Programmer and connect to the CP1L-E or create a new project with the CP1L-E.
Double click on Settings

Scroll over to the right until you see Built-in Ethernet and enter the following:

IP Address
IP Address: 192.168.250.1 (set the IP address of the CP1L-E – default 192.168.250.1)
Sub-net Mask: 255.255.255.0

Under the IP Router Table click Ins and enter

IP Address: 
Router’s IP Address: 
000 000 000 000
192.168.250.31 (Address of the modem)


Click OK and close the Settings. Under PLC -Work Online. Once connected online transfer to the controller PLC -> Transfer -> To PLC. Select ALL. After transferring, go offline and power cycle the PLC since the IP settings have been changed.

Delete

Step 4 - Remote PLC Connection

Now to connect remotely to the CP1L-E  we firstly need to know the public IP address of the modem.

From Status -> Modem, we can see the IP Address: 123.209.230.50

From a ping test using cmd.exe, using ping omronsydintercel.duckdns.org we can see IP: 123.209.230.50

From duckdns website, for the omronsydintercel domain we can see current IP = 123.209.230.50.
In CX – Programmer, right click the PLC and select Change

Click on Settings for Network Type: Ethernet, under the Driver tab enter the public IP address. In this case it is 123.209.230.50 with the default port 9600 (the port we port forwarded to ip address 192.168.250.1) and click OK.

If all the settings are correct, we should be able to connect online to the PLC remotely, using the public IP address

Delete


Start a Conversation
This conversation is closed
Uploading...