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:

Single Tool - Missing T# M6


Recommended Posts

  • 3 weeks later...

On the tool branch of each of the operations parameters, check the box for "force tool change"

 

 

Thanks for the reply. However this did not solve the problem. When I use a Mastercam supplied post it's there but the custom post I was given does not.

 

I'll keep searching or revise a "good" post to get what I need.

 

 

Thanks again.

Link to comment
Share on other sites

The easist thing to do would be this but somehow I suspect this is going to cause another as yet either unthought of or unasked question

in the ptlchg_com section

 

#if stagetool >= zero,
     #  [
     #  if omitseq$ = 1 & tseqno > 0,
     #    [
     #    if tseqno = 2, n$ = t$
     #    pbld, *n$, *t$, "M06", ptoolcomm, e$
     #    ]
     #  else, pbld, n$, *t$, "M06", ptoolcomm, e$
     #  ]
     pbld, n$, *t$, "M06", ptoolcomm, e$

Link to comment
Share on other sites
  • 5 weeks later...

help im having the same trouble: two ops, one tool, M00 after 1st op w/ force tool change

i need a tool change in the first op (force tool change didnt work in first op)

 

%

(PROGRAM NAME - 2701 )

(DATE=DD-MM-YY - 29-06-12 TIME=HH:MM - 07:54 )

N100 G0 G17 G40 G49 G80 G90

( 1 CHAMFER MILL TOOL - 2 DIA. OFF. - 2 LEN. - 2 DIA. - 1. )

G0 G90 G54 X12.52 Y-3.06 S9000 M3

G43 H2 Z.5 M8

Z.1

G1 Z-.28 F30.

G41 D2 X10.02 F80.

G0 Z.5

X10.4013 Y.06

Z.1

G1 Z-.28 F30.

X14.1513 F80.

G0 Z.5

X22.21 Y0.

Z.1

G1 Z-.25 F30.

Y-3. F80.

G0 Z.5

X-.06

Z.1

G1 Z-.25 F30.

Y0. F80.

G0 Z.5

G40 M5

G91 G28 Z0. M9

G28 X0. Y0.

M01

( 1 CHAMFER MILL TOOL - 2 DIA. OFF. - 2 LEN. - 2 DIA. - 1. )

N110 ( FLIP )

G0 G17 G40 G49 G80 G90

G91 G28 Z0.

G28 X0. Y0.

T2 T0 M6

G0 G90 G54 X14.1513 Y-3.06 S9000 M3

G43 H2 Z.5 M8

Z.1

G1 Z-.28 F30.

G41 D2 X10.4013 F80.

G0 Z.5

X10.02 Y.06

Z.1

G1 Z-.28 F30.

X12.52 F80.

G0 Z.5

X22.21 Y0.

Z.1

G1 Z-.25 F30.

Y-3. F80.

G0 Z.5

G40 M5

G91 G28 Z0. M9

G28 X0. Y0.

M30

%

 

*********************portion of post. see any reason y

 

Start of File and Toolchange Setup

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

psof0$ #Start of file for tool zero

psof$

 

psof$ #Start of file for non-zero tool number

pcuttype

toolchng = one

if ntools$ = one,

[

#skip single tool outputs, stagetool must be on

stagetool = m_one

!next_tool$

]

"%", e$

"(PROGRAM NAME - ", sprogname$, ")", e$

"(DATE=DD-MM-YY - ", date$, " TIME=HH:MM - ", time$, ")", e$

pbld, n$, *sgcode, *sgplane, "G40", "G49", "G80", *sgabsinc, e$

sav_absinc = absinc$

if mi1$ <= one, #Work coordinate system

[

absinc$ = one

, sgabsinc, *sg28ref, "Z0.", e$

, *sg28ref, "X0.", "Y0.", e$

absinc$ = sav_absinc

]

pcom_moveb

c_mmlt$ #Multiple tool subprogram call

ptoolcomment

comment$

pcan

if stagetool >= zero, pbld, *t$, "T0 M6", e$

