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:

HMC Rotation question


cibak1
 Share

Recommended Posts

The control( Fanuc Sigma 16 or 18 ?, Brand New ) on the HMC we're using will not understand a decimal point as far as the rotation angle goes( as in B90.) On this machine the table is strictly an indexer. I am using MPFAN post altered somewhat, but not the stuff dealing with table indexing. I need the post to post out the B value without decimal points ( ex. B90, B110, B180, B210, etc. ). Any help with the post would be greatly appreciated.

 

Also, is there anyway I can get it to always post The B value as a postive value to never exceed B359? For example, if I was at B270 and rotated 90 degrees Pos. it would go back to B0 in the G code.

 

Thanks again

Link to comment
Share on other sites

Change the fmt of the B and that should take care of that.

 

code:

fs2 4   1 0 1 0     #Integer, not leading 

This would be my guess for the one to use so look here.

code:

fmt  B  11  cabs        #C axis position

fmt B 14 cinc #C axis position

fmt B 4 indx_out #Index position

Now for the limit of 360 I do not see this in MPFAN so I would download a copy of MPMASTER from this web site. Look up at the top of the web page will see posts. That is where you can get it from. Use that as a road map to Add the limit or just modify this kick arse post to your liking and you have a sweet post for doing HMC work. I use a modified version of it on ours and does some really nice work. I just got done doing a 130 op 10 hour run per part job and a 4 hour 45 op run job using this post and had no problem with the posted code.

 

HTH

Link to comment
Share on other sites

Thanks but not sure exactly what or how to change the code. I will experiment a little and see what I get. I have very very little experience messing with posts. Been using MC since ver. 5 but only for vmc's and never had a problem with our post. All new to the Horizontals though. Another month or 2 I'll be askin questions on VTL's, so I won't be goin away anytime soon.

 

Thanks again and I'll let you know how I make out.

Link to comment
Share on other sites

I usually add this to the mpfan post to keep the angles between 0 and 360.

code:

pcoutrev        #Rotary axis revolution calculation (Modify for wind-up)

...

...

if cuttype <> one, cabs = rev * 360 + csav

else, cabs = sav_rev * 360 + csav

while cabs <= -360, cabs = cabs + 360# <=== new line

while cabs >= 360, cabs = cabs - 360# <=== new line

!csav

Link to comment
Share on other sites

HTH,

 

Please explain further. My code is the same as you put up here. What exactly do I need to change to get rid of the decimal points after the B values?

 

Steve,

 

Thanks. I changed my code to what you showed me and the rotation did not exceed 360 in my test program. Still need to get rid of the decimal points though. I'm told it will cause an alarm at the control.

 

Thanks guys,

 

Jim Cibak

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