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 Device] in the menu or click on the (blue star) icon in the main toolbar. The ‘I/O Device Configuration’ dialog box will pop up. 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 configuration window of the database accompanied by the ‘Station Name’.

Select a device type

After clicking [Ok] in the previous step, the ‘Serial Communication Configuration’ dialog box will appear.

Select ‘LSIS XGT/XGB Series PLC Cnet’ as the ‘Device Type’, and configure the parameters accordingly.

Comm. Port: COM1

Select a communication port to communicate. This example shows you selecting the COM1 port.

Baud rate: 38,400

Parity: None

Data bits: 8 bits

Stop bits: 1 bit

RTS/CTS: OFF

This example doesn’t use RTS-CTS control.

Comm. Type: RS232

This example shows communication via RS-232C.

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.

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 two, the station number is used to differentiate between the devices on the Xpanel.

Station Type: XGT Series

Network ID: This field has no effect.

Station No.: 0

When field equipment number exceeds two, they are assigned different station numbers to differentiate 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: Network Manager

...

Use device memories in the following ranges:

Type

Range

Size (Word)

Remark

P

P0 – P2047

2048

Read/Write/Monitor

M

M0 – M2047

2048

Read/Write/Monitor

L

L0 – L11263

11264

Read/Write/Monitor

K

K0 – K2047

2048

Read/Write/Monitor

F

F0 – F2047

2048

Read/Monitor

T

T0 – T2047

2048

Read/Write/Monitor

C

C0 – C2047

2048

Read/Write/Monitor

D

D0 – D32767

32768

Read/Write/Monitor (XGK-CPUH)

D0 – D19999

20000

Read/Write/Monitor (XGK-CPUS)

S

S0 – S127

128

Read/Write/Monitor

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

0003

Over Block Number

Block number is bigger than 16, in the case of individual Read/Write requesting.

0004

Variable Length Error

Variable length is over than its max size of 16.

0007

Data Type Error

Receiving data is not included in X,B,W,D,L.

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.

0090

Monitor

Executing unregistered monitor.

0190

Monitor Execution Error

The number exceeds the execution number limit.

0290

Monitor Registration Error

The number exceeds the register number limit.

1132

Device Memory Error

Invalid characters were input.

1232

Data Magnitude Error

Read/Write request was over 60 Words.

1234

Sufficient Frame Error

Unnecessary contents exist.

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.

...