Installation guide

284 Application Examples
13.1 – Using a Joystick to teach an Arbitrary shape program
13.1.1 - MX2000 Joystick connection
A joystick is easily interfaced to the MX2000 analog in-
puts to control two motors. This allows positioning of a
device for setup, or capturing positions for an arbitrary
shape prior to machining, etc. The following diagram
shows the method of connecting a two axis joystick to the
MX2000 controller.
The analog inputs of the joystick axes must be configured
as differential inputs in the user projects. The JOYSTICK
basic command is used to enable the joystick mode of
operation in the user program. The joystick mode can be
canceled in the user program by execution of a STOP
basic command on the joystick axes.
Each axis will run at a speed proportional to the input
voltage and in the direction determined by the polarity of
the input voltage. There is a ±0.25 volt dead band at the
center of the input range, from +4.75 volts to +5.25 volts,
and represents a speed of 0. The axis will run in the nega-
tive direction when the input voltage range is 0 volts to
+4.75 volts. The speed it will attain is :
((4.75 – VIN) / 10) * SPEED(axis). The axis will run in
the positive direction when the input voltage range is
+5.25 volts to +10 volts. The speed it will attain is:
((VIN – 5.25) / 10 ) * SPEED(axis).
+10V
10V
IN+
IN-
AGND
10K 10K
15K
15K
5K
5K
2N2222
IN+
IN-
15K
5K
5K
15K
2N2222
2 Axes Joystick
12 Bit A/D
configured as differential
12 Bit A/D
configured as differential
MX2000 Axis Card
Analog inputs