Mitsubishi Electric MELSEC-Q/L Programming Manual page 701

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

Advertisement

• The following table shows the comparison operation results for each instruction.
Instruction symbol
Condition
DT=
(S1)=(S2)
DT<>
(S1)(S2)
DT>
(S1)>(S2)
DT<=
(S1)(S2)
DT<
(S1)<(S2)
DT>=
(S1)(S2)
• The following figure shows the comparison example of dates.
A
B
2006/1/1
2007/1/1
(2006/9/22)
(2007/6/23)
The following table shows the conductive states resulting from performing the comparison operation of the dates A, B, and C shown above.
Even if the objects to be compared are under the same condition, the comparison operation results vary depending on the objects selected.
Comparison objects
Day
Month
Month, day
Year
Year, day
Year, month
Year, month, day
No objects
• Even if the dates to be compared do not exist practically, this instruction executes the comparison operation for the objects with the settable dates in
accordance with the following condition.
Date A: 2006/02/30 (This date is settable, though it does not exist.)
Date B: 2007/03/29
Date C: 2008/02/31 (This date is settable, though it does not exist.)
Comparison objects
Day
Month
Month, day
Year
Year, day
Year, month
Year, month, day
No objects
Operation error
• There is no operation error in the LDDT, ANDDT, or ORDT instruction.
Comparison
operation result
Conductive status
C
2008/1/1
2009/1/1
(2008/8/8)
Comparison condition (: Conductive, : No-conductive)
A<B
Comparison condition (: Conductive, : No-conductive)
A<B
Instruction symbol
Condition
DT=
(S1)(S2)
DT<>
(S1)=(S2)
DT>
(S1)(S2)
DT<=
(S1)>(S2)
DT<
(S1)(S2)
DT>=
(S1)<(S2)
B<C
B<C
7 APPLICATION INSTRUCTIONS
Comparison
operation result
No-conductive status
A<C
A<C
699
7.15 Clock Instructions
7

Advertisement

Table of Contents
loading

Table of Contents