205
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.4 FNC 03 – IRET / Interrupt Return
1
In
troduct
io
n
2
Ov
e
rv
ie
w
3
In
st
ru
ct
ion
Li
st
4
D
evi
ce
s
in
De
ta
il
5
Speci
fied t
h
e
D
evi
ce &
C
onst
a
nt
6
Bef
o
re
Pr
ogr
a
m
m
ing
7
Bas
ic
In
st
ru
cti
o
n
8
FNC0
0
-FNC0
9
P
ro
g
ra
m F
lo
w
9
FNC1
0
-FNC1
9
M
ov
e
&
C
om
par
e
10
FNC
20-
FNC
2
9
Ar
ith.
&
Logi
c
O
per
at
io
n
Program example
Interrupts are usually disabled in PLCs.
Use EI instruction to enable interrupts.
When X000 turns ON while the main program is executed,
instructions after the interrupt routine pointer I001 are
executed, and the program execution returns to the
original main program by IRET instruction.
The timer interrupt of the pointer I620 is executed at every
timer time of 20 ms, and the program execution is
returned to the original main program by IRET instruction
at every time.
The high speed counter interrupt of the pointer I010 is
executed when the current value of a high speed counter
becomes equivalent to a value specified by DHSCS (FNC
53) instruction.
The program execution returns to the original main
program by IRET instruction.
Make sure to program an interrupt pointer (I***) as a label
after FEND instruction.
I620
C255
I001
FNC 04
EI
FNC 06
FEND
FNC 03
IRET
FNC 03
IRET
Interrupt
pointer
Interrupt
pointer
The rising edge of X000 is detected.
Interrupt at every 20 ms
M8000
Main program
Input interrupt
routine
Timer interrupt
routine
I010
FNC 03
IRET
Interrupt
pointer
High speed counter
High speed counter
routine
END
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......