Application example FGEN for Modbus TCP with CODESYS Win V3
D301271 1013 - FGEN - multi protocol10-26
10.3.12 Evaluation of the status word of FGEN-XSG16-5001 (%IW1)
According to the definition of the Modbus communication channel (see Setting the Modbus channels
(examples), example 4, page 10-21), %IW1 contains station's the status-word.
the message is to be interpreted as follows:
%IW 2, "actual value" = 129
1 Byte 0, bit 0 = 1
→ status message: „DiagWarn“ = active diagnosis
2 Byte 0, bit 7 = 1
→ status message: „U
L
“ = load voltage not within the permissible range (< 18 V).
register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0×0001 U
L
------
Diag
Warn
- FCE - - CFG COM U
B
-
Figure 10-27:
Status word of
the station