Ethernet X001 Interface
CX8095
68
Version: 1.5
8.2.3
Mapping between Modbus and ADS
The standard mapping of the server is illustrated in the following tables for the first runtime system:
Modbus ranges
Modbus address
ADS range
Digital inputs
0x0000 - 0x7FFF
Index group
Index offset
0xF021 - process image of the
physical inputs (bit access)
0x0
0x8000 - 0x80FF
Name of the variables in the
PLC program
Data type
.mb_Input_Coils
ARRAY [0..255] OF BOOL
Digital outputs
(coils)
0x0000 - 0x7FFF
Index group
Index offset
0xF031 - process image of the
physical outputs (bit access)
0x0
0x8000 - 0x80FF
Name of the variables in the
PLC program
Data type
.mb_Output_Coils
ARRAY [0..255] OF BOOL
Input registers
0x0000 - 0x7FFF
Index group
Index offset
0xF020 - process image of the
physical inputs
0x0
0x8000 - 0x80FF
Name of the variables in the
PLC program
Data type
.mb_Input_Registers
ARRAY [0..255] OF WORD
Output registers
0x0000 - 0x2FFF
Index group
Index offset
0xF030 - process image of the
physical outputs
0x0
0x3000 - 0x5FFF
0x4020 - PLC memory area
0x0
0x6000 - 0x7FFF
0x4040 - PLC data area
0x0
0x8000 - 0x80FF
Name of the variables in the
PLC program
Data type
.mb_Output_Registers
ARRAY [0..255] OF WORD
The server maps this to the individual ADS ranges and enables access to the physical process image and
the PLC flag ranges.
The configurator enables the adaptation of the setting.
Default XML
The standard configuration looks like this:
<Configuration>
<!-- Modbus TCP port, default = 502-->
<Port>502</Port>
<!-- optional IP configuration for Modbus TCP server-->
<IpAddr/>
<Mapping>
<InputCoils>
<MappingInfo>
<!-- AdsPort: TwinCAT2 PLC1 = 801, PLC2 = 811...-->
<AdsPort>801</AdsPort>
<StartAddress>0</StartAddress>
<EndAddress>32767</EndAddress>
<!-- IndexGroup 61473 = 0xF021 -> physical plc inputs %IX -->
<IndexGroup>61473</IndexGroup>
<!-- Bit offset-->
<IndexOffset>0</IndexOffset>
</MappingInfo>
<MappingInfo>
<AdsPort>801</AdsPort>
<!-- Modbus input coils -->
<StartAddress>32768</StartAddress>
<EndAddress>33023</EndAddress>
<VarName>.mb_Input_Coils</VarName>
Содержание CX8095
Страница 1: ...Manual CX8095 Embedded PC with EtherNet IP Interface 1 5 2018 02 09 Version Date...
Страница 2: ......
Страница 56: ...Parameterization and commissioning CX8095 56 Version 1 5 1 Create a new controller 2 Append a new module...
Страница 65: ...Ethernet X001 Interface CX8095 65 Version 1 5 8 1 2 Topology example CX8095...
Страница 76: ...Error handling and diagnosis CX8095 76 Version 1 5...