236 Fieldbus Communication
WAGO-I/O-SYSTEM 750
750-880, 750-880/025-000 ETHERNET Programmable Fieldbus Controller
Manual
Version 1.0.1
Pos: 109.14 /Alle Serien (Allgemeine Module)/Feldbuskommunikation/MODBUS/Anwendung der MODBUS-Funktionen (x41) - FC22 @ 4\mod_1235567699484_21.doc @ 27737 @ 4 @ 1
12.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 120: 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 121: 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 122: Exception of Function code FC22
Byte
Field name
Example
...
Byte 7
MODBUS function code 0x85
Byte 8
Exception code
0x01 or 0x02
Pos: 109.15 /Dokumentation allgemein/Gliederungselemente/---Seitenwechsel--- @ 3\mod_1221108045078_0.doc @ 21810 @ @ 1