544
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.2 FNC161 – TZCP / RTC Data Zone Compare
Explanation of function and operation
1. 16-bit operation (TZCP)
The lower limit and upper limit comparison time (hour, minute, and second) are compared with the time data
(hour, minute, and second) stored in three devices , +1,
and +2.
Three
devices
starting
from
turn ON or OFF according to the comparison result.
Cautions
1) Number of occupied devices
Three devices are occupied respectively by
,
,
, and
.
Make sure that these devices are not used in other controls for the machine.
2) When utilizing the time (hour, minute, and second) of the real time clock built in a PLC
Read the values of special data registers by TRD (FNC166) instruction, and then specify those word
devices as the operands.
S
S
S
D
Turns ON in the case of " ".
Turns ON in the case of " ".
Turns ON in the case of " ".
Command
input
FNC161
TZCP
S
1
S
2
S
D
>
↑
This instruction compares the
comparison time zone specified by two
points with the time data.
S
+1(minute)
(hour)
+2(second)
S
S
S
+1(minute)
(hour)
+2(second)
S
S
S
+1(minute)
(hour)
+2(second)
S
S
S
1
+1(minute)
(hour)
+2(second)
S
1
S
1
S
1
+1(minute)
(hour)
+2(second)
S
1
S
1
S
2
+1(minute)
(hour)
+2(second)
S
2
S
2
S
2
+1(minute)
(hour)
+2(second)
S
2
S
2
≤
≤
>
D
+1
D
+2
D
Even if the command contact turns OFF from ON and TZCP instruction is not executed, ,
+1 and +2 hold the status before the command contact turned OFF.
D
D
D
S
1
S
2
S
3
D