Macro Tab.Widget

More
6 years 6 months ago #163222 by hottabich
Macro Tab.Widget was created by hottabich
There are several files like go_to_zero.ngc. Will I be able to implement their work with
using MacroTab? If possible, how?

Please Log in to join the conversation.

More
6 years 6 months ago #163234 by cmorley
Replied by cmorley on topic Macro Tab.Widget
Yes most any macro file can work with microtabs.

There are some basic docs here:
linuxcnc.org/docs/2.8/html/gui/qtvcp_wid...tml#_macrotab_widget

If you have some that you think should be included, we can look at that.

Chris

Please Log in to join the conversation.

More
6 years 6 months ago #163298 by hottabich
Replied by hottabich on topic Macro Tab.Widget
I have three files: go_to_zero.ngc, go_to_home.ngc, auto_tool_zero.ngc.
I put it in the macros folder along the path home / jura / linuxcnc / nc_files / probe / basic_probe /macros. I create an OWord file there. I am at a loss with pictures. What am i doing wrong
please comment. Added by svg icon tab.

Please Log in to join the conversation.

More
6 years 6 months ago #163314 by cmorley
Replied by cmorley on topic Macro Tab.Widget
So here is how to get one of your file to be found by the tab widget. Note the magic comments:
Code:
; MACROCOMMAND= ; MACRODEFAULTS= ; MACROIMAGE=go_to_zero ; will jog the machine to zero o<go_to_zero> sub o<100> if [#5422 LT 0] G0 Z0 G0 X0 Y0 o<100> else if [#5422 GE 0] G0 X0 Y0 G0 Z0 o<100> endif o<go_to_zero> endsub M2

I see I need to work on the image displaying - the images are not scaled properly when I tested.

Please Log in to join the conversation.

More
6 years 6 months ago #163334 by hottabich
Replied by hottabich on topic Macro Tab.Widget
What size icon_tab.svg is needed? OWord first and second line must beat
empty? Sorry, but I don’t know English, but with google translate I understand
a lot less. I work purely by intuition. Thank you very much.

Please Log in to join the conversation.

More
6 years 6 months ago #163341 by cmorley
Replied by cmorley on topic Macro Tab.Widget
The three lines are required so macroTab knows this is an oword designed for macroTab.
The first and second lines are empty because your oword does not require input.

The icon is supposed to scale to size but that seems to be a bug.

Please Log in to join the conversation.

More
6 years 6 months ago #163342 by cmorley
Replied by cmorley on topic Macro Tab.Widget
Here is a sample that require input:
Code:
; MACROCOMMAND=xinc,yinc,zinc ; MACRODEFAULTS=0,0,0 ; MACROIMAGE=test-tool O<go_to_position> sub G17 G20 G54 G61 G40 G49 G80 G90 ;#1 = <X-Pos> ;#2 = <Y-Pos> ;#3 = <Z-Pos> (DBG, Will now move machine to X = #1 , Y = #2 , Z = #3) G0 X #1 Y #2 Z #3 O<go_to_position> endsub M2

Please Log in to join the conversation.

More
6 years 6 months ago #163343 by cmorley
Replied by cmorley on topic Macro Tab.Widget
That sample would be saved as go_to_position.ngc

Please Log in to join the conversation.

More
6 years 6 months ago #163349 by hottabich
Replied by hottabich on topic Macro Tab.Widget
That's right? Or so.

Please Log in to join the conversation.

More
6 years 6 months ago #163353 by cmorley
Replied by cmorley on topic Macro Tab.Widget
Try this:
I converted the images to png files

Please Log in to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum