Page 1 of 1

simulate

Posted: Sun Jan 22, 2023 4:16 pm
by IvanSiberia
After executing the G code in the simulation, the tool from the G code remains selected in KMotionCNC. How can you leave the initial tool after the simulation?

Re: simulate

Posted: Sun Jan 22, 2023 5:48 pm
by TomKerekes
Hi Ivan,

We currently don't have such an option. Whatever execution of the code does to the Interpreter occurs as if the GCode was executed. I suppose such an option could be added.

I think it is best practice to have the GCode specify which Tool is to be used and not rely on the previously selected.

Re: simulate

Posted: Mon Jan 23, 2023 5:44 am
by IvanSiberia
is there a flag that the simulation has ended or started?

Re: simulate

Posted: Mon Jan 23, 2023 4:44 pm
by TomKerekes
No. Internally there is a variable m_DoingSimulationRun but you would need to change KMotionCNC source code to have access to it.

Re: simulate

Posted: Tue Jan 24, 2023 7:23 am
by IvanSiberia
thanks, the solution works