Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Location:
<WorkspaceDirectory>\DataFiles\xio.Modbus.AddressMappingDefinitions.dat
To use an addressing scheme different to the standard Modbus memory addresses that start with address 0, an address mapping is possible. These additional address mappings can be specified here. For each Modbus device, an individual address mapping can be specified (cf. Section 4.3.2.1).
The structure of the Modbus address mapping definition file is as follows:
' Modbus address mapping definition file
'
' Mapping Name;Offset for Discrete Input;Offset for Coil;Offset for Input Register;Offset for Holding Register
RegisterNumber;1;1;1;1
FunctionCode;20001;10001;40001;30001
Each line – except comment lines that start with ' – defines one Modbus address mapping.
<tr> <td>1</td> <td>Mapping Name</td> <td></td> <td> Here the name of the mapping has to be specified. This name is used within the Modbus Device Definition file to identify the mapping. Therefore, the mapping name has to be unique. </td> </tr>
<tr> <td>2</td> <td>Offset for Discrete Input</td> <td></td> <td> This offset speci-
fies the number that is subtracted from the Discrete Input addresses that are used in the Modbus Datapoint Defintion file. E.g. if the offset is 20001 and the datapoints address 20010 is used, the Modbus interfaces reads the Discrete Input at memory address 9. </td> </tr>
<tr> <td>3</td> <td>Offset for Coil</td> <td></td> <td> This offset specifies the number that is subtracted from the Coil addresses that are used in the Modbus Datapoint Defintion file. E.g. if the offset is 20001 and the datapoints address 20010 is used, the Modbus interfaces reads the Discrete Input at memory address 9. </td> </tr>
<tr> <td>4</td> <td>Offset for Input Register</td> <td></td> <td> This offset specifies the number that is subtracted from the Input Register addresses that are used in the Modbus Datapoint Defintion file. E.g. if the offset is 20001 and the datapoints address 20010 is used, the Modbus interfaces reads the Input Register at memory address 9. </td> </tr>
<tr> <td>5</td> <td>Offset for Holding Register</td> <td></td> <td> This offset spec-
ifies the number that is subtracted from the Holding Register addresses that are used in the Modbus Datapoint Defintion file. E.g. if the offset is 20001 and the datapoints address 20010 is used, the Modbus interfaces reads the Holding Register at memory address 9. </td> </tr>

  • No labels