summaryrefslogtreecommitdiff
path: root/configs/sim/gmoccapy/macros/go_to_position.ngc
blob: d5ed9637ccceeb7b55f979a37655fa22cbe309a0 (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
; Testfile go to position
; will jog the machine to a position to give

O<go_to_position> sub

G17
G21
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