Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Repeating the same tool change statement

harrisa

New member
Need to correct post. Sample program below shows the same tool being recalled for a different function. I actualy have the tool used for spot drilling and then using it to chamfer corners on the part. The tool is listed in my tooling list as a Drill and as Milling.


What do I need to change in my Post Processor to correct this problem?


Thanks
(T77490-1 SPOT DRILL)<?:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" />
(SPOT DRILL BOTH SIDES)
N1045 M98 P9120 (Tool Change Sub Program)
N1050 T03
N1055 S3000 M3
N1060 G0 G90 G54 X-5.69 Y.0916 A90.
N1065 G43 H02 Z1. M8
N1070 G81 G99 Z.2 R.375 F15.
N1075 G80
N1080 G0 Z1.

(T77490-1 SPOT DRILL)
N1085 M98 P9120 (Tool Change Sub Program)
N1090 T03
N1095 S5000 M3
N1100 G0 X-6.6678 Y.5122 A90.
N1105 G43 H02 Z1. M8
 
Hi Harrisa,
Is this actually a post problem or not selecting the right tool under SEQ SETUP - TOOL and selecting the tool. I only have this issue if I've selected the same tool twice.
Can you post the section of cl file that covers both of these 2 tools if it's not too long?
If it is really long send it to [email protected].


Thanks,
Jay
 
You are correct Jay about selecting the same tool twice. The tool is describe as aDrill (used for Spot drilling in the seq.)and the other as Milling (Used for chamfering corner break around the part). I hope this is what you are looking for on the C/L data.


PPRINT / NC SEQUENCE COMMENTS


PPRINT / SPOT DRILL BOTH SIDES


LINTOL / 0.010000


PPRINT / TOOL COMMENTS


PPRINT / T77490-1 SPOT DRILL


LOADTL / 2 $$-> T77490-1 SPOT DRILL


$$-> CUTTER / 0.250000


SET / OFSETL, 54


$$-> CSYS / 1.0000000000, 0.0000000000, 0.0000000000, 0.0000000000, $


0.0000000000, -0.0000000000, 1.0000000000, 0.0000000000, $


0.0000000000, -1.0000000000, -0.0000000000, 0.0000000000


SPINDL / RPM, 3500.000000, CLW


COOLNT / ON


RAPID


GOTO / -5.69002410, 1.00000000, -0.09160350, $


0.00000000, 1.00000000, -0.00000000


CYCLE / CSINK, DIAMET, 0.150000, TLANGL, 90.000000, IPM, 15.000000, CLEAR,$


0.100000


GOTO / -5.69002410, 0.27500000, -0.09160350, $


0.00000000, 1.00000000, -0.00000000


CYCLE / OFF


RAPID


GOTO / -5.69002410, 1.00000000, -0.09160350, $


0.00000000, 1.00000000, -0.00000000


SET / OFSETL, OFF


COOLNT / OFF


SPINDL / OFF


$$-> END /


$$-> FEATNO / 8900


PPRINT / TOOL COMMENTS


PPRINT / T77490-1 SPOT DRILL


LOADTL / 2


$$-> CUTTER / 0.050000


$$-> CSYS / 1.0000000000, 0.0000000000, 0.0000000000, 0.0000000000, $


0.0000000000, -0.0000000000, 1.0000000000, 0.0000000000, $


0.0000000000, -1.0000000000, -0.0000000000, 0.0000000000


SPINDL / RPM, 5000.000000, CLW


COOLNT / ON


RAPID


GOTO / -6.66776061, 1.00000000, -0.51221406, $


0.00000000, 1.00000000, -0.00000000


RAPID


GOTO / -6.66776061, 0.47600000, -0.51221406, $


0.00000000, 1.00000000, -0.00000000


FEDRAT / 60.000000, IPM


GOTO / -6.66776061, 0.32721406, -0.51221406, $


0.00000000, 1.00000000, -0.00000000


CUTCOM / LEFT, 2


FEDRAT / 20.000000, IPM


GOTO / -6.66776061, 0.32721406, -0.41221406, $


0.00000000, 1.00000000, -0.00000000


CIRCLE / -6.56776061, 0.32721406, -0.41221406, $


0.00000000, 1.00000000, -0.00000000, 0.10000000


GOTO / -6.56776061, 0.32721406, -0.31221406, $


0.00000000, 1.00000000, -0.00000000


GOTO / -6.17833958, 0.32721406, -0.31221406, $


0.00000000, 1.00000000, -0.00000000


CIRCLE / -6.17837331, 0.32721406, -0.08500000, $


0.00000000, -1.00000000, 0.00000000, 0.22721406


GOTO / -5.95889084, 0.32721406, -0.02623204, $


0.00000000, 1.00000000, -0.00000000


GOTO / -6.03299385, 0.32721406, 0.25032420, $


0.00000000, 1.00000000, -0.00000000


GOTO / -6.07857652, 0.32721406, 0.20467562, $


0.00000000, 1.00000000, -0.00000000


GOTO / -6.07857079, 0.32721406, 0.20466990, $


0.00000000, 1.00000000, -0.00000000


