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:

Adding 90 degrees to the "C" output


Joeyls319
 Share

Recommended Posts

If it is for a C axis lathe, are all of your planes starting off of a Back Plane rotation?

 

Back plane is C 0

 

If is a Mill, you'll need to set up the vectors properly

 

#Preferred setup is pri. zero matches sec. zero/direction

#Zero machine and determine the planes perp. to axis rotations

#These plane combinations are valid:

#Primary plane XY XZ YZ

#Secondary or XZ XY XY

#Secondary YZ YZ XZ

 

#Primary axis angle description (in machine base terms)

#With nutating (mtype 3-5) the nutating axis must be the XY plane

rotaxis1$ = vecy #Zero

rotdir1$ = -vecx #Direction

 

#Secondary axis angle description (in machine base terms)

#With nutating (mtype 3-5) the nutating axis and this plane normal

#are aligned to calculate the secondary angle

rotaxis2$ = vecz #Zero

rotdir2$ = vecy #Direction

Link to comment
Share on other sites

thank you however I made the correction in the post and now all my coordinates are off by 90 degrees including the X and Y values except for the B values.

 

I should have mentioned that it is a mill. I got a table on table configuration with a small trunnion on the table.

Link to comment
Share on other sites

If it is for a C axis lathe, are all of your planes starting off of a Back Plane rotation?

 

Back plane is C 0

 

If is a Mill, you'll need to set up the vectors properly

 

#Preferred setup is pri. zero matches sec. zero/direction

#Zero machine and determine the planes perp. to axis rotations

#These plane combinations are valid:

#Primary plane XY XZ YZ

#Secondary or XZ XY XY

#Secondary YZ YZ XZ

 

#Primary axis angle description (in machine base terms)

#With nutating (mtype 3-5) the nutating axis must be the XY plane

rotaxis1$ = vecy #Zero

rotdir1$ = -vecx #Direction

 

#Secondary axis angle description (in machine base terms)

#With nutating (mtype 3-5) the nutating axis and this plane normal

#are aligned to calculate the secondary angle

rotaxis2$ = vecz #Zero <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< try changing this to vecx

rotdir2$ = vecy #Direction

 

If you make that change, do you see anything get posted differently?

Link to comment
Share on other sites

When I do this:

 

rotaxis2$ = vecz #Zero <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< try changing this to vecx

rotdir2$ = vecy #Direction

 

I get this:

 

M69

M72

T4 M6(.093" ENDMILL | TOOL DIA. - .0938)

G00 G90 G56 X.6559 Y-.0596 C23.95 B0. S8149 M03

M68

M71

 

and it should be:

 

M69

M72

T4 M6(.093" ENDMILL | TOOL DIA. - .0938)

G00 G90 G56 X-3.8823 Y-.0596 C-66.05 B30.9889 S8149 M03

M68

M71

 

 

I also get a error message when posting which says SETUP FOR PRIMARY OR SECONDARY AXIS IS ILLEGAL.

 

 

I emailed my reseller 3 weeks ago to look into this for me and I haven't heard back from them. I sent them a sample file (zip2go). I sent a reminder email today and still not reply.

Link to comment
Share on other sites

Here is a zip file of the file I'm currently working on.

I had to remove a few of the larger toolpathes to get the file size down but my 5 axis moves are still in there.

 

Attached also is a copy of what the program should look like. ( I compared it to a file I ran through Camplete)

I want to get away from using Camplete and just have Mastercam post out the code.

 

 

 

 

Thank you so much for your help.

 

Joey

67300-1008.Z2G

FIRST OPERATION.zip

Link to comment
Share on other sites

Here is a zip file of the file I'm currently working on.

 

I had to remove a few of the larger toolpathes to get the file size down but my 5 axis moves are still in there.

 

 

Attached also is a copy of what the program should look like. ( I compared it to a file I ran through Camplete)

 

I want to get away from using Camplete and just have Mastercam post out the code.

 

 

 

 

Thank you so much for your help.

Link to comment
Share on other sites

Thanks guy in the desert.

 

Joey, try making your post look like this... for the vecx,y,z things...

BTW, your post is throwing errors... some are in the PSB and will need attention from whoever you got the post from.

But with the below settings, I get the right angles.

 

#Primary axis angle description (in machine base terms)
#With nutating (mtype 3-5) the nutating axis must be the XY plane
rotaxis1$ = vecx  #Zero       
rotdir1$  = vecy #Direction  

#Secondary axis angle description (in machine base terms)
#With nutating (mtype 3-5) the nutating axis and this plane normal
#are aligned to calculate the secondary angle 
rotaxis2$ = vecz  #Zero        
rotdir2$  = vecy  #Direction   

Link to comment
Share on other sites

K2csq7

 

Thank you.

 

I made my post look like what you posted and then I posted out the third eration (rough left side) and I get C-90. instead of C180. Did you do anything with the misc. values? This is driving me crazy. Very Frustrating. I feel it's pretty close but I can't figure it out.

 

Also, I know about the errors but not sure how to fix them. All I've been doing is editing a generic haas 5th axis post. not sure where they came from.

Link to comment
Share on other sites

Why are you using C and B? The way ours are set up, look at a "Normal" trunion. A is along the X axis, and that motor is plugged into the "4th axis" connector. The platter, whiched could be called B or C, is called B and is plugged into the 5th axis connector.

 

With a Y axis trunion, everything is hooked up the same, just the actual rotary is bolted down 90 deg off. So B axis is still the platter, A axis is still the trunion.

 

Hook it up that way. Take the out of the box generic Hass TR 5 axis post, change the rot vectors as shown above, set brk_max_ang to 90, and if yo've got the trunion mounted on the right end of the table, set the last Misc Int to 1 so it only rotates positive.

Link to comment
Share on other sites

I use this settings in Generic Fanuc 5X Mill

 

#Primary axis angle description (in machine base terms)

#With nutating (mtype 3-5) the nutating axis must be the XY plane

rotaxis1$ = vecx #Zero

rotdir1$ = vecy #Direction

 

#Secondary axis angle description (in machine base terms)

#With nutating (mtype 3-5) the nutating axis and this plane normal

#are aligned to calculate the secondary angle

rotaxis2$ = vecz #Zero

rotdir2$ = vecx #Direction

 

 

and

 

[CTRL_MILL|GENERIC HAAS VF-TR_SERIES 5X MILL_JOEY]

[misc integers]

.......

.......

10. "Secondary axis [0=off, 1=Pos, 2=Neg]"

Link to comment
Share on other sites

Joey, I didn't do anything with the misc values.

The errors in the PSB bother me. You have to contact your reseller about the post or follow guyinthedesert's advise and start with a fresh post.

It seems he has almost the same machine, so open up the genaric haas that came with mcam, make the changes above and see what you get.

 

The errors in the PSB could be causing you to chase ghosts....

Link to comment
Share on other sites

Would it be better to use the haas post or the fanuc 5x mill post. the machine is fanuc control.

 

Joey

 

I use the Fanuc 5X and the Haas here. It's been a while but I believe I had to do just a little editing to the Haas post to get it the way I wanted it as far as vectors go. My Haas has the trunnion sitting along the X.

 

Your setup looks like a RoboDrill, I'm I right? I'd go with the Fanuc.

From what I remember the Fanuc should come out of the box with the vectors the way you need them. Might have to mess with the integers a bit depending on where you want the bias to be.

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