277
GOEND
1
2
3
4
6
7
8
6.5 Program Branch Instructions
6.5.2 GOEND
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.
Program Example
(1) The following program jumps to the END instruction if D0 holds a negative number.
[Ladder Mode] [List Mode]
6.5.2 GOEND Jump to EN D
6.5.2
GOEND
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn Constants Other
Bit Word Bit Word
–– ––
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
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.
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
GOENDGOEND
Step
Instruction
Device