M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.5 Program Branch Instructions
GOEND: Jump to END
Setting
Bit devices
data
X
Y
M
L
F
[Instruction symbol] [Execution condition]
GOEND
Functions
Jumps to FEND or END instruction in the same program file.
Operation errors
In the following cases, an arithmetic error occurs, the error flag (SM0) turns ON, and an error code is stored at SD0.
- A GOEND instruction is executed after the execution of the CALL instruction, and before the execution of the RET
instruction. (Error code: 26)
Program example
The following program jumps to the END instruction if D0 holds a negative number.
0
< D0 K0
IB-1501667-B
Usable devices
B SB
T SM V
T
C
Command
[Ladder mode]
GOEND
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
Steps
0
3
256
Digit
Pointer
designa-
Index
tion
H
P
GOEND
[List mode]
Inst.
Device
LD<
D0
K0
GOEND