You will also need the the following in the ini file to set up automatic homing:
Code:
[JOINT_0]
HOME_SEARCH_VEL = -0.050000
HOME_LATCH_VEL = -0.025
HOME_FINAL_VEL = 0.1
HOME_SEQUENCE = 1
#******************************************
[JOINT_1]
HOME_SEARCH_VEL = -0.050000
HOME_LATCH_VEL = -0.025
HOME_FINAL_VEL = 0.1
HOME_SEQUENCE = 2
#******************************************
[JOINT_2]
HOME_SEARCH_VEL = 0.050000
HOME_LATCH_VEL = 0.025
HOME_FINAL_VEL = 0.1
HOME_SEQUENCE = 0
#******************************************
The first two will probably not be negative for joint 2 if Z axis home is the pos-limit, values you can play around with when it is working.
Because you have combined switches you will need to change the HOME position in each [JOINT_n] section of the ini file so that each axis has moved off the switch to allow the next axis to home. HOME_OFFSET is the actual position of the switch and HOME is the home position where the axis moves to when homing for that axis is complete.
A pretty good description of homing is at:
linuxcnc.org/docs/devel/html/config/ini-homing.html
EDIT: If we had run PnCconf with your config requirements then we would have seen your dilemma. I have posted a PR that attempts to fix the issue. Sorry you had to go through this...
github.com/LinuxCNC/linuxcnc/pull/1201