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

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

Advertisement

Comparing time data

LDTM, ANDTM, ORTM
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions compare the specified time data, or compare the specified time data with the current time.
Ladder
LD
AND
OR
( is replaced by TM=, TM<>, TM>, TM<=, TM<, or TM>=.)
FBD/LD
EN
ENO
s1
s2
s3
( is replaced by a combination of LDTM_, ANDTM_, or ORTM_ 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
LDTM, ANDTM, ORTM
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:=LDTM_(EN,s1,s2,s3);
ENO:=ANDTM_(EN,s1,s2,s3);
ENO:=ORTM_(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,
16-bit signed binary
8001H to 8007H
Bit
Bit
7 APPLICATION INSTRUCTIONS
*2
Data type (label)
*1
ANY_TM
*1
ANY_TM
ANY16
BOOL
BOOL
1017
7.25 Clock Instructions
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents