11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' This program displays "ERROR" if an error occurs
20 ON ERROR GOTO 50
30 ERROR 10
40 END
50 PRINT "ERROR"
60 RESUME 40
RUN
ERROR
OK
11 - 163
REMARK
See the ERROR and RESUME instructions, ERL and ERR functions, and Chapter
9.
:
' Defines the branch destination at error
generation
:
' An error occurs
:
' Ends error processing
MELSEC-Q
11 - 163