General programming examples for Akima splines

Programming Example

Defining start tangent

1. Programming example

N10 G01 X20 Y0 F1000                  (due to following G151 to
                                      (first interpolation point of
                                      (spline curve)
N20 #AKIMA TRANS[START=USER END=AUTO] (Transition type with spec. of)
                                      (start tangent + auto.
                                      (determination of target tangent)
N30 # AKIMA STARTVECTOR X1 Y1 Z0      (Pre-set start tangent)
N40 G151                              (Select spline interpolation)
N50 G01 X40 Y20
N60 X60
N70 Y0
N80 X80
N90 Y10                              (due to following G150 to
                               (last interpolation point of spline curve)
N100 G150                      (Deselect spline interpolation)
N110 X70
N120 M30
Caution: Block N90 contains the target point of the spline.

The program generates the following contour:

General programming examples for Akima splines 1:
Contour resulting from programming example

It is clearly evident that the curve section corresponding to block N50 has the programmed slope 1 at its start (corresponding to the start of the spline curve). The slope at the spline end (end of block N90) is calculated automatically.

2. Programming example

The following NC program supplies the same result but uses the second variant to select and deselect the spline interpolation.

N10 G01 X20 Y0 F1000
N20 #AKIMA TRANS[START=USER END=AUTO]  (Transition type with spec. of)
                                       (start tangent and auto.
                                       (determination)
                                       (of end tangent)
N30 # AKIMA STARTVECTOR X1 Y1 Z0      (Pre-set start tangent)
N40 G151 G01 X40 Y20                   (Select spline interpolation)
N50 X60
N60 Y0
N70 X80
N80 Y10
N90 G150 X70                        (Deselect spline interpolation)
N100 M30
Caution: Block N80 contains the target point of the spline.