Macro B Fundamentals
Write real Fanuc macros in your browser, from your first variable to a probing routine that writes its own work offset. Nine lessons, each one graded against the same engine the Macro Playground runs.
- Variables & AssignmentStore a number in a variable and use it in another expression.
- Arithmetic & FunctionsDo trigonometry in a macro and know that Fanuc works in degrees.
- Reading Machine StateRead the control's own registers — work offsets and live position — into your own variables.
- Loops & DecisionsRepeat work with WHILE/DO instead of copying blocks.
- The Bolt CirclePut variables, trig and loops together into a real parametric program.
- Writing Back: Touch OffWrite a work offset from a probe result — the pattern behind every probing routine.
- Arguments & G65Read the values a G65 call passes in, and know which letter lands in which variable.
- Alarms & GuardsStop the machine deliberately when a measurement is out of tolerance.
- Named System VariablesWrite the same touch-off with 30i names instead of numbers.
Progress is kept in this browser only — no account, nothing to sign up for.