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

This document describes the SAIA S-BUS communication driver for Xpanel. This driver supports the data mode S-BUS protocol.

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 Device

To create a new device, select ‘Tools’ → ’I/O 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' 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.

Create a station

Move to the ‘Station’ tab of the ‘Ethernet Communication Configuration’ dialog box.

In this dialog box, connected PLC stations can be configured and registered to the XPanel.

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: N/A

Using Checksum: N/A

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’ tab and configure the communication parameters.

These parameters must match those chosen in XpanelDesigner. Note that the ‘S-Bus’ drop-down menu must be set to 'Data'.

The communication parameters can be set within an IL program on the SAIA PCD. The following program is a sample IL code for communication port setup.

This sample code is programmed for the PCD2.M150 CPU, for the PCD7 F120 module.

$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.

The symbol character must be placed in the first position of the address string.

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

XPANEL 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.

Function

Support

Remark

Block Data Read

YES

This function allows multiple words to be read at a time.

This function is used when you use the Xpanel recipe, data bridge, or trend features.

Block Data Write

YES

This function allows multiple words to be written at a time.

This function is used when you use the Xpanel recipe, data bridge, or trend features.

String Real Tag

YES

This function treats the device as serialized memory so you can store string data from the Xpanel on the PLC.

Word Swap

YES

This function swaps the upper and lower bytes of all word- or double-word-sized data. It is only available when the 16-Bit Data Swap option is selected.

Dword Swap

YES

This function swaps the upper and lower words of all double-word-sized data. It is only available when the 32-Bit Data Swap option is selected.

  • No labels