Sample Program Using CGen
N1 P90=0 P91=0 first point
N2 P92=1 P93=1 second point
N3 P94=2 P95=0 third point
N4 CGEN
N5 G1 X0 Y0 position to start of arc
N6 G17 G2 R[P82] XC[P80] YC[P81] Xe_______Ye ________
The CGEN function can be used anytime throughout the program to calculate the radius and
center of an arc. These calculations can then be used in a normal arc command along with trig
help, chamfer, corner round, extend back, and any other function available.
Note:
The arc direction is returned in P97 so the block N6 may be substituted with
G17 G[P97] R[P82] XC[P81] YC[P80] Xe________ Ye___________