M7x restore_settings failed

More
3 years 8 months ago #265465 by andypugh
The following user(s) said Thank You: tommylight

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

More
3 years 8 months ago #265466 by tommylight
Yes it is, thank you.

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

More
3 years 8 months ago - 3 years 8 months ago #265503 by RobC
Replied by RobC on topic M7x restore_settings failed
There's a chance it's the M2 at the end of the O subroutine. I have 2 nearly identical files - one on left works as Osub and one on right works as standalone gcode file. The only differences are the removal of % from start and end of file, and M2 removal from end.

 
Last edit: 3 years 8 months ago by RobC.

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

More
3 years 8 months ago #265619 by dinodf
Replied by dinodf on topic M7x restore_settings failed
I think that is not a problem made by M2 :-(

The error occurs only when executing the procedure with no tool, if before run the procedure I do T2 M6 the procedure don't fail!
So I think there is some variables not initialized at startup and when LinuxCNC try to restore global settings it fails with an error...
Code:
if (status != INTERP_OK) { char currentError[LINELEN+1]; rtapi_strxcpy(currentError,getSavedError()); CHKS(status, _("M7x: restore_settings failed executing: '%s': %s"), s, currentError); }

A workaround is do an unnecessary tool change before starting the procedure to set all the variables used.

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

Time to create page: 0.366 seconds
Powered by Kunena Forum