Oscillation
11.1 Asynchronous oscillation (OS, OSP1, OSP2, OST1, OST2, OSCTRL, OSNSC, OSE, OSB)
Job planning
636 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Examples
Example 1: Oscillating axis to oscillate between two reversal points
Oscillating axis Z is to oscillate between position 10 and 100. Reversal point 1 is to be
approached with exact stop fine, reversal point 2 with exact stop coarse. The feedrate for the
oscillating axis must be 250. 3 sparking-out strokes must be executed at the end of the
machining operation and the oscillating must approach end position 200. The feedrate for
the infeed axis must be 1 and the end of infeed in the X direction should be reached at
position 15.
Program code Comments
WAITP(X,Y,Z) ; Starting position.
G0 X100 Y100 Z100 ; Changeover to positioning axis
operation.
WAITP(X,Z)
OSP1[Z]=10 OSP2[Z]=100 ; Reversal point 1, reversal point 2.
OSE[Z]=200 ; End position.
OST1[Z]=0 OST2[Z]=–1 ;
;
Stopping time at U1: Exact stop fine
Stopping time at U2: Exact stop coarse
FA[Z]=250 FA[X]=1 ; Feedrate for oscillating axis, feedrate
for infeed axis.
OSCTRL[Z]=(4,0) ; Setting options.
OSNSC[Z]=3 ; 3 sparking-out strokes.
OS[Z]=1 ; Start oscillation.
WHEN $A_IN[3]==TRUE DO DELDTG(X) ; Deletion of distance-to-go.
POS[X]=15 ; Starting position X axis.
POS[X]=50 End position X axis.
OS[Z]=0 ; Stop oscillation.
M30
Note
The
OSP1[Z]=... to OSNCS[Z]=... command sequence can also be programmed in a block.