Sample Configuration File

The following is a sample configuration file specifying register mappings for two slave devices (address 3 and 7).

# Modbus RTU Slave Interface - sample configuration file

#

# Communication port definition:

CP,1,19200,None,8,2

# Trace log flag definition:

TF,Off

# Modbus register limits definition:

RL,0,65535

# Register mapping definitions:

# Slave Address: 3

#

# - the following register mapping definitions specify coils for

# slave address 3

#

RM,3,10,TEST_POINT_DOUT_1

RM,3,11,TEST_POINT_DOUT_2

RM,3,12,TEST_POINT_DOUT_3

RM,3,13,TEST_POINT_DOUT_4

#

# - the following register mapping definitions allocate a block of holding

#   registers (memory type 4X). Note that the highest register reference is

#   40104 or data address 103 (zero-based). Thus, while only 4 registers are

#   mapped to CIMPLICITY points, all 104 registers are accessible to the

#   Modbus master.

#

RM,3,40101,TEST_POINT_AOUT_2

RM,3,40102,TEST_POINT_AOUT_3

RM,3,40103,TEST_POINT_AOUT_4

RM,3,40104,TEST_POINT_AOUT_5

# Slave Address: 7

#

# - the following register mapping definitions allocate the first two data

#   addresses of each memory type for slave address 7

#

RM,7,1,TEST_POINT_DOUT_A

RM,7,2,TEST_POINT_DOUT_B

RM,7,10001,TEST_POINT_DIN_A

RM,7,10002,TEST_POINT_DIN_B

RM,7,30001,TEST_POINT_AIN_A

RM,7,30002,TEST_POINT_AIN_A

RM,7,40001,TEST_POINT_AOUT_A

RM,7,40002,TEST_POINT_AOUT_B

More information

Step 1. Edit the Modbus RTU Slave configuration file.