GRBL start/stop

Hello.
I connected the motors to the CNC Shield. The motors are working properly, the code is executed, everything is fine. And now i want to stop code sweeping until the sensor is triggered.
For examle, i have g-code

N10G01X0.000Y0.000
N11G01X2.622Y0.744
N12G01X2.622Y0.744
N13G01X2.657Y0.709
N14G01X2.622Y0.673
N15G01X2.657Y0.638
N16G01X2.622Y0.602
N17G01X2.657Y0.567
N18G01X2.622Y0.531
N19G01X2.693Y0.602
N20G01X2.728Y0.567
N21G01X2.764Y0.602
N22G01X2.799Y0.567
N23G01X2.835Y0.602
N24G01X2.799Y0.638
N25G01X2.835Y0.673
N26G01X2.799Y0.709

I need the motors to move the cage to position:X0.000Y0.000 and stops, waiting for signal from sensor. Than after the signal from sensor was recieved motors will move the cage to position:X0.000Y0.000 and stops at X2.622Y0.744 and so on.
Can I make changes to the GRBL settings to implement my idea?

GRBL is a very complex program and this seems like a question to be asked on a Forum that specialises in GRBL or CNC.

This Forum is for helping people write their own Arduino programs.

...R