QTDragon stop & pause run

More
3 years 1 month ago #280895 by cmorley
Replied by cmorley on topic QTDragon stop & pause run
Shutdown_check must = True for preference saving to happen.
What are you actually trying to change?

Ya I forgot about keyboard pausing.

Please Log in to join the conversation.

More
3 years 1 month ago #280900 by frayja2002
I was trying to get rid of the annoying confirmation dialogue each time I exit LinuxCNC.

Is there another option for this?

Alex

Please Log in to join the conversation.

More
3 years 1 month ago #280901 by cmorley
Replied by cmorley on topic QTDragon stop & pause run
I guess I broke the behaviour a while back.
What you did was the right thing.

I have just fixed it - next update you can try it again.

Please Log in to join the conversation.

More
3 years 1 month ago #280905 by frayja2002
I'd just like to say how much I appreciate all of your perseverance.

With all of you'r effort & willingness to help I can see one day QTDragon will be to go to interface for LinuxCNC.

Thanks again.
Alex

Please Log in to join the conversation.

More
3 years 1 month ago #281042 by cmorley
Replied by cmorley on topic QTDragon stop & pause run
Here is an update that allows using the pause key too.

The external pin  only can pause - would toggling on each true state be better or a separate external pin to unpause?

I was thinking maybe it would be better to have the pause button do regular motion pausing/unpausing and have the spindle pause button do motion pause, spindle pause and spindle lift.
That way you could do either - it may be more useful/intuitive for other people and if so could be incorporated into qtdragon as standard.

interesting request anyway - hope it improves your experience with linuxcnc!

Thank you for the kind words - QtDragon in linuxcnc is the combination of many people's work.
Jim the original creator has an even nicer looking version that i hope to soonish get started into master branch.

Chris

Please Log in to join the conversation.

More
3 years 1 month ago #281095 by MarkoPolo
Replied by MarkoPolo on topic QTDragon stop & pause run
This now also works from the keyboard.
"..would be better to have the pause button do regular motion pausing/unpausing and have the spindle pause button do motion pause, spindle pause and spindle lift."

I think it's a very good idea, integrate with qtdragon and you could make this behavior an optional choice.

Please Log in to join the conversation.

More
3 years 1 month ago #281143 by frayja2002
HI there

I have also tested it & it works as expected.

One small thing... If I hit the stop button the script runs ( to return to the home switches in my case) but if I hit ESC to abort it does not.

I don't know if this uses the same mechanism as pause but I thought I'd point it out.

Thanks
Alex

Please Log in to join the conversation.

More
3 years 1 month ago #281147 by frayja2002
For the benefit of those who come after & myself in 6 months time her is a summary of things so far...

1) In your INI file add to the following sections

[DISPLAY]
USER_COMMAND_FILE = CONFIGFOLDER/pause_pin.py

[AXIS_Z]
OFFSET_AV_RATIO  = 0.2

2) In your custom_postgui.hal add

#Actually stop spindle whwen spinle pause is pressed
    net spindle-stop         qtdragon.spindle-inhibit             spindle.0.inhibit

# Set up Z axis external offsets
    net eoffset_clear       qtdragon.eoffset-clear                => axis.z.eoffset-clear
    net eoffset_count      qtdragon.eoffset-spindle-count   => axis.z.eoffset-counts
    net eoffset                 qtdragon.eoffset-value               <= axis.z.eoffset
    
setp     axis.z.eoffset-enable     1
setp     axis.z.eoffset-scale       1.0

# uncomment for dragon_hd
#    net limited                qtdragon.led-limits-tripped          <= motion.eoffset-limited

3) Download pause_pin_2023-09-18.py and save to your config folder as pause_pin.py
Set the "Spindle Raise" in the setting tab to a sensible value.

4) In qtdragon.pref 
shutdown_check = True
Must remain as True in order to save "Spindle Raise" value.

If there's anything I have missed please let me know.
Alex

Please Log in to join the conversation.

More
1 year 5 months ago #329461 by Doc_emmet
Replied by Doc_emmet on topic QTDragon stop & pause run
Hello,
I can't seem to find the file pause_pin.py. Does the path have to be exactly "USER_COMMAND_FILE = CONFIGFOLDER/pause_pin.py" and does that mean my machine folder? Or where does the file have to be located?

Please Log in to join the conversation.

More
1 year 4 months ago #329513 by Doc_emmet
Replied by Doc_emmet on topic QTDragon stop & pause run
Hello,
I'm using the file pause_pin_2023-09-18.py and I'm getting an error message.
I started LinuxCNC in the terminal with "linuxcnc -v My-Machine.ini" and I get this message:


User command file for pause pin found

[QTvcp.QTVCP.QT_MAKEGUI][ERROR]  No module named 'qtdragon_handler' (qt_makegui.py:361)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qtvcp/qt_makegui.py", line 359, in call_user_command_
    exec(compile(open(rcfile, "rb").read(), rcfile, 'exec'),local)
  File "pause_pin.py", line 5, in <module>
    import qtdragon_handler as SELF
ModuleNotFoundError: No module named 'qtdragon_handler'

How can I fix the error?

Please Log in to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum