Access to tool data in the NC program (V.G.WZ..)

V.G.WZ[j]... 

The "V.G.WZ[j]" variables enable Read access to the data of any tool in the external tool management (transparent access; j corresponds to the tool number).

V.G.WZ[j].R

Radius of the tool

R

V.G.WZ[j].L

Length of the tool

R

V.G.WZ[j].P[i]

Parameter of the tool

R

V.G.WZ[j].V[i]

Axis offsets of the tool

R

V.G.WZ[j].ME

Dimension unit of the tool data

R

V.G.WZ[j].OK

Valid flag of the tool

R

V.G.WZ[j].SPDL_AX_NR

Logical axis number of the assigned spindle

R

V.G.WZ[j].KIN_PARAM[i]

Kinematics parameters of the tool

R

V.G.WZ[j].KIN_ID

Kinematics ID of the tool

R

V.G.WZ[j].TYPE

Tool type

R

V.G.WZ[j].SRK_ID

Cutting position in the case of a turning tool

R

V.G.WZ[j].S_MIN_SPEED

Minimum speed (Tool dynamic data)

R

V.G.WZ[j].S_MAX_SPEED

Maximum speed (Tool dynamic data)

R

V.G.WZ[j].S_MAX_ACC

Maximum acceleration (Tool dynamic data)

R

V.G.WZ[j].SISTER_VALID

Valid flag of the sister tool (TOOL-ID)

R

V.G.WZ[j].SISTER

Number of the valid sister tool

R

V.G.WZ[j].VARIANT_VALID

Valid flag of the variant tool (TOOL-ID)

R

V.G.WZ[j].VARIANT

Number of the valid variant tool

R

V.G.WZ_AKT... 

The "WZ_AKT" variables as well as "T_AKT" and "D_AKT" enable access to data of the currently selected tool.

V.G.T_AKT

Number of the selected tool

R

V.G.D_AKT

Number of the selected tool record

R

Access to tool data in the NC program (V.G.WZ..) 1:

Write access results in temporary modification of the tool's data, if it is selected. The modified data is lost when a new tool is selected (Dxx) or when the tool is cancelled (D0).ExceptionWhen external tool management is used, the so-called additional tool parameters (V.G.WZ_AKT.P[i]) are accepted and saved when a new tool is selected or when a tool is cancelled.

V.G.WZ_AKT.R

Radius of the selected tool

R/W

V.G.WZ_AKT.L

Length of the selected tool

R/W

V.G.WZ_AKT.P[i]

Parameters of the selected tool

R/W

V.G.WZ_AKT.V[i]

Axis offset of the selected tool

R/W

V.G.WZ_AKT.ME

Unit of measure of the selected tool

R

V.G.WZ_AKT.OK

Valid flag of the selected tool

R

V.G.WZ_AKT.SPDL_AX_NR

Logical axis number of the assigned spindle

R

V.G.WZ_AKT.KIN_PARAM[i]

Kinematics parameters of the selected tool; note on write access: the value must be programmed in internal units!

R/W

V.G.WZ_AKT.KIN_ID

Kinematics ID of the selected tool

R

V.G.WZ_AKT.TYPE

Tool type of the selected tool

R

V.G.WZ_AKT.SRK_ID

Cutting position of the selected turning tool

R

V.G.WZ_AKT.S_MIN_SPEED

Minimum speed (Tool dynamic data)

R

V.G.WZ_AKT.S_MAX_SPEED

Maximum speed (Tool dynamic data)

R

V.G.WZ_AKT.S_MAX_ACC

Maximum acceleration (Tool dynamic data)

R

V.G.WZ_AKT.SISTER_VALID

Valid flag of the sister tool (TOOL-ID)

R

V.G.WZ_AKT.SISTER

Number of the valid sister tool

R

V.G.WZ_AKT.VARIANT_VALID

Valid flag of the variant tool (TOOL-ID)

R

V.G.WZ_AKT.VARIANT

Number of the valid variant tool

R

V.G.WZ_AKT.WEAR_RADIUS

Radius wear at radius compensation (OTC)

R

V.G.WZ_AKT.WEAR[i]

Wear in axis <i> at length compensation (OTC)

R

V.G.WZ_AKT.WEAR_CONST

Wear constant (OTC)

R/W

As an alternative to V.G.WZ_AKT.P[i], the following variable can also be used to access the additional tool parameters. It is available only when using external tool management:

V.G.WZ_INFO[i]

Programming example NC program with tool requesting

In the following example, various tools are inserted by the CNC and the data is requested from the external tool management. The request always contains the tool parameters of the tool that was last active for return transfer of updated values to the PLC.

%ext_wzv.nc
N10 X0 Y0 G91 G01 F1000
N20 T0 D0       (report back last parameters of
T<?>&D<?>)
        (with request D0)
N30 T1 D1       (report back last parameters of T0&D0)
        (with request D1)
N32 V.G.WZ_AKT.P[0] = 123
N40 T2
N50 T3
N60 T4
N70 D2      (report back last parameters of T1&D1)
        (with request D2)
N080 V.G.WZ_AKT.P[0] = 1
N090 V.G.WZ_AKT.P[1] = 2
N100 V.G.WZ_AKT.P[2] = 3
M30