Jump To End - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

6.5.2
GOEND

Jump to END

6.5.2
GOEND
GOEND
Internal Devices
Setting
Data
Bit
Word
––
Function
(1) Jumps to the FEND or END instruction in the same program file.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Error
code
After the FOR instruction was executed, the GOEND instruction was
4200
executed prior to the NEXT instruction.
After the CALL, ECALL instruction was executed, the GOEND
4211
instruction was executed prior to the the RET instruction.
During an interrupt program, the GOEND instruction was executed prior
4221
to the IRET instruction.
The GOEND instruction was executed during the CHKCIR to CHKEND
4230
instruction execution.
The GOEND instruction was executed during the IX to IXEND
4231
instruction execution.
Program Example
(1) The following program jumps to the END instruction if D0 holds a negative number.
[Ladder Mode]
Command
J
\
R, ZR
Bit
Word
Error details
[List Mode]
Step
High
Basic
Process
performance
Zn
U
\G
––
Q00J/
Q00/
QnH
QnPH QnPRH
Q01
Device
Instruction
GOEND
LCPU
Redundant Universal
GOEND
Constants
Other
QnU
LCPU
277
1
2
3
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents