Skip to main content

Reference manuals

MachPro CNC Reference Manuals

MachPro supports Mach4-compatible G-code, M-code, Advanced Macros, Macro B, and PMC programming.

Reference manuals

Mach4 G-code and M-code reference

  • Link: https://support.machmotion.com/books/software/page/mach4-g-code-and-m-code-reference

  • Use this for:

    • MachPro-compatible G and M codes.
    • G-code controls tool motion and finished-part geometry.
    • M-codes trigger machine behavior, such as I/O and waits.
    • The Advanced Macros list, such as M200+.

Mach4 Advanced M-code reference

  • Link: https://support.machmotion.com/books/software/page/mach4-advanced-m-code-reference

  • Use this for custom M-code macros that trigger higher-level actions, such as:

    • I/O actions.
    • Waits and timing.
    • Reads and condition checks.
    • Tool table operations.

Macro B reference guide

  • Link: https://support.machmotion.com/books/software/page/macro-b-reference-guide

  • Use this for Macro B features, including:

    • Variables, math, and flow control
    • Macro and subprogram calls, such as G65, G66, and M98.
    • Parameter letters A–Z mapped to pound variables, such as #1, #2, and more.
    • Variable ranges that persist or clear, such as #500+ saved at shutdown.

PMC programming

  • Link: https://support.machmotion.com/books/software/page/pmc-programming
  • This is a software PLC.
  • PMC commonly enforces safety interlocks.
  • Example: criteria must be true before an output turns on.