Selecting/deselecting axis compensations in the NC program (COMP)

Release Note

release_note

This function is available as of CNC Build V2.10.1501.00.

The various axis compensations [FCT-C5] can also be selected and deselected directly in the NC program in addition to the option of using the corresponding axis parameters. Axis-specific axis compensations for several axes in an NC block can be activated or deactivated simultaneously.

Notice

notice

Axis compensations switched off by the COMP command has a global NC program effect, i.e. compensations are not automatically activated at program end. They must be switched back on explicitly using the COMP command in the subsequent NC program.

Syntax:

<axis_name> [ COMP [ [ ON | OFF [ BACKLASH CROSS PLANE LEAD TEMP FRICT CROSSTALK] ] | OFF_ALL ]

                        [ NO_MOVE ] { \ } ]

<axis_name>

Name of the axis

COMP

Identifier to select/deselect axis-specific compensation. Must always be programmed as the first keyword.

ON

Activates programmed compensation(s)

OFF

Deactivates programmed compensation(s)

BACKLASH

Keyword for backlash compensation [as of Build V3.1.3081.05

CROSS

Keyword for cross compensation

PLANE

Keyword for plane compensation

LEAD

Keyword for spindle leadscrew error compensation

TEMP

Keyword for temperature compensation

FRICT

Keyword for friction compensation [as of Build V2.11.2022.05]

CROSSTALK

Keyword for crosstalk compensation [as of Build V3.1.3079.32]

OFF_ALL

Switch off all active compensations. No further compensation keywords may be programmed after the keyword.

NO_MOVE

By default the position offset occurring when axis compensations are switched on/off is executed before NC program processing is continued. The keyword NO_MOVE suppresses this motion. The channel is initialised with the changed axis position. The position offset is only executed at the next axis motion programmed in the NC program.

\

Separator ("backslash") for clear programming of the command over multiple lines.

Programing Example

prg_example

Axis-specific programming

;Deactivate cross and plane compensation in the X axis

N10 X[COMP OFF CROSS PLANE

;Compensation programming of multiple axes in an NC block

N50 X[COMP OFF CROSS] Y[COMP ON LEAD TEMP]

;Deactivate all compensations in the Z axis

N100 Z[COMP OFF_ALL]

;Deactivate all compensations of the Y axis without axis motion

N200 Y[COMP OFF_ALL NO_MOVE]