Lenze PMSS1000 Simple Servo Instrukcja Użytkownika Strona 68

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 72
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 67
Indexer-Programmer-Manual.pdf REV 1.3
ON FAULT/ENDFAULT On Fault Statement
Purpose Statement starts fault handler section. Fault handler is a piece of code which called
upon any fault occurrence. Fault handler starts with ON FAULT statement and must
be ended with ENDFAULT statement. If fault handler is not defined any fault will
cause user program termination. When SSi goes to fault state it will disable drive and
enter fault handler. All scanned events will be disabled until program in fault handler.
Fault handler needs to be ended with RESUME or RESET statements. If program
reaches statement ENDFAULT before RESUME or RESET statements user program
will terminate (come to the end). Certain statements can't be used in fault handler.
Following statements can't be used in fault handler:
MOVE,MOVED,MOVEP,MOVEDR,MOVEPR,MDV,
MOTION SUSPEND
MOTION RESUME
GOTO
GOSUB
JUMP
ENABLE
GEAR ON/OFF
VELOCITY ON/OFF
Syntax ON FAULT
{…statements}
ENDFAULT
See Also RESUME, RESET
Example:
…{statements}
FaultRecovery:
…{statements}
END
ON FAULT ;any fault gets program flow here
…{statements}
RESUME FaultRecovery ;execution of resume ends fault handler
;if resume is omitted program will terminate
ENDFAULT ;must end with this terminator
68
Przeglądanie stron 67
1 2 ... 63 64 65 66 67 68 69 70 71 72

Komentarze do niniejszej Instrukcji

Brak uwag