Mitsubishi Electronics FX3G User Manual

Page of 964
806
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.2 Common Items
Example in which latched outputs are reset (countermeasures)
1) Program example
2) Timing chart
RST
C0
X002
FNC 06
FEND
RST
C0
RST
Y007
Program to reset Y007 at an arbitrary
time.
Program to deactivate the preceding
C0 reset instruction inside the
subroutine.
B
M8001
RUN monitor
(normally OFF)
A
Y007
X001
C0
K10
M8000
FNC 05
IRET
I001
FNC 04
EI
Step 0
X001
Current
value of C0
1
2
3
Y007 is reset
RST
C0
Y007
1
2
3
4
X002
Execution of interrupt
program I001 triggered
by X000
Interrupt program
Counter is reset
(part  A  in above
program).
Counter reset instruction is deactivated
(part  B  in above program).