·530·
Installation manual
CNC 8055
CNC 8055i
13.
ACCESS TO INTERNAL CNC VARIABLES
SOFT: V02.2X
Variables associated with tools.
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
Variables TOOL, NXTOOL, TOD and NXTOD can only be written from the PLC while no block or
part-program is being executed or simulated.
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).
PTOOL
Returns the magazine position to where the current tool is to be left. It matches the value that will
be received later on in the register "T2BCD" (R559) with the M6, but the latter will be in BCD format.
This variable is only accessible via the CNC.
PNXTOOL
Returns the magazine position from where the next tool is to be picked up. It matches the value that
will be received later on in the register "TBCD" (R558) with the M6, but the latter will be in BCD format.
This variable is only accessible via the CNC.
Read-and-write variables
TLFDn
This variable allows the tool offset number of the indicated tool (n) to be read or modified in the tool
table.
CNCRD (TOOL, R100, M100)
Assigns the number of the active tool to register R100.