EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-A series

Mitsubishi MELSEC-A series Programming Manual

Mitsubishi MELSEC-A series
508 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
Page #103 background imageLoading...
Page #103 background image
5. SEQUENCE INSTRUCTIONS
5 34
MELSEC-A
5.6 Termination Instructions
5.6.1 Main routine program termination
(FEND)
Available Device
Bit device Word (16-bit) device Constant Pointer
Level
Carry
flag
Error
flag
X Y M L S B F T C D W R A0 A1 Z V K H P I N
Digit specification
Index
M9012 (M9010, M9011)
O
Functions (1) Terminates the main routine program.
(2) When the FEND instruction is executed, the PC returns to step 0 after the
processing (such as timer/counter processing and self-diagnostic check) after
the execution of END instruction, and resumes operation from step 0.
(3) The sequence program located after FEND instruction can also be displayed on
the GPP. (The GPP displays a circuit up to the END instruction.)
Operation Errors In the following cases, operation error occurs and the PC stops its operation.
After the CALL(P) instruction is executed, the FEND instruction has been executed
before executing the RET instruction.
After the FOR instruction is executed, the FEND instruction has been executed
before executing the NEXT instruction.
Applicable
CPU
All CPUs
FEND
Operation when
CJ instruction is
not exectuted
Main routine
program
Main routine
program
Main routine
program
Jump by CJ
instruction
Operation when
CJ instruction is
executed
(a) By use of CJ instruction
Main routine
program
Subroutine
program
Interrupt program
(b) There are subroutine program
and interrupt program

Table of Contents

Other manuals for Mitsubishi MELSEC-A series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-A series and is the answer not in the manual?

Mitsubishi MELSEC-A series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-A series
CategoryController
LanguageEnglish

Related product manuals