Mitsubishi Electronics FX3G Manual De Usuario

Descargar
Página de 964
129
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.8 High-Speed Counter [C] (FX3U/FX3UC PLC)
1
Introdu
ction
2
Ov
ervi
ew
3
Instruction 
Li
st
4
D
evices 
in Det
ai
l
5
Specifi
ed the
De
vice
 &
 
C
onst
ant
6
Bef
ore
 
Pr
og
ra
mmi
ng
7
Bas
ic 
Instruction
8
FN
C00-FN
C0
9
Program Fl
ow
9
FNC
10-FN
C19
Mov
e & Com
pare
10
FNC
20-FNC
29
Arith. & Lo
gi
Operati
on
• Write the following program to "reset only the current value of a high-speed counter (and does not turn OFF the 
contact)".
1) Program example
*1.
When the driving contact is the continuous execution type, the current value of the counter is reset to "0" 
at each scan while X010 remains ON.
2) Timing chart
• Write the following program to "turn OFF the contact and reset the current value of a high-speed counter".
1) Program example
*2.
When the driving contact is the continuous execution type, the current value of the counter is reset to "0" 
and the counter reset status is cleared at each scan while X010 remains ON.
2) Timing chart
X010
*1
FNC 12
 DMOV
K0
C235
The current value of C235 is cleared (to "0").
X000
Current
value of C235
1
2
3
Because X010 turns ON,
"FNC 12 DMOV" is executed.
The current value of C235 is
reset to "0".
X010
1
2
3
Because the driving contact is the
pulse execution type, C235 executes
counting normally after that.
4
M8001
X010
*2
RST
C235
- - - - -  A
RST
C235
- - - - -  B
RUN Monitor
(normally OFF)
X000
Current
value of C235
1
2
3
X010
1
2
3
4
RST
C235
Counter is reset
(part  A  in above
program).
Counter reset instruction is
deactivated
(part  B  in above program).
Because the reset instruction
is deactivated, C235 executes
counting.