Category: General LinuxCNC Questions
Sorry for the very late reply to what seems like an urgent issue.
It looks like this is not a conventional lathe?
Also, it seems that the config is doing wierd things to handle gantry homing?
eg
# we will need the inverse of the direction signals for our logic, so run it through a not gate
net ydir => not.2.in
net ydir-inv => not.2.out
# we need to determine if the home switch for each motor is tripped while the direction line is
# moving the motor towards the switch
# for both y-axis motors, we will prevent the step signal from passing to the motor
# if the motor is moving towards the switch and the switch is tripped
# so "or" the inverted direction signals and the inverted home switches
net ydir => and2.3.in0
net switches-y1 => and2.3.in1
net doh1 <= and2.3.out
net doh1 => not.3.in
net doh1-inv => not.3.out
net ydir => and2.4.in0
net switches-y2 => and2.4.in1
net doh2 <= and2.4.out
net doh2 => not.4.in
net doh2-inv => not.4.out
# if the step generator is trying to send a step (ystep signal) and either the motor is moving
# away from the switch or the switch is not tripped, then pass the step signal to the motor
net ystep => and2.1.in0
net doh1-inv => and2.1.in1
net ystep1 <= and2.1.out
net ystep => and2.2.in0
net doh2-inv => and2.2.in1
net ystep2 <= and2.2.out
But, if the home-button is greyed out then I suspect that it's nothing to do with all this.
Have you tried clicking the "ignore limits" checkbox?
I wonder if you can home the system through halui to bypass the GUI button (I wouldn't expect so...)
Open a terminal window and
halcmd setp halui.home-all 1
halcmd setp halui.home-all 0
and see if anything happens.
You could also try setting "NO_FORCE_HOMING" in the INI file so that you can run the system without homing it, as a workaround. (manually position all axes at home first...)
linuxcnc.org/docs/stable/html/config/ini...tml#sub:ini:sec:traj