The following sequence of operations configures the capture system, commences a moves, and recovers the capture position

Write_Word(Axis1_+_SetCaptureSource_w.1);
Write_Word(Axis1_+_SetCaptureTrip_w,1);
Write_Word(Axis1_+_ArmCapture_w,1);
Write_Double(Axis1_+_BeginMoveBy_d,25.7);
WaitUntilWordRegisterIsNonZero(Axis1_+_ArmCapture_w);
CapturePosition:=Read_Double(Axis1_+_CapturePosition_d);