P5: Oscillation - only 840D sl
11.5 Examples
Extended Functions
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
671
Program code Comment
; always, when the distance-to-go of the partial infeed is
; equal to 0,
; then set the marker with index 0 to value 1
WHENEVER $AA_DTEPW[X] == 0 DO $AC_MARKER[0]=1
;
; always, when the flag with index 0 is
; equal to 1,
; then set the axial override of the infeed axis to 0%
; to prevent a new premature infeed
; (oscillation axis has not yet exited the reversal point
range 2,
; but the infeed axis is ready for a
; new infeed)
; and set the axial override of the oscillation axis to 100%
; (this cancels the 2nd synchronized action)
;
WHENEVER $AC_MARKER[0]==1 DO $AA_OVR[X]=0 $AA_OVR[Z]=100
;
OSCILL[Z]=(X)
POSP[X]=(5,1,1)
; Start the axes
; The oscillating axis Z is assigned axis X as
; an infeed axis
; Axis X should travel to end position 5 in
; increments of 1
;
M30
$SSURDFKHQGSRVLWLRQ
$SSURDFKUHYHUVDOSRVLWLRQDQGVSDUNLQJRXWVWURNHV
;D[LV
=D[LV
Figure 11-4 Sequences of oscillation movements and infeed, example 2