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:

Fadal tlngno$ in post


Bill
 Share

Recommended Posts

I am using the mpfadal.pst and I was wondering if I can place or if there is such a thing as a wildcard in the post.

 

This is what the post looks like...

 

ptllncomp # Tool length compensation

if tlngno$ = 0, tlngno$ = t$ # If NOT set, default to same as tool number

if tlcomp = 1, *tlngno$ # Tool LENGTH offset number (FORCED OUT)

if tlcomp = 2, tlngno$ # Tool LENGTH offset number (IF Changed)

tlcomp = 0

 

A guy on the floor went to reuse a tool in an operation and the length offset was set to 4. The tool number was 1. Needless to say the H4 posted with T1.

 

I have a tool library with all l offsets set to zero but apparently this tool he created and failed to change the length offset the second time through.

 

Is there a way to set the post overlook tlngno and post the H value = to the T#?

 

Thanks for any help I may get.

Link to comment
Share on other sites

.

 

This will override any machine defs. or control defs.

 

In your post at this location

 

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

# Additional General Output Settings

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

nobrk$ : no$ #Omit breakup of x, y & z rapid moves

progname$ : 1 #Use uppercase for program name (sprogname)

sub_level$ : 1 #Enable automatic subprogram support

sub_seq_typ$ : 1 #Enable subprogram sequence number reset at sub call

arccheck$ : 1 #Check for small arcs, convert to linear

atol$ : 0.01 #Angularity tolerance for arccheck

ltol$ : 0.002 #Length tolerance for arccheck

vtol$ : 0.0001 #System tolerance

mtol$ : 0.000001 #Internal rounding for 4 dec output

met_ltol$ : 0.05 #Length tolerance for arccheck, metric

vtol_m : 0.0025 #System tolerance, metric

met_mtol$ : 0.00001 #Internal rounding for 3 dec output

tooltable$ : 1 #Read for tool table and pwrtt - use tool_table to disable

 

Add these at the end

 

tloffno$ = t$

tlngno$ = t$

 

.

Link to comment
Share on other sites

I tried that John but couldn't get it to work right.

 

What I ended up doing is...

 

ptllncomp # Tool length compensation

if tlngno$ <=>0 , tlngno$ = t$ # If NOT set, default to same as tool number

if tlcomp = 1, *tlngno$ # Tool LENGTH offset number (FORCED OUT)

if tlcomp = 2, tlngno$ # Tool LENGTH offset number (IF Changed)

tlcomp = 0

 

<=> 0and checked it with length offsets at 150,235, and 250. The NC file came back with all H# equaling T#

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