Page 2
PLC-505 User Manual This manual applies to the following models, and the corresponding networks supported by the models are listed in the table below: Model Network 4G/3G/2G (7 kinds of network modes) and WAN PLC-505-N4 cable networks, use 4G by default...
Appendix 5: Configure PLC-505 to Access Internet via Cable/WIFI ......51 Appendix 6: Configure GPS Query Settings and GPS data format ......59 Appendix 7: Send/Receive SMS with PLC-505‟s Ethernet Interface and SMS Format ................................61 Appendix 8: Use VNC and PLC-505 to Access and Control Devices Remotely ..65...
GPRS/EDGE/GSM/CDMA networks, and can automatically switch between different networks. In case there is no 4G network or SIM card does not support 4G, PLC-505 can automatically switch to 3G or 2G networks. PLC-505 has WIFI functionality as well, and supports 802.11b/g/n protocol.
WAN (LAN1) port can be used to access cable network; and in case WIFI is available, PLC-505 can be configured to access internet via WIFI. 4G, WAN and WIFI are all supported by PLC-505, this greatly facilitates customer‟s project deployment that customers do not have to choose different devices from different suppliers because of different network access at the spot.
PLC-505 User Manual Figure 1-1: PLC-505 side view 1 Figure 1-2: PLC-505 side view 2 1.3 Standard Accessories Figure 1-3: 4G all frequency sucking antenna...
Page 8
PLC-505 User Manual Figure 1-6: Cross cable NOTE: The accessories may be different because of different models and customer requirements, the figures above are just for reference.
PLC, to download or update program. PLC-505 has two RJ45 interfaces, and can be WIFI AP. So it allows multiple PLCs (or other devices) that have Ethernet interface to connect with it. And with PLC-505‟s virtual channels, one PLC-505...
Vircom to implement bi-directional communication with PLC. PLC-505 has one RS232 ad one RS4845 serial port, and support virtual channels on RS485 serial port. One PLC-505 can serve at most five PLCs (or other devices) with RS485 serial port to perform remote data acquisition and program update.
Flashing slowly Table 1-1 PLC-505 indicator light description 1.6.3 Serial Port Definition Type RS-232 Definition Table 1-2: PLC-505 RS232 serial port (Standard RS-232 DB9 male port) pin definition Type RS-485 485A 485B Definition Table 1-3: PLC-505 RS485 serial port pin definition...
PLC-505 User Manual 1.6.4 RESET Button To reset PLC-505 to default, login its configuration web page, and choose “System tools” -> “Restore set”; Or: press the RESET button continuously, the signal lights will flash one by one, until all lights are on, that means the reset is finished.
Page 15
PLC-505 User Manual Figure 1-11: Implement PLC remote monitoring and program update via PLC-505‟s serial functionality Figure 1-12: Implement remote control of touchscreen desktop via PLC-505‟s agent client functionality and VNC software...
Page 16
PLC-505 User Manual Figure 1-13: Use PLC-505 to access LAN remotely via VPN...
5. Remote Configurations 2.1 Configurations 2.1.1 Preparation One cross Ethernet cable used to connect PLC-505 with PC or customer device; One 4G all frequency sucking antenna; One power supply; One USIM card that can access internet.
Page 19
PLC-505 User Manual Figure 2-1: Set IP address as "Automatically obtain IP address" Open IE browser, input address "http://192.168.10.1" and press Enter; Input "root" as username and "1234" as password, then press Enter to login web configuration interface and configure the device.
Page 20
This channel is designed only for PLC program update, and it can also be used to perform PLC-505‟s remote configuration. The other nine channels are used to connect PLC or other device with Ethernet interfaces.
Page 21
8080, and normally keep the default settings. PLC-505 supports one RS232 serial port, and at most five RS485 serial ports, and RS232 and RS485 can be used at the same time. Each serial port is matched to a channel identified by channel ID. If PLC-505‟s IMEI is 240305001234567, then RS232 channel‟s ID is...
Page 22
PLC-505 User Manual Figure 2-4: Configure serial functionality...
3G/2G network. Wireless Advanced Check network debugging information Configure WAN interface, for PLC-505-W0, enabled default; PLC-505-N4, WAN is disabled by default. Configure WIFI parameters. Once WIFI is WIFI client enabled, WAN will be disabled. Set inner IP and DHCP Configure WIFI hotspot parameters. WIFI...
Import parameter file saved before/Export config file current configurations to file Reboot Reboot router Table 2-1: Details of configuration parameters 2.3 Restore to Default According to the description of "Configuring PLC-505", after entering PLC-505 configuration interface, select "System Tools" and then "Restore Set".
Ask eTung for firmware software According to the description of "Configuring PLC-505", connect PLC-505 with PC via a cross Ethernet cable, open browser, inputhttp://192.168.10.1 as URL, input username and password (by default username is root and password is 1234), and login router configuration webpage.
Wait a moment and then refresh the webpage to see the configuration page again. 2.5 Remote Configurations SMS commands and remote AT commands can be used on PLC-505 to modify configuration parameters remotely. Details are described below: 1. Modify configuration parameters remotely via SMS The SMS to configure PLC-505 parameters should follow the format below: SMS password;AT commands...
Page 27
PLC-505 User Manual unknown, an ERROR will return. The commands will take effect after system reboot. This can be done by putting a command "AT+REBOOT" in the end of SMS commands, or sending a separate SMS with command "AT+REBOOT". 3) AT command must be capitalized, but the parameters in the command do not have this limit.
Page 28
AT+MSERVER=3g.etungtech.com,8080 Click “Send” afterwards, and if successful, a “OK” will show in “CMD Response” on the right side. Then PLC-505 will be offline from the original mServer, and connect to the new data center and port.
Page 29
PLC-505 User Manual Figure 2-7: Transfer Terminal remotely Below are remote AT commands that are supported on PLC-505 Ethernet channels. 1) AT+MSERVER=addr, port Change data center address and port, with reply OK or ERROR. addr: data center address, either IP address or domain...
Page 30
PLC-505 User Manual Set heart beat interval (unit: second), with reply OK. 6) AT+SMSPING=PHONE_NUM Ask the router to send an SMS to PHONE_NUM, and the content is the router‟s IMEI number, with reply OK. 7) AT+SMSZHUANFA=txt,info_src,dest Ask the router to send an SMS to info_src first with content “txt”...
PLC-505 User Manual Appendix 1: Use PLC-505 Ethernet Functionality to Implement PLC Remote Data Acquisition Program Update 1. Apply eYun account Access website http://3g.etungtech.com , press “Register”, and input registration information. Pay attention that the password should not be too simple.
Page 32
PLC-505 User Manual Figure Appendix 1-2: Input registration information 2. Configure PLC-505 Connect PLC-505 with PC via Ethernet cross cable, and the IP address in PC is set to obtain automatically; Open browser and input URL: 192.168.10.1; Input username: root, and password: 1234 to login;...
Page 33
In the device list, click the device created before, and then “Connection Management”, register terminal ID, as shown in the figure below. Terminal ID is the channel ID in PLC-505‟s Ethernet functionality. Figure Appendix 1-4: Register terminal ID on IoT cloud platform...
Page 34
PLC-505 User Manual Then after PLC-505 connects to cloud platform, customer can check the real data acquired remotely from PLC (or device) that connects to PLC-505. Figure Appendix 1-5: Query real data from PLC on IoT cloud platform 4. Configure Virhub software Open and run Virhub installation package from eTung‟s CD, or downloaded...
Page 35
IP address to the Loopback adapter. Figure Appendix 1-8: Succeed to set IP address of Loopback adapter 2) Add device: in Virhub software add PLC-505 to the user account: press “Add Device”, and input the IMEI number of PLC-505.
Page 36
PLC-505 User Manual Figure Appendix 1-9: Add device...
Page 37
Figure Appendix 1-10: Succeed to add device If add device fails, please first make sure if the SVR2 led light is on, that means PLC-505 has connected to eYun platform. If PLC-505 does not connect to eYun platform, add device will fail.
Page 38
PLC-505 User Manual Figure Appendix 1-11: Detect device‟s IP address Attention: 1) The terminal must be online to use this functionality; 2) Virhub version must be V5.9 or higher, and PLC-505 must be V3.0.0 or higher.
Data Acquisition Program Update PLC-505 has two user serial ports, so it can connect with PLCs that have serial ports, and perform remote program download and transparent data transmission. eYun platform and Vircom functionality make it easier to implement remote access of PLCs that have serial port. Below we will illustrate the implementation in detail.
Page 40
Figure Appendix 2-1: Apply eYun account Figure Appendix 2-2: Input registration information 2. Configure PLC-505 Connect PLC-505 with PC via Ethernet cross cable, the IP address in PC is set to obtain automatically; Open browser and input URL: 192.168.10.1;...
Page 41
PLC-505 User Manual Enable RS232 or RS485 based on PLC‟s serial port. PLC-505 allows at most 5 PLCs with RS485 serial port to connect to the same PLC-505, with each PLC matching a channel, and the channel is identified by channel ID.
Page 42
PLC-505 User Manual Figure Appendix 2-4: Register terminal ID on IoT cloud platform Then after PLC-505 connects to IoT cloud platform, customer can check the real date acquired remotely from PLC. Figure Appendix 2-5: Check real data from IoT cloud platform 4.
Page 43
Figure Appendix 2-6: Switch PLC to programming mode in IoT cloud platform 5. Configure Vircom software Find Vircom installation package from eTung website: www.etungtech.com, and Download Center->DTU related, then download and install Vircom. Run Vircom software, and click “Configure”, then input the username and password applied before;...
Page 44
PLC-505 User Manual Figure Appendix 2-7: Configure Vircom and choose mServer Figure Appendix 2-8: Add device...
Page 45
PLC-505 User Manual Figure Appendix 2-7: Succeed to add device Figure Appendix 2-9: Map a virtual COM Figure Appendix 2-10: Succeed to map virtual COM 6. Switch PLC to data acquisition mode on cloud platform Login cloud platform, choose the device created before, click “Connection Management”, then switch off the programming mode, to change PLC from...
PLC-505 can be used to extend and access the corporate virtual LAN remotely with VPN function, for example, the user can use PLC-505 to dial into corporate LAN. But the router in user's corporate LAN should support VPN in this way. We will illustrate below how to implement this kind of network connection with VPN.
Page 47
Figure Appendix 3-2: Configure router's VPN function Actually different routers have different configuration interface and options, we can configure it accordingly. 2) Configure PLC-505 Login PLC-505's configuration interface, click "VPN function" and configure it as shown in the figure below:...
Page 48
Password -- the password configured in the router at corporate LAN side, i.e. the password configured in linksys router before; VPN function -- ON, to enable VPN connection. After all settings are complete, reboot PLC-505. 3) Check dialing status Login PLC-505 to check dialing status, as shown in the figure below:...
Page 49
For example, if the IP range at the corporate LAN side is 192.168.0.*, then PLC-505 should be in other IP range, for example 192.168.1.*. 2) PLC-505 and the PC or video server that connects to it should be in the same IP range. PLC-505's default gateway is 192.168.10.1, and if the IP range of the PC or video server that connects to PLC-505 need to be 192.168.0.*, then change PLC-505's gateway to the same range, for...
Internet. For PLC-505-N4, the default network settings are to use Wireless (2G/3G/4G): Set Network to “WIRELESS (2G/3G/4G)”, press “Save” and then reboot PLC-505. NOTE: Some PLC-505 types do not have 4G module, and then cannot access Internet via 4G network.
Appendix 5: Configure PLC-505 to Access Internet via Cable/WIFI 1. Configure PLC-505 to access Internet via cable network According to the description of ch. 2.1 Configurations, login PLC-505‟s webpage, choose “Network Settings” -> “Network Select”, configure to use WAN to access Internet.
Page 52
PLC-505 User Manual Figure Appendix 5-2: Use 4G to access Internet by default Set “Network Select” as WAN, and then click “Save”; Choose “Network Settings” -> “WAN” to configure WAN parameters; There are three kinds of types: DHCP, PPPoE and STATIC. Choose PPPoE if cable MODEM is used to access internet, and choose DHCP or STATIC if a dedicated line or LAN is used to access internet.
Page 53
PLC-505 User Manual Figure Appendix 5-4: Configure PPPoE username and password When choosing STATIC, configure static IP, net mask, gateway and DNS accordingly: Figure Appendix 5-5: Configure static IP When choosing DHCP, no additional parameters need to configure:...
Page 54
Click "Save", and plug in Ethernet cable on LAN1 (WAN) of PLC-505 and connect to the cable network, then reboot PLC-505. After reboot, login PLC-505's web configuration page, it can be seen that PLC-505 has connected to the internet with WAN.
Page 55
PLC-505 User Manual Figure Appendix 5-8: Set network as WIFI Choose “Network Settings” -> “WIFI Client”, to configure WIFI parameters. Figure Appendix 5-9: Configure WIFI parameters – 1 Click “Refresh” to search the WIFI APs around:...
Page 56
PLC-505 User Manual Figure Appendix 5-10: Search WIFI APs Choose WIFI AP in the list, select security type, and input pin, then click “Save”, and reboot PLC-505.
Page 57
PLC-505 User Manual Figure Appendix 5-11: Configure WIFI parameters – 2 WAN will be disabled automatically once WIFI is enabled. After reboot, login PLC-505's web configuration page, it can be seen that PLC-505 has connected to the internet with WIFI.
Page 58
PLC-505 User Manual Figure Appendix 5-12: PLC-505 accesses Internet via WIFI NOTE: Some PLC-505 types do not have WIFI module, and then cannot access Internet via WIFI.
Settings and GPS data format PLC-505-N4G embeds GPS model and supports device location. GPS location information can be actively transferred by PLC-505 to the host PC. As shown in the figure below, in PLC-505‟s configuration webpage, choose “ConnBOX” -> “Ethernet” (or “Serial”), set GPS report interval in seconds. Setting it to 0...
Page 60
PLC-505 User Manual Figure Appendix 6-1: Set GPS report interval After PLC-505 connects to cloud platform, it will actively transfer location information to cloud platform, and customer can check location information as shown in the figure below: Figure Appendix 6-2: Check location information on cloud platform...
PLC-505 supports sending/receiving SMSs via Ethernet interface. The method is described below: First, establish a TCP connection with the PLC-505‟s Ethernet IP (192.168.10.1 by default) and port: 8888; then use command AT+SMS or AT+SMSA to send SMSs. For example, use TCP Test Tool to send SMS as shown below:...
Page 62
PLC-505 User Manual Figure Appendix 7-1: Send SMS via PLC-505‟s Ethernet interface 1) In the left part “Client”, input PLC-505‟s Ethernet IP address “192.168.10.1” in “IP Address/Name”, and PLC-505‟s listening port “8888” in “Port”, then click “Connect” to establish TCP connection with PLC-505; if “Connected” is shown Connection Status, that means TCP Test Tool has connected to PLC-505‟s...
Page 63
PLC-505 User Manual 1) Special AT command for sending short messages with ASCII encoding via serial port: AT+SMSA=<target number>,<data length>,<data>\r DTU will send the following reply: \r\nOK\r\n \r\nERROR\r\n Target Number: Phone number to receive the short message Data Length: The actual data length behind Data: The data to be sent, MUST with ASCII encoding.
Page 64
PLC-505 User Manual 2. The received SMS messages will be output via the serial port in the format below: 1) Format for SMS messages received with ASCII encoding If the content of received SMSs is in ASCII format, the output is in the following format: \r\n+SMSA:<phone number>,<data length>,<data>\r\n...
Internet, it does not have public network IP, and PC (or mobile) still cannot access the touchscreen remotely. PLC-505 and together with LianWangBao cloud server, offer an effective and convenient solution to control the...
Page 66
PLC-505 User Manual Figure Appendix 8-1: Use eTung PLC LianWangBao an VNC to remote control touchscreen 1. Install and run vncserver on the touchscreen, and run vncviewer on PC or mobile, and PC (or mobile) can access Internet; 2. Configure touchscreen IP address: set the IP address to be in the same IP range as PLC-505‟s LAN IP, for example 192.168.10.20.
Page 67
PLC-505 User Manual Modify PLC-505 LAN IP as required, click Save and reboot PLC-505. Figure Appendix 8-3: Configure PLC-505 LAN IP – 2 3. Configure agent client on PLC-505 Login PLC-505 web configuration page, choose “ConnBox” -> “Agent Client” , mServer DN or IP is plc.lianwangbao.com and mServer port is 8080 by default,...
Page 68
PLC-505 support at most 5 channels, and each channel has a 15-byte channel ID. The channel ID is derived from PLC-505‟s IMEI. For example, PLC-505‟s IMEI is 240305001234567, then the agent clients‟ channel ID is 2403055X1234567, and X can be 0~4, to represent one of the five channels.
Page 69
PLC-505 User Manual Figure Appendix 8-6: Login LianWangBao server Click “Terminal Control” -> “Add Terminal”, Figure Appendix 8-7: Add terminal Input the channel ID corresponding to the agent client, for example: 240305501234567:...
Page 70
PLC-505 User Manual Attention: terminal can be added only when it is online. If it fails to add terminal, make sure PLC-505 has connected online in LianWangBao server, or ask eTung technical support for help. After terminal is added, assign TCP port for the terminal: Click the terminal in terminal list, then click “Terminal Control”...
Page 71
PLC-505 User Manual If multiple channels are configured in PLC-505‟s agent client, then add terminal for each independent channel and assign TCP port for the terminal accordingly. As shown in the figure below, two terminals and corresponding TCP ports are...
Page 72
PLC-505 User Manual Figure Appendix 8-10: Use vncviewer to access LianWangBao server‟s TCP port Click “OK”, then there will be a warning dialog, and then prompts the password dialog. Input the password to verify, then the remote touchscreen‟s desktop will be shown on PC (or mobile).
Page 73
PLC-505 User Manual 1) If multiple PCs (or mobile phones) access touchscreen at the same time, make sure each PC use an independent channel, i.e. in vncviewer‟s server information use different TCP port for different channels, otherwise the connections will be lost and PCs cannot work correctly.
Need help?
Do you have a question about the PLC-505 and is the answer not in the manual?
Questions and answers