Terry It is going all over the place because you have not specified G54 at the top of the code.
GO17 G21 G49 G54 G80 G90 G91.1