Versions Compared

Key

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

This document describes the MODBUS communication driver for XpanelCanvas. This driver supports the RTU (serial) version of the MODBUS protocol.

Communication Setup:

...

Canvas

I/O Device Configuration

 

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

Devices] or click

Device Editor]. Click the (blue star) icon

in the toolbar. The following picture shows the first step in creating a new device:Image RemovedI/O

to add a new device, then select a “Serial” [Connection Type] and a “Modbus RTU” [Device Type].

Image Added

Device Name: Give a device name. This name will be used in the tag database,

accompanied  

accompanid by the ‘Station Name’.

Select a device type

I/O Device Settings

 

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 AddedImage Added

After selecting the

[Ok] button in the previous step, the ‘Serial Communication Configuration’ dialog box will appear as shown in the following picture:Image Removed

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

Station

In this window,

set the ‘Device Type’ to ‘MODBUS RTU Protocol’ 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] tab of the ‘Serial Communication Configuration’ dialog box. In this dialog box, connected PLC stations can be configured and registered to the Xpanel.

Image Removed

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 PLC (Modbus RTU, Multi Write CMD, Max Block Read).

Network ID: N/A

Station No:Specify a decimal number between 1 and 247. This must match the station number of the PLC.See the Communication Configuration section for more information about the remaining parameters

users can assign a Station Name and ID for the target I/O Device.

Image Added

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 - CN01M

  • CM1 - CN01S

  • CM3 - SP02ERS

  • CM3 - SP02ERR

  • CM3 - SP02ERC

  • CM3-SP02ERSC

  • BPnnMxxx - U

    Image Added

Note that the [CH 1] tab is for usage with RS232 connections, while the [CH 2] tab is for usage with RS485 connections. 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) serial 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 - XP Series

  • CM1 - CP Series

  • BPnnMxxx - S

  • PLC-S

    Image Added

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

Address Notation

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

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

 

Notes:

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

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

...

Communication Cable Wiring

XPANEL COM/CPM2 RS-232C

Image Modified

XPANEL COM1 RS-422/485

Image Modified

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.

...