I'm way too lazy to learn g-code in any great detail, so to do multiple parts, I use cambam's nesting feature which makes it piece of p15s to do multiple copies (& saves many a tool change too)