Modbus TCP Slave

Modbus TCP Slave

Modbus TCP Slave(Server)

Β 

Supported devices and requirements

Β 

Description

Notes

Distributor

MODICON

Β 

Device

Any MODBUS TCP supported devices

Β 

Comm. Module

Β 

Β 

Comm. Type

Ethernet

Β 

Protocol

MODBUS TCP

Β 

Driver Description

MODICON Modbus TCP Slave

Β 

MODICON MODBUS TCP SLAVE

After assigning a name to the MODBUS IO device, you will see the communication configuration window. In this window, there are 2 different tabs to configure: Setting Data and Comm. Port Setting.

image-20240604-225940.png

Β 

Item

Description

Setting Data

In this tab, the user can set the servers and their related settings.

Setting Server Station

Pressing the button will open the popup window to set a server.

image-20240604-230614.png

Β 

Item

Description

Name

This cannot be modified.

Description

Describes the station.

Unit ID

Sets the unit ID of the server.

Swapping for data

Swaps the bytes if necessary.

Setting IO Data

Pressing [Setting IO Data] while a station is selected will bring up the R/W data Registration window as shown below. The user can start matching the tags from servers and the MODBUS addresses.

image-20240604-230752.png

Β 

Data Types

Type

R/W

Identifier

Available Addresses

Function Code

Coil Register(Status)

Digital

Read/Write

0

1 ~ 5000

1(5, 15)

Holding Register

Analog

Read/Write

4

1 ~ 10000

3(6, 16)

Identifier means that the tag’s address in UltimateAccess Web must start with it. For example, using Coil Status and its address 102 means that the address is 00102.

Function code means the MODBUS protocol’s command code used to read the corresponding data type in this I/O driver. The code in the brackets are used to write the corresponding data type.

1. Add data

image-20240604-232836.png

Β 

Item

Description

Tag Name

Decides a tag to map to a Modbus address. String tags are not available for Coil types.

Modbus Address

Assigns the address. The identifier is automatically assigned depending on the currently opened tab.

Data Size (word base)

Sets the amount of word data to read starting from the set Modbus address.

2. Edit data

This button edits the selected data.

3. Delete data

This button deletes the selected data.

Comm. Port Setting

Item

Description

Port

Sets the port number for the communication. The default is 502.

Local Address

Sets the IP address of the UltimateAccess Web-installed system.

Error Codes

MODBUS ErrorNo

Description

0x01

Wrong function code

0x02

Wrong address requested

0x03

Wrong data

0x04

Wrong response frame

Β 

Additional error codes for UltimateAccess Web

Β 

0x10

Wrong header of the frame

0x11

Wrong unit ID

0x12

Wrong frame length

0x13

Internal server error