Download Print this page

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

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

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
LDDT
ANDDT
ORDT
("=", "<>", ">", "<=", "<", ">=" enters .)
FBD/LD
LDDT
EN
ENO
s1
s2
s3
("_EQ", "_NE", "_GT", "_LE", "_LT", "_GE" enters .)
*1 Supported by engineering tool version "1.035M" and later.
*2 EQ is =, NE is <>, GT is >, LE is <=, LT is <, and GT is >=.
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
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s1)
(s2)
(s3)
8 APPLICATION INSTRUCTION
702
8.24 Clock Instruction
(s1)
(s2)
(s3)
(s1)
(s2)
(s3)
(s1)
(s2)
(s3)
ANDDT
EN
ENO
s1
s2
s3
*2
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Structured text
ENO:=LDDT_(EN,s1,s2,s3);
ENO:=ANDDT_(EN,s1,s2,s3);
ENO:=ORDT_(EN,s1,s2,s3);
("EQ", "NE", "GT", "LE", "LT", "GE" enters .)
ORDT
EN
ENO
s1
s2
s3
Range
Data type
16-bit signed binary
16-bit signed binary
0001H to 0007H,
16-bit signed binary
8001H to 8007H
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
*2
Data type (label)
ANY_DT
ANY_DT
ANY16
BOOL
BOOL
Constant
Others
K, H
E
$

Hide quick links:

Advertisement

loading