How to display the macro button gmoccapy.h-button-0
- Philippe
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 0
21 Nov 2018 14:50 #121127
by Philippe
How to display the macro button gmoccapy.h-button-0 was created 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
thanks for your answer.
BR Philippe
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
Less
More
- Posts: 2075
- Thank you received: 406
21 Nov 2018 20:04 #121164
by newbynobi
Replied by newbynobi on topic How to display the macro button gmoccapy.h-button-0
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
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 or Create an account to join the conversation.
- Philippe
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 0
22 Nov 2018 07:10 - 22 Nov 2018 07:32 #121206
by Philippe
Replied by Philippe on topic How to display the macro button gmoccapy.h-button-0
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.
Last edit: 22 Nov 2018 07:32 by Philippe.
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
Less
More
- Posts: 2075
- Thank you received: 406
22 Nov 2018 22:32 #121240
by newbynobi
Replied by newbynobi on topic How to display the macro button gmoccapy.h-button-0
That is explained in the doku, just click the link i posted in my previous answer
Please Log in or Create an account to join the conversation.
- Philippe
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 0
23 Nov 2018 09:14 #121251
by Philippe
Replied by Philippe on topic How to display the macro button gmoccapy.h-button-0
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 or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
Less
More
- Posts: 2075
- Thank you received: 406
23 Nov 2018 16:11 #121255
by newbynobi
Replied by newbynobi on topic How to display the macro button gmoccapy.h-button-0
You are wellcome.
Here in Germany we say
Sometimes we do not se the forrest because of to much trees?
Norbert
Here in Germany we say
Sometimes we do not se the forrest because of to much trees?
Norbert
Please Log in or Create an account to join the conversation.
- Archidea
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
29 Jul 2021 07:50 #216193
by Archidea
Replied by Archidea on topic How to display the macro button gmoccapy.h-button-0
I need help with connecting the macro buttons with physical buttons. How it can be done?
Please Log in or Create an account to join the conversation.
- Aciera
- Online
- Administrator
Less
More
- Posts: 3948
- Thank you received: 1705
29 Jul 2021 15:56 - 29 Jul 2021 15:58 #216236
by Aciera
Replied by Aciera on topic How to display the macro button gmoccapy.h-button-0
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.
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.
Last edit: 29 Jul 2021 15:58 by Aciera.
Please Log in or Create an account to join the conversation.
- Archidea
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
31 Jul 2021 09:56 #216438
by Archidea
Replied by Archidea on topic How to display the macro button gmoccapy.h-button-0
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 or Create an account to join the conversation.
- Aciera
- Online
- Administrator
Less
More
- Posts: 3948
- Thank you received: 1705
31 Jul 2021 11:34 #216444
by Aciera
Replied by Aciera on topic How to display the macro button gmoccapy.h-button-0
yes, that would work or you can also do both in the _postgui.hal
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.068 seconds