I continue investigating on creating arcs with a different scale factor on one axis (inspired by polygon.ngc).
I could write a GCode program and simulate on KmotionCNC => it seems correct.
I will write a .Net application (C# or VB) to use with Kogna or Kflop using your .Net library.
The .Net application must be able to set GCode variables from #1 to #50 before "Interpreting" the program file which uses those variables.
I could find some source code for that with C++ ( ...KMotion\PC VC Examples\SimpleGCode\SimpleGcode.cpp)
Code: Select all
int UserMCodeCallback(int mcode)
{
double Var1000 = Interpreter->p_setup->parameters[1000];
CString s;
s.Format("MCode %d Trigger GCode Var 1000 = %f",mcode,Var1000);
MessageBox(NULL,s,"SimpleGCode",MB_OK);
return 0;
}
Code: Select all
Interpreter->p_setup->parameters
Is this missing as I expect?
If yes, is it possible to add the possibility ro read/write those variables from .Net ?
Thanks for your support
Frederic