Let’s combine several system variables into a . This uses a PDF lookup for position and offset variables.
| Variable | Description | |----------|-------------| | #4001 | G00/G01 | | #4002 | G02/G03 | | #4003 | G90/G91 | | #4004 | G17/G18/G19 | | #4006 | G20/G21 | | #4007 | G40/G41/G42 | | #4008 | G43/G44/G49 | | #4009 | G73/G76/G80 etc. (canned cycle) | | #4010 | G98/G99 | | #4014 | G54–G59 | | #4015 | G61–G64 | | #4109 | Current feedrate (F) | | #4111 | Current spindle speed (S) | | #4114 | Current tool number (T) | | #4115 | Current tool offset number (H/D) | fanuc macro system variables list pdf
| Variable | Syntax | Description | |----------|--------|-------------| | #3000 | #3000 = n (message) | User alarm (n = 0–999) with optional message up to 26 chars. Stops program. | | #3006 | #3006 = n (message) | Operator message (non‑stop, press cycle start to continue). | Let’s combine several system variables into a
Used within a specific macro program for temporary data. They are cleared when the power is turned off or when the macro ends. Common Variables (#100–#199 and #500–#999): Shared across all macro programs. #100–#199: Volatile; cleared at power-off. #500–#999: Non-volatile; retained after power-off. System Variables (#1000+): Used to access and modify machine-specific data. CNC Cookbook Key System Variables List (canned cycle) | | #4010 | G98/G99 |
For a comprehensive list of FANUC macro system variables, the most detailed "proper paper" and reference guides are the official FANUC Custom Macro B