User data of tool identification

With the definition of pTProcess from the previous section and the definition

pHLIToolId: POINTER TO HLI_TOOL_ID gilt:

pHLIToolId := ADR(pTProcess^.id);

and is used as shown in the table below.

Number of the tool to be replaced

Description

Number of the tool to be replaced

ST element

.basic

Data type

DINT

Access

ToChangeToolNum : DINT;

ToChangeToolNum := pHLIToolId^.basic;

Number of a sister tool

Description

Number of an identical sister tool

ST element

.sister

Data type

DINT

Access

SisterToolNum     : DINT;

SisterToolNum := pHLIToolId^.sister;

Number of a variant tool

Description

Number of a similar variant tool

ST element

.variant

Data type

DINT

Access

VariantToolNum: DINT;

VariantToolNum:= pHLIToolId^.variant;

Sister tool valid

Description

Validity identifier for the sister tool.

ST element

.sister_valid

Data type

BOOL

Access

SisterToolValid     : BOOL;

SisterToolValid := pHLIToolId^.sister_valid;

Variant tool valid

Description

Validity identifier for the variant tool.

ST element

.variant_valid

Data type

BOOL

Access

VariantToolValid     : BOOL;

SisterToolValid := pHLIToolId^.variant_valid;