Download Print this page

Comparing Clock 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 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.
Ladder diagram
(s1)
FBD/LD
EN
ENO
s1
d
s2
s3
s4
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Specify the "hour" of the time comparison
(s2)
Specify the "minute" of the time comparison
(s3)
Specify the "second" of the time comparison
(s4)
Specify the time data (hour, minute, and second)
(d)
Specify the Bit device that turns on/off depending on the
comparison result
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s1)
(s2)
(s3)
(s4)
(d)
8 APPLICATION INSTRUCTION
708
8.24 Clock Instruction
(s2)
(s3)
(s4)
(d)
Word
T, ST, C, D, W,
SD, SW, R
Structured text
ENO:=TCMP(EN,s1,s2,s3,s4,d);
ENO:=TCMPP(EN,s1,s2,s3,s4,d);
Range
0 to 23
0 to 59
0 to 59
Double word Indirect
U\G
Z
LC
Data type
16-bit signed binary
16-bit signed binary
16-bit signed binary
16-bit signed binary
Bit
Bit
Bit
Constant
specification
LZ
K, H
Data type (label)
ANY16
ANY16
ANY16
ANY16_ARRAY
(Number of elements: 3)
ANYBIT_ARRAY
(Number of elements: 3)
BOOL
BOOL
Others
E
$

Hide quick links:

Advertisement

loading