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:

cinturn threading prob


bthomps5
 Share

Recommended Posts

thread lead not posting correct K556 is what i am getting for lead but it needs to be k5560

sample of what i am getting

O1M01

G90

N1G97S400M41

N2G70M04

N3G94F2000

N4G0X70000Z80000

N5T9797M06

N6G97S200

N7G94

N8X6875Z2000

N9Z2000

N10X6809

N11G33Z-10000K556

N12G00X7875

N13Z2000

N14X6743

N15G33Z-10000K556

N16G00X7875

N17Z2000

N18X6676

N19G33Z-10000K556

N20G00X7875

N21Z2000

N22X6610

N23G33Z-10000K556

N24G00X7875

N25Z2000

N26X6544

N27G33Z-10000K556

N28G00X7875

N29Z2000

N30X6544

N31G33Z-10000K556

N32G00X7875

N33G00Z2000

N34X70000Z80000

N35T9700M06

N36M30

Link to comment
Share on other sites

You will need to edit the post processor.

 

Find what variable is used for lead or pitch or feed rate.

 

You should be able to find it in the pthrg32_3$ #G32 threading third post block if using a mplfan or mplmaster based post.

 

 

pthrg32_3$ #G32 threading third

copy_x = vequ(x$)

pcom_moveb

pcan1, pbld, n$, psgfeed, *sthdgcode, pxout, pyout, pzout, pcout, pffr,

strcantext, e$

pcom_movea

prv_gcode$ = m_one

 

 

In this example the pffr post block is the one used

 

 

pffr #Output feedrate, force

if ipr_actv$ = zero, pfr_m

else, pfr_l #This makes the call to pfr_l post block to format the feed output

*feed

 

pfr_l #Format feedrate for lathe

if opcode$ = 104,

[

#Format feedrate for lathe thread

result = nwadrs(stre, feed) #Most likely your post is set to strk to output a "K" for the lead

result = newfs (19, feed) #This formats the feed rate using the fs2 table found near the top of the post

#In mplfan.pst this format statment is fs2 19 0.5 0.4 #Decimal, absolute, 5/4 place this indicates 5 decimal for inch and 4 for metric

#I see from your code that you require no decimals so you would want to force trailing zero's something like

# fs2 19 0.5 0.4t #Decimal, absolute, 5/4 place adding the "t" to the format statment will force trailing zero's

 

 

]

else,

[

result = nwadrs(strf, feed)

result = newfs (18, feed)

]

 

 

Now if your post is not based on mplfan or mplmaster things will be diffrent however the principal is the same.

 

 

Allan

Link to comment
Share on other sites

thanks for the info , yea mine is diffrent

ptpr32_2 #Taper code output for G32

thdrdlt0 = ( thdxdlt * thdlead$ ) / thdzdlt

*thdrdlt0

 

ptpr32 #Taper code output for G32

if thdxdlt <> 0, ptpr32_2

 

pg32_1 #G32 threading

thdlead0 = thdlead$

zout = z$

xout = x$ * dia_mult

n$, *zout, !z$, e$

n$, *xout, !x$, e$

n$, "G33", *thdz2$, ptpr32, *thdlead0,"0", e$

xout = thdxr * dia_mult +.1 <-------------------i added this to get clearance

n$, "G00", *xout, e$

 

here is the k it think

fmt K 11 thdlead0 #Thread lead

 

 

# --------------------------------------------------------------------------

# FORMAT STATEMENTS - n=nonmodal, l=leading, t=trailing, i=inc, d=delta

# --------------------------------------------------------------------------

fs 1 0.4 #Decimal, absolute, 4 place, default for initialize (:)

fs 2 0 4t #Decimal, absolute, 4 place

fs 3 0.4d #Decimal, delta

fs 4 1 0 #Integer, not leading

fs 5 2 0l #Integer, two leading

fs 6 3 0l #Integer, three leading

fs 7 1 0l #Integer, four leading

fs 8 0 4t #No decimal, absolute, four trailing

fs 9 0 2t #Decimal, absolute, 2 place

fs 10 0 4t #Decimal, absolute, 4 place

fs 11 0 4t #Decimal, absolute, 5 place

fs 12 0 2t #No decimal, absolute, four trailing

fs 13 0 3t #No decimal, absolute, three trailing

 

 

 

 

 

 

 

 

 

 

 

 

You will need to edit the post processor.

 

Find what variable is used for lead or pitch or feed rate.

 

You should be able to find it in the pthrg32_3$ #G32 threading third post block if using a mplfan or mplmaster based post.

 

 

pthrg32_3$ #G32 threading third

copy_x = vequ(x$)

pcom_moveb

pcan1, pbld, n$, psgfeed, *sthdgcode, pxout, pyout, pzout, pcout, pffr,

strcantext, e$

pcom_movea

prv_gcode$ = m_one

 

 

In this example the pffr post block is the one used

 

 

pffr #Output feedrate, force

if ipr_actv$ = zero, pfr_m

else, pfr_l #This makes the call to pfr_l post block to format the feed output

*feed

 

pfr_l #Format feedrate for lathe

if opcode$ = 104,

[

#Format feedrate for lathe thread

result = nwadrs(stre, feed) #Most likely your post is set to strk to output a "K" for the lead

result = newfs (19, feed) #This formats the feed rate using the fs2 table found near the top of the post

#In mplfan.pst this format statment is fs2 19 0.5 0.4 #Decimal, absolute, 5/4 place this indicates 5 decimal for inch and 4 for metric

#I see from your code that you require no decimals so you would want to force trailing zero's something like

# fs2 19 0.5 0.4t #Decimal, absolute, 5/4 place adding the "t" to the format statment will force trailing zero's

 

 

]

else,

[

result = nwadrs(strf, feed)

result = newfs (18, feed)

]

 

 

Now if your post is not based on mplfan or mplmaster things will be diffrent however the principal is the same.

 

 

Allan

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