Comparing Date Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Comparing date data

LDDT, ANDDT, ORDT
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions compare the specified date data, or compare the date data with the current date.
Ladder
LD
AND
OR
( indicates T=, DT<>, DT>, DT<=, DT<, or DT>=.)
FBD/LD
EN
ENO
s1
s2
s3
( is replaced by a combination of LDDT_, ANDDT_, or ORDT_ and EQ, NE, GT, LE, LT, or GE.)
*1 The engineering tool with version "1.035M" or later supports the ST.
*2 EQ indicates =, NE indicates <>, GT indicates >, LE indicates <=, LT indicates <, and GE indicates >=.
■Execution condition
Instruction
LDDT, ANDDT, ORDT
Setting data
■Description, range, data type
Operand
Description
(s1)
Start device where the data to be compared is stored
(s2)
Start device where the data to be compared is stored
(s3)
Comparison target setting value or the number of
comparison target data
EN
Execution condition
ENO
Execution result
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
RnSFCPU RnSFCPU
(Standard)
(Safety)
(s1)
(s2)
(s3)
(s1)
(s2)
(s3)
(s1)
(s2)
(s3)
Execution condition
Every scan
*1
ST
ENO:=LDDT_(EN,s1,s2,s3);
ENO:=ANDDT_(EN,s1,s2,s3);
ENO:=ORDT_(EN,s1,s2,s3);
( is replaced by any of the following: EQ, NE, GT, LE, LT, GE.)
*2
Range
Data type
16-bit signed binary
16-bit signed binary
0001H to 0007H, 8001H to
16-bit signed binary
8007H
Bit
Bit
7 APPLICATION INSTRUCTIONS
*2
Data type (label)
*1
ANY_DT
*1
ANY_DT
ANY16
BOOL
BOOL
1013
7.25 Clock Instructions
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents