General structure

For Program Start, Tool Change, Rapid, and Z Rapid formats the general logical flow is to handle turning and milling in separate sections.

For milling, use the <ROTARYX> reserved word to distinguish between face milling and OD milling.

<IF><TURNING><THEN>
[* Do turning tasks]
<ENDIF>
<IF><MILLING><THEN>
<IF><ROTARYX><THEN>
[* Do OD milling tasks]
<ENDIF>
<IFNOT><ROTARYX><THEN>
[* Do Face milling tasks]
<ENDIF>
<ENDIF>