·380·
Programming manual
CNC 8055
CNC 8055i
13.
HIGH-LEVEL LANGUAGE PROGRAMMING
·M· & ·EN· MODELS
SOFT: V02.2X
Variables
13.2.20 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:
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".
PRGN
Returns the program number being executed. If none is 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 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.
(P103 = NBTOOL)
(MSG "SELECT T?P103 AND PRESS CYCLE START")
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