Download Print this page

Termination Instructions - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

6.6

Termination Instructions

Ending the main routine program
FEND
This instruction is used to branch operation of the sequence program by the CJ instruction or to divide the main routine
program into a subroutine program or an interrupt program.
Ladder diagram
FBD/LD
Not supported.
Processing details
• This instruction branches operation of the sequence program by the CJ instruction or dividing the main routine program into
subroutine programs and interrupt programs.
• When this instruction is executed, program execution returns to the program at step 0 after output processing, input
processing and refreshing of the watchdog timer.
• The sequence program from this instruction onwards can also be displayed as ladder by the engineering tool.
(Left: When the CJ instruction is used, Right: When there are subroutine programs and interrupt programs)
0
A
CJ
P**
(1)
A
FEND
P**
A
FEND
END
A: Main routine program
B: Subroutine program
C: Interrupt Program
(1): Operation when the CJ instruction is not executed
(2): Jump by the CJ instruction
(3): Operation when the CJ instruction has been executed
Operation error
Error code
Remarks
(SD0/SD8067)
3340H
The FEND instruction is executed before the NEXT instruction after the FOR instruction is executed.
3381H
The FEND instruction is executed before the RET instruction after the CALL(P) instruction is executed.
33E3H
The FEND instruction is programmed between FOR-NEXT.
33E4H
The FEND instruction is programmed between MC-MCR.
33E5H
The FEND instruction is programmed between STL-RETSTL.
33E7H
The FEND instruction is programmed between I-IRET.
3100H
The FEND instruction is programmed in standby type program.
The FEND instruction is programmed in FB file.
Structured text
Not supported.
(2)
(3)
P**
I**
CALL
P**
A
FEND
B
C
END
6 SEQUENCE INSTRUCTIONS
6.6 Termination Instructions
6
161

Hide quick links:

Advertisement

loading