Mitsubishi MELSEC Q Series Programming Manual page 337

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6.5.2
Jump to END (GOEND)
GOEND
GOEND
Setting
Data
––
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.
• The GOEND instruction has been executed after the execution of the CALL, ECALL
instruction, and prior to the execution of the RET instruction.
• The GOEND instruction has been executed after the execution of the FOR instruction,
and prior to the execution of the NEXT instruction.
• The GOEND instruction has been executed during an interrupt program but prior to the
execution of the IRET instruction.
• The GOEND instruction was executed between the CHKCIR and CHKEND instruction
block.
• The 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]
Command
Internal Devices
R, ZR
Bit
Word
High
Basic
performance
J
\
U
\G
Bit
Word
––
[List Mode]
Instruction
Step
GOEND
Process
Redundant Universal
LCPU
GOEND
Zn
Constants
Other
(Error code: 4211)
(Error code: 4200)
(Error code: 4221)
(Error code: 4230)
(Error code: 4231)
Device
6-135
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents