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:

Pallet unclamp between toolpathe


Recommended Posts

Trying to work a little voodoo on my generic fanuc 4 axis post. Just did a job where I needed to go from a standard contour toolpath to a 5 axis curve. The contour toolpath is a linear ramp move to get the tool down to the correct Z and the starting X position of the curve toolpath. My issue is that I need to unlock the B axis before the machine can rotate and the post doesn't do it so I edited the program so I could get the program to the operator. Now that I have time I want to fix the post so it'll output the unclamp code before the B rotates. I have my post set up right now so if the 5 axis toolpath is the 1st operation it won't post the lock code after the B rotation, but I cannot figure out where to put the code so the post unlocks the B before the 5  axis.

Any idea on where in the post I need to put my  "if" statement? Been a long day already and probably just not seeing things correctly.

 

Thanks.

Link to comment
Share on other sites

I achieved this using canned text

" if cantext$ = 6, strcantext =  strcantext + "M46"
        if cantext$ = 7, strcantext =  strcantext + "M47""

 

 

        <canned_text>
            <canned_text_1>
                <text>Stop</text>
            </canned_text_1>
            <canned_text_2>
                <text>Ostop</text>
            </canned_text_2>
            <canned_text_3>
                <text>Bld on</text>
            </canned_text_3>
            <canned_text_4>
                <text>bLd off</text>
            </canned_text_4>
            <canned_text_5>
                <text>S6000 In Cycle Speed Change</text>
            </canned_text_5>
            <canned_text_6>
                <text>M46 (TABLE UNLOCK)</text>
            </canned_text_6>
            <canned_text_7>
                <text>M47 (TABLE LOCK)</text>
            </canned_text_7>
            <canned_text_8>
                <text>M8</text>
            </canned_text_8>
            <canned_text_9>
                <text>M9</text>
            </canned_text_9>
            <canned_text_10>
                <text>M10</text>
            </canned_text_10>
        </canned_text>

Link to comment
Share on other sites

Something else I probably should have mentioned is that the tools ends at the same spot as the start of the 5 axis toolpath so all the post/tool does is at the end of the contour toolpath is to rapid the tool to my clearance plane then brings the tool right back down without moving the X,Y or B.

Oh and another thing is that all of my planes are set to use the same work offset, which I think is where my problem is coming from.

Edited by BBprecise
Link to comment
Share on other sites
47 minutes ago, Old_Bear said:

A change of operation should still run it through the null tool change block

 

As such, the canned text can still work

It very well may Bear, just haven't tried your suggestion yet. Other fires to put out 1st. 😁

  • Like 1
Link to comment
Share on other sites

I ended up getting the post to do what I needed with the exception that it's posting an extra unclamp code, but I can deal with that as I don't use 5 axis curve very often. Better to have it then not. Ended up having to add what I needed to the prapidout section of post. Maybe someday I'll fix the double unclamp code but that's for another day.

Thanks for the suggestions guys.

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