I’m no expert and I’m trying to learn right now as well. In a recent thread it was pointed out that the GRBL that runs the Shapeoko machines uses a limited subset of g-code Built-in flattening feature idea - #7 by WillAdams
So here’s a couple links to what is supported:
And some helpful links for general reference for g and m codes
Hope these help!