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 Next »

Communication Setup: Xpanel

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 configuration window of the database accompanied by the 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 RS-232 communication type of COM1 port is used, 9P DSUB connector is used. When RS-422/485 communication type of COM1 port is used, 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 bits

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.

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 device number exceeds 2, 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 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.

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-232, 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] in the menu.

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

Wiring Diagram

Wire the communication cables as shown in the figures below.

RS-232C: NULL MODEM

Xpanel connects three lines to the PLC, as shown in the image above. If the these lines are not connected, data cannot be transmitted to other field equipment. It may still receive data, but this is not a successful communication.

RS-422

The wiring in the terminal resistance must be 330 Ω. To improve the stability of communication, devices should connect through SG, using STP cables.

RS-485

The wiring in the terminal resistance must be 120 Ω. When using RS-485, connect SDA and SDB, but disconnect RDA and RDB. To improve stability of communication, devices should connect through SG, using STP cables. Shielded cables must be earthed.

Device Memory Range

Use device memories as shown in the table below.

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.

  • No labels