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:

MPMASTER Based Post - No Rotary Output


Recommended Posts

Hey folks,

Having a problem with our post for a Mats VX660 with A Axis rotary. My feeling is something small is stopping the rotary output.

MC2022. MPMASTER with some tweaks to run how we like.

It posts out the M22 and M21 codes just fine, so I know the post knows where the A0 should go ( or A90 depending on the C/T plane, I have uncommented sav_rot_on_x = rot_on_x to always output rotary moves on the Top plane etc.).

Posting with the generic MPMASTER or Fanuc 4ax Generic works, and I have run a test program on the machine. So I know my tool planes are correct as well: WCS Top, G54 for all ops, created planes for bottom and back, with X+ in the right orientation, been going through anything I can find to try and figure it out.

 

Below is a sample of code for a t/c which should include 'A0' between the unlock and lock:

Quote

N10G00G17G40G80G90
T1  ( 0.5 FLAT ENDMILL ) 
M6
M22 (UNLOCK ROTARY)
N15 G00 G17 G90 G54 X-.05 Y-1.7142 S8000 M03
M21 (LOCK ROTARY)
G43 H1 Z7. M08 T1
Z4.
G131  ( HI-SPEED ON )
( O15-1 ) 
G00 G54 X-.05 Y-1.7142
Z2.1
G01 Z1.4142 F50.
Y-1.4142 F30.
Y1.4142
Y1.7142

...

Also there are A0's, 90's, 180's and 270's in the NCI file. And only a few numbers differ in the nci between the generic posts that work, and the one in question. I have a feeling there is something small I am missing to enable this output. Have tried for a few days looking here, and trying to scour the .pst files for differences and all mentions of "index", "rotary" and "rot" etc.

I want to be able to fix these types of issues for the shop moving forward. I'm keen to learn as much as I can and make a bold and mighty attempt before calling in the reseller for edits or going nuclear and moving to IKE.

Any help would be much appreciated, thanks in advance for your eyeball time.

Link to comment
Share on other sites

I am going to have to suspect you were already at A0 from a previous tool or operation and that is why you didn't get the output. Yes you un-commented that line, but if you were already at A0 and there is not a force on the line and it was changed to a modal pcout verses the pfcout it was then I was think the post is doing exactly what it should be. pfcout forces the A Axis output no matter if is at the same angle where as the pcout will not output the A Axis output if it is the same.

pfcout          #Force C axis output
      if index = zero & rot_on_x,
        [
        if use_rotmcode & (fmtrnd(cabs) <> fmtrnd(prv_cabs) | sof), *sindx_mc
        if absinc$ = zero, *cabs, !cinc, !cout_i
        else, *cout_i, !cinc, !cabs
        ]

pcout           #C axis output
      if index = zero & rot_on_x,
        [
        if use_rotmcode & fmtrnd(cabs) <> fmtrnd(prv_cabs), *sindx_mc
        if absinc$ = zero, cabs, !cinc, !cout_i
        else, cout_i, !cinc, !cabs

 

  • Thanks 1
Link to comment
Share on other sites

Ron, thanks for your feedback!

This tool in particular is 1st up in the program. I would think that it should get an A0 output, does the machine know it starts at A0? I'm not sure.

Also, subsequent rotary moves do not post. This particular test program should output and cut at A0, A90, A180 and A270. I added a z2g here, cause I'm not sure what I'm missing, and I hope it can help.

Thanks again

 

Link to comment
Share on other sites
49 minutes ago, SuperHoneyBadger said:

Ron, thanks for your feedback!

This tool in particular is 1st up in the program. I would think that it should get an A0 output, does the machine know it starts at A0? I'm not sure.

Also, subsequent rotary moves do not post. This particular test program should output and cut at A0, A90, A180 and A270. I added a z2g here, cause I'm not sure what I'm missing, and I hope it can help.

Thanks again

VX660_4AXIS_TEST.ZIP

That post was last updated in 2008 Version X6. Sorry to say, but that is the root of this problem. Get the 2021 MPMASTER or get the IKE Mpmaster from In-House. That old of a post is the issue here.

Thank you for putting together a zip and sorry I cannot be or more help.

 

I can se the amount of work you put into that post. Impressive.

  • Thanks 1
Link to comment
Share on other sites

The problem is placed in the following part

pfcout          #force C axis output
      if index = zero & rot_on_x,
        [
        if use_rotmcode & (fmtrnd(cabs) <> fmtrnd(prv_cabs) | sof), *sindx_mc
        if absinc$ = zero,[if machinex >9, *cabs], !cinc, !cout_i
        else,[if machine>9, *cout_i], !cinc, !cabs
        ]

 the output of the A axis is only when machinex >9 or machine>9

while in the post these are defined as:

machine : 7
machinex : 7

Changing pfcout to:

pfcout          #force C axis output
      if index = zero & rot_on_x,
        [
        if use_rotmcode & (fmtrnd(cabs) <> fmtrnd(prv_cabs) | sof), *sindx_mc
        if absinc$ = zero,[if machinex >6, *cabs], !cinc, !cout_i
        else,[if machine>6, *cout_i], !cinc, !cabs
        ]

will give you the output you desire

  • Thanks 1
  • Like 1
Link to comment
Share on other sites
On 1/21/2022 at 2:12 PM, Werktuigbouwer said:

The problem is placed in the following part


pfcout          #force C axis output
      if index = zero & rot_on_x,
        [
        if use_rotmcode & (fmtrnd(cabs) <> fmtrnd(prv_cabs) | sof), *sindx_mc
        if absinc$ = zero,[if machinex >9, *cabs], !cinc, !cout_i
        else,[if machine>9, *cout_i], !cinc, !cabs
        ]

 the output of the A axis is only when machinex >9 or machine>9

while in the post these are defined as:


machine : 7
machinex : 7

Changing pfcout to:


pfcout          #force C axis output
      if index = zero & rot_on_x,
        [
        if use_rotmcode & (fmtrnd(cabs) <> fmtrnd(prv_cabs) | sof), *sindx_mc
        if absinc$ = zero,[if machinex >6, *cabs], !cinc, !cout_i
        else,[if machine>6, *cout_i], !cinc, !cabs
        ]

will give you the output you desire

Are you running multiple machines in this post? If so machine  8 is included in the A axis output.

  • Like 1
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...