Mitsubishi Electronics FX3G User Manual

Page of 964
578
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.9
FNC169 – HOUR / Hour Meter
Outline
This instruction measures the ON time of the input contact in units of hour.
1. Instruction format
2. Set data
3. Applicable devices
S1: D .b is available only in FX
3U
 and FX
3UC
 PLCs. However, index modifiers (V and Z) are not available.
S2: This function is supported only in FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 PLCs.
S3: This function is supported only in FX
3U
/FX
3UC
 PLCs.
Explanation of function and operation
1. 16-bit operation
When the accumulated ON time of the command input reaches
or exceeds the time stored in 
 is set to ON.
The current value less than one hour is stored in 
+1
(unit: 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 
.
• 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 type data 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.
To begin measuring the ON time again, clear the current value stored in 
 and 
+1.
When the current value is cleared, alarm output is turned OFF.
• When the current value 
 reaches the maximum value of 16-bit data, the measurement is stopped.
For continuing the measurement, clear the current value stored in 
 and 
+1.
Operand type
Description
Data type
Time after which 
 is set to ON (unit: hour)
16- or 32-bit binary
Current value (unit: hour) (latched (battery backed) type data register latched (battery
backed))
16- or 32-bit binary
Head device number to which alarm is output
Bit
Oper-
and 
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special 
Unit
Index
Con-
stant
Real 
Number
Charac-
ter String
Pointer
X Y M T C S D .b KnX KnY KnM KnS T C D
R U \G
V
Z Modify K H
E
" "
P
S2
S3
S2
S1
FNC 169
HOUR
Mnemonic
Operation Condition
16-bit Instruction
 7 steps HOUR
Mnemonic
Operation Condition
Continuous
Operation
32-bit Instruction
D
 13 steps DHOUR
Continuous
Operation
S
1
 ‚
  S
  
D
2
S
1
 ‚
  
D
1
  
D
2
S
1
 ‚
  S
S
1
 ‚
  
D
1
S
2
 ‚
  
D
2
Command
input
FNC169
HOUR
D
D
  
D
1
   
S
  
D
1
   
S
  
D
2
  
D
1
  
D
1
  
D
2
  
D
1
   
S
  
D
1
  
D
2
  
D
1
  
D
1
  
D
1
  
D
1
  
D
1