CIRCLE / -6.75968138, 0.32721406, 0.88479138, $


0.00000000, 1.00000000, -0.00000000, 0.96253668


GOTO / -6.94115765, 0.32721406, -0.06048277, $


0.00000000, 1.00000000, -0.00000000


GOTO / -6.94115591, 0.32721406, -0.06047363, $


0.00000000, 1.00000000, -0.00000000


CIRCLE / -6.96290662, 0.32721406, -0.17463410, $


0.00000000, -1.00000000, 0.00000000, 0.11621406


GOTO / -7.07516078, 0.32721406, -0.20471252, $


0.00000000, 1.00000000, -0.00000000


GOTO / -7.06943360, 0.32721406, -0.22608663, $


0.00000000, 1.00000000, -0.00000000


CIRCLE / -6.95718164, 0.32721406, -0.19600000, $


0.00000000, -1.00000000, 0.00000000, 0.11621406


GOTO / -6.95718164, 0.32721406, -0.31221406, $


0.00000000, 1.00000000, -0.00000000


GOTO / -6.56776061, 0.32721406, -0.31221406, $


0.00000000, 1.00000000, -0.00000000


CIRCLE / -6.56776061, 0.32721406, -0.41221406, $


0.00000000, 1.00000000, -0.00000000, 0.10000000


GOTO / -6.46776061, 0.32721406, -0.41221406, $


0.00000000, 1.00000000, -0.00000000


CUTCOM / OFF


GOTO / -6.46776061, 0.32721406, -0.51221406, $


0.00000000, 1.00000000, -0.00000000


RAPID


GOTO / -6.46776061, 1.00000000, -0.51221406, $


0.00000000, 1.00000000, -0.00000000


COOLNT / OFF


SPINDL / OFF


$$-> END /


$$-> FEATNO / 8493


PPRINT / TOOL COMMENTS


PPRINT / T77490-1 SPOT DRILL


LOADTL / 2 $$-> T77490-1 SPOT DRILL


$$-> CUTTER / 0.250000


$$-> CSYS / 1.0000000000, 0.0000000000, 0.0000000000, 0.0000000000, $


0.0000000000, 0.0000000000, -1.0000000000, 0.0000000000, $


0.0000000000, 1.0000000000, 0.0000000000, 0.0000000000


SPINDL / RPM, 3000.000000, CLW


COOLNT / ON


RAPID


GOTO / -5.69002410, -1.00000000, -0.09160350, $


0.00000000, -1.00000000, 0.00000000


CYCLE / CSINK, DIAMET, 0.150000, TLANGL, 90.000000, IPM, 15.000000, CLEAR,$


0.100000


GOTO / -5.69002410, -0.27500000, -0.09160350, $


0.00000000, -1.00000000, 0.00000000


CYCLE / OFF


RAPID


GOTO / -5.69002410, -1.00000000, -0.09160350, $


0.00000000, -1.00000000, 0.00000000


COOLNT / OFF


SPINDL / OFF


$$-> END /


$$-> FEATNO / 8897


PPRINT / NC SEQUENCE COMMENTS


PPRINT / MILL CORNER BREAK


PPRINT / TOOL COMMENTS


PPRINT / T77490-1 SPOT DRILL


LOADTL / 2


$$-> CUTTER / 0.050000


$$-> CSYS / 1.0000000000, 0.0000000000, 0.0000000000, 0.0000000000, $


0.0000000000, 0.0000000000, -1.0000000000, 0.0000000000, $


0.0000000000, 1.0000000000, 0.0000000000, 0.0000000000


SPINDL / RPM, 5000.000000, CLW


COOLNT / ON


RAPID


GOTO / -5.82029202, -1.00000000, 0.22925080, $


0.00000000, -1.00000000, 0.00000000


RAPID


GOTO / -5.82029202, -0.47600000, 0.22925080, $


0.00000000, -1.00000000, 0.00000000


FEDRAT / 60.000000, IPM


GOTO / -5.82029202, -0.32721406, 0.22925080, $


0.00000000, -1.00000000, 0.00000000


CUTCOM / LEFT, 2


FEDRAT / 20.000000, IPM


GOTO / -5.91688460, -0.32721406, 0.20336889, $


0.00000000, -1.00000000, 0.00000000


CIRCLE / -5.89100270, -0.32721406, 0.10677631, $


0.00000000, -1.00000000, 0.00000000, 0.10000000


GOTO / -5.98759528, -0.32721406, 0.08089440, $


0.00000000, -1.00000000, 0.00000000


GOTO / -5.95889284, -0.32721406, -0.02622455, $


0.00000000, -1.00000000, 0.00000000


CIRCLE / -6.17837331, -0.32721406, -0.08500000, $


0.00000000, 1.00000000, -0.00000000, 0.22721406


GOTO / -6.17833200, -0.32721406, -0.31221406, $


0.00000000, -1.00000000, 0.00000000


GOTO / -6.95719063, -0.32721406, -0.31221406, $


0.00000000, -1.00000000, 0.00000000


CIRCLE / -6.95718164, -0.32721406, -0.19600000, $


