Problem with Z in a macro function

If you think you've found a bug post it here.

Re: Problem with Z in a macro function

Postby cncdrive » Wed Jan 17, 2018 4:40 am

I have tested your macro and really there is a bug in the Macro executer in the case when G91 is used and G2/3 arc is executed in the macro and one or more coordinates are not defined.
So, there is a bug, however the issue does not happen in absolute G90 mode, only in G91.

You could temporarily fix the problem with defining all XYZ coordinates for the arc when executing it in macro and when in G91.
This is the line which causes the problem: exec.Code ("G2 X0 I-" + CircleRadius +" F"+FeedRate );
You could fix it like: exec.Code ("G2 X0 I-" + CircleRadius +" Z0 F"+FeedRate );

So, adding a Z0 in G91 incremental mode means null Z movement. If the Z is defined then the problem does not happen.

And we will fix this issue soon.
And BTW there is also an issue in the latest test release about the G91 in normal G-code execution when the G41/G42 radius comp is enabled, I think you reported that issue too and we already corrected that, but still working to release it in the coming version 1.2102.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Problem with Z in a macro function

Postby cncdrive » Thu Jan 18, 2018 1:55 am

Thank You Terry.
It would be a large change in the software to make macro movement codes also displayed on the toolpath.
I don't think we can do that now, I mean it would require so much change that in what stage we are in with the development of other things it would be very unoptimal and risky for us to do this change too now.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm


Return to Report a bug

Who is online

Users browsing this forum: No registered users and 4 guests