6 - 5
6 - 5
6. HOW TO COMMUNICATE WITH ID TAGS
6.2.5 Write mask bit
The Write Mask Bit command sets the mask bit of the data of the number of bytes
specified in the number of processed points specification area (Un
\
G4, Un
\
G4004)
from the address specified in the head address specification area (Un
\
G3, Un
\
G4003),
and writes the result in the same address of the ID tag.
When “1” is specified in the mask bit, the ID tag data prior to execution are held and the
buffer memory write data are ignored.
When “0” is specified in the mask bit, the ID tag data prior to execution are replaced
with the write data.
The data subject to mask bit and the data to be written are stored in the data storage
area (Un
\
G100 to Un
\
G103, Un
\
G4100 to Un
\
G4103).
The following indicates the area that stores the mask bit data and write data for each
number of processed bytes.
Table 6.2 Number of Processed Bytes and Data Storage Area
Address
Number of
Processed Bytes
Channel
Mask Bit Data
Write Data
CH1
Un
\
G100 Un
\
G101
1 to 2
CH2
Un
\
G4100 Un
\
G4101
CH1
Un
\
G100 to Un
\
G101 Un
\
G102 to Un
\
G103
3 to 4
CH2
Un
\
G4100 to Un
\
G4101 Un
\
G4102 to Un
\
G4103
(1) Example of use
(a) When executing the Write Mask Bit command in the data storage order 0000
H
(upper -> lower) of the processing specification, for the four bytes from address
0010
H
Stored data
Before
execution
After
execution
b15
b0
b7
b0
11
H
22
H
33
H
44
H
0F F0
H
55 AA
H
12 34
H
56 78
H
0010
H
0013
H
0012
H
0011
H
b7
b0
11
H
24
H
13
H
50
H
0010
H
0013
H
0012
H
0011
H
Mask
bit data
Write
data
Un\G100
Un\G101
Un\G102
Un\G103
Buffer memory
Address
ID tag
ID tag
Data before execution
Data after execution
Write data
0
b7
b0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
1
0
1
1
0
1
0
0
1
1
1
1
b7
b0
0
0
0
1
0
0
0
1
1
1
1
0
0
0
0
0
0
1
1
0
0
0
0
0
1
0
0
1
0
1
0
0
b7
b0
0
0
0
1
0
1
0
0
1
0
0
0
0
0
0
1
0
1
0
1
1
0
1
0
1
1
1
1
1
1
1
1
b7
b0
0
0
0
0
1
1
1
1
0
1
0
1
0
1
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
1
1
0FF0
H
55AA
H
1122
H
3344
H
1234
H
5678
H
1124
H
1350
H
Mask bit data
*Shaded area: Holds the data before execution.
*Area outlined in bold: Writes the write data.