When the main power is cut to a GV6 that has Keep Alive power applied to it, the Left LED turns RED (it was GREEN if the drive was enabled) and the Right LED turns GREEN indicating that the drive is in Keep Alive mode. Any program that was running is killed (unless an Error routine is used as discussed below).
TAS bits 13 (Drive Disabled) and 14 (Drive Faulted) become active.
TASX bits 2 (Low Voltage), 10 (Bridge Fault), 12 (Over Voltage), and 24 (Keep Alive) also become active.
TER bits 4 (Drive Fault) and 9 (Enable Input) become active.
When the main power is re-applied to the GV6, the Right GREEN LED turns off, but the Left RED LED remains RED. TAS bit 13 (Drive Disabled) remains low and TASX and TER are all clear of active bits.
At this point, the drive may be re-enabled and the program restarted. Even if a STARTP program is defined, it will NOT restart once the main power is re-applied.
An Error routine can be used when the main power is turned off. The Enable jumper can be removed at the same time or the Drive Fault can be checked. Either one can be used to throw a program into its Error routine. ER bit 9 can also be used because it activates when the main power is turned off even if the enable jumper isn't pulled.
The Error routine can then be used to check conditions (like the TINO bits) before it restarts the program at the desire place in the code.
Should the END of the Error routine be reached before the main power is re-applied, no program will be running or start once the main power is re-applied.