Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: mjzrpr on April 22, 2022, 03:36:56 PM
-
hi
if we have rotating spindle axis , after running in speed mode we need to homing rotating axis.
when use m code include dobutton(25) the program go to first line.
how to homing on g code?
-
G91 G28 A0 will home the A axis.
-
Hi Graham Waterworth
I thinks your reply solve my problem. thanks very much
but I must use g28.1 to return to home.
g28 just move axis to machin zero (No matter the microswitches). g28.1 move axis until home switch activated and the zero machin position.
thanks and regards
-
finaly i use mcode to solve mkx g28.1 problem. after use g28.1 ... the gcode go to first line. you must use mcode to set line and start again.
code "g28.1 A0"
while (ismoving())
sleep 1000
wend
setdro(16, xx) ' xx is line number
dooembutton(156)' set next line
dobutton(0)'start