Mitsubishi Electric MELSEC FX3U Programming Manual page 247

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2. In the case of CALL instruction
0
P21
I100
Cautions
1. When FEND instruction is programmed two or more times
Put a subroutine program or interrupt routine program between last FEND instruction and END instruction.
2. When CALL or CALLP instruction is used
Put a label after FEND instruction. And the SRET instruction is required in every case.
3. When CALL or CALLP instruction is used
If FEND instruction is executed after CALL or CALLP instruction was executed and before SRET instruction is
executed, an error is caused.
4. When FOR instruction is used
If FEND instruction is executed after FOR instruction was executed and before NEXT instruction is executed,
an error is caused.
5. When the interrupt function (I) is used
Make sure to program an interrupt label (pointer) after FEND instruction. And IRET instruction is required in
every case.
Main routine
program
X011
FNC 01
P 21
CALL
Main routine
program
FNC 06
FEND
Subroutine
program
Interrupt routine
program
END
8 Program Flow – FNC 00 to FNC 09
8.7 FNC 06 – Main Routine Program End
1
2
3
4
5
6
7
8
9
10
245

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents