Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create a new device

To configure the communication device of LSIS PLC, select [Tools] - [I/O Devices] or click the (blue star) icon in the main toolbar. The ‘I/O Device Configuration’ dialog box will appear. Click on the [New Device] button.

I/O Device Name: Type the device name to identify the equipment. This name will be used in the Tag tag configuration window of the database accompanied by the station name‘Station Name’.

Select a device type

After selecting [Ok] in the previous step, the ‘Serial Communication Configuration’ dialog box will pop up.

Select ‘LSIS GLOFA PLC Cnet’ as the ‘Device Type’, and configure the parameters accordingly.

Comm. Port: COM1

Select 'COM1'. When the RS-232 communication type of COM1 port is used, a 9P DSUB connector is used. When RS-422/485 communication type of COM1 port is used, the 5P plug connector is used.

Baud rate: 9,600

The configuration of the communication speed of Xpanel must be the same as the LSIS GLOFA PLC. If the speed of both devices is different, they will not communicate with each other.

Parity: None

Data bits: 8 bits

Stop bits: 1 bit

RTS/CTS: OFF

RTS/CTS control is used for half-duplex communication. This example does not use RTS/CTS control.

Retry No.: 3

If communication failed with the devices, it will try to reconnect 3 times.

Time Out: 30

The time out count will be 30 seconds.

Using Dial Up Modem: Not Select

This item can be chosen only when using the Dial Up modem.

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

Create a station

Move to the [Station] tab of the ‘Serial Communication Configuration’ dialog box and click the [Add Station] button. The ‘Station’ dialog box will pop up. Configure the contents and click the [OK] button.

Station Name: ST

When the device number exceeds 2two, the station number is used to differentiate between the devices on the Xpanel.

Station Type: Select ‘DirectNet’.

Network ID: This field has no effect.

Station No.: 0

When the device number exceeds two, a different station number is assigned to distinguish between the devices.

16Bit Data Swap: This field has no effect.

32Bit Data Swap: This field has no effect.

Using Checksum: This field has no effect.

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.

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

Parameter Setup: Cnet Frame Editor

Run Cnet Frame Editor

Run ‘Cnet Frame Editor’ from GLOFA Loader and activate I/O configurations.

Channel: RS232 side

To communicate via RS-232232C, select the [RS232 side] button.

Station: 00

Configure the station number to 00. If the device exceeds one, then assign a different station number to distinguish between the two.

Baud Rate: 9600

Data Bit: 8 bits

Parity: None

Cnet Frame Editor

When all the configurations are set, select [Online] - [Write] on the menu.

Select the proper slot in which the Cnet module is located and click [Write].

...

Use device memories as shown in the table below.

Direct Variable

Data type

Remark

%QX0.0.0 - %QX63.7.63

BIT

Output image area

%IX0.0.0 - %QX63.7.

...

63

BIT

Input image 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 image area

%ID0.0.0 - %QD63.7.1

DWORD

Input image area

%MD0 - %MD16383

DWORD

Direct variable area

Error Codes

When Xpanel communicates with a PLC it can receive a NAK that includes an error code.

For reference, see the error codes in the table below.

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.