702
7 APPLICATION INSTRUCTIONS
7.15 Clock Instructions
• This instruction sets BIN values for each item.
• This instructions sets the time selected from 0 to 23 (midnight to 23 o'clock) with the BIN value specified by (S1) or (S2).
(Uses the 24-hour clock.)
• This instructions sets the minute selected from 0 to 59 (0 to 59 minutes) with BIN value specified by (S1)+1 or (S2)+1.
• This instructions sets the second selected from 0 to 59 (0 to 59 seconds) with BIN value specified by (S1)+2 or (S2)+2.
• This instruction specifies the following values at n so that the data to be compared can be specified. The bit configuration
specified at n is as follows.
Clock data to be compared (from 0 to 2nd bit)
Operation data to be compared (15th bit)
The following table shows processing details of bits to be compared.
• 0: Does not compare specified clock data (hour/minute/second).
• 1: Compares specified clock data (hour/minute/second).
• 0: Compares the clock data specified by (S1) with the clock data specified by (S2).
• 1: Compares the clock data specified by (S1) with the current time data. Ignores the clock data specified by (S2).
n value for comparison
of specified clock data
with given clock data
n value for
comparison of
specified clock data
with current time data
Time to be
compared
Processing details
0001H 8001H Second Comparison of seconds ((S1)+2)
0002H 8002H Minute Comparison of minutes ((S1)+1)
0003H 8003H Minute, second Comparison of minutes ((S1)+1) and seconds ((S1)+2)
0004H 8004H Hour Comparison of hours ((S1))
0005H 8005H Hour, second Comparison of hours ((S1)) and seconds ((S1)+2)
0006H 8006H Hour, minute Comparison of hours ((S1)) and minutes ((S1)+1)
0007H 8007H Hour, minute, second Comparison of hours ((S1)), minutes ((S1)+1), and seconds ((S1)+2)
Other than 0001H to 0007H, 8001H to 8007H None No comparison of hours ((S1)), minutes ((S1)+1), and seconds
((S1)+2) (Non-conductive)
b15 b14
...
b3 b2 b1 b0
0/1 0 0/1 0/1 0/1
Second
Minute
Hour
This instruction specifies 0 at bits from 3rd to 14th.
The instruction will be non-conductive status without
specifying 0 regardless of the operation result.
If this instruction specifies 1 (on) at 15th bit,
the instruction compares (S1) with the current
date in accordance with the bit condition
specified at 0 to 2nd bit.