324
6 BASIC INSTRUCTIONS
6.5 Program Branch Instructions
Jump to END
GOEND
• Jumps to the FEND or END instruction in the same program file.
• 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 following program jumps to the END instruction if D0 holds a negative number.
Setting
data
Internal device R, ZR J\ U\G Zn Constant Others
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.
[Ladder Mode] [List Mode]
Basic
Process
High
performance
Redundant
Universal
LCPU