Error in tool_offsetview.py
04 May 2024 17:41 #299744
by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
After the latest update, everything works on the virtual machine.
The problem occurred in a real machine, the "spindle lift/no lift" button is not active.
The only difference between the machines is that on a real machine I use "at-speed" speed control.
Does anything need to be changed in the configuration?
The good news is that so far I haven't been able to create an error on the virtual machine
Marek
The problem occurred in a real machine, the "spindle lift/no lift" button is not active.
The only difference between the machines is that on a real machine I use "at-speed" speed control.
Does anything need to be changed in the configuration?
The good news is that so far I haven't been able to create an error on the virtual machine
Marek
Please Log in or Create an account to join the conversation.
04 May 2024 22:29 #299756
by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Qtdragon checks for the pin being connect to a driver here (just before the screen is done starting):
When in the process is the pin connect to a driver?
I'll look into constant checks so rave conditions don't matter.
def before_loop__(self):
# no spindle lift without pins connected
self.spindle_lift_pins_present = True
for i in ('qtdragon.eoffset-is-active','qtdragon.spindle-inhibit','qtdragon.eoffset-clear',
'qtdragon.eoffset-spindle-count','qtdragon.eoffset-value'):
# no driving pin connected?
if not self.h.hal.pin_has_writer(i):
self.spindle_lift_pins_present = False
#self.add_status('{} pin not connected in a HAL FILE'.format(i))
LOG.warning("{} not connected".format(i))
I'll look into constant checks so rave conditions don't matter.
Please Log in or Create an account to join the conversation.
05 May 2024 00:47 #299775
by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
oh wait do you have halui pause/resume connected?
You need to have these pins connected to a driving pin:
'qtdragon.eoffset-is-active','qtdragon.spindle-inhibit','qtdragon.eoffset-clear',
'qtdragon.eoffset-spindle-count','qtdragon.eoffset-value'
and these pins _not_ connected to a driving pin:
halui.program.resume, halui.program.pause
There should be terminal log messages about it
You need to have these pins connected to a driving pin:
'qtdragon.eoffset-is-active','qtdragon.spindle-inhibit','qtdragon.eoffset-clear',
'qtdragon.eoffset-spindle-count','qtdragon.eoffset-value'
and these pins _not_ connected to a driving pin:
halui.program.resume, halui.program.pause
There should be terminal log messages about it
Please Log in or Create an account to join the conversation.
05 May 2024 12:02 #299801
by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
Ok, it's working now. The pins you wrote about were ok. The problem was that I had a qtdragon_handler.py file in the machine directory with the same function as in the main handling file "def before_loop__(self):"
Now stopping and lifting the spindle works flawlessly.
Thanks.
Now stopping and lifting the spindle works flawlessly.
Thanks.
Please Log in or Create an account to join the conversation.
05 May 2024 16:09 #299820
by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Ok great!
I'll work on getting qtdragon_hd fixed.
I'll work on getting qtdragon_hd fixed.
The following user(s) said Thank You: MarkoPolo
Please Log in or Create an account to join the conversation.
06 May 2024 20:53 #299967
by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
Hi Chris. Recently I was looking for the reason why the Z axis is not reaching full speed. The speed should have been 9000 but it was 7200. It turned out that the reason was the entry in the ini file "OFFSET_AV_RATIO = 0.2" which limits the speed by 20%, also for manual movements, but this entry is needed to stop and lift the spindle during pause.
This looks like an error. How to remedy this?
I also suggest adding to the documentation that in the settings "use external offsets" must be checked for the spindle lifting to work, because I lost a lot of time before I discovered it. (There is a warning in the status, but it sounds somewhat ambiguous to me)
This looks like an error. How to remedy this?
I also suggest adding to the documentation that in the settings "use external offsets" must be checked for the spindle lifting to work, because I lost a lot of time before I discovered it. (There is a warning in the status, but it sounds somewhat ambiguous to me)
Please Log in or Create an account to join the conversation.
07 May 2024 02:08 #299992
by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
if axis.z.eoffset-enable in set false, do you get full speed again?
If so then I can set and unset it based on when the spindle raises.
At the moment it is set and never turned off.
Ok I'll try to remember to add some detail in the docs.
If so then I can set and unset it based on when the spindle raises.
At the moment it is set and never turned off.
Ok I'll try to remember to add some detail in the docs.
Please Log in or Create an account to join the conversation.
07 May 2024 07:33 #300009
by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
I do that. "halcmd setp axis.z.eoffset-enable FALSE" , the value changes to FALSE but the maximum speed remains unchanged.
Please Log in or Create an account to join the conversation.
07 May 2024 13:50 #300038
by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Looks like it can't be worked around, which does make aense. There needs to be vel/acc room for the external offsets to act.
In this case maybe you could up max velocity on z by 20 percent..as the external offsets will only be used while paused.
In this case maybe you could up max velocity on z by 20 percent..as the external offsets will only be used while paused.
Please Log in or Create an account to join the conversation.
07 May 2024 20:20 #300064
by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
It's not really a big problem for me, the feedrate of 7200 in the Z axis is completely sufficient, if I set the value "OFFSET_AV_RATIO=0.1" I have a feedrate of 8100 (and the spindle lifting speed is twice as low).
I'm more interested in why it can't be done in some simpler way. Do I need to use offsets to raise the spindle?
I'm more interested in why it can't be done in some simpler way. Do I need to use offsets to raise the spindle?
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.180 seconds