pindex

if mi1$ > one, absinc$ = zero

pcan1, pbld, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,

pfcout, *speed, *spindle, pgear, strcantext, e$

pbld, "G43", *tlngno$, pfzout, scoolant, next_tool$, e$

absinc$ = sav_absinc

pcom_movea

toolchng = zero

c_msng$ #Single tool subprogram call

 

ptlchg0$ #Call from NCI null tool change (tool number repeats)

pcuttype

pcom_moveb

c_mmlt$ #Multiple tool subprogram call

if counter <> 1,

[

pbld, comment$

#"G43", "H27", pfzout, "M08", e$

]

counter = 0

comment$

pcan

result = newfs(15, feed) #Reset the output format for 'feed'

pbld, sgplane, e$

pspindchng

pbld, scoolant, e$

if mi1$ > one & workofs$ <> prv_workofs$,

[

sav_absinc = absinc$

absinc$ = zero

pbld, sgabsinc, pwcs, pfxout, pfyout, pfzout, pfcout, e$

pe_inc_calc

ps_inc_calc

absinc$ = sav_absinc

]

if cuttype = zero, ppos_cax_lin

if gcode$ = one, plinout

else, prapidout

pcom_movea

c_msng$ #Single tool subprogram call

 

ptlchg$ #Tool change

pcuttype

toolchng = one

if mi1$ = one, #Work coordinate system

[

pfbld, *sg28ref,"X0.","Y0.", e$

pfbld, "G92", *xh$, *yh$, *zh$, e$

]

pbld, "M01", e$

pcom_moveb

c_mmlt$ #Multiple tool subprogram call

ptoolcomment

pbld, n$, comment$

pbld, *sgcode, *sgplane, "G40", "G49", "G80", *sgabsinc, e$

"G91 G28 Z0.",e$

"G28 X0. Y0.",e$

pcan

result = newfs(15, feed) #Reset the output format for 'feed'

pbld, *t$, "T0 M6", e$

pindex

sav_absinc = absinc$

if mi1$ > one, absinc$ = zero

pcan1, pbld, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,

pfcout, *speed, *spindle, pgear, strcantext, e$

pbld, "G43", *tlngno$, pfzout, scoolant, next_tool$, e$

absinc$ = sav_absinc

pcom_movea

toolchng = zero

c_msng$ #Single tool subprogram call

 

pretract #End of tool path, toolchange

sav_absinc = absinc$

absinc$ = one

sav_coolant = coolant$

coolant$ = zero

#cc_pos is reset in the toolchange here

cc_pos$ = zero

gcode$ = zero

pbld, sccomp, *sm05, psub_end_mny, e$

pbld, sgabsinc, sgcode, *sg28ref, "Z0.", scoolant, e$

pbld, *sg28ref, "X0." ,"Y0.", protretinc, e$

absinc$ = sav_absinc

coolant$ = sav_coolant

 

pretracteof

sav_absinc = absinc$

absinc$ = one

sav_coolant = coolant$

coolant$ = zero

#cc_pos is reset in the toolchange here

cc_pos$ = zero

gcode$ = zero

pbld, sccomp, *sm05, psub_end_mny, e$

pbld, sgabsinc, sgcode, *sg28ref, "Z0.", scoolant, e$

pbld, *sg28ref,"X0.", "Y0.", protretinc, e$

absinc$ = sav_absinc

coolant$ = sav_coolant

 

protretinc #Reset the C axis revolution counter

if frc_cinit & rot_on_x,

[

rev = zero

sav_rev = zero

cabs = zero

csav = zero

indx_out = zero

if index, e$, pindxcalc, pindex

else, *cabs

prvcabs = zero

!csav, !cabs

]

Link to comment
Share on other sites

Change this line

 

if stagetool >= zero, pbld, *t$, "T0 M6", e$

 

to this

 

pbld, *t$, "T0 M6", e$

 

It looks like you're outputting everything as T0, so I don't know exactly what you have got going on there but swapping that code around a s noted about will get you a tool output

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