Mitsubishi Electronics FX3G User Manual

Page of 964
151
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.12 Pointer [P and I]
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
Operations
2. Pointers for timer interrupt: 3 points
→ For details on timer interrupt function, refer to Section 36.5.
The PLC executes an interrupt routine program at every specified interrupt cycle time (10 to 99 ms).
Use these pointers for control requiring cyclic processing regardless of the operation cycle of the PLC.
*1.
Cleared when the PLC mode switches from RUN to STOP.
Caution
It is recommended to set the timer interrupt time to 10 ms or more. When the timer interrupt time is set to 9 ms or less,
the timer interrupt processing may not be executed at an accurate cycle in the following cases:
• When the processing time of the interrupt program is long
• When an instruction requiring long processing time is used in the main program
Input No.
Interrupt cycle (ms)
Interrupt disabling flag
I6
An integer ranging from 10 to 99 is put in "
" portion of the pointer name.
Ex: I610 = Timer interrupt at every 10 ms
M8056
*1
I7
M8057
*1
I8
M8058
*1
I001
FNC 04
EI
FNC 06
FEND
FNC 03
IRET
Pointer for
interrupt
Rising edge of X000 is detected
Interrupt enabled
range
Interrupt routine [1]
I101
FNC 03
IRET
Pointer for
interrupt
Rising edge of X001 is detected
Interrupt routine [2]
END
Interrupt is usually disabled in the PLC.
If interrupt is enabled by EI instruction, when
X000 or X001 turns ON while a program is
scanned, the PLC executes the interrupt
routine [1] or [2], and then returns to the main
program by IRET instruction.
Make sure to program a pointer for interrupt
(I***) as a label after FEND instruction.