Denso RC5 Specifications Page 530

  • Download
  • Add to my manuals
  • Print
  • Page
    / 692
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 529
18-2
ERR (System Variable)
Function
Obtains an error number that occurred.
Format
ERR
Explanation
This program stores an error number that occurred.
The ERR does not include any error number of other programs being executed
in multitasking operation.
Remarks: This command has no meaning when “Error interruption
process code deletion” is set to ON (1) in [Program] of
[Project setting] of PAC manager in WINCAPSII.
The same setting has been prepared in the teach pendant.
Related Terms
ERL, ERRMSG$, ON ERROR GOTO
Example
DIM Li1 As INTEGER
DIM Li2% (2, 3)
ON ERROR GOTO *Error1
'Branches to the process routine of *Error1 when the error
'occurred.
FORLil=0TO3
Li2 (0, Li1) = 0
'When Li1 is 3, an error occurs and it branches to process
'routine of *Error1.
NEXT Li1
*R_Label:
END
*Errorl: 'Declares the label *Errorl.
S1= “Line” +STR$(ERL)+ “:” +ERRMSG$(ERR)
'Edit the error message.
PRINTMSG S1,2, “error” 'Outputs error information.
IF ERR = &H3B3E THEN
RESUME NEXT 'Returns to the line following the line where the error
'occurred.
ELSE
RESUME *R_Label 'Returns the line of *R_Label.
ENDIF
Page view 529
1 2 ... 525 526 527 528 529 530 531 532 533 534 535 ... 691 692

Comments to this Manuals

No comments