Date Comparison - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Date comparison

LDDT, ANDDT, ORDT
High
Basic
Process
Redundant
performance
• QnU(D)(H)CPU, QnUDE(H)CPU: the serial number (first five digits) is "10102" or later
• Q00UJCPU, Q00UCPU, Q01UCPU, QnUDVCPU: Supported
LD
AND
OR
(S1): Head number of the devices where the data to be compared are stored (BIN 16 bits)
(S2): Head number of the devices where the data to be compared are stored (BIN 16 bits)
n:
Value of the data to be compared or the number of the stored data to be compared (BIN 16 bits)
Setting
Internal device
data
Bit
Word
(S1)
(S2)
n
Processing details
• This instruction compares the date data specified by (S1) with those specified by (S2), or the date data specified by (S1)
with the current date data. Setting n can determine the data to be compared.
• Comparison of given date data
This instruction treats the date data specified by (S1) and (S2) as a normally open contact, and then compares the data in accordance with the value of n.
Data range
(S1)
Year
(1980 to 2079)
(S1)+1
Month
(1 to 12)
Day
(1 to 31)
(S1)+2
• Comparison of current date data
This instruction treats the date data specified by (S1) and the current date data as a normally open contact, and then compares the data in accordance with the
value of n.
Time data specified by (S2) is treated as dummy data, and is ignored.
Data range
(S1)
Year
(1980 to 2079)
(S1)+1
Month
(1 to 12)
(S1)+2
Day
(1 to 31)
When either (S1) or (S2) corresponds to any of the following in comparing given or current date data with
given date data, the operation error (error code: 4101) or a malfunction may occurs.
• The range of the devices to be used for the index modification is specified over the range of the device
specified by (S1) or (S2).
• File registers are specified by (S1) or (S2) without a register set.
Ver.
Universal
LCPU
indicates an instruction symbol of
Command
Command
R, ZR
J\
Bit
(S2)
Comparison
(S2)+1
operator
(S2)+2
Comparison
Current date
operator
DT=/DT<>/DT</DT<=/DT>/DT>=
S1
S2
S1
S2
S1
S2
U\G
Word
Data range
Year
(1980 to 2079)
Month
(1 to 12)
Day
(1 to 31)
7 APPLICATION INSTRUCTIONS
.
n
n
n
Zn
Constant
Others
K, H
Comparison
operation result
Comparison
operation result
7.15 Clock Instructions
7
697

Advertisement

Table of Contents
loading

Table of Contents