If the controller "ELC.E14" is the Client in the Modbus communication, it can access one or more other Server devices. The information about Server can be configured in the "Communication Configuration" window.

Set the controller to Client

  • On the Device Configurator page, click the drop-down box next to "Modbus RTU Mode", and then select "Client". After the controller is set as Client, you can configure Modbus RTU bus parameters in Configure the RS485 port of the controller.

Configure Server devices

In the "Communication Configuration" window, you can configure the following for Server devices:

  • Add max. 31 Server devices.
  • Modify the name and address for a Server device. A device name allows max. 24 characters (12 Chinese characters). Only supports English words, Chinese characters, numbers and underscores. Spaces within a name and identical names are not allowed. The address range is 1...247.
  • Add and configure data points for the added Server devices. Up to 30 new data points can be added for all Server devices.
  • Modify configuration information about data points.
  • Remove redundant Server devices and data points.

Add a Server device

  • The controller is set to Client on the Device Configurator page.
  1. Click "Communication Configuration" on the Device Configurator page, and then select "Client Points“ (COM1 or COM2) in the pop-up window.
  1. Next to "Add Server Device", click .
  • The newly added Server device appears in the device list.

Modify the name and address for a Server device

  1. Click "Communication Configuration" on the Device Configurator page, and then select "Client Points“ (COM1 or COM2) in the pop-up window.
  1. Locate the device in the Server device list. Then, on the corresponding line of Server, click to modify the name and address.
  1. Click to save changes after modification is done.

Add and configure data points for an added Server device

  1. Click "Communication Configuration" on the Device Configurator page, and then select "Client Points“ (COM1 or COM2) in the pop-up window.
  1. Locate the Server device.
  1. In the row of the corresponding device, select the Modbus function code type from the drop-down box next to "Function Code":
  • 02: Discrete inputs
  • 04: Input register
  • 01&05: Single coil
  • 01&15: Multiple coils
  • 03&06: Single register
  • 03&16: Multiple registers
  • Note: Function codes 01 and 03 indicate that single or multiple coils and holding registers can be read. When combined with function codes 05, 15, 06, and 16, the read and write attributes can be configured via the "Read Write" column of the new data point. See "Configuration of Server data points".
  1. On the corresponding line, select a data point type next to the "Show Data Type" drop-down box.
  1. Click to add a new data point.
  1. If necessary, modify "Reg. Addr. : Offset" for the newly added data points, which holds the register address of the data point and the bit mask information for multi-bit queries.
  1. Click in the row where the Server device is located, and then modify other attributes of the newly added data point, such as "Point Name", "Raw Data Type", "T Timer", "H Timer" and "Read Write".
  • "T Timer" is UpdateTimerT1(ms) andUpdateTimerT2(s); "H Timer" is HeartbeatTimerH1(s) and HeartbeatTimerH2(s). "T Timer" is visible if "Read Write" mode is "Read Only (RO)" or "Read Write (RW)"; "H Timer" is visible only when "Read Write" mode is "Write Only (WO)". See "Configure the RS485 port of the controller" for more information.

The tool automatically creates a corresponding virtual point when the data point is added, which appears not only in the virtual point window but also in the object mapping table under "Server Points“ ("TCP & COM1 Server Points” or "TCP Server Points”).

In the object mapping table under “Server Points“ ("TCP & COM1 Server Points” or "TCP Server Points”), new data points have the "Auto Mapping" checkbox checked by default. If you do not want the register addresses modified on the "Client Points" (COM1 or COM2) page to get automatic addresses via the function of "Auto Mapping", uncheck the Auto Mapping check box for that data point.

In the virtual point window, data points are prefixed with [M] to distinguish from others. You can click the checkbox before "Client Points" (COM1 or COM2) to show or hide all automatically created virtual points.

Once you have added and configured data points, you can add them to the programmed logic by referencing and setting them in the programming page of the corresponding virtual device under "Variables" (function block)> "Communication Point" ("Set" or "Get"). See "Communication Point Set" and "Communication Point Get" for more information about the "Communication Point" function block.

Configuration of Server data points

Raw Data Type

Raw Data Type

Description

Applicable data type

B1

Single bit

  • bi
  • bi&bo_coil
  • bi&bo_coils

B16

Bitset 16-bit (0...15)

  • bi_from_reg
  • bi&bo_reg
  • bi&bo_regs

U16_B

Unsigned integer, big-endian

  • float_input
  • i&o_float
  • i&o_floats

S16_B

Signed integer, big-endian

F32_ABCD

  • F32: 32-bit single-precision floating-point number
  • U32: 32-bit unsigned integer
  • S32: 32-bit signed integer
  • ABCD: little-endian, byte order: 1234
  • DCBA: big-endian, byte order: 4321
  • CDAB: big-endian, byte-swapped, byte order: 3412
  • BADC: little-endian, byte-swapped, byte order: 2143
  • float_input
  • i&o_floats

F32_DCBA

F32_CDAB

F32_BADC

U32_ABCD

U32_CDAB

S32_ABCD

S32_CDAB

Read Write mode

Read Write mode

Description

Applicable data type

Read Only (RO)

Client reads data from the registers of Server.

Applicable to all data types

Write Only (WO)

Client cyclically writes data points of Server.

If the value of a communication variable of Client changes, the change will be immediately written to a Server data point.

  • bi&bo_coil
  • bi&bo_coils
  • bi&bo_reg
  • bi&bo_regs
  • i&o_float
  • i&o_floats

Read Write (RW)

Client cyclically reads data points of Server.

If the value of a communication variable of Client changes, the change will be immediately written to a Server data point.

Remove redundant Server devices and data points

  1. Click "Communication Configuration" on the Device Configurator page, and then select "Client Points“ (COM1 or COM2) in the pop-up window.
  1. On the corresponding line of the Server device or data point, click .