simulate

Moderators: TomKerekes, dynomotion

Post Reply
IvanSiberia
Posts: 30
Joined: Fri Jun 17, 2022 11:21 am

simulate

Post by IvanSiberia » Sun Jan 22, 2023 4:16 pm

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?

User avatar
TomKerekes
Posts: 2529
Joined: Mon Dec 04, 2017 1:49 am

Re: simulate

Post by TomKerekes » Sun Jan 22, 2023 5:48 pm

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.
Regards,

Tom Kerekes
Dynomotion, Inc.

IvanSiberia
Posts: 30
Joined: Fri Jun 17, 2022 11:21 am

Re: simulate

Post by IvanSiberia » Mon Jan 23, 2023 5:44 am

is there a flag that the simulation has ended or started?

User avatar
TomKerekes
Posts: 2529
Joined: Mon Dec 04, 2017 1:49 am

Re: simulate

Post by TomKerekes » Mon Jan 23, 2023 4:44 pm

No. Internally there is a variable m_DoingSimulationRun but you would need to change KMotionCNC source code to have access to it.
Regards,

Tom Kerekes
Dynomotion, Inc.

IvanSiberia
Posts: 30
Joined: Fri Jun 17, 2022 11:21 am

Re: simulate

Post by IvanSiberia » Tue Jan 24, 2023 7:23 am

thanks, the solution works

Post Reply