Keep Track of Stepper Pos Without Encoder

Moderators: TomKerekes, dynomotion

Post Reply
egreenberg
Posts: 2
Joined: Fri Jun 26, 2020 3:18 pm

Keep Track of Stepper Pos Without Encoder

Post by egreenberg » Fri Jun 26, 2020 3:24 pm

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

User avatar
TomKerekes
Posts: 947
Joined: Mon Dec 04, 2017 1:49 am

Re: Keep Track of Stepper Pos Without Encoder

Post by TomKerekes » Fri Jun 26, 2020 7:54 pm

Hi Ethan,

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

Tom Kerekes
Dynomotion, Inc.

egreenberg
Posts: 2
Joined: Fri Jun 26, 2020 3:18 pm

Re: Keep Track of Stepper Pos Without Encoder

Post by egreenberg » Mon Jun 29, 2020 3:47 pm

Thank you!

Post Reply