To test my modified component you need to 'halcompile --install' the 'el8_homemod_mod.comp (sudo is needed for a package installation):
in the [EMCMOD] sectio of your ini file:
Code:
HOMEMOD=el8_homecomp_mod
then start your config and check if the homing pins have been created using the 'show hal configuration' tool (image shows pins for joint 0 but same goes for all other joint numbers):
Question 1: Do you see the homing pins for each joint in the 'show hal configuration' tool as shown in the image above? If the answer is no then you are not using the correct component/version.
If you do have the pins then close linuxcnc and open a terminal window. In the terminal type (note lowercase letter 'L' after the hyphen-minus to start your last config):
At this stage if you have not connected the pin 'joint.0.request-custom-homing' in hal you can set/clear it in the 'WATCH' tab as shown above. If cleared the DEFAULT homing procedure should be executed (ie the HOME_ABSOLUTE_ENCODER = 2 you have set in the [JOINT_0] section of your ini file). If you set the pin then the CUSTOM homing procedure should be executed (ie the one the uses the hal connections to the 'cia402.0.' component).
Note the printed messages in the terminal window when CUSTOM homing is selected, similar to this:
Code:
Waiting for joint 0 to confirm custom homing ...