Epson RC170 Guia do Utilizador Página 177

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 312
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 176
6. The SPEL+ Language
6.12 Error handling
When an error occurs in a SPEL
+
function, you can cause execution to be transferred to an
error handling routine for processing the error. The routine must be inside a function
definition.
The table on the next page shows the program instructions that are used for error handling.
Item Purpose
OnErr Use the OnErr statement to define the location of the error handling routine.
Err Use Err to retrieve the number for the current error status. Use this in the
error handling routine to determine which error has occurred.
Error Generate a user defined error which can be caught by an error handler.
Era Use Era to retrieve the axis number for which the error occurred. This is
normally used in the error handling routine.
Erl Use Erl to retrieve the line number in which the error occurred. This is
normally used in the error handling routine.
Ert Use Ert to retrieve the task number in which the error occurred. This is
normally used in the error handling routine.
ErrMsg$ Use ErrMsg$ to retrieve the error message associated with a specified error
number.
User Errors
You can define your own error messages by using the User Error Editor which is available
from the Tools Menu. See the section on User Error Editor in the chapter EPSON RC+ 5.0
GUI for details.
EPSON RC+ 5.0 (Ver.5.4) User's Guide Rev.4 159
Vista de página 176
1 2 ... 172 173 174 175 176 177 178 179 180 181 182 ... 311 312

Comentários a estes Manuais

Sem comentários