EasyManuals Logo

GE PACSystems RX7i Reference Manual

GE PACSystems RX7i
317 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
Page #259 background imageLoading...
Page #259 background image
Chapter 6. Serial I/O, SNP & RTU Protocols
248 PACSystems* RX7i, RX3i and RSTi-EP CPU Reference Manual GFK-2222AD
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:
Hex
Binary
Current Contents
12
0001
0010
And_Mask
F2
1111
0010
Or_Mask
25
0010
0101
And_Mask
0D
0000
1101
Result
17
0001
0111
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:
Field Name
Example
(Hex)
Slave Address
11
Function
16
Reference Address Hi
00
Reference Address Lo
04
And_Mask Hi
00
And_Mask Lo
F2
Or_Mask Hi
00
Or_Mask Lo
25
Error Check (LRC or CRC)
--
Response:
The normal response is an echo of the query. The response is returned after the register has been
written.

Table of Contents

Other manuals for GE PACSystems RX7i

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the GE PACSystems RX7i and is the answer not in the manual?

GE PACSystems RX7i Specifications

General IconGeneral
BrandGE
ModelPACSystems RX7i
CategoryController
LanguageEnglish

Related product manuals