Macro Playground
Interactive Fanuc Macro B IDE — write, run, and debug G-code macros in your browser.
Macro Programming
Variable Types
Reference table for CNC macro variable types including null, local, common, global, and system variables with their number ranges.
Argument Variables
Reference guide for CNC macro argument variables covering Argument 1 and Argument 2 styles with letter-to-variable mapping and examples.
Macro Structure
How to write, structure, and call Fanuc Custom Macro B programs including G65, G66, M98, program number ranges, and macro templates.
Macro Arithmetic
Reference for CNC macro arithmetic operations including addition, multiplication, trigonometric functions, and logical operations.
Macro Control Flow
Reference for CNC macro control flow including conditional branches, conditional execution, and iteration loops.
Alarms & Timers
Fanuc macro alarm generation with #3000, operator messages with #3006, millisecond timers #3001/#3002, and date/time variables #3011/#3012.
Feed Hold & Auto Mode
Reference for Fanuc system variables #3003 and #3004 controlling Single Block, Feed Hold, Feed Rate Override, and Exact Stop behavior in CNC macros.
External Output / DPRNT
Fanuc DPRNT and BPRNT commands for outputting data from CNC macros to external devices, files, and serial ports.
Parametric Programming
Parametric CNC programming methodology: designing flexible programs with variables for families of parts, reducing setup time, and eliminating redundant programs.
Fanuc
System Variables
Complete reference table of Fanuc CNC system variables including macro arguments, tool offsets, work coordinates, and modal codes.
Parameters
Reference for Fanuc CNC parameters including bit-level parameter guide and common parameter settings.
Tool Offset Variables
Fanuc system variables for reading and writing tool length and diameter offsets including geometry, wear, and offset memory types A, B, and C.
Modal & Position Data
Fanuc system variables for modal G-code groups (#4001-#4120), machine/work position data (#5001-#5086), and work coordinate offsets (#5201-#7944).
Custom G/M Cycles
How to create custom G-code and M-code macros on Fanuc CNC using parameters 6050-6059, program mapping, and argument design.
Renishaw Inspection Plus
Complete reference for Renishaw Inspection Plus probing on Fanuc CNC: cycle inputs, output variables, calibration, protected positioning, and error handling.
Haas
System Variables
Complete reference for Haas CNC system variables including NGC and legacy variable mappings.
Renishaw Inspection Plus
Complete reference for Renishaw Inspection Plus probing on Haas CNC: cycle inputs, output variables, calibration, protected positioning, NGC differences, and error handling.
Brother
System Variables
Reference for Brother CNC system variables including macro call arguments, WCS parameters, and extended WCS offsets.
Blum-Novotest Probing
Complete reference for Blum-Novotest V4B workpiece probing on Brother CNC: cycle types, input parameters, output variables, calibration, protected moves, and error codes.
Okuma Mill
Argument & Local Vars
Guide to Okuma Mill argument and local variable conventions including naming rules, EMPTY checks, and subprogram call examples.
Variable Types
Reference for Okuma Mill variable types including system variables (VS) and common variables (VC).
Renishaw Calibration
Calibration variable reference for Renishaw Inspection Plus probing routines on Okuma Mill CNC controls.
Renishaw Output
Output variable reference for Renishaw Inspection Plus probing routines on Okuma Mill CNC controls using VS and VC variables.