CNC programming basics include:
1) Programs consist of a start, blocks of NC code, and an end. Blocks contain line numbers and commands like G01 for linear interpolation.
2) Absolute and incremental coordinate systems are used. Absolute defines positions from a fixed zero point, while incremental uses changes from the prior position.
3) G and M commands like G01 for linear moves or M03 to turn the spindle on are self-holding and remain active until deactivated explicitly. Reference points define the machine, tool, and workpiece coordinates.