Mitsubishi Electronics FX3G User Manual

Page of 964
579
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.9 FNC169 – HOUR / Hour Meter
21
FNC160
-F
NC1
69
R
eal
 T
ime C
lock
 
C
ontrol
22
FNC17
0-F
NC
179
E
xternal D
evice
23
FNC
180
Alternate 
Instructions
24
FN
C181-
FNC18
9
O
thers
25
FNC190
-F
NC1
99
Bl
oc
k D
ata
 
Op
er
ation
26
FNC20
0-F
NC209
C
har
ac
te
r S
trin
Con
tro
l
27
FNC2
10-
FNC21
9
Dat
Operati
on 3
28
FNC220
-F
NC2
49
Da
ta 
C
omp
ari
son
29
FNC25
0-F
N
C
269
D
ata T
abl
Operation
30
FNC2
70-
FNC276
Ex
-Dev
ice
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 
 and 
+1 reaches or 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 to 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 measures the ON time beginning again, clear the current value stored in 
 to 
+2.
When the current value is clear, alarm output is turned OFF.
• 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 
+2.
Caution
1. Number of occupied devices
Two (16-bit operation) or three (32-bit operation) 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 
 reaches or exceeds the time specified in 
.
(In this example, it turns ON when the current value becomes 300 hours.)
Command
input
FNC169
DHOUR
D
D
   
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
  
D
1
  
D
1
X000
FNC169
HOUR
K300
D 200
D
Y005
D
   
S
  
D
2
  
D
1
  
D
1
  
D
2
  
D
1
   
S