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:

Selecting main or sub spindle when milling


Recommended Posts

HI all

Looking for some help and advice,

I have a mill turn post for our machine that had a b axis milling head spindle and a main and sub spindle,

Our post wasn't selecting the correct spindle when doing milling it always seemed to default to the main spindle so I have had a look.

I looks like the spindle selection on the mtlchg$ was the same as the spindle selection for the ltlchng$ it was based on which spindle was active which seemed fine for turning but not for milling as I think with only one milling spindle there isn't other to choose from.

Most of our milling on the sub spindle is done at B180 so for the moment I have done the following 

#n$, [if spindle_no$, "G112"], "M302", e$
   n$, if bout = 180, "G112","M300",e$
       else,                 "M302",e$

The Commented out area is what the code was like . I know this will only cover when B axis is at 180. what other way could I do this to allow selection of the sub when B axis is between 90 and 180. I know I can use greater than and lest than but 90 gets used on the main spindle too so I'm not wanting the two option to collide with what to select.

 

I was planning on using Misc function  0 for main spindle and 1 for sub but when I filled in the text at the bottom of the post it wouldn't show in the Misc fields on the operations and in the CD it is set to select text from post file.

 

Thanks in advance 

Graeme3529

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