Part1_TouchProbe program
This program is used to calculate the instances of function blocks of type MC_AbortTrigger and MC_TouchProbe which supply the measuring function. These function blocks have a reference to the signal source of the TRIGGER_REF type as VAR_IN_OUT pin. This data type is defined in the Part 1 motion library. This type of reference is created for every FB instance in the initialisation part of the program and assigned suitable default values.
All FB instances of the types listed above are calculated in the FOR loop after the initialisation phase.
The remaining code is only used to supply the visualisation with data of the selected FB instance, as already executed for other programs.