21 Applied Instructions (Real Time Clock Control)
21.6 STOH / Second to Hour Conversion
556
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Program example
This is a program for converting the second unit data stored in D0, D1 when the X020 is turned ON, into the
"hour, minute, second" unit, and storing the result in D100, D101, D102.
Operation
1) Conversion into the "hour, minute, second" unit by STOHP instruction (when 40000 seconds is specified
by D1, D0)
[ST]
DSTOH(X020,D0,D100);
[Structured ladder/FBD]
DSTOH
EN
s
ENO
d
D100D0
X020
11
6
40
40000D1,D0
D100
D101
D102