Measuring a circle segment

The following cycles determine the X and Y values of the centre point of a circle segment. The determined values are transferred to the selected zero offset.