Keyboard Shortcuts in Gmoccapy

  • LearningLinuxCNC
  • LearningLinuxCNC's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
02 May 2016 01:22 #74117 by LearningLinuxCNC
Keyboard Shortcuts in Gmoccapy was created by LearningLinuxCNC
Norbert,

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

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 or Create an account to join the conversation.

More
02 May 2016 15:12 #74141 by newbynobi
Replied by newbynobi on topic Keyboard Shortcuts in Gmoccapy
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:
/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
def on_key_event
around line 1858
The following user(s) said Thank You: tivoi, LearningLinuxCNC

Please Log in or Create an account to join the conversation.

  • LearningLinuxCNC
  • LearningLinuxCNC's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
02 May 2016 15:29 #74143 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Keyboard Shortcuts in Gmoccapy
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 or Create an account to join the conversation.

More
03 May 2016 20:50 - 03 May 2016 20:51 #74199 by newbynobi
Replied by newbynobi on topic Keyboard Shortcuts in Gmoccapy
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
Last edit: 03 May 2016 20:51 by newbynobi.

Please Log in or Create an account to join the conversation.

  • LearningLinuxCNC
  • LearningLinuxCNC's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
04 May 2016 12:12 #74220 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Keyboard Shortcuts in Gmoccapy
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 or Create an account to join the conversation.

More
04 May 2016 15:05 #74229 by newbynobi
Replied by newbynobi on topic Keyboard Shortcuts in Gmoccapy
Hallo Jim,

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

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

Norbert
Attachments:
The following user(s) said Thank You: LearningLinuxCNC, abdulasis12

Please Log in or Create an account to join the conversation.

  • LearningLinuxCNC
  • LearningLinuxCNC's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
04 May 2016 16:06 #74234 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Keyboard Shortcuts in Gmoccapy
Yep, I completely overlooked the hal_input module. I will give that a shot.

Thanks,

Jim

Please Log in or Create an account to join the conversation.

More
28 May 2016 20:37 #75196 by tarasko
Replied by tarasko on topic Keyboard Shortcuts in Gmoccapy
Excuse me.
In what version of gmoccapy <F3> and <F5> are works as switching to the manual, mdi mode?

Please Log in or Create an account to join the conversation.

More
29 May 2016 17:44 #75222 by newbynobi
Replied by newbynobi on topic Keyboard Shortcuts in Gmoccapy
F3 and F5 shortcuts have been introduced with gmoccapy 1.5.5.

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

Norbert
The following user(s) said Thank You: tarasko

Please Log in or Create an account to join the conversation.

More
20 Aug 2016 13:42 #79125 by tarasko
Replied by tarasko on topic Keyboard Shortcuts in Gmoccapy

F3 and F5 shortcuts have been introduced with gmoccapy 1.5.5.

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

Norbert

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 or Create an account to join the conversation.

Moderators: newbynobiHansU
Time to create page: 0.075 seconds
Powered by Kunena Forum