PACSystemsâ„¢ RX3i and RSTi-EP CPU Reference Manual Section 6
GFK-2222AK October 2019
Serial I/O, SNP & RTU Protocols 182
â–ª
6.3.3.12 Message (22): Mask Write 4x Memory
Modifies the contents of a specified 4x register using a combination of an AND mask, an
OR mask, and the register's current contents. The function can be used to set or clear
individual bits in the register. Broadcast is not supported.
6.3.3.12.1 Query:
The query specifies the 4x reference to be written, the data to be used as the AND mask,
and the data to be used as the OR mask.
The function's algorithm is:
Result = (Current Contents AND And_Mask) OR (Or_Mask AND And_Mask)
For example: