Denso RC5 Spezifikationen Seite 529

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 692
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 528
Chapter 18 Error Controls
18-1
18.1 Error Information
ERL (System Variable)
Function
Obtains the line number where an error occurred.
Format
ERL
Explanation
This program stores the line number of the program where an error occurred.
The initial status is quite unstable and even if you can read the contents of the
ERL before an error occurs, it does not have any meaning.
The ERL does not include any error line 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
ERR, ON ERROR GOTO
Example
DIM Li1 As INTEGER
DIM Li2% (2, 3)
ON ERROR GOTO *Error1
'Branches to the *Error1 processing routine when the error
'occurs.
FORLil=0TO3
Li2 (0, Li1) = 0
'An error occurs when Li1 is 3, and this branches to the *Error1
'processing 'routine.
NEXT Li1
*R_Label:
END
*Errorl: 'Declares the label *Errorl.
S1 = “Line”+STR$(ERL)+ “:” +ERRMSG$(ERR)
'Edits 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 to the line of *R_Label.
ENDIF
Seitenansicht 528
1 2 ... 524 525 526 527 528 529 530 531 532 533 534 ... 691 692

Kommentare zu diesen Handbüchern

Keine Kommentare