Macro Tab.Widget

More
08 Apr 2020 18:21 #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?
Attachments:

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

More
08 Apr 2020 20:41 #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
The following user(s) said Thank You: hottabich

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

More
09 Apr 2020 04:36 - 09 Apr 2020 07:39 #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.
Last edit: 09 Apr 2020 07:39 by hottabich.

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

More
09 Apr 2020 10:52 #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:
; 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.
The following user(s) said Thank You: hottabich

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

More
09 Apr 2020 13:06 - 09 Apr 2020 13:43 #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.
Attachments:
Last edit: 09 Apr 2020 13:43 by hottabich.

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

More
09 Apr 2020 13:28 #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 or Create an account to join the conversation.

More
09 Apr 2020 13:29 #163342 by cmorley
Replied by cmorley on topic Macro Tab.Widget
Here is a sample that require input:
; 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 or Create an account to join the conversation.

More
09 Apr 2020 13:31 #163343 by cmorley
Replied by cmorley on topic Macro Tab.Widget
That sample would be saved as go_to_position.ngc
The following user(s) said Thank You: hottabich

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

More
09 Apr 2020 13:46 - 09 Apr 2020 14:06 #163349 by hottabich
Replied by hottabich on topic Macro Tab.Widget
That's right? Or so.
Attachments:
Last edit: 09 Apr 2020 14:06 by hottabich.

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

More
09 Apr 2020 14:14 #163353 by cmorley
Replied by cmorley on topic Macro Tab.Widget
Try this:
I converted the images to png files
Attachments:
The following user(s) said Thank You: hottabich

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

Moderators: cmorley
Time to create page: 0.187 seconds
Powered by Kunena Forum