Ignore while G-code is running

Moderators: TomKerekes, dynomotion

Post Reply
cemoa9
Posts: 82
Joined: Mon Jun 01, 2020 11:01 am

Ignore while G-code is running

Post by cemoa9 » Wed Jul 06, 2022 11:43 am

Hello Tom,

On my machining center I have sometimes issue with one axis acting very badly during G-code, I found out that this is always the axis selected for the MPG, I suppose some noise is perturbing the MPG IO which then perturbs the movement.
Is there a way to ignore some lines of the init file while a G-code program is running?

Cordially,

Francois

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

Re: Ignore while G-code is running

Post by TomKerekes » Wed Jul 06, 2022 4:19 pm

Hi Fancois,

There is a flag JOB_ACTIVE that can be used to determine if GCode is running. So you might force no movement when true.
Regards,

Tom Kerekes
Dynomotion, Inc.

cemoa9
Posts: 82
Joined: Mon Jun 01, 2020 11:01 am

Re: Ignore while G-code is running

Post by cemoa9 » Thu Jul 07, 2022 12:34 pm

Great,

Thanks Tom, when finished I will definitely share my programs (for both machines), not that they are exceptional but I hope they can be a good start for some people.

Cordially,

Francois

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

Re: Ignore while G-code is running

Post by TomKerekes » Thu Jul 07, 2022 4:45 pm

Hi Fancois,

Please do.

Thanks
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply