# Programming (#OTC ON/OFF)

The following NC command is provided to program online tool compensation in the NC program. Parametrisation can be programmed in advance or in combination with #OTC ON:

#OTC ON | OFF [ [ RADIUS | LENGTH | TOOL_DIR | SURF_NORM_DIR DISC | CONT | AUTO WEAR_CONST=.. | WEAR_CONST_TOOL ACC_WEIGHT=.. ] ]

RADIUS | Radius compensation processing type
LENGTH | Length compensation processing type (default)
TOOL_DIR | Compensation in tool direction (5-axis) processing type
SURF_NORM_DIR | Compensation in direction of surface normal (5-axis) processing type
DISC | Discrete mode: input only via PLC, external presetting
CONT | Continuous mode: Presetting values only by calculating the motion path traversed and the wear constant, internal calculation
AUTO | Automatic mode: Adding the external presetting and internal calculation (default)
WEAR_CONST=.. | User-specific definition of wear constant; it acts modally, this means that with #OTC ON the programmed wear constant is used and not the default wear constant defined in the current tool data. Defining the valid wear constant is optional. Unit: 0.1 µm/m
WEAR_CONST_TOOL | Switch to the default wear constant defined in the current tool data; it acts modally, this means that with #OTC ON the default wear constant (default) defined in the current tool data is used and not the user-specific definition of the wear constant.
ACC_WEIGHT=.. | Acceleration weighting in percent [1;100], default: 100%

## Notice

When OTC is deselected with #OTC OFF, the amount of wear (discrete and/or continuous) is included in the calculation for the current tool.