System information
SECTION SIX - PARAMETRIC PROGRAMMING
The following illustrates the parametric program for cutting five 45° segments of a fan blade.
P2=0
N2
P1=.5
P140=.1
G31
N1
G0 X[P1] Y0
G1 Z0
G3 R[P1] AA0 AB45 Z[[.5-P1]/5]
G31
P1=P1+.1
IF P1 LE 2 GOTO 1
P2=P2+72
G68 AA[P2] I0 J0
IF P2 LT 360 GOTO 2
In the above example, the tool makes sixteen passes for each blade starting at X.5 to X2 in .1"
steps. Z is 0 on the entire front edge of the blade and drops to 0 on the first pass and to -.3" on
the last pass. Each blade sweep is 45 °. The N1-GOTO 1 loop is for each fan blade. The N2-
GOTO 2 loop rotates each blade by an additional 72 °. P1 controls the sweep radius and Z depth.
P2 controls the rotation angle.
343










