Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 9 Current »

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 Devices] in the menu or click the (blue star) 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.

See the Communication Configuration section for more information.

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.

See the Communication Configuration section for more information about the remaining parameters.

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 acknowledgment (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:

  • The data length was incorrect.

  • The address does not begin with '%'.

  • The variable value was incorrect.

  • Attempted to write a value other than 00 or 01 to a digital value location.

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 is mismatched, this error will occur.

1432

Data Value Error

Unable to transform data value to Hexadecimal.

7132

Invalid Variable Range Error

The requested address was outside of the PLC memory range.

  • No labels