195
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD; DM
includes DM, DHM; DS includes DS, DHS. M includes M, HM, SM; S includes S, HS; T
includes T, HT; C includes C, HC.
When the M0 switches on, it converts clock data (hours, minutes and seconds) in three
consecutive registers led by HD0 into second data, which is stored in register HD10 (double
word).
Note: the correspondence of registers is fixed, that is, they are stored in order of hours,
minutes and seconds.
The operands S occupy three registers. Do not use them for other purposes.
4-10-8 Convert second data to hours, minutes, and seconds[STOH]
1) Summary
Convert hour, minute, and second data to seconds [STOH]
Normally ON/OFF,
rising/falling edge
Version V3.4.6 (or V3.5.3a)
or later
2) Operands
Clock data before conversion
Clock data after conversion
3) Suitable soft components
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD; DM
includes DM, DHM; DS includes DS, DHS. M includes M, HM, SM; S includes S, HS; T
includes T, HT; C includes C, HC.
(HD,HD1,HD2)→(HD10,HD11)
Hour, minute ,second → second
tudonghoatoancau.com