
Compensation (K3)
11.3 Interpolatory compensation
Turning, Milling, Nibbling
222
Function Manual, 11/2012, 6FC5397-1CP10-5BA0
$AN_CEC_MAX[0] = 360.0
$AN_CEC_IS_MODULO[0] = 1
Note
Table parameters containing position data are automatically converted when the scaling
system is changed (when the setting in the following machine data is altered):
MD10240 SCALING_SYSTEM_IS_METRIC (basic system metric)
The position information is always interpreted in the current measuring system.
Conversion must be implemented externally.
Where the following setting applies:
MD10260 CONVERT_SCALING_SYSTEM = 1 (basic system switchover active),
the scaling system can be configured using the following machine data:
MD32711 CEC_SCALING_SYSTEM (scaling system for sag compensation)
Table example
The following example shows the compensation table for sag compensation of axis Y1.
Depending on the position of the Y1 axis, a compensation value is applied to the X1/Z1 axis.
%_N_NC_CEC_INI
CHANDATA(1)
$AN_CEC [0.0]
=0
; 1. Compensation value (interpolation
point 0)
; for X1: ± 0 µm
$AN_CEC [0.1]
=0.01
; 2. Compensation value (interpolation
point 1)
; for X1: + 10 µm
$AN_CEC [0.2]
=0.012
; 3. Compensation value (interpolation
point 2)
; for X1: + 12 µm
...
$AN_CEC[0.349]
=0
; last compensation value
; (interpolation point 350 for X1: ± 0 µm
$AN_CEC_INPUT_AXIS[0]
=(AX2)
; basic axis Y1
$AN_CEC_OUTPUT_AXIS[0]
=(AX1)
; compensation axis X1
$AN_CEC_STEP[0]
=6.73
; distance between interpolation points
6.73 mm
$AN_CEC_MIN[0]
=-400.0
; compensation starts at
; Y1 = -400 mm
$AN_CEC_MAX[0]
=400.0
; compensation ends at Y1 = +400 mm
$AN_CEC_DIRECTION[0]
=0
; table applies in both
; traversing directions of Y1
$AN_CEC_MULT_BY_TABLE[0] =0
$AN_CEC_IS_MODULO[0]
=0
; compensation without modulo function
$AN_CEC [1.0]
=0
; 1. Compensation value (interpolation