Keyboard Shortcuts in Gmoccapy

More
10 years 5 months ago #74117 by LearningLinuxCNC
Norbert,

Is there a way to add additional keyboard shortcuts other than what is covered in the documentation?

Code:
Keyboard shortcuts Some users want to jog there machine using the keyboard buttons and there are others that will never allow this. So everybody can select whether to use them or not. Default is to use keyboard shortcuts. Please take care if you use a lathe, than the shortcuts will be different. See the Lathe section Arrow Left = X minus Arrow Right = X plus Arrow up = Y plus Arrow Down = Y minus Page Up = Z plus Page Down = Z minus F1 = Estop (will work even if keyboard shortcuts are disabled) F2 = Machine on ESC = Abort


Thanks,

Jim

Please Log in to join the conversation.

More
10 years 5 months ago #74141 by newbynobi
There are already additional keys:

<SHIFT> <SPACE> will delete all messages
<SUPER_L> = Left windows key will delete last message
<F3> change to manual mode
<F5> change to MDI Mode
<RETURN> will emit the mdi command if you are in MDI mode
<I> change increment button to the next one
<i> change increment button to the previous one

I unfortunately did not have time to update the documentation.
Could you add this ones to the doku please and I may think of adding one or two more B)

You will find the documentation file to be updated under:
Code:
/linuxcnc-dev/docs/src/gui/gmoccapy.txt
Just edit it and send it to me or the developers list, so it can be pushed.

Norbert

P.S. You may also add the keys you want in the gmoccapy.py file, editing
Code:
def on_key_event
around line 1858

Please Log in to join the conversation.

More
10 years 5 months ago #74143 by LearningLinuxCNC
I will update the documentation. I also did some playing around last night and found that shift+arrow or shift+pgup, shift+pgdn is rapid same as in axis.

I may play around with adding some custom keycodes just for fun and curiosity.

Thanks a bunch.

Jim

Please Log in to join the conversation.

More
10 years 5 months ago #74199 by newbynobi
What more keys do you need?
May be interesting also for others.

And many thanks for your support on the documentation. I am running out of time at the moment, too much orders at the moment, and i need / want the money :P :) ;)

Norbert

Please Log in to join the conversation.

More
10 years 5 months ago #74220 by LearningLinuxCNC
I am building a custom HMI control panel(s) for my machine(s). These control panels will have keys for the normal things like jogging, spindle control, coolant control, and a G-Code keypad for entering MDI commands. The other thing that will be on the control panel is an mpg. This mpg will control the selected axis, spindle speed override, feed override, etc. The interface to the computer for this control panel will be a HID Keyboard interface. So all of these commands will come as keystrokes.

I am planning on getting my prototype built and then offering custom control panels for sale to the CNC community. The plan would be to provide a panel that could work with the Axis GUI as well as the Gmoccapy GUI or any other for that matter. Maybe even Mach (TBD).

I really like the touchscreen interface that Gmoccapy offers, but there is a lack of tactile feedback especially when looking away from the screen. You don't always know what button your finger is on. Also the on screen keyboard is less than friendly at times so this HMI interface panel will solve both of those problems. B)

I will play with the ability to add keystrokes to Gmoccapy and let you know which ones I want in the published version.

Thanks,

Jim

Please Log in to join the conversation.

More
10 years 5 months ago #74229 by newbynobi
Hallo Jim,

all what you do, can be done "without" touching the gmoccapy file, just using somethink like:
Code:
loadusr -W hal_input -K +KeyWarrior:0

Please find attached my pendant configuration based on a keyWarior chip connected to USB as HID ;-)

Norbert

Please Log in to join the conversation.

More
10 years 5 months ago #74234 by LearningLinuxCNC
Yep, I completely overlooked the hal_input module. I will give that a shot.

Thanks,

Jim

Please Log in to join the conversation.

More
10 years 5 months ago #75196 by tarasko
Excuse me.
In what version of gmoccapy <F3> and <F5> are works as switching to the manual, mdi mode?

Please Log in to join the conversation.

More
10 years 5 months ago #75222 by newbynobi
F3 and F5 shortcuts have been introduced with gmoccapy 1.5.5.

You must enable keyboard use in settings to use that feature.

Norbert

Please Log in to join the conversation.

More
10 years 2 months ago #79125 by tarasko

newbynobi wrote: F3 and F5 shortcuts have been introduced with gmoccapy 1.5.5.

You must enable keyboard use in settings to use that feature.

Norbert

newbynobi wrote: F3 and F5 shortcuts have been introduced with gmoccapy 1.5.5.

You must enable keyboard use in settings to use that feature.

Norbert


Well, there is some bug around these shortcuts.
I'm using a touchscreen monitor with hardware keyboard.
I found it more convenient than on-screen keyboard.
So I frequently switching among MANUAL, AUTO, MDI modes.

I think switching from AUTO -> MDI mode not works properly.
(the case when I want directly switch to MDI mode (F5) after program end)

I also reproduced this issue in recent Gmocappy 2.1.0 from master branch

Thanks.

Please Log in to join the conversation.

Time to create page: 0.156 seconds
Powered by Kunena Forum