6 - 3
6 - 3
6. HOW TO COMMUNICATE WITH ID TAGS
6.2.3 Set bit
The Set Bit command sets the bits 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.
The data for which the bits are to be set are stored in the data storage area (Un
\
G100
to Un
\
G101, Un
\
G4100 to Un
\
G4101).
(1) Example of use
(a) When executing the Set Bit command in the data storage order 0000
H
(upper ->
lower) of the processing specification, for the four bytes from address 0010
H
b15
b0
b7
b0
Stored data
Before
execution
12
H
34
H
56
H
78
H
24 68
H
13 57
H
0010
H
0013
H
0012
H
0011
H
b7
b0
After
execution
36
H
7C
H
57
H
7F
H
0010
H
0013
H
0012
H
0011
H
Un\G100
Un\G101
Buffer memory
Address
ID tag
ID tag
b7
b0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
1
0
0
0
1
0
1
1
0
1
b7
b0
0
0
0
0
1
1
1
1
1
0
1
1
1
0
1
0
0
0
0
0
0
1
0
1
b7
b0
0
0
0
1
0
1
0
0
0
0
0
0
1
0
1
0
1
1
1
1
1
1
1
1
b7
b0
0
0
0
1
1
1
1
0
1
1
0
1
0
1
1
0
1
1
0
1
1
1
1
1
1234
H
5678
H
2468
H
1357
H
367C
H
577F
H
Data before execution
Data after execution
Write data
*Shaded area: Holds the data before execution.
*Area outlined in bold: Writes the write data.
(b) When executing the Set Bit command in the data storage order 0001
H
(lower ->
upper) of the processing specification, for the four bytes from address 0010
H
Stored data
Before
execution
b15
b0
b7
b0
12
H
34
H
56
H
78
H
24 68
H
13 57
H
0010
H
0013
H
0012
H
0011
H
b7
b0
7A
H
34
H
57
H
7B
H
0010
H
0013
H
0012
H
0011
H
After
execution
Un\G100
Un\G101
Buffer memory
Address
ID tag
ID tag
Data before execution
Data after execution
Write data
b7
b0
0
0
0
0
1
1
0
1
1
0
1
1
0
0
0
0
0
0
1
0
1
1
0
1
b7
b0
0
0
0
0
0
0
1
1
1
0
0
0
1
1
1
0
0
0
0
0
0
1
0
1
b7
b0
0
0
0
1
1
1
0
0
0
0
0
0
1
1
1
0
1
1
1
1
1
1
1
1
b7
b0
0
0
0
1
0
1
1
0
1
1
0
1
0
0
0
0
1
1
0
1
1
1
1
1
1234
H
5678
H
6824
H
5713
H
7A34
H
577B
H
*Shaded area: Holds the data before execution.
*Area outlined in bold: Writes the write data.