G-Code (more precisely G and M Code, more formally, RS-274D or other names) is a programming code that dates back circa 1950, and was originally developed to control mechanical machining operations using paper tape. It shows. The last ratified standard Read more…
Category: C Programming
Dynomotion Programming
KFLOP C Programming Dissection – My Init.c Pendant Code
#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…
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…