EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-RJ71C24-R4 - Mask Write Register (FC: 16 H)

Mitsubishi Electric MELSEC iQ-RJ71C24-R4
60 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
48
3 MODBUS STANDARD FUNCTION DETAILS
3.16 Mask Write Register (FC: 16H)
3.16 Mask Write Register (FC: 16H)
Operation description
Writes the masked value obtained by performing AND and OR operations on the value stored in one holding register area.
The value is written to the holding register as shown below.
Write value = (current value of target register  AND mask value)  (OR mask value  AND mask value
)
If the OR mask value is 0000H, only the AND processing of the AND mask value will be performed.
If the AND mask value is 0000H, the OR mask value will be the write value.
Request message format (from master to slave)
Response message format (from slave to master)
â–  When completed successfully
The slave returns the request message received from the master as-is.
â–  When completed with an error
With this function, the value stored in the holding register is read from the slave, the AND/OR processing is
performed on the master, and then the mask value is written to the holding register on the slave.
Therefore, if the holding register value is changed during AND/OR processing, the changed value will be
overwritten.
(H) (L) (H) (L)
16H
(H) (L)
Target holding register number
DataFunction code
AND mask value OR mask value
(0000H to FFFFH)(0000H to FFFFH)(0000H to FFFFH)
96H
Data
Exception code
Function code

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-RJ71C24-R4

Related product manuals