Zappettini Consulting
Home
About
Services
Our ProcessWikiLearn
Offerings
SchoolsCNC MerchCritLink
Schedule a Call
Learn→Fanuc

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.

Start the track
  1. 1Variables & AssignmentStore a number in a variable and use it in another expression.
  2. 2Arithmetic & FunctionsDo trigonometry in a macro and know that Fanuc works in degrees.
  3. 3Reading Machine StateRead the control's own registers — work offsets and live position — into your own variables.
  4. 4Loops & DecisionsRepeat work with WHILE/DO instead of copying blocks.
  5. 5The Bolt CirclePut variables, trig and loops together into a real parametric program.
  6. 6Writing Back: Touch OffWrite a work offset from a probe result — the pattern behind every probing routine.
  7. 7Arguments & G65Read the values a G65 call passes in, and know which letter lands in which variable.
  8. 8Alarms & GuardsStop the machine deliberately when a measurement is out of tolerance.
  9. 9Named 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.

Zappettini Consulting

Company

HomeOur ProcessContactAbout

Services

CNC Turnkey - Concept to CuttingCAM - parts, fixtures, assembliesTraining - CAD/CAM/Machine

Resources

WikiLearn CNC MacrosMacro PlaygroundStandard OfferingsSchools & EducationITAR ComplianceCNC Merch

Help and Support

contact@zappettiniconsulting.com+1 (480) 334-0806

Follow Us

InstagramLinkedIn

Copyright © 2026 Zappettini Consulting - All Rights Reserved.

ITAR Registered