T-Series/Commands/Set Axis Device Number
Set Axis Device Number - Cmd 26
Warning: This is an "include" page. As such, its contents may be included in multiple other pages. To see a list of all pages that include this page, click on "What links here" in the bottom left navbar. If you make changes to this page, be sure that your changes are appropriate to all pages on which this content will be included. You are also encouraged to review our Zaber Wiki Editing Guidelines. This header will not be included in other pages.
| Instruction Name | Set Axis Device Number |
|---|---|
| Applies to | T-JOY |
| Firmware Version | 5.04 and up |
| Command Number | 26 |
| Command Type | Setting |
| Command Data | Device Number |
| Reply Data | Device Number |
| Safe to retry? | Yes |
| Returns Current Position? | No |
| Persistence | Non-Volatile |
| Summary | Sets the device number to be controlled using the active axis. |
Note: This setting affects only the active axis. See the Set Active Axis Command #25 for instruction on how to select an axis.
Valid command data values for setting an axis device number range between 0 and 254. Once a axis device number is set, the setting is stored in non-volatile memory and will persist after power-down or reset.
To restore the joystick to its factory default settings, issue a Restore Settings Command #36. The factory default settings for axis control are as follows:
- Axis #1 controls Device #2
- Axis #2 controls Device #3
- Axis #3 controls Device #4
Example: Suppose you would like to assemble a 3-axis system where:
- Joystick axis 1 (right / left) controls device #3.
- Joystick axis 2 (up / down) controls device #4, but with the motion inverted.
- Joystick axis 3 (clockwise / counterclockwise) controls device #2.
First, connect the joystick and the three additional T-Series devices. For installation instructions please view the T-JOY installation section of the manual. In the figure below we illustrate three T-LS devices connected in a daisy-chain to the T-JOY device:
Issue the Renumber Command #2 from the computer. After renumbering (less than 1 second) the joystick will become device #1, and the remaining devices will become devices #2, #3, and #4. Now commands may be issued to the joystick to set the desired behavior. Please note that the device # will need to change for each joystick axis in order to achieve the desired behavior. The command sequence is as follows:
- Device:1 Cmd:25 Data:1 - Set Axis # 1 to be the active axis.
- Device:1 Cmd:26 Data:3 - Set the active axis (#1) to control device #3.
- Device:1 Cmd:25 Data:2 - Set Axis # 2 to be the active axis. (Settings for each axis need to be set individually)
- Device:1 Cmd:26 Data:4 - Set active axis (#2) to control device #4.
- Device:1 Cmd:27 Data:-1 - Set active axis (#2) to be inverted (positive and negative directions switch).
- Device:1 Cmd:25 Data:3 - Set Axis # 3 to be the active axis.
- Device:1 Cmd:26 Data:2 - Set the active axis (#3) to control device #2.
Note: All commands are being sent to device #1 (joystick). This is because the 3 T-series devices will be controlled by the joystick. Setting axis number and directions must be done by changing the joystick settings, not the individual device settings.
Special Note: It is possible to have one axis control 2 or more devices. All of the devices on this axis will move together. Follow the steps below to set more than one device on a single axis:
- For each device you wish to control on one axis, set the device alias number with Command #48. Selecting an alias number much larger than the device numbers in use will help to differentiate between aliases and devices (Ex: 99). The alias number must be the same for each device you wish to control with a single axis.
- Issue the Set Active Axis Command #25 with command data equal to the axis number you wish to use.
- Issue the Set Axis Device Number Command #26 with command data equal to the alias number you selected.