Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 618 of 909
EXAMPLE:
EIGN(W,0,12) 'Another way to disable Travel Limits
ZS 'Clear faults
ITR(0,0,0,0,0) 'Set Int 0 for: stat word 0, bit 0,
'shift to 0, to call C0
EITR(0) 'Enable Interrupt 0
ITRE 'Global Interrupt Enable
PAUSE 'Pause to prevent "END" from disabling
'Interrupt, no change to stack
'RESUMEmust be issued externally over communications;
'it is not allowed to be compiled within a program.
END
C0 'Fault handler
MTB:0 'Motor will turn off with Dynamic
'breaking, tell other motors to stop.
US(0):0 'Set User Status Bit 0 to 1 (Status
'Word 12 bit zero)
US(ADDR):0 'Set User Status Bit "address" to 1
'(Status Word 12 Bit "address")
RETURNI
RELATED COMMANDS:
RESUME Resume Program Execution (see page 672)
Part 2: Commands: PAUSE