The M101 command will start monitoring the probe signal during the machining process. If the probe signal appears in the subsequent movement, the motion will stop.At this point, you can get the coordinate information through the macro variable.
M102 turns off the monitoring of the probe signal.