Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 753 of 909
EXAMPLE:
i=400 'Motor current to check for
WHILE 1 'While forever
IF UIA>i 'If motor current in mAmps is > "i"
GOSUB(100)
WHILE UIA>i LOOP 'Prevent double trigger
ENDIF
LOOP
C100
IF UIA>(i*2) 'If current is twice as much
GOTO200 'bypass PRINT line below
ENDIF
PRINT("Current is above ",i,"mAmps",#13)
C200
PRINT("Current twice as high as it should be!",#13)
RETURN
RELATED COMMANDS:
R
Bh Bit, Overheat (see page 301)
R
TEMP, TEMP(arg) Temperature, Motor (see page 738)
R
TH=formula Temperature, High Limit (see page 740)
R
UJA Bus Voltage (see page 754)
Part 2: Commands: UIA