T-Series/Commands/Set Current Position

From ZaberWiki

Jump to: navigation, search

[edit] Set Current Position - Cmd 45

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 Current Position
Firmware Version 5.00 and up
Command Number 45
Command Type Setting
Command Data New Position
Reply Data New Position
Persistence Volatile
Summary Sets the the internal register that holds the position to the value specified in the command data.

The phase of the stepper motor is controlled by the least significant byte of the position, thus the device may move by +/- 2 full steps unless the new position corresponds to the true current position of the device. This command is useful if you want to turn off the system without losing position. Simply save the position in the controlling computer and turn off the hold current before powering down. After powering up, set the position back to the saved value and turn on the hold current. In this way you can continue without having to home the device. You have to turn off the hold current because when the power first comes on the position will default to the maximum range, and that may be out of phase with the motor's current position. If the hold current is on, it will force the motor into phase with the default position before you've had a chance to restore the current position.

The position data is volatile and will not persist after power-down or reset.

Personal tools
Zaber Website