Necessary to restart linuxcnc after stopping in the middle of a program?

More
30 Nov 2018 23:34 #121658 by robforbes
I have noticed that pressing the Stop button while a program is running or paused (this is the "square" stop button, not the estop) seems to really screw up the state of the linuxcnc client. Tool position is lost, and touching off again doesn't fix things. The only cure seems to be to exit out of linuxcnc and bring it up again. Is this expected/known behavior? I haven't noticed anything in the documentation about this--maybe I haven't been looking in the right place. Suggestions appreciated!

Rob

My config:
linuxcnc 2.7.11
Axis GUI
Atom 525MW motherboard
Mesanet 5i25 PCI board (parallel port)

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

More
02 Dec 2018 18:19 #121724 by fc60
Greetings,

Pressing PAUSE is what I use. It only stops axis motion, the spindle continues to run.

I have noticed that pressing STOP halts everything. To clear things back to 'normal', I open the MDI window and execute a M30 command.

Cheers,

Dave
The following user(s) said Thank You: robforbes

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

More
03 Dec 2018 03:44 #121733 by robforbes
Hi Dave,

Thanks for the tip! I'll give that try.

Rob

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

More
03 Dec 2018 05:58 #121735 by newbynobi
The STOP will not errase or clear tool offsets nor the G54 etc offsets.
I am able to stop a program and start it again without problems.

My programms begin with
G17 G21 ....
G54
T1 M6 G43
....
M2

That way the start sets the saved workpiece position i have touched off prior to start the program.

Norbert

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

More
03 Dec 2018 13:51 #121747 by andypugh
Stopping the machine mid-program should not mean that you need to reboot.
But, it is quite likely that offsets and tool length data from the G-code will still be active.

As has been suggested, one way to clear these is the M30 (or M2) commands.

linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m2-m30

But: If you want to re-start the program from the point where is was stopped you almost certainly do not want to reset all those parameters. On the contrary you would want to keep them, turn on the coolant (if used) and then use M3 to re-start the spindle at the set speed. (I am not sure if that works, it's something I should test)

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

Time to create page: 0.085 seconds
Powered by Kunena Forum