Siemens SINUMERIK 828D Function Manual page 50

Synchronized actions
Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Detailed description
2.3 System variables for synchronized actions
Activate online tool length compensation in the part program:
Program code
N5 DEF REAL XOFFSET
; Activate orientation transformation
N10 TRAORI
; Activate tool length compensation in the Z direction
N20 TOFFON(Z)
; Tool length compensation in the Z direction: 10 mm
N30 WHEN TRUE DO $AA_TOFF[Z] = 10
G4 F5
...
; Static synchronized action: Tool length compensation in the X direction
; corresponds to the position of the X2 axis in the WCS
N50 ID=1 DO $AA_TOFF[X] = $AA_IW[X2]
G4 F5
...
; Note: Current total tool length compensation in the X direction
N100 XOFFSET = $AA_TOFF_VAL[X]
; Retract the tool length compensation in the X direction to 0
N120 TOFFON(X, -XOFFSET)
G4 F5
Deselecting the online tool length compensation
Program code
; Activate orientation transformation
N10 TRAORI
; Activate tool length compensation in the X direction
N20 TOFFON(X)
; Tool length compensation in the X direction: 10 mm
N30 WHEN TRUE DO $AA_TOFF[X] = 10
G4 F5
...
; Delete tool length compensation in the X direction
; No axis is traversed. To the current position in the WCS,
; the position offset in accordance with the current orientation
; is added.
N80 TOFFOF(X)
N90 TRAFOOF
50
Function Manual, 07/2012, 6FC5397-5BP40-3BA0
Synchronized actions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d slSinumerik 840de sl

Table of Contents