Forward / Reverse buttons
Posted: Fri Jan 18, 2019 9:09 am
Hello
On the main KmotionCNC screen there is a button "FEED HOLD".
When you press it, the G code stops running and 2 additional Forward / Reverse buttons appear.
I need to manage these commands from the C program.
To stop / start, I use the command:
if (ReadBit (33)) // Watch an external input switch
{
StopCoordinatedMotion (); // feedhold
}
else ResumeCoordinatedMotion (); // resume feedhold
Question: how to manage forward / reverse commands
There is a command to control the steps in the G code:
DoPC (PC_COMM_SINGLE_STEP);
But it works only forward, how to implement the reverse?
Thanks for answers. (Sorry for my English)
On the main KmotionCNC screen there is a button "FEED HOLD".
When you press it, the G code stops running and 2 additional Forward / Reverse buttons appear.
I need to manage these commands from the C program.
To stop / start, I use the command:
if (ReadBit (33)) // Watch an external input switch
{
StopCoordinatedMotion (); // feedhold
}
else ResumeCoordinatedMotion (); // resume feedhold
Question: how to manage forward / reverse commands
There is a command to control the steps in the G code:
DoPC (PC_COMM_SINGLE_STEP);
But it works only forward, how to implement the reverse?
Thanks for answers. (Sorry for my English)