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:

Tool list in NC File problem


ICT_Outkast
 Share

Recommended Posts

I am having a problem with the tool list in the NC file created by v9 and x. I am sure it is something simple that I am overlooking in the post. Can someone tell me what to look for? When I post the program the tool list is fine, up to the last tool. It outputs the last tool twice, then goes on. It is looking like this:

 

%

O6669

(PROGRAM NAME - 6669 )

( POST DATE: 31-08-07 )

( TIME: - 11:35 )

( = )

( PART NUMBER - 114-810048-3 )

( MACHINE - SKT250SY )

( CNC OPERATION - DRILL AND SLOT )

( = )

( STOCK SIZE - PREVIOUSLY MACHINED PART )

( FIXTURE - CHUCK )

( PROGRAMMER - JWN )

( PROGRAM REVISION - "NEW" )

( = )

( G54 )

( -Z- ZERO - FRONT EDGE OF PART )

( = )

( C-AXIS CROSS DRILL )

(TOOL - 1 OFFSET - 1)

(#3 CENTERDRILL)

(TOOL - 2 OFFSET - 2)

( 1/4 DRILL)

(TOOL - 3 OFFSET - 3)

(6.0 DIA X .281 WIDE VALENITE WHEEL CUTTER)

(TOOL - 3 OFFSET - 3)

(6.0 DIA X .281 WIDE VALENITE WHEEL CUTTER)

(TOOL - 1 OFFSET - 1)

(#3 CENTERDRILL)

G0 T0101

G19

M43

 

Thanks in advance,

 

Jerry

Link to comment
Share on other sites

Roger ver 9 post here that also does it.

 

code:

 pwrtt           #Buffer toolchange information, tooltable = 3 calls on 1003

if gcode = 1001, psetup

pcut_cctyp

if opcode=104 | opcode=105 | opcode=three | opcode=16, cc_pos = zero

if gcode <> 1001, plast_recd

pcur_recd

if gcode <> 1003, cc_pos = zero

!opcode, !tool_op

if gcode = 1003,

[

size1 = rbuf (one, zero)

rc1 = one

if rc1 < size1, preadcur_nxt

if cc_1013 = zero, cc_pos = zero

]

 

# Write tool table, scans entire file, null tools are negative

tnote = t

strtool = ucase(strtool)

if t >= 0, "(", tnote, "-", strtool, ") "

if t >= 0, tcnt = tcnt + 1


Link to comment
Share on other sites

Try this change...

I not tested this, but it'll only take a second of so for you to see if this makes a (positive) difference.

 

if gcode = 1003,

[

size1 = rbuf (one, zero)

rc1 = one

if rc1 < size1, preadcur_nxt

if cc_1013 = zero, cc_pos = zero

]

 

else

[

# Write tool table, scans entire file, null tools are negative

tnote = t

strtool = ucase(strtool)

if t >= 0, "(", tnote, "-", strtool, ") "

if t >= 0, tcnt = tcnt + 1

]

Link to comment
Share on other sites

Mine is as follows...

 

pwrtt #Buffer toolchange information, tooltable = 3 calls on 1003

if gcode = 1001, psetup

pcut_cctyp

if opcode=104 | opcode=105 | opcode=three | opcode=16, cc_pos = zero

if gcode <> 1001, plast_recd

pcur_recd

if gcode <> 1003, cc_pos = zero

!opcode, !tool_op

if gcode = 1003,

[

size1 = rbuf (one, zero)

rc1 = one

if rc1 < size1, preadcur_nxt

if cc_1013 = zero, cc_pos = zero

]

 

 

if t > 0, ptoolcomment

 

I tried adding what you posted and got an error.

Link to comment
Share on other sites

quote:

Now I get an error on this line

 

if t >= 0, tcnt = tcnt + 1

D'oh!

 

I see the problem.

I gave you a "try this" based on Don's code sample, not your pwrtt code.

 

Try adding this additional test-> & gcode$ <> 1003 in the 'if' logic test that ultimately calls 'ptoolcomment'

 

pwrtt #Buffer toolchange information, tooltable = 3 calls on 1003

if gcode = 1001, psetup

pcut_cctyp

if opcode=104 | opcode=105 | opcode=three | opcode=16, cc_pos = zero

if gcode <> 1001, plast_recd

pcur_recd

if gcode <> 1003, cc_pos = zero

!opcode, !tool_op

if gcode = 1003,

[

size1 = rbuf (one, zero)

rc1 = one

if rc1 < size1, preadcur_nxt

if cc_1013 = zero, cc_pos = zero

]

 

if t > 0 & gcode$ <> 1003, ptoolcomment

 

[ 09-05-2007, 01:46 PM: Message edited by: Roger Martin from CNC Software ]

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