Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

fanuc file searching


machinehead
 Share

Recommended Posts

i have to post programs for 80 variations of an engraving, and would like to be able to call them

up (on a fanuc 'pro a' controller)as simply as possible since there are so many.

 

right now, my thinking is to name them in order from A1 to A80 or something like that, but maybe someone has been down this road and has a better idea...

 

thanks.

Link to comment
Share on other sites

Custom Macro is the best way to go. This an example of what might work for you . If you input the part number the machine will know what part you want to run.

 

%

O1000(MAIN PROGRAM MACRO HEAD #2)

G20

(===============================)

(ENTER PART # ON MACRO VAR. #500)

(===============================)

G0G10L2P0X0.Z0.

G0G10L2P1X0.Z0.

M86(DOOR CLOSE)

M11(CHUCK OPEN)

M25(TSK OUT)

G04X.250(DWELL)

M10(CHUCK CLOSE)

M200(CHIP CONVEYOY START)

(===============================)

M01

(===============================)

IF[#500EQ6005.1]GOTO1001(PART 1)

IF[#500EQ6005.2]GOTO1002(PART 2)

IF[#500EQ6005.3]GOTO1003(PART 3)

IF[#500EQ6005.4]GOTO1004(PART 4)

IF[#500EQ6005.5]GOTO1004(PART 5)

IF[#500EQ6005.6]GOTO998(PART 6)

GOTO999

N1001M98P8001(PART 1)

M99P32

N1002M98P8002(PART 2)

M99P32

N1003M98P8003(PART 3)

M99P32

N1004M98P8004(PART 4)

M99P32

N1005M98P8005(PART 5)

(===============================)

N32

M01

M300(COUNT TOOL LIFE)

M201(CHIP CONVEYOY STOP)

M85(DOOR OPEN)

M30

 

N998(ALARM)

G28U0.W0.

#3000=10(PART NOT PROGRAMMED)

 

N999(ALARM)

G28U0.W0.

#3000=15(NO PART # SET)

%

Link to comment
Share on other sites

quote:

boss's thought is, for only one job it's not worth it.

frown.gif

 

to fab up the macro would not take that long you already have the programs just got to set a variable tell the program where to go from that variable and the program launches (short version)

if you do it by hand you just doing the macro manually and it would take more time switching programs vs just changing a variable number wink.gif

JMO

good luck to ya cheers.gif

Link to comment
Share on other sites

thanks tony.

I know it's kind of lame, but the truth is,

1. we haven't used any macro programming here before, and

2. the operator is newish and a 9.5 on a 'scared to try something different' scale.

 

As for the boss's comment, he is right in this case anyway. because by the time we (who haven't used them before) write the macro, get scaredy cat used to the idea, deal with his drama, and run the parts, we would not have saved any time. this is most likely the only time we would run this particular job, even though learning a new method may pay dividends in the future.

 

however,on a much happier note, when i expressed my opinion on not letting ourselves get trapped in our stale ways, i was not fired on the spot.

Link to comment
Share on other sites

quote:

'scared to try something different'

i get the same bs.gif here.

sometimes its just better to do it (the macro) then listen to the crying later at the machine frown.gif and hold there hand so that everybody can see that a new way maybe better and easier then what they have been doing it for over 20+ years bonk.gif

 

the most common saying here is

 

"thats how we have always done it" mad.gif

 

keep up the good fight tongue.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...