Sign in to follow this  
ravidahiwala

change 4th axis rotary output

Recommended Posts

Hello!!

We have modified MP master X4 vertical mill 4 axis post, set B is rotation around x axis and CW is positive.  For simple index drilling two holes at B20 and B-20, post gives continuous output of " B20 and B340 ". 

I tried changing all rot_type 0, 1, 2 in the post but didn't get desired output. how can i get B20 - B-20 type output.

Sincerely,

Ravi.

Share this post


Link to post
Share on other sites

You might want to look at the Machine Definition for the rotary axis.

The first thing you see is a machine tree at the lower right side.  There should be something called "VMC A axis"  under the "Mill table group" tree - dbl click on it and another window comes up with extra parameters...

The section you might want to play around with is in the lower right side.  My 4th axis is set to "Signed direction, absolute angle (0-360 deg)"

You might have to play around with those settings to see what works.

I could be wrong, but give it a try.

  • Like 1

Share this post


Link to post
Share on other sites

Thanks Jeremy, I tried it all but same output comes. My default Machine is set at " Shortest Direction, absolute angle 0-360 deg ". Even i tried changing direction but same results with opposite sign. i think post has something which overrides.

Share this post


Link to post
Share on other sites

You answered your own question. The "shortest direction, absolute angle" gives you the output that is limited to 0-360 degrees. There are three different radio button options. You want "signed continuous".

  • Like 2

Share this post


Link to post
Share on other sites

Colin,

I tried " signed continuous" too but got same output. I am attaching some of the post settings screen shoot used with signed continuous. 

Thanking you,

Ravi.

Capture 4.JPG

Capture 2.JPG

Capture 3.JPG

Capture 1.JPG

Capture.JPG

Share this post


Link to post
Share on other sites

Have you tried limiting the travel of the Axis to +180.00 and -180.00.

Share this post


Link to post
Share on other sites

Ron,

Limiting Rotary travel gave the error instead of reversing the direction. and error comes in all 3 options of signed continuous, Signed absolute & Shortest absolute.

Thanking you,

Ravi.

 

Capture 2.JPG

Capture 1.JPG

Capture.JPG

Share this post


Link to post
Share on other sites

Okay did you try changing direction after making this change? I see CCW direction did you try CW dretion after making the limits the 180. Did you try 360. and -360. as limits?

Share this post


Link to post
Share on other sites

Did anyone find a solution to this? I've been having this problem as well but wasn't a big deal until now - I have a part that will crash into the machine if the table swings all the way around the back. I need a solution to this.

Share this post


Link to post
Share on other sites

And yes, I've also messed around with all of the obvious things. I too believe this is something with the post, not the control and/or machine definitions.

Share this post


Link to post
Share on other sites
1 hour ago, Cavi Mike said:

And yes, I've also messed around with all of the obvious things. I too believe this is something with the post, not the control and/or machine definitions.

 

Try modifying your 'pxyzcout0' Post Block. I did not test this much, but it seems to do what you want...

pxyzcout0       #Toolplane Positioning
      xabs = vequ(x$)
      iout = vequ(i$)
      if cuttype = 2 & rot_on_x = two & vmc, c$ = -atan2(vtoolx$,vtoolz$)
      if c$ > 180, c$ = c$ - 360 #Force "negative rotation from Zero, for any angle > 180
      if rot_on_x = two, csav = -c$
      else, csav = c$

Edit: to be clear, I tested this with exactly 3 drill points. One at "top", one with a plane rotated "-20 degrees" about X, and another plane rotated "+20 degrees" about X. Here is my output:

