Gcode for the Makers Guide

I saw the video of the Makers Guide and the corner finder where the bit touches the interior sides of the circle and knows where the corner of the material is. It looks like it was done on Mach 3 but I’m wondering what the Gcode might be to do that or if it is possible.