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:

Turret selection handled in post?


Recommended Posts

Hey folks, we have an LU-400 lathe with an upper and lower turret. I would like to setup the post to output a G13 (upper turret) or G14 (lower turret) on each tool change depending on which turret I put the tool in.

My machine definition is already setup with the turrets defined, I just need a way to output the command. I see there is a misc. parameter 1016 with the lturret$ (0=lower turret, 1=upper turret) command. I'm sure I can use this parameter in some way but I'm not sure how to set it up. Any ideas?

Link to comment
Share on other sites

Hey folks, we have an LU-400 lathe with an upper and lower turret. I would like to setup the post to output a G13 (upper turret) or G14 (lower turret) on each tool change depending on which turret I put the tool in.

My machine definition is already setup with the turrets defined, I just need a way to output the command. I see there is a misc. parameter 1016 with the lturret$ (0=lower turret, 1=upper turret) command. I'm sure I can use this parameter in some way but I'm not sure how to set it up. Any ideas?

 

Try using a string selector and use lturret$ as the selector variable or just add the logic with an if statement. Don't know what post you are using but search it for lturret$ and see if and how it is used in other situations for some ideas. If need be you can always use the axis combination in the machine definition as well.

 

If you are using a Mastercam lathe post then most likely you already have a user defined variable lathtype that you can use to determine the turret/spindle combination. lathtype is calculated from lturret$ and spindle_no$

 

lathtype     : 0     #Lathe turret and spindle selection
                    #0 = Bottom turret/Left spindle
                    #1 = Top turret/Left spindle
                    #2 = Bottom turret/Right spindle
                    #3 = Top turret/Right spindle

Link to comment
Share on other sites
  • 1 month later...

This change was easier than I thought :)

 

      if lturret$ = 1,				#added 5/24/2011 gms
     	[
     	pbld, n$, "G13", "(UPPER TURRET)", e$
     	]
     if lturret$ = 0,
     	[
     	pbld, n$, "G14", "(LOWER TURRET)", e$
     	]

 

I added this to my ltlchg$ section of the post and it works like a champ!

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