Pro codes · Fanuc

#2001–#2400 / #10001… — Tool offset variables (Fanuc)

Tool offset variables. Tool offsets can be read and written as variables. With memory C and up to 200 offsets: #2001–#2200 length wear, #2201–#2400 length geometry, #2401–#2600 radius wear…

By cnccode · Updated
On this page
  1. What it does
  2. Example
  3. Tips
  4. More: macro and system variables
  5. Frequently asked questions
PropertyValue
Code#2001–#2400 / #10001…
ControlFanuc
TopicMacro and system variables
Syntax#[2200 + H] = geometry · #[2000 + H] = wear (memory C, ≤ 200 offsets)

What it does

Tool offsets can be read and written as variables. With memory C and up to 200 offsets: #2001–#2200 length wear, #2201–#2400 length geometry, #2401–#2600 radius wear, #2601–#2800 radius geometry. Controls with more offsets use #10001 onwards (length wear), #11001 (length geometry), #12001 (radius wear), #13001 (radius geometry). Probing and tool breakage macros use them.

Example

Fanuc
#1 = #[2200 + 5] (H5 GEOMETRY)
#[2000 + 5] = #[2000 + 5] - 0.01 (H5 WEAR -0.01)

Tips

  • Check the offset memory type and count in the manual; Haas uses #2001 and #2201 for length but has its own ranges for radius.

Options, numbers and parameters depend on the control model, the software version and the options the machine builder installed. Check the operator and parameter manual of your machine before you use a code for the first time, and run it in single block with low overrides.

Try it without a machine

The Macro B simulator runs variables, G65 calls, #3000 alarms, G10 and system variables block by block.

Open the Macro B simulator

More: macro and system variables

Frequently asked questions

What is #2001–#2400 / #10001… on Fanuc?
Tool offset variables. Tool offsets can be read and written as variables. With memory C and up to 200 offsets: #2001–#2200 length wear, #2201–#2400 length geometry, #2401–#2600 radius wear, #2601–#2800 radius geometry. Controls with more offsets use #10001 onwards (length wear)…
Was this page helpful?