pause spindle using USB pendant
- frayja2002
- Offline
- Premium Member
Less
More
- Posts: 151
- Thank you received: 11
25 Sep 2024 14:28 #310775
by frayja2002
Replied by frayja2002 on topic pause spindle using USB pendant
Hi there
Attached is the startup of linuxcnc.
I have also attached a copy of the pause_pin.py file referenced.
Thanks
Alex
Attached is the startup of linuxcnc.
I have also attached a copy of the pause_pin.py file referenced.
Thanks
Alex
Please Log in or Create an account to join the conversation.
26 Sep 2024 04:34 #310810
by cmorley
Replied by cmorley on topic pause spindle using USB pendant
That pause_pin.py file is the modification that adds the two new pins.
That's how you got the behavior in 2.9.
anyways try this pause_pin.py file instead off the old one.
Don't forget to connect both of the new pins:
qtdragon.external-pause
qtdragon.external-eoffset-state (to motion.eoffset-active)
That's how you got the behavior in 2.9.
anyways try this pause_pin.py file instead off the old one.
Don't forget to connect both of the new pins:
qtdragon.external-pause
qtdragon.external-eoffset-state (to motion.eoffset-active)
Please Log in or Create an account to join the conversation.
- frayja2002
- Offline
- Premium Member
Less
More
- Posts: 151
- Thank you received: 11
26 Sep 2024 07:13 #310813
by frayja2002
Replied by frayja2002 on topic pause spindle using USB pendant
Yes !!!
That appears to be working. On pressing the button a second time I get the wait for spindle dialog & the spindle now moves back down before it starts cutting.
I always appreciate your help with these adjustments.
At the risk of pushing the friendship could I ask you to have a look at something else for me.
The 4th tab along the top of the UI is the tool tab. If you click on the "touch plate" button you can do a tool touchoff to the top of the job. Is it possible to create a HAL pin for that "touch plate" button, so I could add that to my little hand held unit.
Thanks
ALex
That appears to be working. On pressing the button a second time I get the wait for spindle dialog & the spindle now moves back down before it starts cutting.
I always appreciate your help with these adjustments.
At the risk of pushing the friendship could I ask you to have a look at something else for me.
The 4th tab along the top of the UI is the tool tab. If you click on the "touch plate" button you can do a tool touchoff to the top of the job. Is it possible to create a HAL pin for that "touch plate" button, so I could add that to my little hand held unit.
Thanks
ALex
Please Log in or Create an account to join the conversation.
27 Sep 2024 04:57 #310873
by cmorley
Replied by cmorley on topic pause spindle using USB pendant
Try this new pause_pin.py file
Please Log in or Create an account to join the conversation.
- frayja2002
- Offline
- Premium Member
Less
More
- Posts: 151
- Thank you received: 11
02 Oct 2024 07:15 #311155
by frayja2002
Replied by frayja2002 on topic pause spindle using USB pendant
Thanks for you reply & help with this.
This does indeed work.
I have been trying to set this up on a new machine, trying to remember all the configuring I did.
I was using the docs web page & noticed that it does not mention using a pause_pin.py file.
I found i had to add a line to the [DISPLAY] section...
USER_COMMAND_FILE = CONFIGFOLDER/pause_pin.py
That was not in the docs either.
linuxcnc.org/docs/devel/html/gui/qtdrago...xis_on_program_pause
However once this was added everything worked.
Now I'm trying to figure out how can I press the "OK" button on the popup dialog box remotely. Searching the internet makes me think this is not going to be so straight forward.
Any thoughts appreciated.
Alex
PS do you have a patrion page or some such as I would happily buy a Mars Bar & a double espresso coffee to say thanks
This does indeed work.
I have been trying to set this up on a new machine, trying to remember all the configuring I did.
I was using the docs web page & noticed that it does not mention using a pause_pin.py file.
I found i had to add a line to the [DISPLAY] section...
USER_COMMAND_FILE = CONFIGFOLDER/pause_pin.py
That was not in the docs either.
linuxcnc.org/docs/devel/html/gui/qtdrago...xis_on_program_pause
However once this was added everything worked.
Now I'm trying to figure out how can I press the "OK" button on the popup dialog box remotely. Searching the internet makes me think this is not going to be so straight forward.
Any thoughts appreciated.
Alex
PS do you have a patrion page or some such as I would happily buy a Mars Bar & a double espresso coffee to say thanks
Please Log in or Create an account to join the conversation.
05 Oct 2024 22:00 #311371
by cmorley
Replied by cmorley on topic pause spindle using USB pendant
Glad we got you fixed up.
A HAL pin for dialogs requiresa bit of a re thought of dialogs.
I will look intro this when life slows down a bit - not to long.
I don't have a patrion page, but a mars bar and espresso is a nice thought - Thank you for the offer. Maybe I will look into that in the future.
Chris
A HAL pin for dialogs requiresa bit of a re thought of dialogs.
I will look intro this when life slows down a bit - not to long.
I don't have a patrion page, but a mars bar and espresso is a nice thought - Thank you for the offer. Maybe I will look into that in the future.
Chris
Please Log in or Create an account to join the conversation.
- frayja2002
- Offline
- Premium Member
Less
More
- Posts: 151
- Thank you received: 11
06 Oct 2024 00:04 - 06 Oct 2024 13:28 #311377
by frayja2002
Replied by frayja2002 on topic pause spindle using USB pendant
Due to my inexpert testing I may still have a bit of a problem.
I am using a simple brushed motor spindle controlled by a relay.
When I hit pause the spindle-cw pin is going low but the spindle.0.on pin is remaining high so that the spindle is actually still running.
Should the spindle actually turn off.
I have included the appropriate files. (about line 148)
Alex
PS I have connected the spindle relay to the spindle-cw pin for now. That seems to work, though I don't know if it will generate other problems later.
I am using a simple brushed motor spindle controlled by a relay.
When I hit pause the spindle-cw pin is going low but the spindle.0.on pin is remaining high so that the spindle is actually still running.
Should the spindle actually turn off.
I have included the appropriate files. (about line 148)
Alex
PS I have connected the spindle relay to the spindle-cw pin for now. That seems to work, though I don't know if it will generate other problems later.
Last edit: 06 Oct 2024 13:28 by frayja2002.
Please Log in or Create an account to join the conversation.
07 Oct 2024 04:38 #311465
by cmorley
Replied by cmorley on topic pause spindle using USB pendant
That is a known problem, that has not been looked into yet.
It a linuxcnc motion controller problem not QtDragon.
It a linuxcnc motion controller problem not QtDragon.
Please Log in or Create an account to join the conversation.
11 Oct 2024 03:44 #311792
by cmorley
Replied by cmorley on topic pause spindle using USB pendant
I have pushed to master, a first try at dialog acknowledgement with HAL pins.
Qtdragon should have qtdragon.dialog-ok dialog-cancel dialog-no
A momentary high will answer the dialog.
If anyone tries it please test carefully and let me know what you think.
Qtdragon should have qtdragon.dialog-ok dialog-cancel dialog-no
A momentary high will answer the dialog.
If anyone tries it please test carefully and let me know what you think.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.156 seconds