free program (might need debugged)

Nov 10, 2009 5 Replies

I wrote this program for fanuc. It runs 8 positions, forward or reverse. If you set your post up so each toolchange is an N number, as in N100 is tool 1, N200 is the next toolchange, etc... this program will run the first tool on all 8 positions, then the second tool, as opposed to the whole program running position 1, then position 2. Saves toolchange time, wear on toolchanger, etc... This particular setup uses G54.1, G54.2, etc... I havn't had a chance to debug it. Sometimes I make small syntax errors first try, but usually my logic is ok.



Use it if you want, don't if you don't.


Oops, I forgot to paste the damn thing, lol/ I'll paste it in tommorrow. duuuuh

Paste it in? WTF are you talking about? If you're trying to share a program, zip it up and send it to a webserver someplace, then post a link to it. You're not going to get it done via usenet, unless you post it to a binaries group.

relax, its just a few lines of g code.

*****

O1000; ; ; #100 = 1 (ENTER 1 FRONTSTART, 11 BACKSTART); #200 = 8 (ENTER NUMBER OF LOCATIONS); #300 = 6 (ENTER TOTAL NUMBER OF TOOLS); ; ; #333 = 0; N4000; #333 = #333 + 1; #222 = .#100; N5000; IF [#333 GT #300] M30; G54#222G90G00X0Y0; M98 P#333; #222 = #222 + .1; IF [#222 GT #200] M98 P4000; M98 P5000; ; ; ; ; ; ; N100

*******

Doh, my bad.... sorry. Who's the dumbass now?

Vinny,

The problem with this code is it's neither seamless or unified, it appears to have some sort of history tree, and it won't run inside of SW.

That said, cudos for something on topic for this group!

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required