User`s manual

76
FX3U Series Programmable Controllers
User’s Manual - MODBUS Serial Communication Edition
7 MODBUS Standard Commands
7.17 Mask Write Register (Command Code: 0x16)
7.17 Mask Write Register (Command Code: 0x16)
Masks the values stored in a single holding register with AND or OR and writes the value.
The masked values written to the holding register are as shown below.
Result = (Current Contents AND And_Mask) OR (Or_Mask AND (NOT And_Mask)
1) Request Message Format (Master Slave)
2) Response message format (Slave Master)
(When completed normally)
*1. Exception and error codes are stored in special data registers and special auxiliary relays in the case
of error completion. Refer to Chapter 6 for storage location, confirmation methods, and other detailed
contents.
Data
(L) (L) (L)
Function code
Function
code
(16
H)
Target holding register
number
(0000
H to FFFFH)
AND mask value
(0000
H to FFFFH)
OR mask value
(0000
H to FFFFH)
(H) (H)
(H)
Data
Function code
Function
code
(96
H)
Exception
code*
1