beckhoff TS6250 — 5.2 Mapping between Modbus and ADS

Configuration This samples maps the input register (IndexGroup 0xF020) of the first TwinCAT2 runtime (port = 801) to the Modbus input registers. Hint : It is possible to map by variablename or IndexGroup/Offset(better performance). The default configuration can be found here [ } 14] . 5.2 Mapping between Modbus and ADS The default mapping is shown in the following table: The server maps the individuals ADS areas and enables the access to the physical process image and maps the PLC data area . The mapping can be adjusted by the configurator [ } 12] . Default XML The default configuration with optional comments for a better explanation: 502 TS6250 14 Version:

1.2 Modbus ar- eas Modbus ad- dress ADS area 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