Files
linuxcncAllWasm/nc_files/macros/mill/go_to_position.ngc
2026-08-20 06:17:39 +08:00

28 lines
361 B
Plaintext

; MACROCOMMAND=xinc,yinc,zinc
; MACRODEFAULTS=0,0,0
; MACROIMAGE= go_to_position.png
; Testfile go to position
; will jog the machine to a given position
O<go_to_position> sub
G17
G20
G54
G61
G40
G49
G80
G90
;#1 = <X-Pos>
;#2 = <Y-Pos>
;#3 = <Z-Pos>
(DEBUG, Will now move machine to X = #1 , Y = #2 , Z = #3)
G0 X #1 Y #2 Z #3
O<go_to_position> endsub
M2