Mitsubishi QD51 Programming Manual page 533

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
RESUME
Instruction
• Resumes the program execution after the error handling is completed by the ON ERROR
GOTO instruction.
RESUME [<position to resume the execution>]
Syntax
position to resume the
execution
RESUME
Examples
RESUME NEXT
RESUME 150
• The RESUME instruction ends the error handling specified by the ON ERROR GOTO
Description
instruction and resumes the program execution.
• Use one of the types shown below, depending on where the program execution should be
resumed:
(1) RESUME
(2) RESUME NEXT
(3) RESUME <line number>
Program Example
10 ON ERROR GOTO 100
20 A=0
30 PRINT 100/A
40 PRINT "End"
50 END
100 REM Error handling
110 A=1
120 RESUME
11 - 363
Resumes the program execution from the instruction that caused the error.
Resumes the program execution from the instruction immediately after the instruction
that caused the error.
Resumes the program execution from the line specified in <line number>.
• • • • • • • • • • •
RESUME
• • • •
Specify the position where the program execution is
to be resumed after the error handling.
No specification
Specification of
NEXT
Specification of
a line number
• • • •
Ends the error handling and resumes the program
execution from the instruction that caused an error.
• • • •
Ends the error handling and resumes the program
execution from the instruction immediately after the
instruction that caused an error.
• • • •
Ends the error handling and resumes the program
execution from line 150.
An error occurs because 100 is devided by 0.
50
Specification of
Specification
a line number
of NEXT
The program is
The program is executed
from the instruction
executed from
immediately after
the specified
the instruction where
line number.
the error occurred.
MELSEC-Q
• • •
The execution is resumed
from the instruction that
caused the error.
• • •
The execution is resumed
from the instruction
immediately after the
instruction that caused the
error.
• • •
The execution is resumed
from the specified line
number.
NEXT
No
specification
The program is
executed from
the instruction
where the error
occurred.
11 - 363

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents