Versions Compared

Key

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

...

This driver provides a software interface and communication protocol between Xpanel and the SAIA PCD family of devices via the data mode S-BUS protocol.

Communication Setup: Xpanel

Create a new Devicedevice

To create a new device, select ‘Tools’ → ’I[Tools] → [I/O Devices’ Devices] or click the (blue star) icon in the toolbar. The following picture shows the first step in creating a new device:

I/O Device Name: Give a device name. This name will be used in the tag database, accompanied by the ‘Station Name’.

Select a device type

After selecting the 'OK' [Ok] button in the previous step, the ‘Serial communication Configuration’ dialog box will appear as shown in the following picture:

In this window, set the 'Device Type' to ‘SAIA S-BUS’ and configure the remaining serial communication parameters. Ensure that these parameters are matched with the device's configuration. See the Communication Configuration section for more information.

Create a station

Move to the ‘Station’ [Station] tab of the ‘Ethernet Communication Configuration’ dialog box. In this dialog box, connected PLC stations can be configured and registered to the XPanelXpanel.

Each field can be configured with the following rules:

Station Name: Give a name to the PLC. This name will be used in the tag database, accompanied by the ‘Device Name’.

Station Type: Choose the type of connected device (‘PCD Family’ is the only type supported).

Network ID: N/A

Station No: Specify a decimal number between 0 and 254. This number must match the station number chosen within the device configuration.

16-Bit Data Swap: This option swaps bytes for all word- or double-word-sized data. The following diagram shows an example of byte-swapping:

Almost all data types will be influenced by this option except INT8 / UINT8 / BCD8 / UBCD8.

32-Bit Data Swap: This option swaps words of all double-word-sized data. The following diagram shows an example of word swapping:

Tag values with data types INT32 / UINT32 / BCD32 / UBCD32 / FLOAT will be influenced by this option.

String Data Swap: Swaps the upper and lower bytes of string word data.

Using Checksum: Use a CheckSum in the communication protocol.

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.

Communication Setup: SAIA PCD Family

The following picture shows device configuration using the PG5 tool from SAIA.

Open the ‘Hardware Settings' dialog box. In the 'S-Bus’ tab, set the S-BUS station number to use.

...

Move to the ‘Serial’ [Serial] tab and configure the communication parameters.

...

$SASI
TEXT 100 "UART:19200,,,50;"
"MODE:SS1;"                    ; When PCD is a slave in the network
"DIAG:F100,R998;"

$ENDSASI 
XOB 16
SASI 1                               ; When using channel #1
100
EXOB
COB 0
0
ECOB

Address & Function Codes

The following table lists the valid address ranges for each memory area.

...

Area

Symbol

Word Notation

Bit Notation

Read

Write

Input

I

 

I0000 - I8191

YES

NO

Output

O

 

O0000 - O8191

YES

YES

Flag

F

 

F0000 - F8191

YES

YES

Timer

T

T0000 - T1599

 

YES

YES

Counter

C

C0000 - C1599

 

YES

YES

Register

R

R0000 - R4095

 

YES

YES

Communication Cable Wiring

Xpanel COM/CPM2 RS-232C

ATVXEL COM1 RS-422/485

Connection example - RS-232C: PCD2.M150 with PCD7 F120

 

The above picture shows the RS-232C and RS-422/485 ports of the Xpanel. Refer to the manual of your device for signal descriptions. In the case of the RS-232C port, Xpanel provides the standard DB9 RS-232C pin assignment.

Supported Functions

The following table lists functions that are supported by the 'SIEMENS S7-200 PPI Direct' communication driver.

...