aboutsummaryrefslogtreecommitdiffstats
path: root/nc_files/macros/lathe/go_to_position.ngc
blob: 25434edfad9f64868af6e60503ede676868fe08b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
; MACROCOMMAND=xinc,yinc,zinc
; MACRODEFAULTS=0,0,0
; MACROIMAGE=
; 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>

(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
bues.ch cgit interface