Mask Write Register (Command Code: 0X16) - Mitsubishi FX3U Series User Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
Series Programmable Controllers
3U
User's Manual - MODBUS Serial Communication Edition
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)
Function code
Function
code
(16
)
H
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.
76
Target holding register
number
(0000
to FFFF
)
H
H
(H)
(L)
Function code
Function
code
(96
)
H
7.17 Mask Write Register (Command Code: 0x16)
Data
AND mask value
(0000
to FFFF
)
H
H
(H)
(L)
Data
Exception
1
code*
7 MODBUS Standard Commands
OR mask value
(0000
to FFFF
)
H
H
(H)
(L)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents