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

Communication Setup: Xpanel

Create a new Device

 

To create a new device, go to [Tools] - [I/O Devices] or click the (blue star) icon on 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 configuration window of the database accompanied by the station name.

Select a device type

 

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

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.

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.

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.

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.

NT32 / 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.

Address and Function Codes

The following table shows the list of valid address ranges and used MODBUS function codes for each address area.

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 - 029999 (1)

1

5

Input

1

 

100001 - 129999

2

 

Holding Register

4

400001 - 429999

 

3

6, 16 (2)

Input Register

3

300001 - 329999

 

4

 

(1) The symbol character does not behave as a number. For example, 400100 and 4100 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.

  • The memory areas listed above are provided for general purposes. The actual available memory area and range of each area should be checked with the manual for the connecting device. The ‘Read’/’Write’ columns show the MODBUS function codes used in this communication driver.

  • The symbol character (0, 1, 3, or 4) must be placed in the first position of the address string. The address number follows the symbol character.

Communication Cable Wiring

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.

Direct Cable: Host ↔︎ HUB

Crossover Cable: Host ↔︎ Host

  • No labels