I'm looking for advice on g-code homing script that I'm going to use in machIII
I have one z stepper, one y stepper, and 2 x steppers (typical 4 stepper gantry router X is one of the motors, A is the other)
I've read the info from the sidebar on the home page (CNCzone.com-Machinist Community Forums - Magazine - CNC Basics And Using CNC - Using the Homing Commands (re-print from deskcnc.com)) and am attempting to wire all of the limit and homing switches into one input on my g540 controller. I want to wire the Limit/homing switches so low is not triggered and high is triggered. At least that is the plan for now.
I guess the attempt is to use the g-code to make up for using one input but having two motors on the same axis.
G92.2 G54 (Zero Work Coordinate Offsets)
G30 X.5 A.5 F100 (Home the X Axis at a fast feedrate and offset by 0.5)
G30 X.05 A.05 F1 (Re-Home the X Axis at a slower feedrate and offset)
G30 X.05 F1 (Re-Re-Home X separately from A)
G30 A.05 F1 (Re-Re-Home A separately from X)
G30 Y.5 F100 (Home the Y Axis at a fast feedrate and offset by 0.5)
G30 Y.5 F1 (Re-Home the Y Axis at a slower feedrate and offset)
G30 Z.5 F100 (Home the Z Axis at a fast feedrate and offset by 0.5)
G30 Z.5 F1 (Re-Home the Z Axis at a slower feedrate and offset)
Concerning the X axis, the gantry initially will move itself near the home switches and home and when either side activates a switch it will consider it homed. Then it will come back and do each side separately in order to square itself up. I did the offsets a much lower amount the second/third time that I feel is an amount of out-of-square amount that is easy to induce in my gantry as it will be twisting while getting these sides homed.
Does this make sense? any better way to go about this?