#include “KMotionDef.h” // Example Init program that includes “smooth” MPG motion example // which makes use of the exponential motion command. // Which Pins were somewhat arbitrary; 11 I/O were needed, so JP4 and JP6 were used. The remainder were Read more…
Tag: C Programming
KFLOP C Programming Dissection – My Init.c E-Stop Code
#include “KMotionDef.h” int elast=0,elastsolid=-1,ecount=0; // for debouncing estop pushbutton int Debounce(int n, int *cnt, int *last, int *lastsolid); int DoPC(int cmd); #define ESTOP 168 // set to the external estop input bit #define TMP 10 // which spare persist to Read more…