31 lines
414 B
Plaintext
31 lines
414 B
Plaintext
; MACROCOMMAND=xinc,zinc
|
|
; MACRODEFAULTS=0.0,0.0
|
|
; MACROIMAGE=go_to_position.png
|
|
; MACROOPTIONS =load:yes,save:yes
|
|
; 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 = <Z-Pos>
|
|
|
|
(DEBUG, %fWill now move machine to X = #1 , Z = #2)
|
|
(MSG, Unpause To Start Go-To-Position Macro)
|
|
m0
|
|
|
|
G0 X #1 Z #2
|
|
|
|
O<go_to_position> endsub
|
|
|
|
M2
|