Hi ntlam1990,
The next step would be to interface the Step/Dir signals to get controlled movement.
But to answer your question about the Pedal: You would need to input a signal to KFLOP. There are many possibilities. If the pedal is a simple switch you might wire it to IO bit number 26 on KFLOP JP6 Pin 5. This is a 3.3V LVTTL input with a 150ohm pull down resistor to KFLOP GND which will guarantee the signal is low if not driven high. Driving this pin higher than 3.8V will cause damage to KFLOP so take care not to do this. You might switch the signal to 3.3V (JP6 Pin 3). Test by observing if the signal changes on the KMotion Digital IO Screen. If the wiring is long and there is a lot of noise in your system you may need a 0.1uf ceramic filter capacitor from the input to KFLOP GND (near KFLOP).
One way to pause GCode to wait for an input would be to configure an M101 code to run a C Program and wait for the C Program to complete. The C Program would loop waiting for the input to change before exiting. The program might be like this:
Code:
#include "KMotionDef.h"
main()
{
while (ReadBit(26)==0);
}
Regards