Copyright © Zaber Technologies Inc.
8.3 Set Active Axis (#25)
Firmware Version:
Version 5.04 and up
Command Number:
25
Data Bytes:
1, 2, or 3 to select the corresponding axis to be the active axis
Reply Data:
Reply data is simply an echo of command data.
Note:
The active axis affects the behavior of commands 26 through 29. This setting is
stored in non-volatile memory and will persist after power-down or reset.
This instruction selects one of the three axes of manipulation to be the active axis. Subsequent “Set
Axis…” instructions will apply only to the active axis. The “Set Axis…” instructions are:
-
Set Axis Unit Number (#26)
-
Set Axis Inversion (#27)
-
Set Axis Velocity Profile (#28)
-
Set Axis Velocity Scale (#29)
The three axes on the joystick are defined as follows:
Axis #1
Right is the positive direction of manipulation.
Left is the negative direction of manipulation.
Axis #2
Forward is the positive direction of manipulation.
Back is the negative direction of manipulation.
Axis #3
Clockwise is the positive direction of manipulation.
Counter-clockwise is the negative direction of
manipulation.
For example, to set the maximum velocity of axis number 2, first issue the Set Active Axis (#25) command
with data of 2 to make axis number 2 the active axis. Then issue the Set Axis Velocity Scale (#29)
command using the desired maximum velocity as data. Subsequent “Set Axis…” commands will also apply
to the axis number 2 until the user sets a different axis to be the active axis, or powers off the joystick.
The joystick’s current active axis can be returned by issuing the Return Setting (#53) command, with data
of 25.
Page 11 of 32