Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: mjzrpr on April 22, 2022, 03:36:56 PM

Title: homing rotating axis
Post 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?
Title: Re: homing rotating axis
Post by: Graham Waterworth on April 22, 2022, 06:41:20 PM
G91 G28 A0 will home the A axis.
Title: Re: homing rotating axis
Post by: mjzrpr on April 23, 2022, 03:27:08 AM
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
Title: Re: homing rotating axis
Post by: mjzrpr on April 30, 2022, 05:21:44 AM
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