Programming commands and variables

The tool ID is programmed with plain text commands. A request for new tool data with #TOOL DATA corresponds to the D command; the preparatory technology command for physical tool change with #TOOL PREP corresponds to the T command.

#TOOL DATA [<basic> [, <sister> [, <variant> ] ] ] (Request new tool data)

#TOOL PREP [<basic> [, <sister> [, <variant> ] ] ]            (Announce a tool change)

The number of parameters is fixed [6]-9.18. Expedient values are between 1 and 3. If two parameters are expected, they are the base tool number and the alternate tool number.

The base tool number must absolutely be specified (basic). In addition, it the number of parameters is assigned the value 3, sister can be programmed for the alternate tool number and optionally variant for the modification. If sister or variant are not programmed (a comma follows a comma or a closing bracket follows a closing bracket), zero is inserted instead.

Programing Example


Programming commands and variables with ‘sister’ and ‘variant’

#TOOL DATA [ P10, “SISTER“, 0 ] < = > #TOOL DATA [ P10, “SISTER“, ]


#TOOL PREP [P10, 0, “VARIANT“]  < = > #TOOL PREP [P10, , “VARIANT“]

The mathematical expressions used to specify the D and T commands are to be interpreted as a base tool number. Therefore, the tool management function retains the same degree of freedom as before to select the tool data record.

T<basic> or D<basic>

Decoder variables are used to implement access to the elements of tool identification. The current software version already provides the option to interrogate the number of the last tool requested from the external tool management function via V.G.T_AKT. For compatibility reasons, this variable is retained. In parallel to the new syntax introduced below, it always represents the base tool number.

V.TOOL.BASIC              (Read access to the last base tool number programmed

V.TOOL.SISTER            (Read access to the last alternate tool number programmed)

V.TOOL.VARIANT         (Read access to the last modification number programmed)

Programing Example


Programming commands and variables with ‘sister’

#TOOL DATA [ P10, “SISTER“, 3 ]