Appendix
A - 12
A.3.4 EH-SIO support task code details
Reads the CPU status, memory-load status and software version.
This task code can also be executed when the CPU is not occupied.
READ occupation
WRITE occupation
Not occupied
(a) Function selection (subcommand)
1] H00: Reads CPU status.
2] H01: Reads memory status.
3] H02: Reads system software version.
4] H03: Reads error code.
5] H04: Reads CPU name.
6] H05: Reads CPU specifications.
1] Reads CPU status ( subcommand : H00)
(a) Response task code (H00 when executed normally)
For task codes other than the normal task codes, refer to the “response list by task code” at the end of
this chapter.
(b) The read CPU status
(c) User program version (H00 to HFF)
This value is counted up only when memory writing has occurred and the WRITE occupation is canceled
(indicating the number of times WRITE occupation has occurred). This value is H00 upon power-up.
CPU status (4 digits) (b) area details (response to the subcommand “H00”)
bit7 : Battery error flag
bit11 to 8 CPU type flag 0011: EH-CPU516/548, 1011:EHV-CPU128, 0111:EHV-CPU64/32/16
bit 0 RUN/STOP flag Indicates the run/stop status of CPU.
“1”: Run / “0”: Stop
bit 1 Halt status flag Indicates whether the CPU is halted or not.
“1”: Halted / “0”: Not halted
bit 2 Unused (“0”)
bit 3 Error status flag Indicates whether CPU is in the error status or not.
“1”: Error / “0”: Normal
When this flag is 1, error details may be determined by reading the CPU error code (refer to 4]).
bit 4 Unused (“0”)
bit 5 Unused (“0”)
bit 6 Unused (“0”)
bit 7 Battery error flag Indicates whether CPU backup battery is normal or not.
“1”: Battery is not installed or voltage is low. / “0”: Battery normal