EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-F Series - Precautions

Mitsubishi Electric MELSEC iQ-F Series
128 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
28
3 PROGRAM ORGANIZATION UNITS
3.4 Precautions
3.4 Precautions
When a subroutine program or an interrupt program is used
Set subroutine programs and interrupt programs after the FEND instruction. When the subroutine program and interrupt
program are set before the FEND instruction, an error occurs.
Only one FEND instruction can be used for a program file. When multiple FEND instructions are used, an error occurs.
When a function is used
Global pointer/pointer type global labels
The global pointer and pointer type global labels cannot be used as the labels indicating the number of program steps.
Execution
order
Program file
FEND
Main routine program
P0
Subroutine program
RET
Interrupt program
I0
IRET
END
Because the subroutine
program is set before the
FEND instruction, an error
occurs.
Change the execution order in the
program file setting.
Execution
order
Program file
FEND
Main routine program
FEND
Main routine program
Interrupt program
I0
IRET
END
Because there are two
FEND instructions are in
the program file, an error
occurs.
The program after the FEND instruction is not
executed as the main routine program.

Other manuals for Mitsubishi Electric MELSEC iQ-F Series

Related product manuals