Hi
On Wednesday, September 11, 2013 08:23:49 AM
peter.m...@gmail.com wrote:
> Hi,
> I want to turn my steppermotor to a certain position and then define this
> position as zero, in order to get 0 as currentPosition().
>
> Assuming my steppermotor returns 50 as actual position. Now I want to move
> it 20 steps back and call this new Position zero. What to do for this?
>
> Or more general: If a=currentPos(). What will happen by
> setcurrentPosition(b)?
> 1. In which absolute position will the stepper move and
it will not move as a result of setCurrentPosition(). It changes the current
position to be 0. It has side effects too, so its not meant to be something you
would do while the motor is in motion.
> 2. what will be the result of a following currentPosition()?
0
--
Mike McCauley
mi...@airspayce.com
Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia
http://www.airspayce.com
Phone
+61 7 5598-7474 Fax
+61 7 5598-7070