Macro buttons and hardware buttons
18 Oct 2022 06:26 #254380
by MichalHK
Macro buttons and hardware buttons was created by MichalHK
Hello,
yesterday I finally realise machanical vertical and horizontal buttons at my machine panel. Buttons working well at standard gmoccapy buttons.
For example I can press all standard vertical, horizontal buttons like tool table, referencing axis,enter into origins table atc...
But also Im dooing my own macro buttons. This buttons is at MDI screen and this buttons I cant press by mechanical buttons. I must pres it by mouse. I think thats becouse this buttons is special. Please can you tell me how I can connect with mechanical buttons?
Thanks Michal
yesterday I finally realise machanical vertical and horizontal buttons at my machine panel. Buttons working well at standard gmoccapy buttons.
For example I can press all standard vertical, horizontal buttons like tool table, referencing axis,enter into origins table atc...
But also Im dooing my own macro buttons. This buttons is at MDI screen and this buttons I cant press by mechanical buttons. I must pres it by mouse. I think thats becouse this buttons is special. Please can you tell me how I can connect with mechanical buttons?
Thanks Michal
Please Log in or Create an account to join the conversation.
18 Oct 2022 20:30 #254463
by HansU
Replied by HansU on topic Macro buttons and hardware buttons
The macro buttons should be accessible like the other buttons.
Which Gmoccapy version are you using?
Does your macro file ends with an M2 command?
Which Gmoccapy version are you using?
Does your macro file ends with an M2 command?
Please Log in or Create an account to join the conversation.
19 Oct 2022 09:35 #254501
by MichalHK
Replied by MichalHK on topic Macro buttons and hardware buttons
Gmoccapy 3.0.9.1
Yes all macros ending with M2 command
INI file:
[MACROS]
MACRO = tool_probe
MACRO = tool_open
MACRO = tool_close
tool_open for example:
o<tool_open> sub
M64 P2
o<tool_open> endsub
M2
Yes all macros ending with M2 command
INI file:
[MACROS]
MACRO = tool_probe
MACRO = tool_open
MACRO = tool_close
tool_open for example:
o<tool_open> sub
M64 P2
o<tool_open> endsub
M2
Please Log in or Create an account to join the conversation.
19 Oct 2022 12:54 #254517
by HansU
Replied by HansU on topic Macro buttons and hardware buttons
Try updating to LinuxCNC 2.8.4.
This resolved it at least for this guy here: forum.linuxcnc.org/gmoccapy/46685-macros...ysical-button-switch
This resolved it at least for this guy here: forum.linuxcnc.org/gmoccapy/46685-macros...ysical-button-switch
Please Log in or Create an account to join the conversation.
16 Nov 2022 18:57 #256878
by MichalHK
Replied by MichalHK on topic Macro buttons and hardware buttons
Thanks so much. Finally I found that was bug and how to fix it. Better solution for me then updating. Simple rewrite one word in gmoccapy
Please Log in or Create an account to join the conversation.
17 Nov 2022 07:44 #256923
by HansU
Replied by HansU on topic Macro buttons and hardware buttons
Isn't it always good to update? ;-.)
Which word was wrong in gmoccapy?
Which word was wrong in gmoccapy?
Please Log in or Create an account to join the conversation.
18 Nov 2022 20:15 #257061
by MichalHK
Replied by MichalHK on topic Macro buttons and hardware buttons
I looked into history at github and found this.
github.com/LinuxCNC/linuxcnc/commit/7d17...96fa1e7d7bb3ef70647b
Then Im looking about 1222 line at my gmoccapy and found line with "pressed". They change to "clicked". Now Im happy . My gmoccapy is old I know but working. I need machine every day and Im scared if I must update anythink.
github.com/LinuxCNC/linuxcnc/commit/7d17...96fa1e7d7bb3ef70647b
Then Im looking about 1222 line at my gmoccapy and found line with "pressed". They change to "clicked". Now Im happy . My gmoccapy is old I know but working. I need machine every day and Im scared if I must update anythink.
Please Log in or Create an account to join the conversation.
19 Nov 2022 15:25 #257112
by HansU
Replied by HansU on topic Macro buttons and hardware buttons
Okay thank you, just wanted to make sure that it is fixed in the current version
Please Log in or Create an account to join the conversation.
19 Feb 2023 22:58 #264836
by 0x2102
Replied by 0x2102 on topic Macro buttons and hardware buttons
Hello,
I am trying to figure how to replace the "text" for a custom macro button with an icon?
There is a picture / example shown here:
linuxcnc.org/docs/devel/html/gui/gmoccapy.html#gmoccapy:macros
[MACRO]
MACRO = go_to_position X-pos Y-pos Z-pos
Thanks.
-Markus
I am trying to figure how to replace the "text" for a custom macro button with an icon?
There is a picture / example shown here:
linuxcnc.org/docs/devel/html/gui/gmoccapy.html#gmoccapy:macros
[MACRO]
MACRO = go_to_position X-pos Y-pos Z-pos
Thanks.
-Markus
Please Log in or Create an account to join the conversation.
20 Feb 2023 21:21 #264903
by 0x2102
Replied by 0x2102 on topic Macro buttons and hardware buttons
Never mind. It's in the example macro:
; the image path must be relative from your config dir or absolut, "~" is allowed
(IMAGE, ./macros/images/i_am_lost.png)
; the image path must be relative from your config dir or absolut, "~" is allowed
(IMAGE, ./macros/images/i_am_lost.png)
Please Log in or Create an account to join the conversation.
Time to create page: 0.389 seconds