Detailed Description 
  2.6 Referencing with absolute value encoders 
Reference Point Approach (R1) 
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0 
2-35 
Part program 
The part program for automatic adjustment of absolute encoders with probe must perform 
the points listed below for each axis in the order indicated: 
1.  Approach the adjustment position of machine axis, which is detected from the probe 
response. 
The position must be approached several times from the same direction, but at a velocity 
which is gradually reduced on each approach, to ensure that the measured value 
obtained is as accurate as possible. The measured value is stored in system variable 
$AA_IM. 
2.  Calculate and write the reference point offset to machine data: 
MD34090 $MA_REFP_MOVE_DIST_CORR = MD34100 $MA_REFP_SET_POS – 
$AA_IM 
3.  Set the absolute encoder status to "Encoder is adjusted": 
MD34210 $MA_ ENC_REFP_STATE = 2 
Sequence 
Proceed as follows for automatic adjustment with probe: 
1.  Enable part program start even for non-referenced machine axes: 
MD20700 $MC_REFP_NC_START_LOCK = 0 
2.  Enter the machine axis position relative to machine zero when probe is switched as the 
reference point value for all relevant machine axes: 
MD34100 $MA_REFP_SET_POS = reference point value 
3.  Initiate NC-RESET to transfer the entered machine data values. 
4.  Start part program. 
5.  Disable part program start again for non-referenced machine axes: 
MD20700 $MC_REFP_NC_START_LOCK = 1 
6.  Initiate POWER ON - Reset so that the reference point offset written by the part program 
is permanently active: 
MD34090 $MA_REFP_MOVE_DIST_CORR (reference point offset)