Page 1 of 1

Keep Track of Stepper Pos Without Encoder

Posted: Fri Jun 26, 2020 3:24 pm
by egreenberg
Hey Folks,

I'm relatively new to Dynomotion controllers. I am using a Kflop and 2 Ksteps to control a variety of steppers. I'm writing a special homing routine for locating a part that will be mounted in a fixture but has some variance in the height at which it will be held. I don't have encoders on my steppers. The short of it: is there a way I can access the "current position" of a stepper with respect to its zero in a C program? I feel like there must be because I did the test: when I zero an axis, then jog it and stop the jog after some arbitrary amount of time, I can command it to return to zero. I've looked through the user manual but can't seem to find a command that does this.

Best
Ethan

Re: Keep Track of Stepper Pos Without Encoder

Posted: Fri Jun 26, 2020 7:54 pm
by TomKerekes
Hi Ethan,

You can use ch0->Dest to get the last commanded destination for KFLOP Axis #0.

Re: Keep Track of Stepper Pos Without Encoder

Posted: Mon Jun 29, 2020 3:47 pm
by egreenberg
Thank you!