Velocity-optimised motion control by 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.

#SEGMENTATION [ON | OFF] [ALL] [ [ [LIN] [LENGTH<expr>] [CIR] [OPMODE<expr>]

                                                                     [PARAM<expr>] ] ]                                  (modal)

ON

Select segmentation

OFF

Deselect segmentation

ALL

Segment linear and circular blocks

LIN

Segment linear blocks

LENGTH<expr>

Length of the resulting linear blocks in [mm, inch]

CIR

Segment circular blocks

OPMODE<expr>

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<expr>

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

Programing Example

prg_example

Velocity-optimised motion control by segmentation

Select linear segmentation with default parameterisation:

N20 G00 X0 Y0 Z0 F10000

N30 #SEGMENTATION ON [LIN]

N40 X3     Y25

N50 X15    Y15

N60 X23     Y12

N70 X25     Y25

N80 X30     Y35

N90 #SEGMENTATION OFF [LIN] ;Deselect

N100 M30

Select linear segmentation + parameterisation:

N20 G00 X0 Y0 Z0 F10000

N30 #SEGMENTATION ON [LIN LENGTH 0.5]

N40 X3     Y25

N50 X15    Y15

N60 X23    Y12

N70 X25    Y25

N80 X30    Y35

N90 #SEGMENTATION OFF [LIN] ;Deselect

N100 M30

Select linear and circular segmentation + parameterisation:

N30 #SEGMENTATION ON [LIN LENGTH 0.5 CIR OPMODE 1 PARAM 0.5]

N40 X3     Y25

N50 X15    Y15

N60 X23    Y12

N70 X25    Y25

N80 X30    Y35

N90 #SEGMENTATION OFF ALL ;Deselect

N100 M30 ;Alternative: #SEGMENTATION OFF [LIN CIR]

Combined selection of linear and circular segmentation:

N30 #SEGMENTATION ON ALL

N40 X3     Y25

N50 X15    Y15

N60 X23    Y12

N70 X25    Y25

N80 X30    Y35

N90 #SEGMENTATION OFF ALL ;Deselect

N100 M30