197
M100 from OFF to ON, TCMP worked. Compare the three registers starting from S4 to three
registers S1, S2, S3 (year, month, day). When S1, S2, S3 is larger than S4 clock, M0 is ON.
When S1, S2, S3 is equal to S4 clock, M1 is ON. When S1, S2, S3 is smaller than S4 clock,
M2 is ON.
For example:
The present clock is 15:32:49 7,30,2014 Wednesday. So D33=15, D34=32, D35=49 .
If the setting time is 15:32:49, D20=15, D21=32, D22=49, so Y1=ON. If the setting time is
17:32:49, D20=17, D21=32, D22=49, so Y0=ON. If the setting time is 2:32:5, D20=2,
D21=32, D22=5, so Y2=ON.
4-10-10 Date (year, month, day) compare [DACMP]
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
tudonghoatoancau.com