Extended HSC programming

Extended HSC programming 1:

The use of this feature requires the licence for the extension package "HSC". It is not included in the scope of the standard licence.

For the programmed control points with the extended HSC programming B splines are created. For this kind of HSC operation it is recommended, to select first by the command #SET SLOPE PROFIL the profile type 3 (HSC slope).

For the HSC selection/deselection and for the parameterization of B spline programming the following NC command is available:

#HSC [ON | OFF] [ [BSPLINE [PATH_DEV<expr>] [TRACK_DEV<expr>] [MERGE<expr>]
[AUTO_OFF_PATH<expr>] [AUTO_OFF_TRACK<expr>]
[AUTO_OFF_G00<expr>]
[MAX_PATH_LENGTH<expr>] [MAX_ANGLE<expr>]] ] (modal)

ON Enable free form mode

OFF Disable free form mode

BSPLINE Identification for HSC operation with B spline. Must always be the first programmed keyword.

PATH_DEV<expr> Maximum deviation of B spline from programmed path contour in mm. If this deviation is exceeded, the B spline is deselected automatically. If the maximum deviation is defined as zero, no monitoring of the path deviation is executed.

Default value: 1 mm

TRACK_DEV<expr> Maximum deviation of tracking axes in mm or degrees. If the maximum deviation is defined as zero, no monitoring of the dragged axes is executed.

Default value: 10 mm or degree

MERGE<expr> Merging of blocks. The maximum deviation is determined according to the values from PATH_DEV and TRACK_DEV.

AUTO_OFF_PATH<expr> Automatic block separation when exceeding the programmed B spline deviation of the main axes. (PATH_DEV).

AUTO_OFF_TRACK<expr> Automatic block separation when exceeding the programmed B spline deviation of the dragged axes. (TRACK_DEV).

More optional switches:

AUTO_OFF_G00<expr> Automatic deselection of B spline interpolation for G00 blocks

MAX_PATH_LENGTH<expr> Maximum path length of relevant blocks in mm. If blocks are longer than the given length, the Bspline is deselected automatically.

Default value: 0 mm (implicit deselection because of the block length does not take place)

MAX_ANGLE<expr> Maximum contour angle for transitions between two linear blocks in degrees, up to it a B spline is inserted. If the angle between this two linear blocks exceeds this limit, the B spline is deselected internally. Default value: 0° (no implicit deselection because of the contour angle)

Extended HSC programming 2:

The programming of the control points is done with linear blocks (G00 and G01). Their target points are used for control points. It has taken into account, that the curve is going straight through the control points only in the beginning and at the end.

Extended HSC programming 3:

The parameters may be changed in several steps. This means, for example it is possible to define in a first step the maximum contour deviation ("PATH_DEV ") and in a second command the maximum path length ("MAX_PATH_LENGTH ") and the selection of B spline interpolation ("ON").

Notice

The parameterization cannot be changed while B spline interpolation is active.

Programming examples

The spline curve is based on the control positions N40 – N155, but the spline curve only is going straight through at N20 and N50.

N20 G00 X0 Y0 Z0 F10000 
N30 #HSC ON [BSPLINE PATH_DEV=0.2 MERGE=1..] Parametrization + Selection
N40 X3 Y25
N50 15 Y15
N60 23 Y12
N70 X25 Y25
N80 X30 Y35
N90 X50 Y37.5
N100 X55 Y32.5
N110 X58 Y12
N120 X70 Y12
N130 X77.5 Y10
N140 X90 Y35
N150 X100 Y37.5
N160 #HSC OFF Deselection
N170 M30

... or also

N20 G00 X0 Y0 Z0 F10000 
N25 #HSC [BSPLINE PATH_DEV=0.2 MERGE=1..] Parametrization
N30 #HSC ON Selection
N40 X3 Y25
N50 15 Y15
N60 23 Y12
N70 X25 Y25
N80 X30 Y35
N90 X50 Y37.5
N100 X55 Y32.5
N110 X58 Y12
N120 X70 Y12
N130 X77.5 Y10
N140 X90 Y35
N150 X100 Y37.5
N160 #HSC OFF Deselection
N170 M30