Macro library

Русский

Macro library

This library contains practical CNC macros for daily work on milling and turning machines. Macros help reduce repetitive code and let you run one reusable cycle with different parameters.

Most examples are built around custom macro calls and are intended to be tested first with a standard call format like G65 P... before assigning custom G-code or M-code numbers.

How to use this library

  1. Open the required section and review the cycle logic.
  2. Check the source .nc file and call parameters.
  3. Test the macro in a safe setup, then move to production code.

[!WARNING] Before writing or changing controller parameters, create a backup of current machine settings.

Macros

  1. Measurement with BLUM for milling - probing and tool/workpiece measurement cycles for milling operations.
  2. Measurement with RENISHAW - turning measurement workflow with RENISHAW probing.
  3. Floor facing cycle - reusable macro cycle for facing operations.
  4. Threading - macro-based threading routine.
  5. Drilling - deep drilling cycle with configurable parameters.
  6. Spindle Warming Up - spindle warm-up programs for safer machine startup.
  7. Clearing variables - quick reset of macro variables before a new setup.
  8. Defer macro call - delayed macro call pattern for staged execution.
  9. Setting up custom G-code and M-code - start here to configure custom codes on the control.