Oscillation (P5)Asynchronous oscillationExtended FunctionsFunction Manual, 03/2009, 6FC5397-1BP10-4BA0 839NC languageThe NC programming language allows asynchronous oscillation to be controlled from thepart program. The following functions allow asynchronous oscillation to be activated andcontrolled as a function of NC program execution.NoteIf the setting data are directly written in the part program, then the data change takes effectprematurely with respect to processing of the part program (at the preprocessing time). It ispossible to re-synchronize the part program and the oscillation function commands bymeans of a preprocessing stop (STOPRE).References:/PA/ Programming Manual1) Activate, deactivate oscillation:● OS[oscillation axis] = 1; Activate oscillation for oscillation axis● OS[oscillation axis] = 0; Deactivate oscillation for oscillation axisNoteEvery axis may be used as an oscillation axis.2) End of oscillation:● WAITP(oscillation axis)Positioning axis command – stops block until oscillation axis is at fine stop andsynchronizes preprocessing and main run. The oscillation axis is entered as positioningaxis again and can then be used normally.If an axis is to be used for oscillation, it must be released with a WAITP(axis) commandbeforehand.This also applies if oscillation is initiated from the PLC/HMI. In this case, the WAITP(axis)call is also needed if the axis was programmed beforehand via the NC program. With SWversion 3.2 and higher it is possible to select via machine data $MA_AUTO_GET_TYPE,whether WAITP() shall be performed with programming or automatically.NoteWAITP effectively implements a time delay until the oscillation movement has beenexecuted. Termination of the movement can be initiated, for example, through aprogrammed deactivation command in the NC program or via the PLC or HMI by meansof deletion of distance-to-go.3) Setting reversal points:● OSP1[oscillation axis] = position of reversal point 1● OSP2[oscillation axis] = position of reversal point 2A position is entered into the appropriate setting data in synchronism with the block in themain run and thus remains effective until the setting data is next changed.If incremental traversal is active, then the position is calculated incrementally to the lastappropriate reversal point programmed in the NC program.