2.5.1 Joystick operation (Analog input control)
Joystick control is available on the Commander core for the X and Y axes. When this mode is enabled, the pulse speed and direction output for the X and Y axes can be controlled by their corresponding analog input. See the axis to analog input assignment in the table analog inputs below.
Axis |
Analog Input |
X |
AI1 |
Y |
AI2 |
Analog inputs
To enable or disable joystick control for an axis, use the ASCII command JENA or the standalone command JOYENA. The joystick enable parameter is a 2-bit value. For example, A joystick enable value of 3 means the joystick feature is enabled on both the X and Y axes. If joystick control is enabled, StepNLoop is automatically disabled.
Bit |
Description |
Setting |
|
0 |
Joystick control X-axis |
0 - Disabled |
1 - Enabled |
1 |
Joystick control Y-axis |
0 - Disabled |
1 - Enabled |
JENA command
For the Commander core to properly translate the analog inputs into a safe pulse speed and direction output for your system, you first must define what is acceptable and safe for your system. This includes defining the relation between voltage and direction of travel, and the zero-tolerance (or dead) zone during which there is no output from the Commander core. The safe speeds are defined as the maximum speed the analog input can command and maximum rate of speed change. The joystick positioning soft limits define where the analog inputs can command a system to move.
ASCII |
|
Standalone |
JOYENA |
< Topic Home | Home | Next Section | First SubSection >
This section is broken into the following subsections;
< Topic Home | Home | Next Section | First SubSection >