the following macro I have tried to include in Gmoccapy.
I already have a button that calls the macro, but the macro does not end and I have to click the red button with the white X on the right at the very end.
How can I end the macro automatically?
Code:
; G54_x
; set position to the radius of the milling cutter
O<g54_x> sub
#5221 = [#<_x> + #5221 + #5410 / 2]
G55
G54
O<g54_x> endsub
M2
That does happen, because there is no movement in the macro, resulting in no interpreter change. Just add a G4 command. Please look at the Sim example macro iamlost