Err ( Returns The Error Code Of The Detected Error ) - Mitsubishi QD51 Programming Manual

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
ERR
Function
• Returns the error code of the detected error.
ERR
Syntax
E=ERR
Examples
• The ERR function returns the code of the detected error when an error occurs.
Description
• The ERR function is used in the error processing routine so that the processing branches
depending on the error content.
• The ERR function has a limited purpose and it cannot be specified on the left side of the
equal sign in the LET instruction and some other places.
• For the error codes, see Appendix 4.4.
Program Example
10 ' Displays the error code
20 ON ERROR GOTO 100
50 ERROR 10
60 END
100 PRINT "ERROR CODE =";ERR
110 RESUME 60
RUN
ERROR CODE = 10
OK
11 - 64
ERRor code
• • • •
REMARK
See the ON ERROR GOTO and RESUME instruction, ERL function, and Chapter 9.
Stores the code of the detected error in E.
:
' Branches to line 100 when an error occurs
:
' <-- An error of error code 10 occurs
:
' Displays the error code
MELSEC-Q
11 - 64

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents