N4: Own channel - only 840D sl
9.5 Rotatable tool
Extended Functions
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
587
Example: Linear interpolation
The punching/nibbling machine has a rotatable punch and die with separate drives.
Programming example:
Program code Comment
:
:
N2 TANG (C, X, Y, 1, "B") ; Definition of leading and following axes,
; C is the slave axis for X and Y in the
; basic coordinate system
N5 G0 X10 Y5 ; Start position
N8 TRAILON (C1, C, 1) ; Activate coupled motion of rotatable
; tool axes C/C1
N10 Y10 C225 PON F60 ; C/C1 axis rotates to 225° → stroke
N15 X20 Y20 C45 ; C/C1 axis rotates to 45° → stroke
N20 X50 Y20 C90 SPOF ; C/C1 axis rotates to 90°, no
; stroke initiation
N25 X80 Y20 SPP=10 SON ; Path segmentation: four strokes are performed
; with tool rotated to 90°
N30 X60 Y40 SPOF ; Positioning
N32 TANGON (C, 180) ; Activate tangential control,
; offset angle of rotatable tool axes 180°
N35 X30 Y70 SPN=3 PON ; Path segmentation, three strokes for active
; tangential control and an
; offset angle of 180°
N40 G91 C45 X-10 Y-10 ; C/C1 rotates to 225° (180° + 45° INC),
; Tangential control deactivated because no
; path segmentation → stroke
N42 TANGON (C, 0) ; Tangential control without offset
N45 G90 Y30 SPN=3 SON ; Path segmentation, three strokes for active
; Tangential control without offset angle
N50 SPOF TANGOF ; Deactivate stroke initiation +
; Tangential control
N55 TRAILOF (C1, C) ; Activate coupled motion of rotatable
; tool axes C/C1
N60 M2