566
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.2 FNC161 – TZCP / RTC Data Zone Compare
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 built-in PLC real time clock
Read the values of special data registers by TRD (FNC166) instruction, and then specify those word devices as the
operands.
Program example
S
1
S
2
S
3
D
Turns ON in the case of " ".
Turns ON in the case of " ".
Turns ON in the case of " ".
The setting range of "hour" is from 0 to 23.
The setting range of "minute" is from 0 to 59.
The setting range of "second" is from 0 to 59.
S
1
: Specify the lower limit of the comparison time zone in "hour", "minute" and "second.
S
1
+1 and +2S
1
,
S
2
S
2
+1 and
S
2
+2
, : Specify the upper limit of the comparison time zone in "hour", "minute" and "second.
S
S
+1 and +2S
, : Specify the time data in "hour", "minute" and "second.
+1 and +2D
D
D
, : Turn ON or OFF according to the comparison result.
X000
FNC161
TZCP
D 20 D 30 D 0 M 3
S
1
S
2
S
D
M3
>
M4
M5
↑
Even if X000 is OFF and TZCP instruction is not executed, M0
to M2 hold the status before X000 turned OFF.
D1 (minute)
D0 (hour)
D2 (second)
D21(minute)
D20(hour)
D22(second)
D 31 (minute)
D 30 (hour)
D 32 (second)
≤≤
>
D21(minute)
D20(hour)
D22(second)
D1 (minute)
D0 (hour)
D2 (second)
D1 (minute)
D0 (hour)
D2 (second)
D 31 (minute)
D 30 (hour)
D 32 (second)