P5: Oscillation - only 840D sl
11.5 Examples
Extended Functions
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
673
Program code Comment
$SA_OSCILL_VELO[ Z ] = 5000 ; Infeed for oscillating axis
$SA_OSCILL_IS_ACTIVE[ Z ] = 1 ; starting
$SA_OSCILL_DWELL_TIME1[ Z ] = -2 ; without wait for exact stop
$SA_OSCILL_DWELL_TIME2[ Z ] = 0 ; wait for fine exact stop
STOPRE
X30 F100
$SA_OSCILL_IS_ACTIVE[ Z ] = 0 ; Stop
WAITP(Z)
M30
Description
When the Z axis starts oscillation, it first approaches the starting position (position = -50 in
the example) and then begins the oscillation motion between the reversal points -10 and 30.
When the X axis has reached its end position 30, the oscillation finishes at the next
approached reversal point.
11.5.4.3 Non-modal oscillation (starting position = reversal point 1)
Oscillation with synchronized actions
Program code Comment
N701 ; Oscillation with synchronized actions,
; start position == reversal point 1
;
N702 OSP1[Z]=10 OSP2[Z]=60 ; explain reversal points 1 and 2
N703 OST1[Z]=0 OST2[Z]=0 ; Reversal point 1: Exact stop coarse
; Reversal point 2: Exact stop fine
N704 FA[Z]=5000 FA[X]=2000 ; Infeed for oscillating axis,
; feedrate for infeed axis
N705 OSCTRL[Z]=(1+8+16.0) ; switch off oscillation motion at
; reversal point 1 after DTG spark-out
; and approach end position
; After DTG, approach relevant
; reversal position
;
N706 OSNSC[Z]=3 ; 3 sparking-out strokes
N707 OSE[Z]=0 ; End position = 0
N708 OSB[Z]=10 ; Start position = 10
N709 WAITP(Z) ; enable oscillation for the Z axis
;