0.00000000, 1.00000000, -0.00000000, 0.11621406


GOTO / -7.06943578, -0.32721406, -0.22607849, $


0.00000000, -1.00000000, 0.00000000


GOTO / -7.07516173, -0.32721406, -0.20470898, $


0.00000000, -1.00000000, 0.00000000


GOTO / -7.07515554, -0.32721406, -0.20470732, $


0.00000000, -1.00000000, 0.00000000


CIRCLE / -6.96290662, -0.32721406, -0.17463410, $


0.00000000, 1.00000000, -0.00000000, 0.11620765


GOTO / -6.94111233, -0.32721406, -0.06048846, $


0.00000000, -1.00000000, 0.00000000


GOTO / -6.94111135, -0.32721406, -0.06048336, $


0.00000000, -1.00000000, 0.00000000


CIRCLE / -6.75968138, -0.32721406, 0.88479138, $


0.00000000, -1.00000000, 0.00000000, 0.96252853


GOTO / -6.07856866, -0.32721406, 0.20468358, $


0.00000000, -1.00000000, 0.00000000


GOTO / -6.03299410, -0.32721406, 0.25032512, $


0.00000000, -1.00000000, 0.00000000


GOTO / -5.98759528, -0.32721406, 0.08089440, $


0.00000000, -1.00000000, 0.00000000


CIRCLE / -5.89100270, -0.32721406, 0.10677631, $


0.00000000, -1.00000000, 0.00000000, 0.10000000


GOTO / -5.86512079, -0.32721406, 0.01018373, $


0.00000000, -1.00000000, 0.00000000


CUTCOM / OFF


GOTO / -5.76852821, -0.32721406, 0.03606563, $


0.00000000, -1.00000000, 0.00000000


RAPID


GOTO / -5.76852821, -1.00000000, 0.03606563, $


0.00000000, -1.00000000, 0.00000000


COOLNT / OFF


SPINDL / OFF


$$-> END /





Thanks, Alan
 
Hi Allen,
I think I see what you're asking. You use the spot drill to spot drill then you create another nc sequence, maybe profile mill, to cut the chamfers. You have the same tool setup as a drill and a mill in the tool list(redundant, I know). When the post sees a new tool type it is outputting the tool change again.
I think you need to store the current tool in a variable called "LASTTL" then when you create a new sequence check the current tool number against "LASTTL" and skip the tool change output. This would be done in the UNCX01.Fxx FIL file for the machine.
I'm not sure this can be accomplished in the OFG portion of the post processor but I would check ther first.


Hope this helps or answers your ?,
Jay.
 
Hey Alan,

Certain tools you can use in multible/different sequences. When you spot/countersink define the tool as a countersink. When you deburr you can use a countersink as well, just make sure you use trajectory as you sequence.

Hope this helps

Tony
 
Tony, The output is still the same. Does not change the way the C/L files acts. It repeats the tool callout as if it is a new tool. We use a sub program instead of the M6 code tool change. The output is is the tool change statement. Jay is correct about the post being wrong. I just don't know what statement to putand avoid the changing of the current tool.
(T77490-1 SPOT DRILL)<?:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><?:NAMESPACE PREFIX = O /><O:p></O:p>
(SPOT DRILL BOTH SIDES)<O:p></O:p>
N1045 M98 P9120 (Tool Change Sub Program)<O:p></O:p>
N1050 T03<O:p></O:p>
N1055 S3000 M3<O:p></O:p>
N1060 G0 G90 G54 X-5.69 Y.0916 A90.<O:p></O:p>
N1065 G43 H02 Z1. M8<O:p></O:p>
N1070 G81 G99 Z.2 R.375 F15.<O:p></O:p>
N1075 G80<O:p></O:p>
N1080 G0 Z1.<O:p></O:p>
<O:p></O:p>
(T77490-1 SPOT DRILL)<O:p></O:p>
N1085 M98 P9120 (Tool Change Sub Program)<O:p></O:p>
N1090 T03<O:p></O:p>
N1095 S5000 M3<O:p></O:p>
N1100 G0 X-6.6678 Y.5122 A90.<O:p></O:p>
N1105 G43 H02 Z1. M8<O:p></O:p>
 
Hi Allen,
Can you attach your FIL file to an email to [email protected]? I want to look at it this weekend and see if I can help you out. I looked in the OFG and did not see a setting that might help resolve your particular situation.
If the tool change sub-program isn't huge, attach that also. I'm interested to see what shops do inside the tool change sub-program. We don't do that here. Just wondering if we should.


Thanks,
Jay.
 
Alan

Didn't you define one as a drill and the other as mill, hence 2 different tools, but using the same pocket number?
Looking at your cl output you have 2 different tools and they still use the same pocketnumber. It will always output 2 different tools.

Yes you can customize your post to handle that situation.

What I do is define it as a countersink and then use the countersink to mill (trajectory) instead of the sketched tool. If your toolype is the same it will not output another loadtl.

I know this works.

At least it does it on my end. Using W4

Tony

Call me if you have any questions

650-868-1810
 

Sponsor

Articles From 3DCAD World

Back
Top