Installation manual
CNC 8035
ACCESS TO INTERNAL CNC VARIABLES
Other variables
11.
(SOFT M: V15.3X)
(S
OFT T: V16.3X)
·389·
11.12 Other variables
Read-only variables
NBTOOL
Indicates the tool number being managed. This variable can only be used within the tool change
subroutine.
Example: There is a manual tool changer. Tool T1 is currently selected and the operator requests
tool T5.
The subroutine associated with the tools may contain the following instructions:
(P103 = NBTOOL)
(MSG "SELECT T?P103 AND PRESS CYCLE START")
Instruction (P103 = NBTOOL) assigns the number of the tool currently being managed to parameter
P103. Therefore, P103=5.
The message displayed by the CNC will be ""SELECT T5 AND PRESS CYCLE START".
Note: The NBTOOL variable is refreshed in all simulations including those where T functions are
not executed. In other words, it may not correspond with the active tool (TOOL).
PRGN
Returns the program number being executed. Should none be selected, a value of -1 is returned.
BLKN
It returns the label number of the last executed block.
GGSA
It returns the status of functions G00 through G24. The status of each one of the functions will be
given in the 25 least significant bits and it will be indicated by a 1 when active and a 0 when not active
or when not available in the current software version.
GGSB
It returns the status of functions G25 through G49. The status of each one of the functions will be
given in the 25 least significant bits and it will be indicated by a 1 when active and a 0 when not active
or when not available in the current software version.
GGSC
It returns the status of functions G50 through G74. The status of each one of the functions will be
given in the 25 least significant bits and it will be indicated by a 1 when active and a 0 when not active
or when not available in the current software version.
G24 G23 G22 G21 G20 ... G04 G03 G02 G01 G00
CNCRD (GGSA, R110, M10)
Loads register R110 with the status of functions G00 through G24.
G49 G48 G47 G46 G45 ... G29 G28 G27 G26 G25
G74 G73 G72 G71 G70 ... G54 G53 G52 G51 G50