Skip to main content

Additional Spline Axes A, B, C

G code word: A, B, C

Function: Use A, B, and C to define the target positions for additional spline axes. These axes are similar to P, Q, U, V, and W. While P, Q, U, and V are interpolated linearly, A, B, and C are interpolated with a 3rd degree polynomial.

Tip

Example 40. Example 1

G Code

N10 G0 X0 A0 P0 F10 E30 E-30
N20 G1 X100 A100 P100

The linear additional axis P is interpolated linearly to the traveled path. Accordingly, its time profile returns that of the path velocity.

_sm_img_position_velocity_linear.png

The additional spline axis A is interpolated as a polynomial function.

_sm_img_position_velocity_splined.png


Example 41. Example 2

Using the spline function is necessary, especially if a path with constant tangent transitions is used, which the interpolator does not have to decelerate to velocity 0:

G Code

N10 G0 X0 A0 P0 F10 E30 E-30
N20 G1 X50 A40 P40
N30 G1 X100 A100 P100

In the linear case, you see a jump in the velocity, because 40 units of the additional axis run on 50 path units in the first part, and 60 units of the additional axis run on 50 path units in the second part. Because the path velocity is defined only according to the path in Cartesian space (X Y Z), a constant velocity in X results in a velocity jump in P:

_sm_img_position_velocity_linear_with_jump.png

The spline axis displays the following profile:

_sm_img_position_velocity_splined_with_jump.png


Example 42. Example 3

The slope of the axes A, B, and C at the end position can be defined by the U, V, and W word. The unit of the slope is the path unit of the additional axis per path unit in the space.

G Code

N10 G0 X0 A0 F10 E30 E-30
N20 G1 X100 A100 U1.5
N30 G1 X200 A200 U0

The user-programmed slope (U=2) of the A axis applies because this program contains a continuous transition between N20 and N30. Therefore, for X=100 the position of the A axis increases two times as fast as the path length.

_sm_img_position_velocity_splined_U.png