%
O0123 (T)
(MPMASTER GENERIC 3/4-AXIS VERTICAL)
(MACHINE GROUP-1)
(MCX FILE  - T)
(PROGRAM   - T.NC)
(DATE      - DEC-26-2019)
(TIME      - 2:15 PM)
(T9   - 4 CENTER DRILL       - H9   - D9   - D0.3125")
N100 G00 G17 G20 G40 G80 G90
N110 G91 G28 Z0.
N120 (DRILL FROM TOP)
N130 M08
N140 T9 M06 (4 CENTER DRILL)
N150 (MAX - Z2.)
N160 (MIN - Z-.15)
N170 G00 G17 G90 G54 A0. X0. Y0. S1000 M03
N180 G43 H9 Z2.
N190 G94
N200 G98 G81 Z-.15 R.1 F5.
N210 G80
N220 G91 G28 Z0.
N230 (PLUS 20)
N240 G00 G90 G55 A20. X0. Y0.
N250 G43 H9 Z2.
N260 G98 G81 Z-.15 R.1 F5.
N270 G80
N280 G91 G28 Z0.
N290 G00 G90 G56 A-20. X0. Y0.
N300 G43 H9 Z2.
N310 G98 G81 Z-.15 R.1 F5.
N320 G80
N330 M09
N340 M05
N350 G91 G28 Z0.
N360 G28 Y0. A0.
N370 G90
N380 M30
%

 

  • Like 2

Share this post


Link to post
Share on other sites
2 hours ago, Cavi Mike said:

Did anyone find a solution to this? I've been having this problem as well but wasn't a big deal until now - I have a part that will crash into the machine if the table swings all the way around the back. I need a solution to this.

I think my solution ought to work for what you are trying to do. It would limit output theoretically to +-180 from Rotary Zero. 'c$' is calculated using 'ATAN2', which outputs an angle of 0-360, so this should work to "phase shift" anything over 180 degrees.

  • Like 1

Share this post


Link to post
Share on other sites

I forgot to reply to this yesterday, I changed a value in pcoutrev from 360 to 180 and got what I was looking for. I actually then changed it to 225 so I could go past 180 if need be. If this causes me problems I'll give yours a shot.

while cabs > 225 & absinc$ <> 1, cabs = cabs - 360

 

  • Like 1

Share this post


Link to post
Share on other sites

That's another good place to try to modify the Rotary Output. Glad you got something that is working for you.

Share this post


Link to post
Share on other sites

Disclaimer:

For anyone who might be playing along and watching this thread: use these Post Modifications at your own risk!!!

Neither myself, nor my employer (Selway Machine Tool Company), will be liable for any damage that might occur to your machine(s), as a result of modifying your Posts, using edits that I've suggested in this, or any other thread on Emastercam.

As I noted in my original post in this thread; make sure you test the output of your Post very carefully before trusting in these Post edits...

  • Like 1

Share this post


Link to post
Share on other sites

Never actually thought to check the location of Selway until now, turns out we're (sort of) neighbors. I'm in Vancouver. Small world.

Share this post


Link to post
Share on other sites
3 hours ago, Cavi Mike said:

Never actually thought to check the location of Selway until now, turns out we're (sort of) neighbors. I'm in Vancouver. Small world.

Good to hear Mike. Vancouver, BC or Vancouver, WA?

I guess both are about equidistant from us in Auburn. Glad to hear you are (relatively) local.

Not sure if you have any interest, but Selway is running a 1-Day Mill Operator Training Class on January, 15th. This will be for Haas Mills, and I'll be covering basic safety and machine operation. You can contact Jessica or Kimberly at our local office on Monday for more information. 253-850-8900.

Share this post


Link to post
Share on other sites
On 12/26/2019 at 4:26 PM, Colin Gilchrist said:

I think my solution ought to work for what you are trying to do. It would limit output theoretically to +-180 from Rotary Zero. 'c$' is calculated using 'ATAN2', which outputs an angle of 0-360, so this should work to "phase shift" anything over 180 degrees.

I was having this same issue and your fix did exactly what I needed. If I had a part on the 0 side and wanted to machine on the 270 side, it would post A270. But, if my part was too big to go all the way around, I would have to manually edit the A270. to A-90. With this edit to the post, I now get -A90. for the 270 side, and A90. for the 90 side. Thanks!

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • 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