how to get control panel jog buttons for X Y Z working in gmoccapy
- BeagleBrainz
- Visitor
24 Sep 2020 21:40 #183629
by BeagleBrainz
Replied by BeagleBrainz on topic how to get control panel jog buttons for X Y Z working in gmoccapy
Did you have a look at the 2 threads I linked to earlier regarding step & direction for spindle control ?
As far as I'm aware there is no simple way to get a physical button to replicate a keyboard key via standard HAL.
The only real way to have a a button on a control panel the replicate the ENTER key would to either be by hacking a USB keyboard or to program an Arduino to act as a USB keyboard. Either way it is not such a simple endeavour.
Interfacing a potentiomiter would require a way or converting the analogue voltage to a digital value. To use a 12 position switch would require the use of 4 spare inputs and using a bunch of diodes.
It could also be done via using a Arduino to convert the analogue voltage and send the computed digital signal via a use of a serial port, either a real serial port or USB to serial converter.
Or a flash ADC could be used but the resolution of the digital value would be limited to the amount of available digital inputs.
Or a joystick could be hacked.
This article may have some useful info in regards to using an arduino for extra digital inputs & analogue inputs.
emergent.unpythonic.net/01198594294
Browsing the wiki may give you some other ideas.
wiki.linuxcnc.org/cgi-bin/wiki.pl
As far as I'm aware there is no simple way to get a physical button to replicate a keyboard key via standard HAL.
The only real way to have a a button on a control panel the replicate the ENTER key would to either be by hacking a USB keyboard or to program an Arduino to act as a USB keyboard. Either way it is not such a simple endeavour.
Interfacing a potentiomiter would require a way or converting the analogue voltage to a digital value. To use a 12 position switch would require the use of 4 spare inputs and using a bunch of diodes.
It could also be done via using a Arduino to convert the analogue voltage and send the computed digital signal via a use of a serial port, either a real serial port or USB to serial converter.
Or a flash ADC could be used but the resolution of the digital value would be limited to the amount of available digital inputs.
Or a joystick could be hacked.
This article may have some useful info in regards to using an arduino for extra digital inputs & analogue inputs.
emergent.unpythonic.net/01198594294
Browsing the wiki may give you some other ideas.
wiki.linuxcnc.org/cgi-bin/wiki.pl
Please Log in or Create an account to join the conversation.
- depronman
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 5
24 Sep 2020 22:21 #183636
by depronman
Replied by depronman on topic how to get control panel jog buttons for X Y Z working in gmoccapy
Hi BeagleBrainz,
Yes I had previously looked at the two threads that you linked two earlier
I tried to make modifiacations to my ini and hal files in line with the posts, but kept getting LCNC failure to start error.
I do need to have another go at this, I got distracted because I was trying to get the jog buttons working and the cycle start, stop, single, feed hold buttons working - too many different problems trying to be solved at the same time
With help from Norbert I have not got the jog buttons working correctly and had already got the cycle start, stop, step, feef hold buttons working
I will have a ready of the links you provided - thanks
I guess its not as simple a job as I thought to get jog feed control, is it easier to have a button control the selection of rabbit and turtle, this may be a suitable compromise for the time being ?
So I am now 100% concentrating on the spindle speed control
I will have a another go at following the links you advised of a couple of days ago and report back with the error I was getting
cheers Paul
Yes I had previously looked at the two threads that you linked two earlier
I tried to make modifiacations to my ini and hal files in line with the posts, but kept getting LCNC failure to start error.
I do need to have another go at this, I got distracted because I was trying to get the jog buttons working and the cycle start, stop, single, feed hold buttons working - too many different problems trying to be solved at the same time
With help from Norbert I have not got the jog buttons working correctly and had already got the cycle start, stop, step, feef hold buttons working
I will have a ready of the links you provided - thanks
I guess its not as simple a job as I thought to get jog feed control, is it easier to have a button control the selection of rabbit and turtle, this may be a suitable compromise for the time being ?
So I am now 100% concentrating on the spindle speed control
I will have a another go at following the links you advised of a couple of days ago and report back with the error I was getting
cheers Paul
Please Log in or Create an account to join the conversation.
- BeagleBrainz
- Visitor
24 Sep 2020 23:19 #183645
by BeagleBrainz
Replied by BeagleBrainz on topic how to get control panel jog buttons for X Y Z working in gmoccapy
When Linuxcnc throws an error the window that pops up ahs a button to create an error report. Press that and you can read through the error logs, they are pretty verbose.
And have a look here:
forum.linuxcnc.org/51-ot-posts/40089-a-r...t-have-issues#182905
And have a look here:
forum.linuxcnc.org/51-ot-posts/40089-a-r...t-have-issues#182905
Please Log in or Create an account to join the conversation.
- depronman
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 5
27 Sep 2020 23:23 #184078
by depronman
Replied by depronman on topic how to get control panel jog buttons for X Y Z working in gmoccapy
Hi all
Lots of good progress made over the last few days
I now have working jog panel buttons and cycle start,pause, step, stop buttons
I also have the spindle stop/start and speed controlled via step/direction
The two earlier threads posted gave me the general idea, but I think the syntax in LCNC as changed over time and this had me confused and frustrated for a couple of days
I have also, after some reading, got a wireless pendant working, the xhc-hb04, the 18 button version.
Most of the pendant buttons are working, but I have had to comment out the cycle start, pause, step, stop panel buttons as the HAL for the pendant would stop loading complaining about the pin already being used. Is there a way to have BOTH the pendant button AND the physical control panel button working at the same time i.e. so I can cycle start from either the pendant or the control panel ???
Any help on this greatly appreciated
Also, is there a way to assign the keyboard 'enter key' to one of the 'macro' buttons on the pendant, so use to confirm the tool change on a manual tool change ???
Lots of good progress made over the last few days
I now have working jog panel buttons and cycle start,pause, step, stop buttons
I also have the spindle stop/start and speed controlled via step/direction
The two earlier threads posted gave me the general idea, but I think the syntax in LCNC as changed over time and this had me confused and frustrated for a couple of days
I have also, after some reading, got a wireless pendant working, the xhc-hb04, the 18 button version.
Most of the pendant buttons are working, but I have had to comment out the cycle start, pause, step, stop panel buttons as the HAL for the pendant would stop loading complaining about the pin already being used. Is there a way to have BOTH the pendant button AND the physical control panel button working at the same time i.e. so I can cycle start from either the pendant or the control panel ???
Any help on this greatly appreciated
Also, is there a way to assign the keyboard 'enter key' to one of the 'macro' buttons on the pendant, so use to confirm the tool change on a manual tool change ???
Please Log in or Create an account to join the conversation.
- depronman
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 5
27 Sep 2020 23:26 #184079
by depronman
Replied by depronman on topic how to get control panel jog buttons for X Y Z working in gmoccapy
xhc-hb04-cfg file failed to upload, so I have added .txt to the end, this will need to be removed
Please Log in or Create an account to join the conversation.
- BeagleBrainz
- Visitor
28 Sep 2020 02:35 - 28 Sep 2020 03:06 #184090
by BeagleBrainz
Replied by BeagleBrainz on topic how to get control panel jog buttons for X Y Z working in gmoccapy
nah go it all wrong
Last edit: 28 Sep 2020 03:06 by BeagleBrainz.
Please Log in or Create an account to join the conversation.
- depronman
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 5
28 Sep 2020 06:16 #184111
by depronman
Replied by depronman on topic how to get control panel jog buttons for X Y Z working in gmoccapy
Sorry BB not sure what you mean
all the best. Paul
all the best. Paul
Please Log in or Create an account to join the conversation.
- BeagleBrainz
- Visitor
28 Sep 2020 06:20 #184112
by BeagleBrainz
Replied by BeagleBrainz on topic how to get control panel jog buttons for X Y Z working in gmoccapy
I wrote an answer and after rereading it it was all wrong.
Have you thought about using or2 comp for the panel\pendant problem.
Have you thought about using or2 comp for the panel\pendant problem.
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
Less
More
- Posts: 2075
- Thank you received: 406
29 Sep 2020 16:07 #184306
by newbynobi
Replied by newbynobi on topic how to get control panel jog buttons for X Y Z working in gmoccapy
Sorry to inform you, that actually there is no possibility to use a physical button to simulate the enter key. I think it is a good idea, but I am short in time to include such a feature. Unfortunately it is not as easy as introducing the Hal pin. This is due to the dfact, that the dialog is created on the fly, so the Hal pin would not be created until the Message pops up. So the Hal connections will not be available at start up of the GUI.
I will put this one on my to do list.
Norbert
I will put this one on my to do list.
Norbert
Please Log in or Create an account to join the conversation.
- depronman
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 5
29 Sep 2020 18:36 - 30 Sep 2020 18:30 #184320
by depronman
Replied by depronman on topic how to get control panel jog buttons for X Y Z working in gmoccapy
Hi Norbert
That would be excellent if this can be fixed at some point in the future
Could I ask that you either post here or PM me when fixed (a big ask I know)
Loving the gmoccapy gui. It suits me far better than axis and all of LCNC blows mach3 into the shadows
Regards. Paul
That would be excellent if this can be fixed at some point in the future
Could I ask that you either post here or PM me when fixed (a big ask I know)
Loving the gmoccapy gui. It suits me far better than axis and all of LCNC blows mach3 into the shadows
Regards. Paul
Last edit: 30 Sep 2020 18:30 by depronman.
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.072 seconds