You are right. It has to do with my ‘probe_points.txt’.
I just tested something based on your suggestion. The ‘probe_points.txt’ I created is accurate but quite small, as I only touched a piece of aluminum with a tool for testing purposes. As long as the spindle remains within the area I probed, the z_level_compensation module works as intended. However, if I move outside the defined area in ‘probe_points.txt’, it triggers the error I described before.
It would be great if the module could account for this scenario and not adjust the Z-level when the spindle is outside the specified range in ‘probe_points.txt’.
I configured the HAL file for using the mashine coordinates:
net xpos-cmd_ z_level_compensation.x-pos <= axis.x.pos-cmd
net ypos-cmd_ z_level_compensation.y-pos <= axis.y.pos-cmd
net zpos-cmd_ z_level_compensation.z-pos <= axis.z.pos-cmd
Thank you very much for your support.