Customized Gscreen for gear Hobbing machine
- Henk
- Offline
- Platinum Member
Less
More
- Posts: 395
- Thank you received: 80
12 Dec 2022 13:28 #259254
by Henk
Is there a way to disable one axis? was created by Henk
Hi
I am deep into a retrofit of a Pfauter gear hobbing machine.
The X and Y axes servos of the machine is driven by the same drive. It is a siemens 6RA... thyristor drive fitted with two independent speed regulators but only one output stage, meaning that you can only drive one of the two motors at any given time.
I have this working, and i can select either axis using a switch and/or Mcode.
I would like to disable the one not selected so that it cannot be jogged or commanded to move when not selected.
I will probably end up making dedicated programs for hobbing gears for this machine, so i can make sure that only one of the two axes are commanded to move at any given time, but how do i prevent a user from jogging an axis that is not selected using the keyboard or gui (Axis)
Is there an easier way of controlling this other than a custom gui?
Henk
I am deep into a retrofit of a Pfauter gear hobbing machine.
The X and Y axes servos of the machine is driven by the same drive. It is a siemens 6RA... thyristor drive fitted with two independent speed regulators but only one output stage, meaning that you can only drive one of the two motors at any given time.
I have this working, and i can select either axis using a switch and/or Mcode.
I would like to disable the one not selected so that it cannot be jogged or commanded to move when not selected.
I will probably end up making dedicated programs for hobbing gears for this machine, so i can make sure that only one of the two axes are commanded to move at any given time, but how do i prevent a user from jogging an axis that is not selected using the keyboard or gui (Axis)
Is there an easier way of controlling this other than a custom gui?
Henk
Please Log in or Create an account to join the conversation.
- zz912
- Away
- Platinum Member
Less
More
- Posts: 510
- Thank you received: 81
12 Dec 2022 18:39 #259262
by zz912
Replied by zz912 on topic Is there a way to disable one axis?
You should look at JOINT UNLOCK PINS
in motion HAL component.
linuxcnc.org/docs/stable/html/man/man9/m...OINT%20UNLOCK%20PINS
in motion HAL component.
linuxcnc.org/docs/stable/html/man/man9/m...OINT%20UNLOCK%20PINS
Please Log in or Create an account to join the conversation.
- Henk
- Offline
- Platinum Member
Less
More
- Posts: 395
- Thank you received: 80
13 Dec 2022 14:28 #259315
by Henk
Replied by Henk on topic Is there a way to disable one axis?
Hi
Thanks for the tip.
I explored this today. It creates the additional pins joint.N.unlock (out pin) and joint.N.is-unlocked (in), but it does not seem to have any effect when i drive joint.N.is-unlocked true or false.
The joint can be commanded and jogged as normal.
Thanks for the tip.
I explored this today. It creates the additional pins joint.N.unlock (out pin) and joint.N.is-unlocked (in), but it does not seem to have any effect when i drive joint.N.is-unlocked true or false.
The joint can be commanded and jogged as normal.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23162
- Thank you received: 4860
13 Dec 2022 15:25 #259322
by andypugh
Replied by andypugh on topic Is there a way to disable one axis?
I don't think that there is an easy way to prevent the GUIs from jogging an axis, but button and mpg jogging prevention is as simple as setting the relevant jog-enable pin low.
Which GUI will you be using?
I made a GladeVCP panel for hobbing, though it isn't terribly pretty as it was just for my own use:
It does, however, automatically calculate the span-over-N-teeth check for when the gear is cut to the right profile (including profile shift)
wiki.linuxcnc.org/cgi-bin/wiki.pl?Hobbing
Which GUI will you be using?
I made a GladeVCP panel for hobbing, though it isn't terribly pretty as it was just for my own use:
It does, however, automatically calculate the span-over-N-teeth check for when the gear is cut to the right profile (including profile shift)
wiki.linuxcnc.org/cgi-bin/wiki.pl?Hobbing
Please Log in or Create an account to join the conversation.
- Henk
- Offline
- Platinum Member
Less
More
- Posts: 395
- Thank you received: 80
14 Dec 2022 11:56 #259447
by Henk
Replied by Henk on topic Is there a way to disable one axis?
Hi Andy
I have seen this before, nice work.
This is an embedded tab in Touchy correct? I had plans to do something similar with glade and embed it in axis.
A more elegant sollustion would be a dedicated UI though. Do you think this can be done with glade to build a standalone gui or would it be better to go with one of the newer QTvcp routes?
I am using axis, have never bothered with the other UI's.
I have seen this before, nice work.
This is an embedded tab in Touchy correct? I had plans to do something similar with glade and embed it in axis.
A more elegant sollustion would be a dedicated UI though. Do you think this can be done with glade to build a standalone gui or would it be better to go with one of the newer QTvcp routes?
I am using axis, have never bothered with the other UI's.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23162
- Thank you received: 4860
14 Dec 2022 12:00 #259450
by andypugh
Replied by andypugh on topic Is there a way to disable one axis?
My gear tab should embed OK in any GUI, certainly in Axis or Gmoccapy.
But yes, making a dedicated hobbing GUI should work. Maybe start with Gscreen, which is intentionally customisable but has most of the necessary stuff already implemented so you are not starting from scratch with things like e-stop release and power-on.
linuxcnc.org/docs/stable/html/gui/gscreen.html
But yes, making a dedicated hobbing GUI should work. Maybe start with Gscreen, which is intentionally customisable but has most of the necessary stuff already implemented so you are not starting from scratch with things like e-stop release and power-on.
linuxcnc.org/docs/stable/html/gui/gscreen.html
Please Log in or Create an account to join the conversation.
- zz912
- Away
- Platinum Member
Less
More
- Posts: 510
- Thank you received: 81
14 Dec 2022 17:34 #259481
by zz912
Replied by zz912 on topic Is there a way to disable one axis?
Are you try this:
axis.L.jog-enable IN BIT
When TRUE (and in manual mode), any change to "jog-counts" will result in motion. When false, "jog-counts" is ignored
?
axis.L.jog-enable IN BIT
When TRUE (and in manual mode), any change to "jog-counts" will result in motion. When false, "jog-counts" is ignored
?
Please Log in or Create an account to join the conversation.
- Henk
- Offline
- Platinum Member
Less
More
- Posts: 395
- Thank you received: 80
15 Dec 2022 05:43 #259534
by Henk
Replied by Henk on topic Is there a way to disable one axis?
Hi
I can disable motion for any axis caused by esternal hardware like jog buttons, MPG and so on, but what i would like to prevent is following errors resulting from MDI commands that moves both X and Y, for example "G0 X0 Y200"
As Andy said, i dont think this is an easy task...
I can disable motion for any axis caused by esternal hardware like jog buttons, MPG and so on, but what i would like to prevent is following errors resulting from MDI commands that moves both X and Y, for example "G0 X0 Y200"
As Andy said, i dont think this is an easy task...
Please Log in or Create an account to join the conversation.
- Henk
- Offline
- Platinum Member
Less
More
- Posts: 395
- Thank you received: 80
15 Dec 2022 05:47 #259535
by Henk
Replied by Henk on topic Is there a way to disable one axis?
Hi Andy
A modified Gscreen would be ideal. I was looking into this this morning using the sim >> Industrial Gscreen.
I could not find the xml, .ui, handler files
I will do some more digging and reading...
A modified Gscreen would be ideal. I was looking into this this morning using the sim >> Industrial Gscreen.
I could not find the xml, .ui, handler files
I will do some more digging and reading...
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19464
- Thank you received: 6529
17 Dec 2022 17:46 #259748
by tommylight
Replied by tommylight on topic Is there a way to disable one axis?
Spammer booted.
Please Log in or Create an account to join the conversation.
Time to create page: 0.216 seconds