System information

SECTION SIX - PARAMETRIC PROGRAMMING
Computational functions
1. Tangent Arc TANA
3. 3 Point Circle Generate CGEN
2. Tangent Line TANL
The above three functions can be used anywhere throughout a program to solve various
intersection problems. These functions receive input data in parameters P90 thru P96, and they
return the answer in parameters P80 through P85. The answers can then be used in line and circle
commands to produce the desired results. The format for these three functions follows.
General Format for TANA, TANL
Input Parameters
P90 = X1 center of arc 1
P91 = Y1 center of arc 1
P92 = R1 radius of arc 1
P93 = X2 center of arc 2
P94 = Y2 center of arc 2
P95 = R2 radius of arc 2
P96 = R3 radius of tangent arc (use in TANA only)
Calculated Output Parameters
P80 = Xs X starting point of tangent arc or line
P81 = Ys Y starting point of tangent arc or line
P82 = Xe X end point of tangent arc or line
P83 = Ye Y end point of tangent arc or line
P84 = Xt X center of tangent arc (TANA case only)
P85 = Yt Y center of tangent arc (TANA case only)
The general form for a tangent arc or line function is as follows.
TANA C# or TANL C#
# is a number 0 through 7 in the tangent arc case, and 0 through 3 in the tangent line case. This
number selects one of the eight possible solutions of the TANA or one
of the four solutions of the TANL. The values of C# are defined as the tangent point being to the
right or left of a line connecting the centers of the arcs and center of the connecting arc, when
facing in the direction of tool movement. See the following diagrams for illustration of tangent
solutions.
330