I don't use g-code, it's a davinci.

There is no stopping the head.

The only way I could do something like that, is to make an item on the far side of the print bed that would take the extruder head a lot of time, so I could reach in and quickly drop in a nut.