Macro parameters not initialized

More
4 years 11 months ago #226208 by Raban
This is my macro 

 O<tasca_tonda> sub

G17
G21
G54
G61
G40
G49
G80
G90

;#1 = <X-pos>
;#2 = <Y-pos>
;#3 = <Z-pos>


(X = #1 Y = #2 Z = #3)
G0 Z #3
G0 X #1 Y #2
O<tasca_tonda> endsub

M2


I have a button on gmoccapy interface and the button work , but the macro move to G0 x=0 y=0 z=0   .
Gmoccapy not ask me X-Pos Y-Pos and Z-pos

 

Please Log in to join the conversation.

More
4 years 11 months ago #226210 by MaHa
A named parameter looks like that: #<X-pos> , or global  #<_X-pos>
After using G61 in your macro, you need to set G64 P Q again, in case you want to machine a contour. Maybe for a straight move don't even need G61.

Please Log in to join the conversation.

More
4 years 11 months ago #226211 by Raban
with or without g61 nothing change , gmocappy do not ask me variables value

Please Log in to join the conversation.

More
4 years 11 months ago #226212 by Raban
Solved , in ini files macro must be declared with variables also

Please Log in to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum