W4: Grinding-specific tool offset and tool monitoring
17.2 Online tool offset
Extended Functions
822 Function Manual, 03/2013, 6FC5397-1BP40-3BA1
Main machining program in channel 1
Program code Comment
...
G1 G19 F10 G90 ; Basic position
T1 D1 ; Select current tool
S100 M3 Y100 ; Spindle On, traverse to
; Starting position
FTOCON ; Activate online offset
INIT (2, "/_N_MPF_DIR/_N_ABRICHT_MPF", "S") ; Select program
; in channel 2
START (2) ; Starting the program
; in channel 2
Y200 ; Travel to target position
...
M30
Dressing program in channel 2_N_ABRICHT_MPF
Program code Comment
...
FCTDEF (1, -1000, 1000, -$AA_IW[V], 1) ; Function definition
PUTFTOCF (1, $AA_IW[V], 2, 1) ; Write online tool offset
; Continuous
U-0.05 G1 F0.01 G91 ; Infeed movement to dress wheel
...
M30
Note
Axis V operates (dresses) in parallel to Y, i.e. length 2 acts in Y and must therefore be
compensated.