Application example FGEN for Modbus TCP with CODESYS Win V3
D301271 1013 - FGEN - multi protocol10-18
1.1 Mapping: counter value to %QW0
– The mapping of the counter value (VAR "Counter") to the station 's output register is done the
the "ModbusTCPSlave I/O Mapping".
Double click the field "variable" in the respective line. Use the "..."-button to open the dialog box
"Input Assistant" .
– Select the variable to be mapped. As "Counter" been defined in PLC_PRG, see Programming
(example program), it can be found there.
– Confirm with "OK". The counter value is now mirrored to %QW0 of the station and given out.
Figure 10-17:
Mapping of the
counter value to
%QW0