I am using a servo motor with an absolute encoder. I have successfully retrieved the encoder data via mb2hal and converted it into the motor shaft angle. Now, I want to use this data solely for homing. The process should be as follows: when a homing command is sent, a serial connection is established, the axis position is set equal to the encoder’s value, and then the serial connection is terminated.
Is this feasible, and how can I implement it?