Macro buttons and hardware buttons

More
18 Oct 2022 06:26 #254380 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 

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

More
18 Oct 2022 20:30 #254463 by HansU
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?

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

More
19 Oct 2022 09:35 #254501 by MichalHK
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


 

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

More
19 Oct 2022 12:54 #254517 by HansU
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

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

More
16 Nov 2022 18:57 #256878 by MichalHK
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.

More
17 Nov 2022 07:44 #256923 by HansU
Isn't it always good to update? ;-.)

Which word was wrong in gmoccapy?

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

More
18 Nov 2022 20:15 #257061 by MichalHK
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.

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

More
19 Nov 2022 15:25 #257112 by HansU
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.

More
19 Feb 2023 22:58 #264836 by 0x2102
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

 

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

More
20 Feb 2023 21:21 #264903 by 0x2102
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)

 

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

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