Perle Systems TS2 Switch User Manual


 
IOLAN SDS/SCS/STS/MDC User’s Guide, Version 4.5 241
Modbus Remapping Appendix I
I
Introduction
This appendix provides additional information about the Modbus Remapping feature.
Modbus Remapping Feature
The Modbus remapping feature allows a TCP Modbus Master to poll a Modbus slave device and
have the IOLAN translate the UID to a different UID for the slave device. The Master UID has to be
unique on the IOLAN. The Slave UID must be unique on each serial port. The translate rules are
controlled by a file downloaded to the IOLAN.
The following procedure will allow you to use the Modbus remapping feature:
Create a configuration file
z The file must be called "modbus_remap"
z One translate rule per line
z The fields on a line are separated by a comma
Line format for one UID is:
port,master_uid,slave_uid
z port: is the IOLAN port number that the slave is connected to
z master_uid: is the UID that the TCP Modbus Master uses
z slave_uid: is the UID that the Modbus slave uses
Line format for UID ranges is:
port,master_start-master_end,slave_start,slave_end
z port: is the IOLAN port number that the slave is connected to
z master_start: is the first master UID in the range
z master_end: is the last master UID in the range
z slave_start: is the first slave UID in the range
z slave_end: is the last slave UID in the range
Configuring the Modbus UID Translation Feature
1. On the serial port Modbus Gateway, configure Modbus slave. Configuration parameters such as
“UID range” and UID Address Mode will be ignored in this mode of operation