?
This commit is contained in:
27
configs/sim.gmoccapy/macros/go_to_position.ngc
Executable file
27
configs/sim.gmoccapy/macros/go_to_position.ngc
Executable file
@@ -0,0 +1,27 @@
|
||||
; Testfile go to position
|
||||
; will jog the machine to a position to give
|
||||
|
||||
; the image path must be relative from your config dir or absolute, "~" is allowed
|
||||
(IMAGE, ./macros/images/goto_x_y_z.png)
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user