Hi 09FLHX,
The example InitKStep3Axis.c has the code shown below to loop watching for no motion for 10 seconds to disable KSTEP. You can observe on the KMotion Digital IO Screen IO 45 to see when KSTEP is enabled.
That might be what is causing Z to fall. Try removing this code to see if it helps.
Regards
TK
Code:
for (;;) // loop forever
{
WaitNextTimeSlice();
// Service Amplifier disable after no activity for a while
if (ch0->Dest != LastX || ch1->Dest != LastY || ch2->Dest != LastZ)
{
// we moved - enable KStep Amplifers
SetBit(45);
T0 = Time_sec(); // record the time and position of last motion
LastX=ch0->Dest;
LastY=ch1->Dest;
LastZ=ch2->Dest;
}
else
{
if (Time_sec() > T0 + 10.0) ClearBit(45);
}
}