G-Code Modal vs Non-Modal Commands: How Modes Work in CNC Programming In CNC programming, modal and non-modal commands control how instructions behave across multiple blocks of code. Understanding the modal system is essential to write efficient, compact, and safe G-code ...