# Monitoring of effectiveness of axis compensations in automatic mode

Some axis compensations must fulfil certain preconditions before they can be active. To ensure that the selected axis compensations are operative in automatic mode, the required compensations for processing the NC program can be specified bit-encoded in the parameter 'lr_param.prog_movement_requires_compensations’ (see P-AXIS-00465).

The CNC then outputs the error message P-ERR-70435 if the axis is moved in automatic mode and the specified axis compensations are not active. However, in manual mode or during homing [FCT-M1//Description], the axis can be moved without compensations.

For example, this monitoring function may be practical to prevent the production of an inaccurate workpiece if there are errors in the compensation table.

## Prerequisites

The following conditions exist for the effectiveness of axis compensations:

1. The compensation table may contain no errors, see [COMP].
2. The axis must be referenced for spindle leadscrew error compensation and temperature compensation.
3. The master axes must be referenced for cross and plane compensation..
4. The drive releases must be set for cross and plane compensation before NC program start.

## Activating the monitoring function in the axis parameter list

Variable name | Type | Meaning
lr_param.prog_movement_requires_compensations | UNS32 | Bit-encoded specification of the required compensations

## Notice

The CNC only generates error messages for compensations which are also enabled in the axis parameter list.

## Bit encoding

The table below contains the bit encoding for axis compensations. The bit identifier can also be used to specify the required compensations:

Bit | Identifier | Axis compensation
0x1 | BACKLASH | Backlash compensation
0x2 | LEAD | Leadscrew error compensation
0x4 | TEMP | Temperature compensation
0x8 | CROSS | Cross compensation
0x10 | PLANE | Plane compensation

## Example

Monitoring the effectiveness of axis compensations in automatic mode

The following entry is required in the axis parameter list to monitor spindle leadscrew error compensation and cross compensation:

lr_param.prog_movement_requires_compensations LEAD | CROSS

The two compensations must be selected so that the CNC outputs an error message in automatic mode when the conditions are no longer met.

lr_param.ssfk 1

lr_param.crosscomp 1