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:

How to tell the shape of Stock Setup?


Recommended Posts

I'm completely new at trying to modify a generic post and am getting close to my goal

at customizing our header output. I've got everything working the way we want so far,

but the issue I see us running into is an error occurring if the user has selected a stock

type other than rectangular in Stock Setup. Is there a way of determining which type the

user has selected so I can write an if statement around certain situations? Any help would

be greatly appreciated.

 

Thanks

  • Like 1
Link to comment
Share on other sites
Something out of some post work I have done......

 

pstock_info # DETERMINE STK NOTES

            if stck_ht$ = 0 & stck_wdth$ = 0 , pfinished

            if stck_ht$ > 0 & stck_wdth$ > 0 , psquare

            if stck_ht$ > 0 & stck_wdth$ = 0 , pround

 

pfinished  # OUTPUT OLD PART

            "(",no_spc$,"SOME WORK FROM PREVIOUS OP ALREADY DONE",no_spc$, ")",e$

            "(",no_spc$,"***MAKE SURE TO READ ALL NOTES ON ROUTER FOR THIS OP***",no_spc$, ")",e$

 

psquare     # OUTPUT STK

            material_ht = stck_ht$

            material_wd = stck_wdth$

            material_thk = stck_thck$

            "(","PART IS"," ", material_ht, no_spc$, 34 ," X ", material_wd, no_spc$, 34 , ," X ", material_thk, no_spc$, 34 ," PIECE OF STK.", ")",e$

            #"(","PART IS","", stck_ht$ ," BY", stck_wdth$ ," BY", stck_thck$ ," PIECE OF STK.", ")",e$   # original line

 

pround      # OUTPUT LATHE BLANK

            "(","PART IS","", stck_ht$ ," DIA BY", stck_thck$ ," THICK" ,")", e$

Link to comment
Share on other sites

I couldn't get this to work correctly:

 

if stck_ht$ > 0 & stck_wdth$ = 0 , pround

 

But if I changed it to this:

 

if stck_ht$ > 0 & stck_thck$ = 0 , pround

 

It seemed to come out right. I'm using the Generic Fanuc 3 Axis Mill

post to create a new post by the way. Didn't mention that before.

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...