Download 6000i CNC User`s Manual - Acu-Rite

Transcript
CNC User’s Manual
P/N 627 785-22 - Advanced Programming Features
Variable Programming Examples
Example 1
This program uses common variables in the range of #50 to #149. The
program mills a pocket with a three-degree draft angle on the sidewalls.
The dimensions at the bottom of the pocket are:
15.5730 (X axis) x 13.8850 (Y axis). The pocket is 1.0000 in. deep.
The tool begins at the upper-left corner of the pocket and at full depth.
Part Zero is set in the center of the pocket.
O 28 * 3-DEG. DRFT PKT
G90 G70 G0 G17
T0
Z0
X0 Y0
T1
X-7.7865 Y6.9425
Z.5
G1 Z-1 F10
F40
#101 = 15.5730
#102 = 13.8850
#103 = .0200
#104 = (#103*TAN(3))
M98 P100
T0
G90 G0 Z0
X0 Y0
M2
O100
LOOP((1/#103)+1);
G91
G1 Y(-#102);
X#101;
Y#102;
X(-#101);
X(-#104) Y#104 Z#103;
#101 = #101 + (#104*2);
#102 = #102 + (#104*2);
END
M99
All rights reserved. Subject to change without notice.
November 2009
* MOVE TO UP-LEFT CORNER
* FEED TO DEPTH
* LENGTH (X) OF POCKET
* WIDTH OF POCKET
* DESIRED "STEP-UP" IN Z AXIS
* CALCULATE "STEP-OVER" IN X-Y AXES
* CALL SUBPROGRAM 100
* SET LOOP NUMBER (1 IN. DP / .02 STEP) + 1
* SET INCREMENTAL MODAL
* MILL L.H. SIDE
* MILL BOTTOM SIDE
* MILL R.H. SIDE
* MILL TOP SIDE, BACK TO START POS'N
* STEP UP/OVER IN X-Y AND Z
* ADD STEPOVER TIMES 2 TO LONG SIDES
* ADD STEPOVER TIMES 2 TO SHORT SIDES
* END LOOP
17-15