14: CLOCK / CALENDAR INSTRUCTIONS
14-4 USER’S MANUAL
Example: CLKW
75 ADJ (Adjust)
Key Operation
Example: ADJ
I3
M301 is the initialize pulse special internal relay.
When MICRO
3
starts operation, the MOV instructions set clock data to data
registers D60 through D62.
D60 = 15 (Hour)
D61 = 30 (Minute)
D62 = 0 (Second)
When input I3 is turned on, the clock is set using data from data registers
D60 through D62.
Note: Clock data can also be set using FUN28. See page 5-12.
CLKW
D60
M301
REP
**
MOV S1
15
D1
D60
REP
**
MOV
S1
30
D1
D61
REP
**
MOV S1
0
D1
D62
When input is turned on, the clock is adjusted with respect to seconds. If seconds are
between 0 and 29 for current time, adjustment for seconds will be set to 0 and minutes
remain the same. If seconds are between 30 and 59 for current time, adjustment for seconds
will be set to 0 and minutes are incremented one. The ADJ instruction is useful for precise
timing which starts at zero seconds.
Since the ADJ instruction is executed at the rising edge of the input, a pulse input from an
SOTU or SOTD instruction is not required.
ADJ
ADV
0 LOD I 4
1 ADJ
3 END
4 END
7
END
No operand is required for the ADJ instruction.
To enter the instruction, press the key.
5
CC=
When input I4 is turned on, the clock is adjusted with respect to seconds.
ADJ
I4