D301271 1013 - FGEN - multi protocol
10-17
Programming with CODESYS
Setting the Modbus channels (examples)
1 Reading of %QW0 and mapping of the counter value (VAR "Counter", see PLC_PRG, page 10-13) to
the output byte of the station FGEN-XSG16-5001 (%QW0).
1.1 Write: %QW0
– Access Type:
Write Single Register (function code 06)
– Write Register, Offset:
0×9000 (see Register mapping of the FGEN-stations, FGEN-XSG16-x001 (page 9-14))
The process output data of the station can be found in register 0×9000.
Figure 10-16:
Modbus
channel,
counter value,
FC06