Programming
The programming syntax is based on the axis-specific programming of independent axes and M functions [PROG].
After the axis identifier, the parameters of the oscillating motion are defined via keywords and, if applicable, an associated value:
X[<keyword1> <(value1)>, [<keyword2> <(value2) >,..]
The characteristic of the oscillating motion is determined by the locations of the reversing positions and the axis feed rate. The reversing positions can either be specified directly or, as an alternative, are determined automatically via the zero position and the excursion.
As an alternative, the oscillating speed can be determined via the feed rate, the frequency or the period.
If no restriction occurs due to the dynamic characteristic axis quantities, the frequency and the period are kept to exactly when using the linear slope, and approximately when using the non-linear slope.
Characteristics of the keywords that are programmable in the oscillating command:
Key word | Function/meaning | Unit |
---|---|---|
OSC | Identification for oscillating. Must be the first keyword in command sequence. | - |
ON | Oscillation on | - |
OFF | Oscillation off | - |
|
|
|
1ST_POS | First reversal position | [mm] |
1ST_DELT | Waiting time at first reversal position | [s] |
2ND_POS | Second reversal position | [mm] |
2ND_DELT | Waiting time at second reversal position | [s] |
ZERO_POS | Zero point | [mm] |
EXCUR | Excursion | [mm] |
|
|
|
FEED | Feed rate | [mm/min] |
FREQ | Frequency | [Hz] |
TIME | Period | [s] |
NBR_OSC | Number of oscillations | - |
Programming examples
Specifying the oscillation travel distance via reversal positions:
N10 X[OSC ON 1ST_POS=-100 2ND_POS=100 FEED=1000]
Specifying the oscillation travel distance via the zero position and the excursion:
N20 X[OSC ON ZERO_POS=0 EXCUR=100 FEED=1000]
Specifying 1 Hertz oscillation frequency; 10 oscillations:
N30 X[OSC ON ZERO_POS=0 EXCUR=100 FREQ=1 NBR_OSC=10]
Specifying a 4s period:
N40 X[OSC ON ZERO_POS=0 EXCUR=100 TIME=4]
Oscillating motion with feed motion of a contouring axis:
N50 X[OSC ON 1ST_POS=111 2ND_POS=222 FREQ=1]
N60 G01 G90 Y500 F200
Oscillating with waiting times of 0.5 s each at the reversal positions:
N70 X[OSC ON 1ST_POS=-100 1ST_DELT=0.5 2ND_POS=200
2ND_DELT=0.5 FEED=1000]
Cancelling oscillation:
Oscillation is stoped with reaching of reversal position 2:
N80 X[OSC OFF]
Fast stop of oscillation:
If an OFF is programmed in combination with FEED, the oscillation motion is stopped at once (feedhold for oscillation axis) and the reversal position 2 is directly moved with the new feed.
N90 X[OSC OFF FEED=5000]
Specifying the equal sign between the keyword and the value is optional. |