Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
titleLocation

...

<WorkspaceDirectory>\DataFiles\xio.Modbus.AddressMappingDefinitions.dat

To use an addressing scheme different to the standard Standard Modbus memory addresses that start with address 0. To use a different addressing scheme, an address mapping is possible.

These additional address mappings can are be specified herein this file. 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:

Code Block
' 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

...


 col Parametertype 

Description 

1Mapping Name stringThe name of the mapping

...

. This name is used within the Modbus Device Definition file to identify the mapping.

...

The mapping name

...

must be unique.

...

2Offset for Discrete Input numberThis offset specifies 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.

...

3Offset for Coil numberThis 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.

...

4Offset for Input Register numberThis 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.

...

5Offset for Holding Register numberThis 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.

...