5 - 20
5 - 20
5. THINGS YOU NEED TO KNOW BEFORE PROGRAMMING
(2) Example of use
The following describes an example of a case where the three bytes from the
address 0010
H
serve as the number of writes management area.
1. The Write command is executed to write a write life of 100,000 in the
management area.
Bit 0
Bit 7
Address
0013
H
0012
H
0011
H
0010
H
000F
H
0
1
A
0
8
6
2. With five as the number of writes [specified by command options (Un
\
G5,
Un
\
G4005), the Manage Number of Writes command is executed with
subtraction specified.
Bit 0
Bit 7
Address
0013
H
0012
H
0011
H
0010
H
000F
H
0
1
9
B
8
6
3. When the Manage Number of Writes command is executed with subtraction
specified and five as the number of writes [specified using command options
(Un
\
G5, Un
\
G4005)], the error details storage area (Un
\
G41, Un
\
G4041)
status flag (bit 4) turns ON, and error detection (X5, XD) turns ON.
Bit 0
Bit 7
Address
0013
H
0012
H
0011
H
0010
H
000F
H
0
0
0
0
0
0