166 Fieldbus Communication
WAGO-I/O-SYSTEM 750 XTR
750-352/040-000 FC ETHERNET G3 XTR
Manual
Version 1.3.0
Exception
Table 99: Exception of Function Code FC16
Byte
Field name
Example
...
Byte 7
MODBUS function code
0x85
Byte 8
Exception code
0x01 or 0x02
Pos: 94.13 /D okumentati on allgemei n/Gli ederungsel emente/---Seitenwechsel--- @ 3\mod_1221108045078_0.docx @ 21810 @ @ 1
Pos: 94.14 /Serie 750 ( WAGO-I/O-SYST EM)/Funkti onsbeschrei bung/F eldbuskommuni kation/M ODBU S/Anwendung der MOD BUS-F unktionen ( x41) - FC 22 @ 4\mod_1235567699484_21.docx @ 27737 @ 4 @ 1
11.2.3.10 Function Code FC22 (Mask Write Register)
This function manipulates individual bits within a register using a combination of
an AND mask, an OR mask, and the register’s current content.
Request
Table 100: Request of Function Code FC22
Byte
Field name
Example
Byte 0, 1
Transaction identifier
0x0000
Byte 2, 3
Protocol identifier
0x0000
Byte 4, 5
Length field
0x0002
Byte 6
Unit identifier
0x01 not used
Byte 7
MODBUS function code
0x16
Byte 8, 9
Reference number
0x0000
Byte 10, 11
AND mask
0x0000
Byte 12, 13
OR mask
0xAAAA
Response
Table 101: Response of Function Code FC22
Byte
Field name
Example
...
Byte 7
MODBUS function code
0x10
Byte 8, 9
Reference number
0x0000
Byte 10, 11
AND mask
0x0000
Byte 12, 13
OR mask
0xAAAA
Exception
Table 102: Exception of Function Code FC22
Byte
Field name
Example
...
Byte 7
MODBUS function code
0x85
Byte 8
Exception code
0x01 or 0x02
Pos: 94.15 /D okumentati on allgemei n/Gli ederungsel emente/---Seitenwechsel--- @ 3\mod_1221108045078_0.docx @ 21810 @ @ 1