Named System Variables

Write the same touch-off with 30i names instead of numbers.

On a 30i-family control every system variable also has a name. [#_WZG54[3]] is the same box as #5223 — but it says what it means, and it doesn't move when the offset count changes. This is lesson 6 again, in the modern dialect.

Read firstFanuc System VariablesComplete Fanuc CNC system variable reference with read/write flags: macro arguments, tool offsets, work offsets, live positions, skip/probe results, modal codes, timers, and alarms — plus worked read/write examples.

Your turn

Repeat the touch-off from lesson 6, but use the named forms: [#_WZG54[3]] for the G54 Z origin and [#_ABSKP[3]] for the skip position. Both take an axis index, where 3 is Z.

The machine gives you

probe trips 2.5 mm below zero:#5223 = -310#5063 = -2.5
probe trips 1 mm high:#5223 = -100#5063 = 1

Your program is run once for each set of conditions. It has to work for all of them.

Loading...

This is a learning simulation — always prove out a program on the actual control before you cut metal.