Epson RC170 Guia do Utilizador Página 203

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 312
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 202
6. The SPEL+ Language
EPSON RC+ 5.0 (Ver.5.4) User's Guide Rev.4 185
Task Exection
Normal
Omit the task type in Xqt statement, or specify Normal for the task
type.
Xqt NormalTask
Xqt NormalTask, Normal
NoPause
Specify NoPause in Xqt statement.
Xqt NoPauseTask, NoPause
NoEmgAbort
Specify NoEmgAbort in Xqt statement.
Xqt NoEmgAbortTask, NoEmgAbort
You cannot change the task type after executing a task.
main to main7 that are executed at the beginning of the program are executed as normal
tasks.
Tasks executed in Trap Xqt are normal tasks.
Restricted Commands by Task Types
Normal
No restriction
NoPause
No restriction
NoEmgAbort
Cannot execute the following commands.
Command for robot motion
Commands for vision
Reset, Xqt, Trap, etc.
For details, refer to EPSON RC+ 5.0 Online Help or Xqt in SPEL
+
Language Reference.
6.20.3 Special Task Example
The following example shows a program that monitors the error of the controller and
switches the I/O On/Off when error occurs according to the error number.
The program example of ErrOn, EStopOn, SafetyOn are indicated in the EPSON RC+ 5.0
SPEL+ Language Reference.
Function main
Xqt ErrorMonitor, NoEmgAbort
:
:
Fend
Function ErrorMonitor
Wait ErrorOn
If 4000 < SysErr Then
Print "Mortion Error = ", SysErr
Off 10, Forced
On 12, Forced
Else
Print "Other Error = ", SysErr
Off 11, Forced
On 13, Forced
EndIf
Fend
Vista de página 202
1 2 ... 198 199 200 201 202 203 204 205 206 207 208 ... 311 312

Comentários a estes Manuais

Sem comentários