Digital Servo Drives often have a position capture function known either as Touch Probe or Touch Trigger.
This function uses either the Z mark on the motor’s encoder, or one of 2 external inputs to act as the latch signal and capture the encoder position in a register within the Servo Drive.
Touch Probe functions exist on EtherCAT, SERCOS and SLM/PLM drives.
This document describes examples of drive-based registration using Touch Probe over EtherCAT.