·342·
Programming manual
CNC 8055
CNC 8055i
13.
HIGH-LEVEL LANGUAGE PROGRAMMING
·M· & ·EN· MODELS
SOFT: V02.2X
Variables
13.2.2 Variables associated with tools.
These variables are associated with the tool offset table, tool table and tool magazine table, so the
values which are assigned to or read from these fields will comply with the formats established for
these tables.
Tool Offset table
The radius (R), length (L) and wear offset (I, K) values of the tool are given in the active units.
If G70, in inches (within ±3937.00787).
If G71, in millimeters (within ±99999.9999).
If rotary axis in degrees (within ±99999.9999).
Tool table
The tool offset number is an integer between 0 and 255. The maximum number of tool offsets is
limited by g.m.p. NTOFFSET.
The family code is a number between 0 and 255.
0 to 199 if it is a normal tool.
200 to 255 if it is a special tool.
The nominal life is given either in minutes or in operations (0··65535).
The real (actual) life is given either in hundredths of a minute (0··9999999) or in operations
(0··999999).
Tool magazine table
Each magazine position is represented as follows:
1··255 Tool number.
0 The magazine position is empty.
-1 The magazine position has been canceled.
The tool position in the magazine is represented as follows:
1.- Position number.
0 The tool is in the spindle.
-1 Tool not found
-2 The tool is in the change position.
Read-only variables
TOOL
Returns the number of the active tool.
TOD
Returns the number of the active tool offset.
NXTOOL
Returns the next tool number, which is selected but is awaiting the execution of M06 to be active.
NXTOD
Returns the number of the tool offset corresponding to the next tool, which is selected but is awaiting
the execution of M06 to be active.
TMZPn
Returns the position occupied in the tool magazine by the indicated tool (n).
(P100=TOOL)
Assigns the number of the active tool to parameter P100.