18.16 PanaSD (Panasonic SD Memory Card Lifetime Information Read)
(Note 1)
The EX and GD series can be used for CPU units Ver.4.0 or later.
■
Execution result storage area
Operand
Items
Execution result
[D1]
(Note 1)
code
[D2]
Acquisiti
[D2+1]
on time
[D2+2]
Number of rewrite
[D3]
information
(Note 1)
The most significant bit of the execution result code can be used as a flag during execution.
■
Example of processing
Example 1) When the execution result of the PanaSD instruction is Normal
[D1]...DT10
[D2]...DT11 to DT13
When instruction is executed
DT10
H FFFF
DT11
DT12
DT13
DT14
DT15
Example 2) When the execution result of the PanaSD instruction is Error
[D1]...DT10
[D2]...DT11 to DT13
When instruction is executed
DT10
H FFFF
DT11
DT12
DT13
DT14
DT15
18-64
Description
Stores the execution result code.
HFFFF: Executing
H0: Normal end
H1: Dual-boot error
H2: SD memory card cover open error
H3: SD memory card not installed error
H4: Incompatible SD memory card error
Year
The SD memory card lifetime information acquisition time is stored as three-
and
word BCD data.
month
e.g. When the acquisition time is 15 hours 55 minutes and 30 seconds on
Day and
October 3, 2014, it is stored as follows.
hour
[D2] H1410
Minute
[D2+1] H0315
and
[D2+2] H5530
second
The ratio (%) of the average number of rewrites of management blocks to
the maximum number of possible rewrites is expressed by the following
formula:
[Number of rewrites (average of all management blocks)] / [Maximum
number of possible rewrites] x 100
[D3]...DT15
When SD card information is
being read
DT10
H FFFF
DT11
DT12
DT13
DT14
DT15
[D3]...DT15
When SD card information is
being read
DT10
H FFFF
DT11
DT12
DT13
DT14
DT15
Reading SD card is complete
(normal completion)
DT10
H 0
Execution result code
DT11
H 1410
Year and month
DT12
H 0318
Day and hour
DT13
H 5530
Minute and second
DT14
DT15
H 0052
No. of rewrites information (%)
Reading SD card is complete
(unsupported SD card error)
DT10
H 3
Execution result code
DT11
H 0
Year and month
DT12
H 0
Day and hour
DT13
H 0
Minute and second
DT14
DT15
H 0
No. of rewrites information (%)
:0
:1410
:318
:5530
:82
:3
:0
:0
:0
:0
WUME-FP7CPUPGR-12