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:

tooltable output current tool cut max/min depth error


Lee1
 Share

Recommended Posts

The first tool value is -9999/9999.the other tool value is ok.

 

see below red color is error value

 

(T4 - 3.00 90 DEG FACEMILL - H4 - D4 - D3.0000"Z99999.Z-99999.)

(T5 - 1.000 ROUGH EM W/.03 - H5 - D5 - D1.0000" - R0.0300"Z3.6018Z4.5)

(T6 - 1.000 E/MILL 2-3FL. .03 - H6 - D6 - D1.0000" - R0.0300"Z-1.8Z4.5)

(T1 - D2.0 90° FACEMILL - H1 - D1 - D2.0000" - R0.0300"Z2.1978Z4.5)

(T9 - .750 FINISH EM W/.03 - H9 - D9 - D0.7500" - R0.0300"Z2.0478Z4.5)

(T8 - .50 FINISH EM W/.03 - H8 - D8 - D0.5000" - R0.0300"Z1.5Z4.5)

(T7 - .50 FINISH EM W/.03 - H7 - D7 - D0.5000" - R0.0300"Z-1.0913Z1.2585)

(T11 - 0.5 CARBIDE ENDMILL W./R.019 - H11 - D11 - D0.5000" - R0.1900"Z.4756Z4.5)

(T10 - 3/8" NC SPOT DRILL 3.0" OOH 7.6" MIN GAGE - H10 - D10 - D0.3750"Z-1.51Z4.5)

(T12 - 0.18 DRILL - H12 - D12 - D0.1800"Z-1.68Z4.5)

(T16 - 0.188 PRE-BORING - H16 - D16 - D0.1880"Z-1.828Z4.5)

(T17 - 0.196 REAMER - H17 - D17 - D0.1960"Z-1.658Z4.5)

(T13 - 7/16 DRILL - H13 - D13 - D0.4375"Z-.2493Z4.5)

(T14 - .615 PRE-BORING - H14 - D14 - D0.6150"Z-.03Z4.5)

(T15 - 0.625 REAMER - H15 - D15 - D0.6250"Z-.03Z4.5)

 

below is code

 

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

tnote = t$

toffnote = tloffno$

tlngnote = tlngno$

spaces$=0

if t$ >= zero,

[

preadbuf1

if tcr$>0, scomm_str, *t$, ptspace, " - ", plistcomm, " - ", *tlngno$, phspace, " - ", *tloffno$, pdspace, " - ", *tldia$, punit, pdiamspc, " - ", *tcr$, punit, min_depth, max_depth, scomm_end, e$

if tcr$=0, scomm_str, *t$, ptspace, " - ", plistcomm, " - ", *tlngno$, phspace, " - ", *tloffno$, pdspace, " - ", *tldia$, punit, pdiamspc, min_depth, max_depth, scomm_end, e$

]

pwritbuf1 # Write Buffer 1

b1_gcode = gcode$

if gcode$ = 1000 & op_id$ <> prv_op_id$ & list_type = 0, b1_gcode = 1002

#if gcode = 1002 & op_id = prv_op_id, b1_gcode = 1000 #V9.12

if gcode$ = 1002 & abs(t$) = prv_t$ & list_type = 1, b1_gcode = 1000

prv_t$ = abs(t$)

!op_id$

last_op_id = op_id$

b1_xmin = x_min$

b1_xmax = x_max$

b1_ymin = y_min$

b1_ymax = y_max$

b1_zmin = z_min$

b1_zmax = z_max$

b1_gcode = wbuf(1, wc1)

preadbuf1 # Read Buffer 1

size1 = rbuf(1,0)

b1_gcode = 1000

min_depth = 99999

max_depth = -99999

while rc1 <= size1 & b1_gcode = 1000, preadbuf1_1

preadbuf1_1 # Read Buffer 1

if rc1 <= size1, b1_gcode = rbuf(1,rc1)

if b1_zmin < min_depth, min_depth = b1_zmin

if b1_zmax > max_depth, max_depth = b1_zmax

  • Like 1
Link to comment
Share on other sites

It is where the buffer is being called. Need to make sure you make the call before any code is processed. That writes it and since the tooltable is at the start it really only meant to process tools and not all the code the process has to be redo to process the whole operation then store it to then call it. That is the thing about buffers I never get.

Link to comment
Share on other sites

It is where the buffer is being called. Need to make sure you make the call before any code is processed. That writes it and since the tooltable is at the start it really only meant to process tools and not all the code the process has to be redo to process the whole operation then store it to then call it. That is the thing about buffers I never get.

 

thanks you reply.

how can i do my want result?

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