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
Keep Track of Stepper Pos Without Encoder
Moderators: TomKerekes, dynomotion
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Keep Track of Stepper Pos Without Encoder
Hi Ethan,
You can use ch0->Dest to get the last commanded destination for KFLOP Axis #0.
You can use ch0->Dest to get the last commanded destination for KFLOP Axis #0.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
-
- Posts: 6
- Joined: Fri Jun 26, 2020 3:18 pm