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 Questions


Tom
 Share

Recommended Posts

Hello everybody,

 

I am a MasterCam Lathe newbie. Using MasterCam X2

SP1 NetHasp. Lathe Post MPL_GEN converted from V8.1 Generic Fanuc.

Here are my questions

I'd like to setup my post so that it outputs

the sequence number N only after each tool comment

ex. (TOOL 1 - .....)

N1

G28U0.

G0Z4.T0

G0T0101

......

(TOOL 4 - ....)

N2

....

I have tried this setting:

fmt, "N" 4 sequence_tool_n

 

and this codes after tool change:

 

seq_tool_n = n$

pbld, seq_tool_n, e$

n$ = n$ + 1

 

The output looks alright until it post a rough turn cycle:

 

G71U0

G71P102Q112U0W0F.01

G0N102X.4995

....

N112X1.05

....

these N mess up the sequence numbers hereafter

 

I am also looking for a way to output an incremental subprogram for deep hole drilling instead of long code or canned cycle.( I have been doing that part of program manually )

for ex. We are looking for

subpro like this

 

O9001

G00W-1.475

G01W-.045F.0015

G00W1.48

M99

 

and main program:

.....

G00T0808

G97S565M3

G00X0.Z1.485

M98P9001L35

......

M01

 

I am greatly appreciated any help you can provide

thank you very much for your time

Link to comment
Share on other sites

The line number problem is one of the complaints with the Lathe posts. Far as I am aware, there isn't a post available with proper functioning line numbers. Soon as you add a canned cycle, the number go to crap.

 

A way to possibly work around it is to set the N # to = your Tool #, n$ = t$, then at the tool callout just for the line number *n$ and get that only and the canned cycle do it own thing.

 

HTH

Link to comment
Share on other sites

Thanks for the input. Randy

I have tried that as well. probably I will have to use it that way unless someone show me otherwise smile.gif there' a disadvantage in this way is that several same N numbers generated as I am posting a program that recalls several time the same tool

Link to comment
Share on other sites

If you are just trying to output sequence numbers at each toolchange based on its count "position" in the program, that's fairly easy to do.

And you can "work around" the Canned Cycles' sequence numbering requirements.

 

You are actually not too far off...

 

To not have the Canned Cycle 'N'umbers clash do this...

 

* You need to make sure that these 2 numbering schemes is kept separate.

 

 

You tried ->

 

code:

 seq_tool_n = n$

pbld, seq_tool_n, e$

n$ = n$ + 1

Try this ->

 

code:

 seq_tool_n = seq_tool_n + 1   # Sequence numbering - Just for ToolChange

pbld, seq_tool_n, e$

And make sure to initialize n$ into a range that will not conflict with any 'N'umber that may be output using seq_tool_n

 

n$ = 99 # Assumes that you'll never have a situation where 'seq_tool_n' is in the 100's + range.

If your seqinc$ = 1, the first use of n$ by the PST in a Canned Cycle situation should result in a 'P100'

(It really doesn't matter what seqinc$ is. The key is initializing n$ properly in the PST

 

 

The above increments the ‘N’umber output at each toolchange

N1 T1

N2 T2

N3 T5

N4 T13

N5 T1

N6...

Etc.

 

If you want/need to alter the ‘N’umber output at a toolchange when a Tool# is being reused within the program ->

 

N1 T1

N2 T2

N3 T5

N4 T13

N12 T1 # T1 used a second time

N6...

 

That take a bit more code, but still isn’t all that difficult.

See the ToolTracking.PDF file available in the Text_&_post_files_&_misc folder on the forum FTP site.

Using this info you can design any number of 'N'umbering schemes for your toolchanges.

Link to comment
Share on other sites
  • 2 weeks later...
  • 15 years later...
18 minutes ago, Akash Shukla said:

Hello ,

Can i get my leadin/out value in incremental mode in lathe module?

Not even related to each other as far as topic go. Either it is al incremental or absolute mixing and matching a NC Code output in my humble opinion is a recipe for disaster.

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