559
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.9 FNC169 – HOUR / Hour Meter
21
FN
C
160-FN
C
169
R
eal
Ti
m
e
C
loc
k
C
ont
ro
l
22
FN
C
170
-F
N
C
17
9
E
xt
e
rnal
D
evi
ce
23
FN
C
180
Su
b
st.
I
n
str
. I
n
fo
24
FN
C
181-FN
C
189
O
ther
s
25
FN
C
190-FN
C
19
9
B
loc
k D
a
ta
O
per
at
io
n
26
FN
C
200-FN
C
209
C
har
act
e
r St
ring
C
ont
ro
l
27
F
N
C2
10
-F
NC
21
9
Da
ta
O
per
at
ion 3
28
FN
C
220-FN
C
24
9
Da
ta
Co
m
p
a
ris
o
n
29
FN
C
250-FN
C
269
Da
ta
T
a
b
le
O
per
at
io
n
30
FN
C
27
0-F
N
C
274
Ex
-D
ev
ic
e
In
ve
rte
r C
o
mm
s
2. 32-bit operation
[
+1,
] : Time after which
is set to ON
Specify the high-order side in
+1, and the low-order side in
.
[
+1,
] : Current value in units of hour
The high-order side is stored in
+1, and the low-order side is stored in
.
+2
: Current value less than one hour (unit: second)
: Alarm output destination
It turns ON when the current value [
+1,
] exceeds the time specified in
.
• Specify a latched (battery backed) type data register as
so that the current value data can be
continuously used even after the PLC turns OFF.
If a general data type register is used, the current value data is cleared when the power of the PLC is
turned OFF or when the PLC mode switches from STOP to RUN.
• Even after the alarm output
turns ON, the measurement is continued.
• When the current value [
+1,
] reaches the maximum value of 32-bit data, the measurement is
stopped.
For continuing the measurement, clear the current value stored in
to
+3.
Caution
Number of occupied devices
Two devices are occupied by
.
Make sure that these devices are not used in other controls for the machine.
Program example
In the program example shown below, when the accumulated X000 ON time exceeds 300 hours, Y005 turns
ON.
The current value less than one hour is stored in D201 in units of second.
: Time after which
is set to ON
Specify a value in units of hour.
: Current value in units of hour
+1
: Current value less than one hour (unit: second)
: Alarm output destination
It turns ON when the current value
exceeds the time specified in
.
(In this example, it turns ON when the current value becomes 300 hours 1 second.)
Command
input
FNC169
DHOUR
S
D
1
D
2
S
S
D
2
S
1
S
1
D
1
D
1
D
1
D
1
D
1
D
2
D
1
D
1
S
D
1
D
2
D
1
D
1
D
1
D
1
D
1
X000
FNC169
HOUR
K300
S
D 200
D
1
Y005
D
2
S
D
2
D
1
D
1
D
2
D
1
S