Saving tool data

Tool parameters

In the NC program it is possible to permanently modify certain information for the current tool, i.e. to save it beyond tool cancellation.

This is done with the aid of the so-called additional tool parameters (V.G.WZ_AKT.P[i]). Here, wear data, for example, of the currently active tool can be stored during the program run time. This data is then written back to the external tool management on selection of a new tool record (Dxx) or on tool cancellation (D0), where it is then processed further or stored.

If an active tool is not cancelled by the end of the program, and in the event of corresponding channel-specific parameter definition (P-CHAN-00103), when the program is started the next time it is possible to implicitly write the data of this tool used last back to the external tool management.

T/D number

When a tool record is selected, the T and D numbers of the tool used last are transferred back to the external tool management.

Programming example: NC program with tool requesting

In the following example, diverse items of tool data (life quantities and tool parameters) are written by the CNC and returned to the external tool management.

%ext_wzv.nc
N10 X0 Y0 G91 G01 F1000
(Enter wear for T1/D1)
V.G.WZ_AKT.P[0] = 123
V.G.WZ_AKT.P[1] = 234
N40 T22 D22
N31 T2 (-> T2-Info)
N32 D2 (-> then D2 request)
N33 D3 T3 (-> first D3 request and the T3 info)
N35 X11
N40 #TOOL DATA [4, 1] (D geometry in extended syntax)
(request)
N50 #TOOL PREP [4] (request T in extended syntax)
N55 X22
(Use application-specific tool parameters)
G90 XV.G.WZ[3].P[0]
G91
N130 X100
N140 X200
N150 T22
N160 D33
N170 X-100
N180 D0 (Cancellation of the tool geometry)
M30