Installation guide

Programming Commands 119
JOYSTICK Motion Parameter
ACTION: Enables Joystick motion.
PROGRAM SYNTAX: JOYSTICK=ax1, ... ,ax8
JOYSTICK(ax1, ... , ax8)
REMARKS: The JOYSTICK command sets up to eight axes, ax1 to ax8, to move
in response to the voltage applied to their respective analog inputs. Each
axis will run at a speed proportional to the input voltage and in the di-
rection determined by the polarity of the input voltage. There is a ±0./25
dead band.
The axis will run in the negative direction when the input voltage range is
-10.0 to -0.25 volts. The speed it will attain is:
((Vin+0.25)/10)*SPEED. The axis will run in the positive direction
when the input voltage range is +0.25 to +10.0 volts. The speed it will
attain is: ((Vin-0.25)/10)*SPEED.
The JOYSTICK mode is terminated by a STOP command.
EXAMPLES: SPEED(1,2)=10,10 ‘ set speed for axes
JOYSTICK=1,2 ‘ enable joystick mode axis 1 and 2
DO: LOOP UNTIL EXIN(100)=1 ‘ stay in joystick mode until
input=1
STOP(1,2)
JOYSTICK(1,2) ‘ enable joystick mode axis 1 and 2
DO: LOOP UNTIL EXIN(100)=1 ‘ stay in joystick mode until
input=1
STOP(1,2)