potential bug in version 2.9.8

More
02 Jun 2026 16:27 #346853 by depronman
potential bug in version 2.9.8 was created by depronman
I have recently upgraded both my lathes from 2.8.4 and parallel ports to 2.9.8 and MESA cards
All is running well over the last 6 to 8 weeks and is all stable
However I loaded up a Gcode that I wrote some years ago today and linuxcnc was throwing an error related to the G02 / G03 lines stating that the arc would not meet up or words to that effect

Checking the G03 line all seemed correct, I work in Diameter mode G07 and metric units, the previous X and Z position where correct and a radius of 0.6mm was called for, the finished X was start X + Rx2 and the finished Z was start Z - R
As stated already this Gcode had been written some years ago and used many times without issue

I have amongst others G07 set in the INI files, and as such I do not normall include G07 in my Gcode files (I had always assumed that the INI files would set the machine to G07 and therefore setting G07 in every Gcode was not necessary, I do the same with metric units and never set G21 in my Gcode files as it is set in the INI file)

Running the Gcode all went well appart from the nag message about the ARC but other than that the Gcode ran and produced the correct component, Howerver the graphic on screen display was NOT correct, the white lines (tool path) where drawn at twice the distance from the centre line. When the Gcode was executed the red lines where drawn in the correct place which was NOT over the top of the white lines)
The digital readout on screen was all displayed in Dia mode having the black background and Radius mode the green background
When the Gcode was started the on screen display was moved to show the origin position, this could be moved to show the component being machined.

I found that adding G07 to the start of the Gcode fixed the display problem and the nag message about the ARC
My assumption is that the on screen display is generated from the Gcode file but is NOT utilising the G07 from the INI file
The machine interpeter is using the G07 from the INI files and set the machine to Dia mode and correctly machines the component.

As stated previous versions, at least 2.8.4, did not work like this, and if I'm honest this feels like a bug in 2.9.8
There is a work around to add the G07 to each and every Gcode file but in my eyes this should not be required as it is already set to G07 in the INI file

lower left hand bottom corner of Gmoccapy screen shows active G code and G7 is there even without the G07 in the Gcode
its very repeatable, remove the G07 from the Gcode and save the Gcode and the ARC error message is displayed, add the G07 to the Gcode and save the file and no ARC message
MY lathe is a slant bed, tooling on the back of the machines just in case that could be relavent

Whats your thoughts 

 

Please Log in or Create an account to join the conversation.

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
02 Jun 2026 17:37 - 02 Jun 2026 17:48 #346855 by Aciera
Replied by Aciera on topic potential bug in version 2.9.8
Thanks for reporting.
Given that you could actually run the gcode after getting the 'Radius to end of arc differs from radius to start' message on load would point to a bug in the arc checking done on load which might be connected to a bug fix:

There was a bug that had made the preview use the RS274NGC_STARTUP_CODE in the ini file whenever a new gcode was loaded. This could lead to the preview not matching the currently set machine state. Eg if the gcode did not contain the WCS system (eg G54 or G55) and the controller was currently in, say, G56 but the ini startup_code contained G54 the preview would show the tool path with reference to G54 when the machine would actually run the program with reference to G56 (ie possibly somewhere entirely different).

Could you post your gcode file ?
Last edit: 02 Jun 2026 17:48 by Aciera.

Please Log in or Create an account to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum