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

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Jump to END

GOEND
High
Basic
Process
performance
GOEND
Setting
Internal device
data
Bit
Processing details
• Jumps to the FEND or END instruction in the same program file.
Operation error
• 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
Error details
code
4200
After the FOR instruction was executed, the GOEND instruction was
executed prior to the NEXT instruction.
4211
After the CALL, ECALL instruction was executed, the GOEND instruction
was executed prior to the the RET instruction.
4221
During an interrupt program, the GOEND instruction was executed prior to
the IRET instruction.
4230
The GOEND instruction was executed during the CHKCIR to CHKEND
instruction execution.
4231
The GOEND instruction was executed during the IX to IXEND instruction
execution.
Program example
• The following program jumps to the END instruction if D0 holds a negative number.
[Ladder Mode]
6 BASIC INSTRUCTIONS
324
6.5 Program Branch Instructions
Redundant Universal
LCPU
Command
R, ZR
Word
J\
U\G
Bit
Word
Q00J/
Q00/
Q01
[List Mode]
Instruction
Step
GOEND
Zn
Constant
QnH
QnPH
QnPRH
Device
Others
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents