Denso RC5 Especificaciones Pagina 532

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 692
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 531
18-4
18.2 Error Interruption
ON ERROR GOTO (Statement)
Function
Interrupts when an error occurs.
Format
ON ERROR {GOTO|GO TO}<Label name>
Explanation
This statement defines and executes an interruption process routine when an
error occurs. If this interruption occurs, the program with the error process
routine designated with <Label name> is executed. To return from the error
process routine to the program, execute the RESUME statement.
When an error occurs while the error process routine is being executed, the
ongoivy program stops.
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, ERL, RESUME
Example
DIM Li1 As INTEGER
DIM Li2% (2, 3)
ON ERROR GOTO *Error1 'When an error occurs, the program branches to the
'process routine of Error1.
FORLil=0TO3
Li2 (0, Li1) = 0 'When Li1 is 3, an error occurs and the program branches
'to the process routine *Error1.
NEXT Li1
*R_Label:
END
*Errorl: 'Declares the *Errorl label
S1= “Line” +STR$(ERL)+ “:” b+ERRMSG$(ERR)
'Edits the error message.
PRINTMSG S1,2, “error” 'Outputs error information.
IF ERR = &H3B3E THEN
RESUME NEXT 'Returns to line following the line where the
'error occurred.
ELSE
RESUME *R_Label 'Returns the line of *R_Label.
ENDIF
Vista de pagina 531
1 2 ... 527 528 529 530 531 532 533 534 535 536 537 ... 691 692

Comentarios a estos manuales

Sin comentarios