Error in tool_offsetview.py

More
2 years 3 months ago #306240 by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
Hi Cmorley

I've recently noticed a problem in qtdragon with the spindle turning on after using the "touch plate". (tested on different versions of linuxcnc).
If I do e.g. M3 S1000 from MDI, then turn off the spindle using the spindle stop button, then use the touch plate, or my own tool length measurement routine, then the spindle will turn on by itself.

It seems that the spindle stop button does not execute the M5 code, because if I add M5 at the beginning of my own tool measurement routine, then there is no problem with the spindle turning on by itself.

Marek

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

More
2 years 3 months ago #306254 by andypugh
Replied by andypugh on topic Error in tool_offsetview.py
Do you have a remap that uses M70?

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

More
2 years 3 months ago #306263 by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
No, I am not using M70.

This is not a problem in my configuration, because this problem also occurs on a fresh, default qtdragon configuration.
Problem on a real machine, as well as in a virtual machine with a virtual touch plat.

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

More
2 years 3 months ago #306277 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Qtvcp's probe routines use m70 /m72- I do think that is the source of the problem.

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

More
2 years 3 months ago #306279 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Yes spindle stop button doesn't use m5 it calls spindle off command.
Either way should call the spindle off command.

It will be something in the code that assumes that S 0 = spindle stop, which is not true anymore.

M70/M72 had something similar happen in the right situation.
IIRC it had something to do with using MDI to turn on the spindle and the stop button to turn it off then the M72 would turn it back on because it never got the M5 command.
It should be checking if the spindle is on/off rather then the Gcode M3/4/5.

Your situation sounds the same. I just don't remember if we worked around it or not.

Chris

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

More
2 years 3 months ago #306283 by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
Oh, I wrote that I don't use m70/72. I looked through my ngc again and it does indeed have m70 and m72.

Putting m5 at the beginning of the code solves the problem, maybe in qtvcp procedures such a small correction would also be enough..

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

Moderators: cmorley
Time to create page: 0.511 seconds
Powered by Kunena Forum