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:

Wierd unwind output


Recommended Posts

We have a head/head router. When they are generated, to get rid of "C" unwinds on 5X paths, we set our mi9$ (nutating bias, default is "2") to 0 & set our mi4$ (initial primary C, default is "0") to a value that will, essentially, prewind "C" so that the unwind is not needed.

This works fine, except occasionally when there is a "pocket", "2D contour (ramp)" or "circle mill (helix)" toolpath operation before the 5X path (not necessarily directly preceding, anywhere prior to the 5X path), in the same ncfile group.

When that happens, the ncfile generates the unwind, as if the mi values are at their default values.

I'm not very good at using the debugger tool, so I'm having a hard time fnding where the values are being reset at. Does anyone have an idea where I might start looking?

Link to comment
Share on other sites
8 minutes ago, Colin Gilchrist said:

You probably have an issue with the Bias Settings. These are 'mi4$' and 'mi5$'. They are only applied, by default, at the tool change event.

Look in your post for 'bias_null'. Turn this on so that 'mi4$' is applied at a Null Tool Change.

I had already tried that, it made no difference.

Really an odd one, it only gets wonky when 2D paths that make simultaneous xyz moves are ahead of the 5x operation.

Link to comment
Share on other sites

Ok, I was able to correct the issue. the post has a rotary reset postblock:

protretinc      #Reset the C axis revolution counter
      if frc_cinit,
        [
        p_abs = zero
        p_inc = zero
        s_abs = zero
        s_inc = zero
        pset_dlt_to_abs
        p_wnd_ang = zero
        s_wnd_ang = zero
        !p_wnd_ang, !s_wnd_ang
        ]

This was being called in my pretract postblock. Since at forced tool changes, the "C" & "A" axes are already being reset, deleting the call is not a problem.

Now I've just got to create some logic that will reset the rotary axes when forced tool change is off.

Thanks again guys for the help.

Link to comment
Share on other sites
1 hour ago, So not a Guru said:

Ok, I was able to correct the issue. the post has a rotary reset postblock:


protretinc      #Reset the C axis revolution counter
      if frc_cinit,
        [
        p_abs = zero
        p_inc = zero
        s_abs = zero
        s_inc = zero
        pset_dlt_to_abs
        p_wnd_ang = zero
        s_wnd_ang = zero
        !p_wnd_ang, !s_wnd_ang
        ]

This was being called in my pretract postblock. Since at forced tool changes, the "C" & "A" axes are already being reset, deleting the call is not a problem.

Now I've just got to create some logic that will reset the rotary axes when forced tool change is off.

Thanks again guys for the help.

I will normally comment out something in the post I think I don't need verse deleting it. Put a note and date to it and then if I ever do need it again I can just uncomment. By deleting it you are not giving yourself enough information to correct it down the road if you need to.

BTW good work sorting all this stuff out.

  • Like 1
Link to comment
Share on other sites
1 hour ago, 5th Axis CGI said:

I will normally comment out something in the post I think I don't need verse deleting it. Put a note and date to it and then if I ever do need it again I can just uncomment. By deleting it you are not giving yourself enough information to correct it down the road if you need to.

BTW good work sorting all this stuff out.

That's what i do, and did here, Ron. I should have been more precise in my explanation.

Thanks, you guys on this forum have been such a fantastic resource and y'alls patience with me is much appreciated.

Link to comment
Share on other sites
2 minutes ago, So not a Guru said:

That's what i do, and did here, Ron. I should have been more precise in my explanation.

Thanks, you guys on this forum have been such a fantastic resource and y'alls patience with me is much appreciated.

All good just for those that read these threads and don't read between the lines. :D:whistle::ph34r:

Someone has been patience with us least we can do is return the favor.

Link to comment
Share on other sites

With that particular block, there is a Switch that controls entry into the brackets.

"frc_cinit" this stands for "force 'c' initialize", and when the variable is "enabled", or turned on, will the code below execute. Simply setting 'frc_cinit' to '0' will skip all that logic. No need to comment it out. Just turn it off if you don't need the output. I prefer that to commenting it out.

Link to comment
Share on other sites
5 minutes ago, Colin Gilchrist said:

With that particular block, there is a Switch that controls entry into the brackets.

"frc_cinit" this stands for "force 'c' initialize", and when the variable is "enabled", or turned on, will the code below execute. Simply setting 'frc_cinit' to '0' will skip all that logic. No need to comment it out. Just turn it off if you don't need the output. I prefer that to commenting it out.

Colin couldn't you go a step further and use a mi or mr trigger to then control the behavior?

  • Like 1
Link to comment
Share on other sites
7 hours ago, Colin Gilchrist said:

With that particular block, there is a Switch that controls entry into the brackets.

"frc_cinit" this stands for "force 'c' initialize", and when the variable is "enabled", or turned on, will the code below execute. Simply setting 'frc_cinit' to '0' will skip all that logic. No need to comment it out. Just turn it off if you don't need the output. I prefer that to commenting it out.

That is actually what I originally did, but I still got the output. I commented out the call in the pretract postblock & it ended the behavior. This is a very screwy post. I haven't yet been able to make it generate arcs!

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