Справочник Пользователя для Mitsubishi Electronics FXCPU
7 Applied Instructions (Program Flow)
103
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
1
O
utlin
e
e
2
Instruc
tion Li
st
3
Configurati
on of
Instruction
4
Ho
w t
o R
ea
d
Explanati
on of
Ins
truction
truction
s
5
B
asic
Instruction
6
Step Ladder
Instruct
ions
7
Ap
pl
ied Inst
ruct
io
io
ns
(Program Flow)
8
Appl
ied
ied
In
stru
cti
cti
ons
(Mov
e and
C
omp
are)
are)
9
App
lie
lie
d Instr
uction
s
s
(Ari
thm
eti
thm
eti
c and
Lo
gic
al O
per
at
ion)
10
App
lied Inst
lied Inst
ructi
ons
ons
(Rot
ati
ati
on and
Shift O
perati
on)
7. Applied Instructions (Program Flow)
This chapter introduces the instructions mainly related to control flow of sequence programs such as
conditional program execution and priority processing.
conditional program execution and priority processing.
Instruction name
Function
Reference
CJ
Conditional Jump
Section 7.1
CJP
CALL
Call Subroutine
Section 7.2
CALLP
SRET
Subroutine Return
Section 7.3
IRET
Interrupt Return
Section 7.4
DI
Disable Interrupt
Section 7.5
EI
Enable Interrupt
Section 7.6
FEND
Main Routine Program End
Section 7.7
WDT
Watchdog Timer Refresh
Section 7.8
FOR
Start a FOR/NEXT Loop
Section 7.9
NEXT
End a FOR/NEXT Loop
Section 7.10