6 SEQUENCE INSTRUCTIONS
6.6 Termination Instructions
161
6
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.
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)
Operation error
Ladder diagram
Structured text
Not supported.
FBD/LD
Not supported.
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
Error code
(SD0/SD8067)
Remarks
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.
CJ
FEND
FEND
END
0
P**
P**
CALL
FEND
END
(2)
(3)
(1)
P**
P**
I**
A
A
A
B
C
A
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......