698
7 APPLICATION INSTRUCTIONS
7.15 Clock Instructions
• This instruction sets BIN values for each item.
• This instruction sets the year of four digits selected from 1980 to 2079 with the BIN value specified by (S1) or (S2).
• This instruction sets the month selected from 1 to 12 (January to December) with the BIN value specified by (S1)+1 or
(S2)+1.
• This instruction sets the day selected from 1 to 31 (1st to 31st) for with the 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.
Date 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.
• If the data stored in the devices to be compared are not recognized as date data, SM709 will be turned on after the
instruction execution and no-conductive status will be made. Even if they are not recognized as date data but the range of
the devices is within the setting range, SM709 will not be turned on. Moreover, if the range of devices specified by (S1) to
(S1)+2 or (S2) to (S2)+2 exceeds the range of specified devices, SM709 will be turned on after the instruction execution
and no-conductive status will be made. Once SM709 is turned on, on-status will be retained till when the CPU modules are
reset or powered off. Therefore, turn off SM709 if necessary.
• 0: Does not compare specified date data (year/month/day).
• 1: Compares specified date data (year/month/day).
• 0: Compares the date data specified by (S1) with the date data specified by (S2).
• 1: Compares the date data specified by (S1) with the current date data. Ignores the date data specified by (S2).
n value for comparison
of specified date data
with given date data
n value for comparison
of specified date data
with current date data
Date to be compared Processing details
0001H 8001H Day Comparison of days ((S1)+2)
0002H 8002H Month Comparison of months ((S1)+1)
0003H 8003H Month, day Comparison of months ((S1)+1) and days ((S1)+2)
0004H 8004H Year Comparison of years ((S1))
0005H 8005H Year, day Comparison of years ((S1)) and days ((S1)+2)
0006H 8006H Year, month Comparison of years ((S1)) and months ((S1)+1)
0007H 8007H Year, month, day Comparison of years ((S1)), months ((S1)+1), and days
((S1)+2)
Other than 0001H to 0007H, 8001H to 8007H No objects No comparison of years ((S1)), months ((S1)+1), and days
((S1)+2) (Non-conductive)
b15 b14 b3 b2 b1 b0
0/1 0 0/1 0/1 0/1
Day
Month
Year
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.