Mitsubishi Electric MELSEC-Q/L Programming Manual page 700

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• 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.
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.
b15 b14
0/1
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.
Date data to be compared (from 0 to 2nd bit)
• 0: Does not compare specified date data (year/month/day).
• 1: Compares specified date data (year/month/day).
Operation data to be compared (15th bit)
• 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).
The following table shows processing details of bits to be compared.
n value for comparison
of specified date data
with given date data
0001H
0002H
0003H
0004H
0005H
0006H
0007H
Other than 0001H to 0007H, 8001H to 8007H
• 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.
7 APPLICATION INSTRUCTIONS
698
7.15 Clock Instructions
b3
b2
b1
b0
0
0/1 0/1 0/1
n value for comparison
Date to be compared
of specified date data
with current date data
8001H
Day
8002H
Month
8003H
Month, day
8004H
Year
8005H
Year, day
8006H
Year, month
8007H
Year, month, day
No objects
Day
Month
Year
Processing details
Comparison of days ((S1)+2)
Comparison of months ((S1)+1)
Comparison of months ((S1)+1) and days ((S1)+2)
Comparison of years ((S1))
Comparison of years ((S1)) and days ((S1)+2)
Comparison of years ((S1)) and months ((S1)+1)
Comparison of years ((S1)), months ((S1)+1), and days
((S1)+2)
No comparison of years ((S1)), months ((S1)+1), and days
((S1)+2) (Non-conductive)

Advertisement

Table of Contents
loading

Table of Contents