Versions Compared

Key

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

...

Communication Setup: Xpanel

Create a new Devicedevice

 

To create a new device, select [Tools] - [I/O Devices] or click on the (blue star) icon in the main toolbar. The ‘I/O Device Configuration’ dialog box will pop up. Click the [New Device] button to open the ‘I/O Device Selection’ dialog box.

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

Select a device type

After selecting the [Ok] button on the previous step, the ‘Serial Communication Configuration’ dialog box will popup.

In this window, select ‘SIEMENS RK512’ as the ‘Device Type’ and configure the proper serial communication parameters.    See the Communication Configuration section for more information.

Create a station

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

Each field can be configured as follows:

Station Name: S5

Give a name to the PLC. This name will be used in the database window accompanied by the ‘Device Name’.

Station Type: SIEMENS

Choose the type of connected PLC between "SIEMENS" and “SIEMENS-S7-300”.

Network ID: This field has no effect.

Station No.: This field has no effect.

RK512 protocol has no station number. It is based on a 1:1 communication environment.

16Bit Data Swap:

This option swaps bytes of all word- or double word-sized data. The following diagram shows an example of byte swapping.

Image RemovedImage Added

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

32Bit Data Swap:

This option swaps words of all double word-sized data. The following diagram shows an example of word swapping.

Image RemovedImage Added

INT32 / UINT32 / BCD32 / UBCD32 / FLOAT data type values will be influenced by this option.

Using Checksum: This field has no meaning in this driver.

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.

Address Notation

The address of a Tag tag in Xpanel has the following format:

*Only 16 Bit (Word) type is supported, not 8 Bit (Byte). Only even numbers of addresses are supported.

Tag Type

Format

Example

Analog

[Symbol][DB Number]:[DW number]

D10:1

Digital

[Symbol][DB Number]:[DW number].[Bit Number]

I:12.7

  • [DB Number]: decimal number (0..255)

  • [DW Number]: decimal number (0..255)

  • [Bit Number]: hexadecimal number (0..F)

Symbol

Area

Example

DB

DW

Type

Access

D

Data Block

D1:120, D1:12.F

0-255

0-255

Word

R/W

X

Ext. Data Block

X2:003, X2:3.F

0-255

0-255

Word

R/W

F

Flags

F:12, F:12.7

-

0-255

Bit

R

I

Inputs

I:008, I:008.7

-

0-127

Bit

R

Q

Outputs

Q:004, Q:004.7

-

0-127

Bit

R

...