Versions Compared

Key

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

Communication Setup: Xpanel

Create a new device

I/O Device Configuration

 

To create a new device, go to [Tools] → [I/O

Devices] or click the (blue star) icon on the main toolbar

Device Editor]. The

‘I

“I/O Device

Configuration’ dialog box will pop up

Editor” window will open. Click the

[New

(blue star) icon or right click and select [Add Device]

button to open the ‘I/O Device Selection’ dialog box.Image RemovedI/O

to begin adding a new device. Select an “Ethernet” [Connection Type] and a “Modbus TCP” [Device Type].

Image Added

Device Name: Give a device name. This name will be used in the tag configuration window of the database accompanied by the

‘Station Name’

“Station Name”.

Select a device type

I/O Device Settings

 

After clicking the [Ok] button on the previous step, the ‘Ethernet Communication Configuration’ dialog box will pop up.

Image Removed

In this window, select the ‘MODBUS TCP’ as the ‘Device type’ and configure the proper Ethernet communication parameters. Ensure that those parameters are matched with the device’s configuration. See the Communication Configuration section for more information.

Create a station

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

Image Removed

Each field can be configured as follows:

Station Name: STN

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

Station Type: MODBUS

Choose the type of connected PLC among the “Modbus TCP”.

Network ID: 0

Sum of MODBUS/TCP devices here its own station number.

Socket Port No: 502

This port number is dedicated to MODBUS/TCP.

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 Removed

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 Removed

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

Using Checksum: This field has no effect. This MODBUS driver always uses a checksum.


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

Once the connection type, device name, and device type have been assigned, the [I/O Device Editor] window populates with the default settings for the selected communication protocol.

Image Added

After selecting the correct [Connection Type] and [Device Type], match the remaining settings to the target I/O device’s communication settings.

Communication Settings: PLC

Comm. Module

If using one of the following PLC modules to communicate with Xpanel, the card settings must be configured in CICON as shown below:

  • CM1 - EC01A

  • CM1 - EC10A

  • CM1 - EC10B

  • CM3 - SP01EET

  • BPnnMxxx - U

    Image Added

All communication parameters must match the settings chosen during the I/O device configuration in Canvas. Once the correct parameters have been entered, press the [Write] button while online with the PLC to update the communication parameters.

CPU built-in Comm. port

If using a built-in CPU (PLC) ethernet port to communicate with Xpanel, the channel settings must be configured in CICON as shown below:

This connection option is available with the following models:

  • CM1 - XP1F

  • BPnnMxxx - S

  • PLC-S

    Image Added

    All communication parameters must match the settings chosen during the I/O device configuration in Canvas.

Address and Function Codes

...

The symbol character has to be placed in the first position of the address string. The address number follows the symbol character.

Area

Symbol

Analog Tag

Digital Tag

Read

Write

Coil

0

 

000001 - 0299991

1

5

Input

1

 

100001 - 129999

2

 

Holding Register

4

400001 - 429999

 

3

6, 162

Input Register

3

300001 - 329999

 

4

 

  1. The symbol character does not behave as a number. For example, 400100 and 40100 designate the same memory area (holding register 100).

  2. Code 16 is issued for writing double words or when the recipe write function is activated. When writing single words, code 6 is used.

...

This interface is satisfied with standard IEEE802.3 about the 10BaseT/100BaseTX. You can configure the cable and allocation pin number of RJ45 as shown below.

RJ45 Connector

RJ45 Jack

Image ModifiedImage Modified

Direct Cable: Host ↔︎ HUB

Cable

No

Color

Color

No

Cable

Image Modified

1

Orange/White

Orange/White

1

Image Modified

2

Orange

Orange

2

3

Green/White

Green/White

3

4

Blue

Blue

4

5

Blue/White

Blue/White

5

6

Green

Green

6

7

Brown/White

Brown/White

7

8

Brown

Brown

8

Crossover Cable: Host ↔︎ Host

Cable

No

Color

Color

No

Cable

Image Modified

1

Orange/White

Green/White

1

Image Modified

2

Orange

Green

2

3

Green/White

Orange/White

3

4

Blue

Blue

4

5

Blue/White

Blue/White

5

6

Green

Orange

6

7

Brown/White

Brown/White

7

8

Brown

Brown

8