How to display the macro button gmoccapy.h-button-0

More
7 years 11 months ago #121127 by Philippe
Sorry for my english, i'm french. i want to add a function on a macro button gmoccapy.h-button-0 , but i dont know , how is possible and where i put the code
thanks for your answer.

BR Philippe

Please Log in to join the conversation.

More
7 years 11 months ago #121164 by newbynobi
Hallo Philippe,

are you sure, that you want to add a macro to that button?

gmoccapy.h-button-0 (gmoccapy 1.XX)
gmoccapy.h-button.button-0 (gmoccapy 2.XX)

that hal pin just click or toggle the most left bottom button of the gui. The behavior will change according the LinuxCNC mode and the selected page of the GUI.

What is the intention of that?

Or do you want to add a button on the MDI page to start a custom macro?
If that is the case, it is well documented in the documentation.

Gmoccapy Macros

Norbert

Please Log in to join the conversation.

More
7 years 11 months ago #121206 by Philippe
I think is better to add a button on MDI panel. So to add the code I understand, but how can I add the button at the bottom of the screen.

Please Log in to join the conversation.

More
7 years 11 months ago #121240 by newbynobi
That is explained in the doku, just click the link i posted in my previous answer

Please Log in to join the conversation.

More
7 years 11 months ago #121251 by Philippe
Ok Thanks for your repply,I had don't understand that just to add the macro in the ini file add automaticaly the button in the mdi panel

Please Log in to join the conversation.

More
7 years 11 months ago #121255 by newbynobi
You are wellcome.

Here in Germany we say
Sometimes we do not se the forrest because of to much trees?

Norbert

Please Log in to join the conversation.

More
5 years 3 months ago #216193 by Archidea
I need help with connecting the macro buttons with physical buttons. How it can be done?

Please Log in to join the conversation.

More
5 years 3 months ago #216236 by Aciera
linuxcnc.org/docs/html/gui/gmoccapy.html
have a look at section '5. HAL pins'. You will need to connect the signal from your button to the corresponding hal pin that is created when the gui starts.

Please Log in to join the conversation.

More
5 years 3 months ago #216438 by Archidea
Thank you Aciera. I'm new to this and it's a bit overwelming for me. I presume first step is to connect hardware pin in cusom hal e.g. net name <= hardware pin and then in custom_postgui.hal net name => gmoccapy button pin.

Please Log in to join the conversation.

More
5 years 2 months ago #216444 by Aciera
yes, that would work or you can also do both in the _postgui.hal

Please Log in to join the conversation.

Time to create page: 0.240 seconds
Powered by Kunena Forum