Gmoccapy Shortcut keys F1 & F2

More
06 Mar 2021 14:16 #201186 by rider-83
I believe that keys F1 for E-Stop & F2 for Power On should work when the option for Keyboard Shortcuts is enabled via the 'Hardware' Setting tab.
Nothing happens.
Please can some one advise ?

Thanks,

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

More
06 Mar 2021 15:11 #201191 by rider-83
Ah, Further to my question.

Keys F1 & F2 do in fact work providing I use my mouse to click the E-Stop tab on the top right.

However, the mouse will not be connected for normal use, therefore how do I bring the control out of E-Stop state after initial power up ?
It is at this stage that F1 won't work as required. Any suggestions ?

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

More
06 Mar 2021 22:01 #201224 by newbynobi
F1 = ESTOP
You can only activate the ESTOP signal, not reset it. I did that on purpose, as ESTOP circuit should be hardware and the button is more a indicator than a switch. Just in Sim it is needed.

F2 = MACHINE ON
this can be toggled, while the machine is not in ESTOP state

If you want to change this behavior, you need to edit the gmoccapy file. Look in the dile for key_event and you will find the F1 and F2 part.

If there are also others who want the ESTOP button to be toggled by the F1 key, please give a hint.

Norbert

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

More
07 Mar 2021 12:52 #201287 by rider-83
I had a feeling that was the issue.
So, I need to bring out the control via a hardware ESTOP method?
I'm currently looking at implementing this now via an input in to the D25 port.
So providing I set my corresponding .HAL file correctly to the D25, I should be able to lift the control out of ESTOP?

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

More
07 Mar 2021 15:48 #201302 by rider-83
Norbert,

I'm relatively new to LinuxCNC, but I have over 35 years with CNC, computers and electronics, so I have a good understanding of these things.
What is entirely new to me is were all the relative files are located and things such as Python etc. I am learning but its early days for me.
Where do I locate said 'gmoccapy' file so that I may edit it?

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

More
07 Mar 2021 21:51 #201369 by newbynobi
Not being on the computer,

If you run a developer version you find the file at linuxcnc-dev/src/emc/usr_intf/gmoccapy/gmoccapy. py
On an installed file something like /usr/bin/gmoccapy without the py ending!

Just search for gmoccapy, if installed you will need root to edit the file

I strongly recommend the use of a hardware button

Norbert

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

More
10 Mar 2021 06:33 #201625 by rider-83
Success !
I made a simple circuit accross Pin 10 & GND on LPT1, then added a few lines to .HAL and now I can toggle/reset ESTOP via hardware.
I will now set up a circuit to 'kill' the machine movements directly

Thanks!

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

More
10 Mar 2021 07:02 #201626 by newbynobi
you are welcome B)

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

Moderators: newbynobi
Time to create page: 0.090 seconds
Powered by Kunena Forum