Comparing Date Data - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Comparing date data

LDDT, ANDDT, ORDT
These instructions compare the date data in the devices specified by (s1) and (s2). Or, these instructions compare the date
data in the device specified by (s1) with the current date.
Set the comparison target by (s3).
Ladder diagram
LD
AND
OR
( indicates T=, DT<>, DT>, DT<=, DT<, or DT>=.)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Head device number where the comparison data is stored
(s2)
Head device number where the comparison data is stored
(s3)
Comparison target setting value or the number of comparison
target data
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(s1)
(s2)
(s3)
Processing details
• These instructions compare the date data in the devices specified by (s1) and (s2), or compare the date data in the device
specified by (s1) with the current date. Set the comparison target by (s3).
• Comparing two specified date data
These instructions compare the date data in the device specified by (s1) with the date data in the device specified by (s2) in accordance with the
conditions set by (s3). (Devices are used as a normally open contact.)
Data range
(s1)
(1980 to 2079)
Year
(s1)+1
(1 to 12)
Month
(s1)+2
Day
(1 to 31)
• Comparing the specified date data with the current date
These instructions compare the date data in the device specified by (s1) with the current date data in accordance with the conditions set by (s3).
(Devices are used as a normally open contact.) The date data in the device specified by (s2) is regarded as dummy data and ignored.
Data range
(1980 to 2079)
(s1)
Year
(s1)+1
Month
(1 to 12)
(s1)+2
Day
(1 to 31)
Structured text
Not supported
(s1)
(s2)
(s3)
(s1)
(s2)
(s3)
(s1)
(s2)
(s3)
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
(s2)
Year
Relational
(s2)+1
Month
operator
(s2)+2
Relational
Current date
operator
(Year/month/day)
Range
Data type
16-bit signed binary
16-bit signed binary
0001H to 0007H,
16-bit signed binary
8001H to 8007H
Double word Indirect
specification
Z
LC
LZ
Data range
(1980 to 2079)
(1 to 12)
Day
(1 to 31)
Comparison
operation
result
7 APPLICATION INSTRUCTION
Data type (label)
ANY16
ANY16
ANY16
Constant
Others
K, H
E
$
Comparison
operation
result
7.19 Clock instruction
7
591

Advertisement

Table of Contents
loading

Table of Contents