GE PACSystems RX7i Reference Manual page 259

Cpu
Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 6. Serial I/O, SNP & RTU Protocols
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.
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:
Note: If the Or_Mask value is zero, the result is simply the logical ANDing of the current contents
and And_Mask. If the And_Mask value is zero, the result is equal to the Or_Mask value.
Note: The contents of the register can be read with the Read Holding Registers function (function
code 03). They could, however, be changed subsequently as the controller scans its user logic
program.
Example of a Mask Write to register 5 in slave device 17, using the above mask values:
Response:
The normal response is an echo of the query. The response is returned after the register has been
written.
248
Current Contents
And_Mask
Or_Mask
And_Mask
Result
Field Name
Slave Address
Function
Reference Address Hi
Reference Address Lo
And_Mask Hi
And_Mask Lo
Or_Mask Hi
Or_Mask Lo
Error Check (LRC or CRC)
PACSystems* RX7i, RX3i and RSTi-EP CPU Reference Manual
Hex
Binary
12
0001
0010
F2
1111
0010
25
0010
0101
0D
0000
1101
17
0001
0111
Example
(Hex)
11
16
00
04
00
F2
00
25
--
GFK-2222AD

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rsti-epPacsystems rx3i

Table of Contents