Outputting a comparison result of time data
TCMP(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
• The RnCPU and RnENCPU with firmware version "17" or later support these instructions. (Use an engineering tool with version "1.020W" or later.)
These instructions compare the time data to be compared that is specified by (s1), (s2), and (s3) with the time data specified
by (s4), and according to the result (small, match, or large), (d), (d)+1, or (d)+2 is turned on.
Ladder
(s1)
(s2)
(s3)
FBD/LD
EN
ENO
s1
d
s2
s3
s4
■Execution condition
Instruction
TCMP
TCMPP
Setting data
■Description, range, data type
Operand
Description
(s1)
Start device for storing the time data (hour) to be compared
(s2)
Start device for storing the time data (minute) to be
compared
(s3)
Start device for storing the time data (second) to be
compared
(s4)
Start device for storing the time data (hour, minute, second)
to be compared
(d)
Start device for storing the comparison result
EN
Execution condition
ENO
Execution result
RnSFCPU RnSFCPU
(Standard)
(Safety)
(s4)
(d)
Execution condition
ST
ENO:=TCMP(EN,s1,s2,s3,s4,d);
ENO:=TCMPP(EN,s1,s2,s3,s4,d);
Range
Data type
0 to 23
16-bit signed binary
0 to 59
16-bit signed binary
0 to 59
16-bit signed binary
16-bit signed binary
Bit
Bit
Bit
7 APPLICATION INSTRUCTIONS
Data type (label)
ANY16
ANY16
ANY16
ANY16_ARRAY
(Number of elements: 3)
ANYBIT_ARRAY
(Number of elements: 3)
BOOL
BOOL
1021
7.25 Clock Instructions
7