This protocol is used to connect CIMON Xpanel with LSIS GLOFA PLCs using an Ethernet connection.
Communication Setup: Xpanel
Create a new device | To configure a communication device, select 'Tools' -> 'I/O Device' in the menu or click the icon in the toolbar. Then, the “I/O Device Configuration” dialog box will appear. Click the [new device] button. In the “I/O device selection” dialog box, select a device name and a device type as shown in the following figure: I/O Device Name: Select a device name. This name will be used in the tag configuration window of the database, accompanied by the ‘Station Name’. |
Select a device type | After selecting the ‘OK’ button in the previous step, the ‘Ethernet Communication Configuration’ dialog box will appear as shown in the following picture. In this window, set the ‘Device Type’ to ‘LSIS GLOFA PLC' and configure the remaining Ethernet communication parameters. |
Create a station | Move to the ‘Station’ tab of the ‘Ethernet Communication Configuration’ dialog box. In this dialog box, each connected PLC can be configured and registered to the Xpanel. Each field can be configured with the following rules. Station Name: Set a name for the station. This name will be used in the database window, accompanied by the ‘Device Name’. Station Type: Choose ‘GLOFA’ (this is the only option available). IP Address: Give the IP address of the connected PLC using the dotted decimal format (e.g. 1.2.3.4). Socket Port No: Enter the port number of the connected PLC. For UDP, select 2005. For TCP, select 2004. These ports are reserved exclusively for this communication method. 16-Bit Data Swap: N/A 32Bit Data Swap: N/A String Data Swap: N/A Comm. Error Message Pop Up: When this item is checked, Xpanel displays a communication error message box for every Rx and Tx error. Otherwise (unchecked), Xpanel does not display a message for communication errors. This message box will close automatically after a few seconds. Fixed XPANEL Socket Port: When checked, allows a specific socket port to be chosen for the Xpanel. This option should generally be left unchecked. I/O Device Write Enable: Enables writing to the I/O device. Data Request Size Limit: When selected, allows maximum data sizes which may be requested by the I/O device. |
Parameter Setup: Enet Frame Editor
Run Enet Frame Editor | Run ‘Enet Frame Editor’ from the GLOFA Loader, then configure the I/O options. PLC Type: GM1 / 2 / 3 (Select the type of PLC which you are using.) IP Address: Input the IP address of the PLC. This must match the value chosen in the XpanelDesigner I/O Device configuration. Subnet Mask: Input the correct Subnet Mask. This must match the value chosen in the XpanelDesigner I/O Device configuration. Gateway: If the PLC is connected outside of the Xpanel’s local network, you must input the IP address of the gateway here. |
Enet Frame Editor: Write | Once Ethernet configuration is complete, select 'Online – Write' in the GLOFA Loader menu. Select the proper slot for the Enet module, then click [Write]. |
Wiring Diagram
This interface is used to communicate between LSIS PLC and Xpanel or CIMON TOUCH/PPC using Ethernet. This interface uses the IEEE802.3 and 10BaseT/100BaseTX standards. The RJ45 pin layout should match that shown in the tables below.
RJ45 Connector | RJ45 Jack |
---|---|
Direct Cable: Host ↔︎ HUB
Cable | No | Color | Color | No | Cable |
1 | Orange/W | Orange/W | 1 | ||
2 | Orange | Orange | 2 | ||
3 | Green/W | Green/W | 3 | ||
4 | Blue | Blue | 4 | ||
5 | Blue/W | Blue/W | 5 | ||
6 | Green | Green | 6 | ||
7 | Brown/W | Brown/W | 7 | ||
8 | Brown | Brown | 8 |
Crossover Cable: Host ↔︎ Host
Cable | No | Color | Color | No | Cable |
1 | Orange/W | Green/W | 1 | ||
2 | Orange | Green | 2 | ||
3 | Green/W | Orange/W | 3 | ||
4 | Blue | Blue | 4 | ||
5 | Blue/W | Blue/W | 5 | ||
6 | Green | Orange | 6 | ||
7 | Brown/W | Brown/W | 7 | ||
8 | Brown | Brown | 8 |
Device Memory Range
Within XpanelDesigner, you may use the following device memory addresses to reference the connected PLC.
Direct Variable | Data type | Remark |
%QX0.0.0 - %QX63.7.63 | BIT | Output area |
%IX0.0.0 - %QX63.7.63 | BIT | Input area |
%MX0 - %MX524287 | BIT | Direct variable area |
%MW0.0 - %MW32767.15 | BIT | Direct variable area |
%MD0.0 - %MD16383.31 | BIT | Direct variable area |
%QW0.0.0 - %QW63.7.3 | WORD | Output image area |
%IW0.0.0 - %QW63.7.3 | WORD | Input image area |
%MW0 - %MX32767 | WORD | Direct variable area |
%QD0.0.0 - %QD63.7.1 | DWORD | Output area |
%ID0.0.0 - %QD63.7.1 | DWORD | Input area |
%MD0 - %MD16383 | DWORD | Direct variable area |
Note: “Direct“ variable areas support both read and write operations.
Error Code
When Xpanel communicates with an LSIS PLC, it may receive a negative acknowledgement (NAK) including an error code. The following table lists possible error codes and their meaning.
Error Code | Error type | Error factors and contents |
0001 | PLC System Error | Interface failure with PLC. |
0011 | Data Error | Possible causes:
|
1132 | Device Memory Error | Invalid characters were input. |
1232 | Data Magnitude Error | Read/Write request was over 60 Words. |
1332 | Data Type Inconformity | For each Read/Write attempt, if the data type of different blocks are mismatched, this error will occur. |
1432 | Data Value Error | Unable to transform data value to Hexadecimal. |
7132 | Invalid Variable Range Error | Requested address was outside of PLC memory range. |