
7 APPLICATION INSTRUCTION
7.19 Clock instruction
597
7
Comparing clock data
TCMP(P)
These instructions compare the time specified by (s1), (s2), and (s3) with the time data specified by (s4), and turn on/off the
bit device specified by (d) depending on the size match.
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
Processing details
• These instructions compare the time specified by (s1), (s2), and (s3) with the time data specified by (s4), and turn on/off the
bit device specified by (d) depending on the size match.
• (d), (d)+1, and (d)+2 hold the state before the command contact is turned off even if, the TCMP instruction is not executed
by switching on
off the command contact.
Ladder diagram
Structured text
ENO:=TCMP(EN,s1,s2,s3,s4,d);
ENO:=TCMPP(EN,s1,s2,s3,s4,d);
Operand
Description
Range
Data type
Data type (label)
(s1)
Specify the "hour" of the time comparison
0 to 23
16-bit signed binary
ANY16
(s2)
Specify the "minute" of the time comparison
0 to 59
16-bit signed binary
ANY16
(s3)
Specify the "second" of the time comparison
0 to 59
16-bit signed binary
ANY16
(s4)
Specify the time data (hour, minute, and second)
16-bit signed binary
ANY16
(d)
Specify the Bit device that turns on/off depending on the
comparison result
Bit
Bit
Operand
Bit
Word
Double word
Indirect
specification
Constant
Others
X, Y, M, L,
SM, F, B, SB
U
\G
T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(s1)
(s2)
(s3)
(s4)
(d)
(s1)
(s2)
(s4)
(s3)
(d)
(s1) (s4)
(s2) (s4)+1
(s3)
(s4)+2
(d) = ON
(s1) (s4)
(s2) (s4)+1
(s3)
=
(s4)+2
(d) +1 = ON
(s1) (s4)
(s2) (s4)+1
(s3) (s4)+2
(d) +2 = ON
Data range
Data range
Hour
(0 to 23)
Hour
Minute
Minute
Second
Second
Data range
Data range
Hour
Hour
Minute
Minute
Second
Second
Data range
Data range
Hour
Hour
Minute
Minute
Second
Second
(0 to 59)
(0 to 59)
(0 to 23)
(0 to 59)
(0 to 59)
(0 to 23)
(0 to 59)
(0 to 59)
(0 to 23)
(0 to 59)
(0 to 59)
(0 to 23)
(0 to 59)
(0 to 59)
(0 to 23)
(0 to 59)
(0 to 59)
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......