Checking the states of axis compensation in the NC program

V.A variables

The following V.A. variables can be used to check from the NC program whether a compensation programmable via the COMP command is initialised or already active for a specific axis.

Initialisation check

V.A.Compensation name_INIT[Achsindex] or

V.A.Compensation name_INIT.Achsname

Activation check

V.A.Compensation name_ACTIVE[Achsindex] or

V.A.Compensation name_ACTIVE.Achsname

The following identifiers are available for compensation name.

CROSS_COMP for cross compensation

PLANE_COMP for plane compensation

LEAD_COMP for leadscrew error compensation

TEMP_COMP for temperature compensation

Programing Example

prg_example

Check the states of the axis compensation

N010 G74 X1 Y2 Z3

N020 $IF V.A.CROSS_COMP_INIT.X != TRUE

N030 #MSG ["Cross_Comp for X not init."]

N040 $ENDIF

N050 $IF V.A.TEMP_COMP_INIT.X != TRUE

N060 #MSG ["Temp_Comp for X not init."]

N070 $ENDIF

N080 X [ COMP ON CROSS TEMP ]

N090 $IF V.A.CROSS_COMP_ACTIVE[0] != TRUE

N100 #MSG ["Cross_Comp for X not active"]

N110 $ENDIF

N120 $IF V.A.TEMP_COMP_ACTIVE[0] != TRUE

N130 #MSG ["Temp_Comp for X not active"]

N140 $ENDIF  

N150 ...