Originally Posted by
TomKerekes
Hi jossa,
I think you forgot to take into consideration the microstepping. KSTEP uses 16X microstepping so 200x16=3200 steps per revolution and therefore 3200/5=640 steps/mm
You don't need to ask anyone if your calculations are correct. Just do a test. For example command the axis 20000 steps and measure if the axis moved 500mm.
HTH
Regards
the problem it that i did not connect this information, and believe me i have tried to move the axis and measure and make sense of this.. but everything cnc is new to me.. and that is why i ask.. now i have learnt something new..
regarding the code:
We took the limit code from the SoftLimits3Axes.c example file and put it in an infinite loop in our init program.
This is the limit part:
Code:
// Limits
#define XMINUS -100.0
#define XPLUS 100000.0
#define YMINUS -100.0
#define YPLUS 100000.0
#define ZMINUS -1000.0
#define ZPLUS 100000.0
// Running this in an infinite loop:
// Check for limits
if (checkLimits) {
if (InLimit()) // check for any limit
{
DisableAxis(0);
DisableAxis(1);
DisableAxis(2);
while (InLimit()) ; //wait until back within limits
}
}
// Limit function definition
int InLimit()
{
//WaitNextTimeSlice();
return ch0->Dest < XMINUS || ch0->Dest > XPLUS ||
ch1->Dest < YMINUS || ch1->Dest > YPLUS ||
ch2->Dest < ZMINUS || ch2->Dest > ZPLUS;
}
regarding a_j_p's post:
i am wondering about the same thing..
and when i am using the pause button it seams the steppers stay energized, and if you forget to stop it with the emergency stop in KmotionCNC.exe they get pretty hot.
it is like the drivers are stuck in a step?