Jump To End (Goend) - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS

6.5.2 Jump to END (GOEND)

Internal Devices
Set
(System, User)
Data
Bit
Word
[Instruction Symbol] [Execution Condition]
GOEND
[Functions]
(1) Jumps to FEND or END instruction in the same program file.
[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.
• A GOEND instruction has been executed after the execution of a CALL, ECALL instruction,
and prior to the execution of the RET instruction.
• A GOEND instruction has been executed after the execution of a FOR instruction, and prior
to the execution of the NEXT instruction.
• A GOEND instruction has been executed during an interrupt program but prior to the
execution of the IRET instruction.
• A GOEND instruction was executed between the CHKCIR and CHKEND instruction block.
• A GOEND instruction was executed between the IX and IXEND instruction block.
[Program Example]
(1) The following program jumps to the END instruction if D0 holds a negative number.
[Ladder Mode]
6 - 99
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Usable Devices
MELSECNET/10(H)
File
Direct J \
Register
Bit
Word
Command
[List Mode]
QCPU
PLC CPU
Basic
High Performance
Special
Index
Function
Register
Module
Zn
U \G
Steps
Instruction
MELSEC-Q/QnA
QnA
Q4AR
Process CPU
Constant
Other
K, H
GOEND
(Error code: 4211)
(Error code: 4200)
(Error code: 4221)
(Error code: 4230)
(Error code: 4231)
Device
6 - 99

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents