7 APPLICATION INSTRUCTIONS
7.15 Clock Instructions
705
7
Clock data comparison
TCMP(P)
• The comparison target time data (hour, minute, second) "(S1), (S2), (S3)" is compared with the time data [(S4), (S4)+1,
(S4)+2], and one of (D), (D)+1, and (D)+2 turns on depending on the result (small, match, large).
• QnUDVCPU, LCPU: The serial number (first five digits) is "16112" or later.
(S1): Start number of the devices where the comparison target time data "hour" is stored (0 to 23) (BIN 16 bits)
(S2): Start number of the devices where the comparison target time data "minute" is stored (0 to 59) (BIN 16 bits)
(S3): Start number of the devices where the comparison target time data "second" is stored (0 to 59) (BIN 16 bits)
(S4): Start number of the device where clock data (hour, minute, second) is stored (3 points occupied) (device name)
(D): Start bit device number to which the comparison result is output (3 points occupied) (Bit)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1)
(S2)
(S3)
(S4)
(D)
Basic
High
performance
Process
Redundant
Universal
Ver.
LCPU
Ver.
TCMP
TCMPP
TCMP
S1 S2 D
TCMPP
S1 S2
S3
S3 D
S4
S4
Command
Command
D
D
D
+2
+1
TCMP
S1 S2 S3
D
S4
Contact
(Hour)
(Second)
(Minute)
(Hour)
(Second)
(Minute)
(Hour)
(Second)
(Minute)
(Hour)
(Second)
(Minute)
(Hour)
(Second)
(Minute)
(Hour)
(Second)
(Minute)
S1
S2
S3
+2
+1
S1
S2
S3
+2
+1
S1
S2
S3
+2
+1
Turns on when
Turns on when
Turns on when
S4
S4
S4
S4
S4
S4
S4
S4
S4
S4