Mitsubishi MELSEC QCPU Programming Manual page 145

Programmable logic controller
Table of Contents

Advertisement

5 SEQUENCE INSTRUCTIONS
(4) The use of the END and FEND instructions is broken down as follows for main routine
programs, subroutine programs, and interrupt programs:
Main routine program
Subroutine program
Interrupt program
[Operation Errors]
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• An END instruction was executed before the execution of the RET instruction and after the
execution of the CALL, FCALL, ECALL, or EFCALL instruction.
• An END instruction was executed before the execution of a NEXT instruction and after the
execution of the FOR instruction.
• An END instruction was executed during an interrupt program prior to the execution of the
IRET instruction.
• An END instruction was executed within the CHKCIR to CHKEND instruction loop.
• An END instruction was executed within the IX to IXEND instruction loop.
5 - 49
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
FEND
(FEND instruction is necessary.)
END
(END instruction is necessary.)
MELSEC-Q/QnA
Main sequence
program area
(Error code: 4211)
(Error code: 4200)
(Error code: 4221)
(Error code: 4230)
(Error code: 4231)
5 - 49

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents