Error ( Generates The Error Of The Specified Error Code ) - Mitsubishi QD51 Programming Manual

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
ERROR
Instruction
• Generates the error of the specified error code.
ERROR
Syntax
integer expression
E=ERROR 2
Examples
• The ERROR instruction generates an error of the specified error code.
Description
• If the value of <integer expression> is the value registered as an error code in BASIC (see
Appendix 4.4), the ERROR instruction generates an error of the corresponding error code.
• The BASIC causes an "Unprintable error" if an error number, whose error message is not
defined by the ERROR instruction, is specified.
• The ERROR instruction is used in order to check the operation when an error processing is
defined.
Program Example
11 - 65
ERROR
<integer expression>
• • • •
• • • •
REMARK
See the ON ERROR GOTO and ERR instructions, ERL function, and Chapter 9.
Specify the error code of the error to be generated.
Generates a "Syntax error" whose error code is 2.
MELSEC-Q
11 - 65

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents