adding files
This commit is contained in:
23
my-emco-compact-5/custom-m-codes/mytouch.ngc
Normal file
23
my-emco-compact-5/custom-m-codes/mytouch.ngc
Normal file
@@ -0,0 +1,23 @@
|
||||
o<mytouch> sub
|
||||
o10 if [EXISTS[#<_hal[jog-axis-sel]>]]
|
||||
#<selected-axis> = #<_hal[jog-axis-sel]>
|
||||
;(DEBUG, my-mpg.axis-selector: #<selected-axis>)
|
||||
|
||||
(touch off)
|
||||
o20 if [#<selected-axis> EQ 0]
|
||||
G10 L20 P0 X0
|
||||
M103
|
||||
(MSG, touch off x axis)
|
||||
o20 endif
|
||||
|
||||
(touch off z axis)
|
||||
o30 if [#<selected-axis> EQ 1]
|
||||
G10 L20 P0 Z0
|
||||
M103
|
||||
(MSG, touch off z axis)
|
||||
o30 endif
|
||||
o10 else
|
||||
(DEBUG, didn't exist)
|
||||
o10 endif
|
||||
o<mytouch> endsub
|
||||
M2
|
||||
Reference in New Issue
Block a user