Before you can had code for a 5" sq you first need to know your starting position, how the material is going to be oriented on the machine and the bit size. To just randomly write code is fun......but it ain't gonna work!
Material is 6X6"
Lower left hand corner is x0y0. Set the bit .250" over the material thickness.
using a .5" bit
absolute G90
G00X.250Y.250
G01Z-.........WHATEVER YOU NEED
G01Y5.75
G01X5.75
G01Y.250
G01X.250
G00Z0.00
G00X0.00Y0.00
This will leave nothing outside the cut of the bit for clamping but it is for example anyway. This is for a clockwise cut which will be a climb cut on the part.
Mike
No greater love can a man have than this, that he give his life for a friend.