Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
21 Applied Instructions (Real Time Clock Control)
21.5 HTOS / Hour to Second Conversion
552
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation (HTOS/HTOSP)
The time data (hour, minute, second) of the device specified by is converted into the second unit, and
the result is stored in the device specified by .
For example, when 4 hours, 29 minutes, 31 seconds is specified, the operation is as follows.
2. 32-bit operation (DHTOS/DHTOSP)
The time data (hour, minute, second) of the device specified by is converted into the second unit, and
the result is stored in the device specified by
For example, when 35 hours, 10 minutes, 58 seconds is specified, the operation is as follows.
Error
In the following case, it is an operation error, and the error flag (M8067) is turned ON, and the error code is
stored in D8067.
1) When the data of the device specified by is out of the range. (Error code: K6706)
HTOS
EN
s
ENO
d
Head device for storing the time data (hour,
minute, second) before conversion
Command
input
Device for storing the time data (hour,
minute, second) after conversion
hour
minute
second
+1
+2
second
(0 to 9)
(0 to 59)
(0 to 59)
s
s
s
d
4
29
31
16171+1
+2
s
s
s
d
DHTOS
EN
s
ENO
d
Device for storing the time data (hour,
minute, second) after conversion
Command
input
Head device for storing the time data (hour,
minute, second) before conversion
hour
minute
second
+1
+2
second
(0 to 32767)
(0 to 59)
(0 to 59)
+1
d d
s
s
s
35
10
58
+1
+2
126658
+1
s
s
d d
s