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 Help


LackyCam
 Share

Recommended Posts

I have tried to format my X and Z output, right now I get X1. What I want is X1.00

 

fs2 2 0.4 0.2 #Decimal, absolute, 4/3 place .

 

I tried adding t to end of it (fs2 2 0.4 0.2t ) but now it looks little bit silly since every number is rounded to five decimals.

 

Is there any way I can add zeros only to numbers that don’t have anything after decimal point.

 

This way it makes it more readable.

 

and

 

Why post breaks lines in individual moves what I mean is:

 

N10 X4.5000 Z.5000 M8 ltlchg 1194

N12 G41 X3.1414 F150. lrapid prapidout 1196 (it goes in x than next line in z)

N14 Z.1507 lrapid prapidout 1198

N16 G01 G99 Z.0507 F.003 llin plinout 1200

 

Why not like this:

 

N10 X4.5000 Z.5000 M8 ltlchg 1194

N12 G41 X3.1414 Z.1507 F150. lrapid prapidout 1196 ( both moves in one line)

N14 G01 G99 Z.0507 F.003 llin plinout 1200

 

I can’t understand where is logic behind that ( in the code). lrapid and prapidout are only lines called.

 

Is there any way I could get post not to brake compensation moves. Machine manual recommends that all compensation moves are made in non-cutting move in both directions.

 

Thanks

Link to comment
Share on other sites

quote:

I tried adding t to end of it (fs2 2 0.4 0.2t ) but now it looks little bit silly since every number is rounded to five decimals.

 

Is there any way I can add zeros only to numbers that don’t have anything after decimal point.

Add a 'z' instead of the 't'.

That will get you X1.0 instead of X1.

 

As for the other question, we'd need to see how you have it programmed. The line numbers at the end of each block tell me that the data coming into the PST are separate. X moe is 1196 and the Z move is from the data in line 1198 of the NCI file.

 

N12 G41 X3.1414 F150. lrapid prapidout 1196 (it goes in x than next line in z)

N14 Z.1507 lrapid prapidout 1198

Link to comment
Share on other sites

Thanks so much

I emailed Mastercam with same question and I got something like “ it can’t be done with out a lot a work”

How did you find about that. I have Postprocessor reference guide and I couldn’t find that add-on (z)

 

As for other question here is

 

N1 ( LFINISH DIAMONT 35 DEG )-- lsof ptoolcomment 170

---lsof ltlchg 170

M98 P1 -- lsof ltlchg 170

T0606-- lsof ltlchg 170

S3000 M03-- lsof prpm 170

N10 X3.55 Z0.0 M8-- lsof ltlchg 170

N12 G01 G99 X2.8 F.002-- llin plinout 172

N14 Z.2508-- llin plinout 174

N16 G98 G42 X3.3086 F150.-- ltlchg0 prapidout 312

N18 Z.1707-- lrapid prapidout 314

N20 G01 G99 Z.0707 F.002-- llin plinout 316

N22 X3.5 Z-.025-- llin plinout 318

N24 Z-.475-- llin plinout 320

N26 X3.4 Z-.525-- llin plinout 322

N28 Z-.7-- llin plinout 324

N30 X4.1-- llin plinout 326

N32 G40 X4.2414 Z-.6293-- llin plinout 328

G97 S3000-- peof pl_retract 330

M98 P1-- peof pl_retract 330

M30-- peof 330

%-- peof 330

 

 

Thanks

Link to comment
Share on other sites

LackyCan,

 

The chart that describes the options for formatting numeric variables in the Post Professor Reference Guide is in the 109 Numeric Variables.PDF on Pages 9-5 & 9-6.

‘z’ is the Keep Trailing Zero option which as you see works just a bit differently than ‘t’ which is the Keep Trailing Zeros Flag.

 

As for you second issue. Someone (your Dealer) would need to see your MC9 file to see exactly how it is programmed, since it is possible that is this may not be a post processor issue.

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