Velocity-optimised motion control by segmentation (#SEGMENTATION)
In some applications (e.g. kinematics where singular areas can appear) it may be an advantage to improve the programmed block segmentation on the CNC side or to convert circular blocks (G2/G3) into linear blocks (G1) by segmentation. In addition, circular blocks can also be divided into circle segments to improve the utilisation of machine dynamics. This can be achieved in the NC program by the following command.
Syntax: |
#SEGMENTATION [ON | OFF] [ALL] [ [ [LIN] [LENGTH=..] [CIR] [OPMODE=..] [PARAM=..] ] ] |
ON | Select segmentation |
OFF | Deselect segmentation |
ALL | Segment linear and circular blocks |
LIN | Segment linear blocks |
LENGTH=.. | Length of the resulting linear blocks in [mm, inch] |
CIR | Segment circular blocks |
OPMODE=.. | Mode of circle segmentation: 0: Preset required block length. 1: Specify required chordal error. Block length is calculated automatically (default). 2: Preset required block length, output as circle segments.
Chordal error and block length are defined by the keyword PARAM. |
PARAM=.. | Either chordal error or length of the resulting linear blocks, depending on the selected OPMODE in [mm, inch] |
If no other parameterisation is programmed except for LIN and/or CIR when segmentation is activated, the following initial state is valid:
LENGTH | 1 mm |
OPMODE | 0 |
PARAM | 0.1 mm |
Programming Example
Velocity-optimised motion control by segmentation