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:

Position the rotary axis before move - rapid


metalmilita
 Share

Recommended Posts

I'm taking climb cuts one-way roughing passes using a rotary toolpath in MC9.1. When it get's done making a pass it wants to rotate and rapid back to the starting position for the next cut at the same time. I want it to rapid away from the part, rotate B-Axis, and then rapid to the next cut like in the ex. below. Is there a way to do this in the post?

 

Code Now:

G93X12.6353Z12.7045B-60.153F163.72

G94Z12.9545F100.

G0X16.3681Y-1.9914Z5.0709B-90.477

Z4.9209

G1Z4.8209

G93X16.4045Z4.7623B-90.681F704.19

X16.4538Z4.8024B-90.541F773.78

 

Code Wanted:

G93X12.6353Z12.7045B-60.153F163.72

G94Z12.9545F100.

B-90.477

G0X16.3681Y-1.9914Z5.0709

Z4.9209

G1Z4.8209

G93X16.4045Z4.7623B-90.681F704.19

X16.4538Z4.8024B-90.541F773.78

 

I found this in the post, what do I need to change if it's the right spot?

 

ppos_cax_lin #Position the rotary axis before move - rapid

if index, pindex

else,

[

if fmtrnd(prv_cabs) <> fmtrnd(cabs) & rot_on_x,

[

sav_gcode = gcode

gcode = zero

pbld, n, sgcode, pcout, e

!cia

ps_cinc_calc

gcode = sav_gcode

]

]

Link to comment
Share on other sites

you should go into your control def >> nc output and check debugging and verify what section is outputting that code.

 

It is "likely" out of the tool change section but knowing for certain will assist in knowing where the change should be made

Link to comment
Share on other sites

This is what debug gave me.What it means i have no idea.

 

G94X12.8043Z12.5257F50. pmx plinout 108

X12.8061Z12.5256 pmx plinout 110

G93X12.6353Z12.7045B-60.153F163.72 pmx plinout 112

G94Z12.9545F100. pmx plinout 114

G0X16.3681Y-1.9914Z5.0709B-90.477 pmx prapidout 116

Z4.9209 pmx prapidout 118

G1Z4.8209 pmx plinout 120

G93X16.4045Z4.7623B-90.681F704.19 pmx plinout 122

Link to comment
Share on other sites

In the prapidout section you'll want to change it to break up the A output line, probably something like this.

 

code:

prapidout       #Output to NC of linear movement - rapid               

pcan1, pbld, n$, pcout, e$

pbld, n$, sgplane, `sgcode, sgabsinc, pccdia,

pxout, pyout, pzout, strcantext, scoolant, e$


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