What's new
What's new

cam for posting subprograms and subroutines

toolmaker123

Aluminum
Joined
Dec 5, 2007
Location
Mass.
I am looking for a CAM program that can post out simple machining routines with lots of positioning subprograms and or subroutines, in the format like below quickly and easily. Is there such a product?

Thank You


%
O2351
(PROG.REV.- 10/23/2010)

(**** G54 ****)
(**** Z = 0 SURFACE -A- ****)
(**** COVER ON TOP. ****)

N10 G0 G17 G28 G49 G80 G91 G94 G97 Z0
N20 M303
N30 G91 G40 G28 X0 Y0
N40 M69
N50 G28 B0
N60 M68
N70 M11
N80 G0 G90 G54 C0. (WORK OFFSET)
N90 M10
N100 M1

(T1 .5DIA. ENDMILL - ROUGH)
N110 T1
N120 M6
N130 M69
N140 G0 G90 G54 B0. (WORK OFFSET)
N150 M68
N160 M11
N170 G0 G90 X-3.25 Y0 C0. M3 S460
N180 G43 Z2. H1 M8
N190 G66 P2353 F1.5 A2.9
N200 M98 P2352
N210 G67
N220 G0 G28 G49 Z0. M9
N230 G0 G40 X-5. Y0 M5
N240 M00

(T2 END MILL 0.5 DIA /.035RAD. FINISH )
N250 T2
N260 M6
N270 M69
N280 G0 G90 G54 B0. (WORK OFFSET)
N290 M68
N300 M11
N310 G0 G90 X-4.1 Y0 C0. M3 S500
N320 G43 Z2. H2 M8
N330 G41 D2 X-4.05 Y-.01 (DIA. OFFSET)
N340 G65 P2354 F2.
N350 M98 P2352
N360 G67
N370 G0 Z2.
N380 G0 G40 X-4.1 Y0
N390 Z0.5
N400 G41 D2 X-4.05 Y-.01 (DIA. OFFSET)
N410 G65 P2355 F2.
N420 M98 P2352
N430 G67
N440 G0 G28 G49 Z0. M9
N450 G0 G40 X-5. Y0 M5
N460 M00
N470 M00

(**** G55 ****)
(**** Z = 0 CENTER OF PART****)

(******* CLAMP THRU HOLES & REMOVE COVER *******)

(T3 .3125 DIA End Mill R.055)
N480 T3
N490 M6
N500 M69
N510 G0 G90 G55 B90. (WORK OFFSET)
N520 M68
N530 M11
N540 G0 G90 X-4.1 Y0 C0. M3 S970
N550 G43 Z4. H3 M8
N560 G65 P2356 F3.9 (DIA. OFFSET IN SUB PROG.)
N570 M98 P2357
N580 G67
N590 G0 G28 G49 Z0. M9
N600 G0 G40 X-5. Y0 M5
N610 M00

(T4 .2344 DIA End Mill R.045)
N620 T4
N630 M6
N640 M69
N650 G0 G90 G55 B90. (WORK OFFSET)
N660 M68
N670 M11
N680 G0 G90 X-11. Y0 C0. M3 S1300
N690 G43 Z4. H4 M8
N700 G65 P2358 F3.9 (DIA. OFFSET IN SUB PROG.)
N710 M98 P2359
N720 G67
N730 G0 G28 G49 Z0. M9
N740 G0 G40 X-5. Y0 M5
N750 M00

(T5 .1406 DIA End Mill)
N760 T5
N770 M6
N780 M69
N790 G0 G90 G55 B90. (WORK OFFSET)
N800 M68
N810 M11
N820 G0 G90 X-11. Y0 C0. M3 S1700
N830 G43 Z4. H5 M8
N840 G65 P2360 F2.0 (DIA. OFFSET IN SUB PROG.)
N850 M98 P2357
N860 G67
N870 G0 G28 G49 Z0. M9
N880 G0 G40 X-5. Y0 M5
N890 M00

(T6 .0625 DIA End Mill)
N900 T6
N910 M6
N920 M69
N930 G0 G90 G55 B90. (WORK OFFSET)
N940 M68
N950 M11
N960 G0 G90 X-11. Y0 C0. M3 S1700
N970 G43 Z4. H6 M8
N980 G65 P2361 F4.2 (DIA. OFFSET IN SUB PROG.)
N990 M98 P2357
N1000 G67
N1010 G0 G28 G49 Z0. M9
N1020 G0 G40 X-5. Y0 M5
N1030 M00

