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:

Lathe Post Help


Tony35
 Share

Recommended Posts

need a little help here

for some reason the post is moving my code to the next line

 

sample snippet

 

G50 S3500

G0 G95 X20. Z20. G96 S200

M41 TK3<<<<<<<<<<<<<<<<<<<<<<

T121212 M3 M9

G0 X2.846 Z.1

 

 

this is what i want

 

G50 S3500

G0 G95 X20. Z20. G96 S200 M41 TK3

T121212 M3 M9

G0 X2.846 Z.1

 

here is my post line

pbld, n$, *sg00, *xhome, *zhome, e$ # *sg95, REMOVED G95 TK 12/7/10

pbld, n$, "G50", *maxss$, e$

pbld, n$, *sg00, *sg95, *xhome, *zhome, pcss, pgear, "TK3", e$ # ADDED LINE TK 12/7/10>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

pcaxis_off_l #Postblock for lathe transition

pcom_moveb #Reset machine position, set inc. from last position

 

what am i missing here

any help or ideas would be great

TIA

Link to comment
Share on other sites

jparis

you the man that was it

 

so do i have to force G50 in that line if i want it in there?

 

Depends on the output desired but yes at times, you'll break out the variables you want OR alter the post block, in your case removing the e$ in the post may well yield the result you're looking to get.

 

There is also the

pcssg50         #Output Constant surface speed clamp
     if css_actv$, pbld, n$, *sg50, *maxss$, e$

That post block handles the G50, but alot depends on what post and what it has.

Link to comment
Share on other sites

removing the e$ didnt quite work but looking into the pcss i could use the right code (*sg9697, *speed,) now i just need it to output the speed (*speed)again jparis the man

 

sample

 

N80 G50 S2000

N90 G0 G95 X20. Z20. G96 S0 M42>>>>>>>>>>>no css

N100 T030303 M3 M8

N110 G0 X9.95 Z.041

N120 G96 S500

Link to comment
Share on other sites

what does your pcss block look like now?

 

you might try putting the e$ back and adding the pgear callout in the pcss post block, instead of on the the other line

 

pcss            #Output Constant surface speed
     speed = g_speed
     if css_actv$, pbld, n$, *sg9697, *speed, spindle_l, !css_actv$, pgear, "TK3", e$
     !speed

Link to comment
Share on other sites

John

that worked but now im getting a n block in the code now

 

code

 

N70 G0 X20. Z20.

N80 G50 S2000

N90 G0 G95 X20. Z20. N90 G96 S500 M42<<<<<<<<<<<<<<

N100 T030303 M3 M8

N110 G0 X9.95 Z.041

N120 G95 G1 Z-.059 F.01

 

 

edit

brain fart i just took out the n$ in pcss

 

thanks for all this help John

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