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:

Cinci. Post change for threading


CarbonCAD
 Share

Recommended Posts

I have a post from our reseller and it works decent out of the box, but the machine requires a special K value (lead/rev/2Pi)*1000 a 1-8 thread has a value of 199 according to the manual (I get 196) I am not having any luck at changing the post to get this. Can anyone help?

 

pcirout #Output to NC of circular interpolation

arctype$ = sav_arctype

if arc_pitch$, #Helical interpolation

[

kpitch = abs((zinc/fmtrnd(sweep$))*360)

sav_arctype = arctype$ #Save current arctype setting

arctype$ = one #Force IJK output with absolute arc center

if plane$ = zero, result = nwadrs(strk, kpitch) #XY Plane

if plane$ = one, result = nwadrs(stri, kpitch) #YZ Plane

if plane$ = two, result = nwadrs(strj, kpitch) #XZ Plane

]

else, kpitch = zero

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

pxout, pyout, pzout, pcout, parc, [if kpitch, *kpitch],

feed, strcantext, scoolant, e$

Link to comment
Share on other sites

So I put the formula into my calculator to see if everything is ok. I get .196 and the manual comes out to .199. I put .125/2*Pi and got .196 and the second time .125/(2*Pi) getting .199. The order of operations tells me that multiplication is first (ppmdas). Is the difference in the rounding of Pi? It seems I will need to watch and include the parenthesis.

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