(**** G56 ****)
(**** Z = 0 ON SURFACE BEING DRILLED****)

(T7 #4 CENTERDRILL )
N1040 T7
N1050 M6
N1060 M69
N1070 G0 G90 G56 B78. (WORK OFFSET)
N1080 M68
N1090 M11
N1100 G0 G90 X-6.9359 Y0 C0. M3 S1500
N1110 G43 Z1. H7 M8
N1120 G81 G98 Z-.2 R.1 F3.
N1130 M98 P2362
N1140 G80
N1150 G0 G28 G49 Z0. M9
N1160 G0 G40 X-5. Y0 M5
N1170 M00

(T8 .375 DIA. DRILL )
N1180 T8
N1190 M6
N1200 M69
N1210 G0 G90 G56 B78. (WORK OFFSET)
N1220 M68
N1230 M11
N1240 G0 G90 X-6.9359 Y0 C0. M3 S700
N1250 G43 Z1. H8 M8
N1260 G81 G98 Z-.55 R.1 F1.4
N1270 M98 P2362
N1280 G80
N1290 G0 G28 G49 Z0. M9
N1300 G0 G40 X-5. Y0 M5
N1310 M00

(T9 .375 DIA End Mill - SEMI .685)
N1320 T9
N1330 M6
N1340 M69
N1350 G0 G90 G56 B78. (WORK OFFSET)
N1360 M68
N1370 M11
N1380 G0 G90 X-6.9359 Y0 C0. M3 S700
N1390 G43 Z4. H9 M8
N1400 G65 P2363 F1.4
N1410 G0 C0.
N1420 M98 P2362
N1430 G67
N1440 G0 G28 G49 Z0. M9
N1450 G0 G40 X-5. Y0 M5
N1460 M00

(T10 .375 DIA End Mill - FINISH)
N1470 T10
N1480 M6
N1490 M69
N1500 G0 G90 G56 B78. (WORK OFFSET)
N1510 M68
N1520 M11
N1530 G0 G90 X-6.9359 Y0 C0. M3 S700
N1540 G43 Z4. H10 M8
N1550 G65 P2364 F1.4
N1560 G0 C0.
N1570 M98 P2362
N1580 G67
N1590 G0 G91 G28 G49 G80 Z0 M11
N1600 G91 G28 X0. X0.
N1610 G91 G28 C0.
N1620 M10
N1630 M69
N1640 G91 G28 B0
N1650 M68
N1660 G91 G30 X0 Y0
N1670 G30 Z0
N1680 M33
N1690 G0 G91 G28 Z0
N1700 G91 G28 X0. X0.
N1710 M30

( -REV.- - DATED - -CHANGES )
( - 10/23/2010 ORIGNIAL RELEASE )

O2352 (28 COUNTERBORES)
N10 C0.
N20 C12.8571
N30 C25.7143
N40 C38.5714
N50 C51.4286
N60 C64.2857
N70 C77.1429
N80 C90.
N90 C102.8571
N100 C115.7143
N110 C128.5714
N120 C141.4286
N130 C154.2857
N140 C167.1429
N150 C180.
N160 C192.8571
N170 C205.7143
N180 C218.5714
N190 C231.4286
N200 C244.2857
N210 C257.1429
N220 C270.
N230 C282.8571
N240 C295.7143
N250 C308.5714
N260 C321.4286
N270 C334.2857
N280 C347.1429
N290 M99

O2353 (ROUGH)
N10 M10
N20 G0 X-3.768 Y0
N30 G1 Z0.48 F200.
N40 Z0.225 F#9
N50 Z0.48 F200.
N60 X-3.653 Y0
N70 Z0.225 F#9
N80 Z0.49 F200.
N90 X-3.538 Y0
N100 Z0.225 F#9
N110 Z0.54 F200.
N120 X-3.423 Y0
N130 Z0.225 F#9
N140 Z.63 F200.
N150 X-3.308 Y0
N160 Z0.225 F#9
N170 Z.77 F200.
N180 X-3.2275 Y0
N190 Z0.225 F#9
N200 X-3.66 Y0 F#1
N210 G0 Z4.
N220 M11
N230 M99

O2354 (SEMI .010 STOCK)
N10 M10
N20 G1 Z0.2125 F100.
N30 X-4. Y-0.0225 F#9
N40 X-3.25
N50 G3 X-3.25 Y0.0225 I0 J0.0225
N60 G1 X-3.9
N70 G0 Z1.
N80 X-4.05 Y-.01
N90 M11
N100 M99

O2355 (FINISH)
N10 M10
N20 G1 Z0.2125 F100.
N30 X-4. Y-.0325 F#9
N40 X-3.25
N50 G3 X-3.25 Y0.0325 I0 J0.0325
N60 G1 X-3.9
N70 G0 Z1.
N80 X-4.05 Y-.01
N90 M11
N100 M99

O2356 (Mill .380 slots)
N10 M10
N20 G0 X-4.1 Y0.
N30 Z3.
N40 G1 Z2.512 F100.
N50 X-3.6 F#9
N60 Z3.0 F100.
N70 X-4.1 Y0.
N80 Z2.507
N90 G41 D3 X-4.025 Y-0.034 F#9 (DIA. OFFSET)
N100 X-4. Y-.034
N110 X-3.6
N120 G3 X-3.6 Y0.034 I0. J0.034
N130 G1 X-4.05
N140 G0 Z4.
N150 G40 X-4.1 Y0.
N160 M11
N170 M99

O2357 (8 - SLOTS)
N10 C0.
N20 C45.
N30 C90.
N40 C135.
N50 C180.
N60 C225.
N70 C270.
N80 C315.
N90 M99

O2358 (Mill .255 slots)
N10 M10
N20 G0 X-11. Y0.
N30 Z3.
N40 G1 Z1.525 F100.
N50 X-10.5495 F#9
N60 Z2.0 F100.
N70 X-11. Y0.
N80 Z1.520
N90 G41 D4 X-10.912 Y-0.0103 F#9 (DIA. OFFSET)
N100 X-10.88 Y-.0103
N110 X-10.5495
N120 G3 X-10.5495 Y0.0103 I0. J0.0103
N130 G1 X-10.92
N140 G0 Z4.
N150 G40 X-11. Y0.
N160 M11
N170 M99

O2359 (4 - .255 SLOTS)
N10 C0.
N20 C90.
N30 C180.
N40 C270.
N50 M99

O2360 (Mill .1625 SLOTS)
N10 M10
N20 G0 X-12. Y0.
N30 Z2.0
N40 G1 Z1.28 F100.
N50 X-11.687 F#9
N60 Z3.0 F100.
N70 X-12. Y0.
N80 Z1.28
N90 G41 D5 X-11.95 Y-.0109 F#9 (DIA. OFFSET)
N100 G1 X-11.92 Y-.0109
N110 X-11.6773
N120 Y.0109
N130 X-11.9
N140 G0 Z3.
N150 G40 X-12. Y0.
N160 M11
N170 M99

O2361 (Mill .1625 SLOTS)
N10 M10
N20 G0 X-12. Y-.14
N30 Z2.0
N40 G1 Z1.28 F100.
N50 G41 D6 X-11.9 Y-0.1188 (DIA. OFFSET)
N60 X-11.8358 Y-.1188 F#9
N70 X-11.7673 Y-.0502
N80 X-11.642
N90 G3 X-11.638 Y-0.0462 I0. J0.004
N100 G1 Y0.0462
N110 G3 X-11.642 Y0.0502 I-0.004 J0.
N120 G1 X-11.7673
N130 X-11.8358 Y.1188
N140 G0 Z3.
N150 G40 X-12. Y0.
N160 M11
N170 M99

O2362 (8 - HOLES)
N10 C45.
N20 C90.
N30 C135.
N40 C180.
N50 C225.
N60 C270.
N70 C315.
N80 M99

O2363 (Mill .685 HOLES)
N10 M10
N20 G0 G90 Z1.
N30 G1 Z.1 F100
N40 Z-.45 F#9
N50 G1 G91 X.08
N60 G3 X0. Y0. I-.08 J0.
N70 G1 X.07
N80 G3 X0. Y0. I-.15 J0.
N90 G1 X-.15
N100 G0 G90 Z1.
N110 M11
N120 M99

O2364 (Mill .705 HOLES)
N10 M10
N20 G0 G90 Z1.
N30 G1 Z.1 F100
N40 Z-.45 F#9
N50 G1 G91 X.16 Y0.
N60 G3 X0. Y0. I-.16 J0.
N70 G1 X.005
N80 G3 X0. Y0. I-.165 J0.
N90 G3 X0. Y0. I-.165 J0.
N100 G1 X-.165
N110 G0 G90 Z1.
N120 M11
N130 M99
%
 
Are you asking if there is software out there that could modify an existing program into a sub-based program or are you asking if there are any CAM softwares out there which uses subs for repetitive cuts?

If the latter, FeatureCAM does it right out of the box automatically. In fact you have to be pretty specific to disable it, specially for drilling cycles.

Here is how a local sub ( HAAS ) program looks like from FC:

%
O00140
( POSTING DATE: 10-25-2010)
( T2 = 1/2CA-3FL-ROUGH )
( T3 = 1/2CA-3FL-FINISH )
( VF4 BY FEATURECAM )
G00 G53 Z0
G90 G17 G54 G80 G94 G49 G40
( OP: ROUGH1 SIDE SIDE1 )
( TOOL02 = 0.5 DIA 1/2CA-3FL-ROUGH )
T02 M6
G00 G43 H02 D02
G00 X-1.5175 Y-0.9232 Z1.0
S2500 M03
M08
G01 Z0.05 F100.
G01 X-1.5175 Y-0.9232 Z-0.3333 F10.0
M97 P9901
G01 X-0.495 Y-1.4675
G01 X-1.5175 Y-0.9232
G01 X-1.5175 Y-0.9232 Z-0.6667
M97 P9901
G01 X-0.495 Y-1.4675
G01 X-1.5175 Y-0.9232
G01 X-1.5175 Y-0.9232 Z-1.0
M97 P9901
G01 Z1.0 F100.
( SEG:ROUGH1 SIDE2 )
G00 X0. Y-1.293 Z1.0
G01 Z0.05 F100.
G01 X0. Y-1.293 Z-0.145 F10.0
G01 G41 X0.1831 Y-1.01
G03 X-0.0746 Y-0.8061 R0.475
G02 X-0.2382 Y-0.6071 R0.24
G01 X-0.3623 Y0.4087
G02 X0.3623 Y0.4087 R-0.365
G01 X0.2382 Y-0.6071
G02 X-0.0746 Y-0.8061 R0.24
G03 X-0.403 Y-0.8183 R0.475
G01 G40 X-0.4224 Y-1.1549
G01 Z1.0 F100.
M09
M05
G00 G49 G53 Z0
(OP:FINISH - SIDE1)
(TOOL03 = 0.5 DIA 1/2CA-3FL-FINISH)
T03 M6
G00 G43 H03 D03
G00 X0.6529 Y1.1423 Z1.0
S2500 M03
M08
G01 Z0.05 F100.
G01 X0.6529 Y1.1423 Z-0.5 F10.0
M97 P9902
G01 X0.755 Y0.9325
G03 X0.6788 Y1.1163 R0.26
G01 X0.6529 Y1.1423
G01 X0.6529 Y1.1423 Z-1.0
M97 P9902
G01 Z1.0 F100.
( SEG:FINISH SIDE2 )
G00 X0. Y-1.068 Z1.0
G01 Z0.05 F100.
G01 X0. Y-1.068 Z-0.15 F10.0
G01 G41 X0.0303 Y-0.8183
G03 X-0.0156 Y-0.8125 R0.3875
G02 X-0.2333 Y-0.6065 R0.235
G01 X-0.3573 Y0.4094
G02 X0.3573 Y0.4094 R-0.36
G01 X0.2333 Y-0.6065
G02 X-0.111 Y-0.7851 R0.235
G03 X-0.1531 Y-0.7657 R0.3875
G01 G40 X-0.2597 Y-0.9935
G01 Z1.0 F100.
( END OF PROGRAM )
M09
M05
G00 G49 G53 Y0 Z0
T02 M06
M30
N9901
( SUB: ROUGH1 - SIDE1 )
G01 X-1.355 Y-0.6417 F10.0
G01 X-1.355 Y0.6451
G01 X-1.5175 Y0.9265
G01 X-1.205 Y0.895
G01 X-1.205 Y-0.8916
G01 X-1.055 Y-1.0647
G02 X-1.055 Y-1.0575 R0.56
G01 X-1.055 Y0.9325
G02 X-1.0325 Y1.0898 R0.56
G01 X-0.1656 Y1.4925
G01 X0.1656 Y1.4925
G01 X1.355 Y0.6451
G01 X1.355 Y-0.6417
G01 X1.205 Y-0.8916
G01 X1.205 Y0.895
G01 X1.0325 Y1.0898
G02 X1.055 Y0.9325 R0.56
G01 X1.055 Y-1.0575
G02 X1.055 Y-1.0647 R0.56
G01 X0.8719 Y-1.2189
G03 X0.905 Y-1.0575 R0.41
G01 X0.905 Y0.9325
G03 X0.495 Y1.3425 R0.41
G01 X-0.495 Y1.3425
G03 X-0.905 Y0.9325 R0.41
G01 X-0.905 Y-1.0575
G03 X-0.8719 Y-1.2189 R0.41
G01 X-0.3026 Y-1.4675
G01 X0.3026 Y-1.4675
G01 G41 X0.4354 Y-1.1847
G03 X0.1526 Y-1.0675 R0.4
G01 X-0.495 Y-1.0675
G02 X-0.505 Y-1.0575 R0.01
G01 X-0.505 Y0.9325
G02 X-0.495 Y0.9425 R0.01
G01 X0.495 Y0.9425
G02 X0.505 Y0.9325 R0.01
G01 X0.505 Y-1.0575
G02 X0.495 Y-1.0675 R0.01
G01 X0.1526 Y-1.0675
G03 X-0.1303 Y-1.1847 R0.4
G01 G40 X0.0026 Y-1.4675
M99
N9902
( SUB: FINISH - SIDE1 )
G01 G41 X0.4641 Y0.9755 F10.0
G03 X0.4985 Y0.936 R0.3875
G02 X0.5 Y0.9325 R0.005
G01 X0.5 Y-1.0575
G02 X0.495 Y-1.0625 R0.005
G01 X-0.495 Y-1.0625
G02 X-0.5 Y-1.0575 R0.005
G01 X-0.5 Y0.9325
G02 X-0.495 Y0.9375 R0.005
G01 X0.495 Y0.9375
G02 X0.5 Y0.9325 R0.005
G01 X0.5 Y0.8364
G03 X0.5035 Y0.7842 R0.3875
G01 G40 X0.755 Y0.7997
M99
(TOOL-LIST)
%
 
contact info

That looks good. I am downloading the demo now. Looking at there website I do not see who the reseller is in the Hartford, CT. area. Would you happen to know who the reseller is?

Thank You
 
You might also look at OneCNCXR4 Mill Professional or Expert (at least so you say you've compared two products :D). I've not played around seriously with a post to output subprograms (as opposed to subroutines), so you might have to watch the subprogram numbering so it doesn't overwrite files you might already have in the control. I'd imagine you could handle this by keeping a certain range of program numbers (starting at O0001) cleared out of the control for this purpose.

The way OneCNC handles subs is to basically create your program normally as if you were going to make one part. Then, you've got a facility to repeat single operations, or the whole group (an entire program), or a mixture of both (with certain logical restrictions). That is to say, OneCNC doesn't inject little subs into your program to do repeat levels in one pocket, as an example. A hand coder might do that to really cut program size, but OneCNC essentially needs one full writeout of the code to simulate properly.

But for typical multiple parts machining, OneCNC works well.

Good luck in your testing.
 
Toolmaker

The FC reps for CT are DM SOlutions:

DM Solutions, Inc.
(603)434-4516 Ext #2
(603)434-0516 Fax
www.dm-solutions.com

As far as the subs, it even gets slicker when you do multifixture parts, each of which with it's own subs.
For drill cycles, you can change the G98/G99 for each hole individually, so it is easy to jump over a clamp for one but then keep staying on the R-plane for the rest. You can also set a separate Z depth value for individual holes ( as long as your machine supports it. )

Hu

In FC, you set the naming of the called routines inside the post.
IOW you can tell what program numbers to start the external subs ( say O400 and up ), or similarly, you can separately set what N-numbers to use for local subs. ( N9000 and up)


 








 
Back
Top