AB head, CA programming

%L SUB_1

N100 G01 G90 U50 F2000

N200      Y40

N300  G03 Y50  U40     I-10

N500  G01      U[-40]

N700  G03 Y40  U[-50]  J-10

N900  G01 Y-40

N1100 G03 Y-50 U[-40]  I10

N1300 G01      U40

N1500 G03 Y-40 U50     J10

N1700 G01 Y0

N1900 G01 G90  U20 F2000

N1040 M29

%tube_5ax

V.G.KIN[90].PARAM[0] = 1000000

V.G.KIN[90].PARAM[1] = 0

V.G.KIN[90].PARAM[2] = 0

V.G.KIN[90].PARAM[3] = 0

V.G.KIN[90].PARAM[4] = 0

V.G.KIN[90].PARAM[5] = 0

V.G.KIN[90].PARAM[6] = 0

V.G.KIN[90].PARAM[7] = 0

V.G.KIN[90].PARAM[8] = 0

V.G.KIN[90].PARAM[9] = 0

V.G.KIN[90].PARAM[10] = 0

V.G.KIN[90].PARAM[11] = 0

V.G.KIN[90].PARAM[12] = 0   (* AB head *)

V.G.KIN[90].PARAM[13] = 1   (* CA programming *)

V.G.KIN[90].PARAM[14] = 0

V.G.KIN[90].PARAM[15] = 0

V.G.KIN[90].PARAM[16] = 0

V.G.KIN[90].PARAM[17] = 0

N05 #SLOPE [TYPE=TRAPEZ]

N40 G01 X500 Y0 Z50 A0 B0 F2000

N45 #SET AX[X,1,0][Y,2,1][Z,3,2][C,4,3][A,5,4][U,6,5]

N50 #CYL ORI LATERAL[AX1=U AX2=Y RADIUS=30]

N40 G01 U0 Y0 Z30 C0 A15 F2000

N70 #CAXTRACK ON[ANGLIMIT 0.1]

N80 LL SUB_1

N90 #CAXTRACK OFF

N110 #CYL OFF

M30