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:

Post tool change issue?!


Dustin S.
 Share

Recommended Posts

Ive changed what I need to for the first tool and it post the way I want but the 2nd, 3rd,.... etc aren't following suite:

 

notice tool 1 and tool 2 are exactly the same:

 

T1 M6 psof$ psof$ 72.

G0 G40 G43 G90 psof$ psof$ 72.

X.2628 Y.0433 Z2. H1 M3 S4000 psof$ psof$ 72.

Z.1 pzrapid$ prapidout 74.

M8 pzrapid$ prapidout 74.

G1 Z-.144 F50. plin$ plinout 76.

G41 D1 X.2344 Y-.0315 F8. plin$ plinout 78.

G3 X.2308 Y-.0441 I.0701 J-.0266 pcir$ pcirout 80.

G2 X.0786 Y-.17 I-.1522 J.0291 pcir$ pcirout 82.

G1 X-.0786 plin$ plinout 84.

G2 X-.2308 Y-.0441 I0. J.155 pcir$ pcirout 86.

G3 X-.2344 Y-.0315 I-.0737 J-.014 pcir$ pcirout 88.

G1 G40 X-.2628 Y.0433 plin$ plinout 90.

G0 Z2. pzrapid$ prapidout 94.

M01 ptlchg$ ptlchg$ 164.

ptlchg$ ptlchg$ 164.

( 1/8SHANK .125DIA .0313CR E.M. ) ptlchg$ ptoolcomment 164.

( TOOL COMMENT2 ) pcomment$ pcomment2 164.

T2 M6 ptlchg$ ptlchg$ 164.

G0 G40 G43 G90 ptlchg$ ptlchg$ 164.

X.1161 Y-.185 Z2. H4 M3 S10000 ptlchg$ ptlchg$ 164.

Z.1 pzrapid$ prapidout 166.

G1 Z-.03 F50. plin$ plinout 168.

G41 D4 Y-.145 F20. plin$ plinout 170.

G3 X.0786 Y-.1075 I-.0375 J0. pcir$ pcirout 172.

G1 X-.0786 plin$ plinout 174.

G2 X-.1694 Y-.0323 I0. J.0925 pcir$ pcirout 176.

X-.1725 Y0. I.1694 J.0323 pcir$ pcirout 178.

X0. Y.1725 I.1725 J0. pcir$ pcirout 178.

X.1725 Y0. I0. J-.1725 pcir$ pcirout 178.

X.1694 Y-.0323 I-.1725 J0. pcir$ pcirout 180.

X.0786 Y-.1075 I-.0908 J.0173 pcir$ pcirout 182.

G3 X.0411 Y-.145 I0. J-.0375 pcir$ pcirout 184.

G1 G40 Y-.185 plin$ plinout 186.

G0 Z2. pzrapid$ prapidout 190.

G28 Y0. peof$ peof$ 192.

M30 peof$ peof$ 192.

% peof$ peof$ 192.

Link to comment
Share on other sites

Heres the section of the post Im using...

 

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

prv_tloffno$ = c9k

pcuttype

toolchng = one

if ntools$ = one,

[

#skip single tool outputs, stagetool must be on

stagetool = m_one

!next_tool$

]

#pbld, n$, *smetric, e$

#pbld, n$, *sgcode, *sgplane, scc0, sg49, sg80, *sgabsinc, e$

sav_absinc = absinc$

if mi1$ <= one, #Work coordinate system

[

absinc$ = one

# pfbld, n$, sgabsinc, *sg28ref, "Z0.", e$

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

# pfbld, n$, sg92, *xh$, *yh$, *zh$, e$

absinc$ = sav_absinc

]

pcom_moveb

pcheckaxis

c_mmlt$ #Multiple tool subprogram call

ptoolcomment

comment$

pcan

" ", e$

pbld, n$, *t$, sm06, e$

pbld, n$, "G0", "G40", sg43, *sgabsinc, pwcs, e$

pindex

if mi1$ > one, absinc$ = zero

#pcan1, pbld, n$, *sgcode, *sgabsinc, pwcs, pfxout, pfyout, pfcout,

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

pbld, n$, pfxout, pfyout, pfzout, *tlngno$, *spindle, *speed, e$ # A axis = pfcout,

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

pcheckaxis

!op_id$

c_mmlt$ #Multiple tool subprogram call

comment$

pcan

 

pbld, n$, sgplane, e$

pspindchng

pbld, n$, scoolant, e$

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

[

sav_absinc = absinc$

absinc$ = zero

pbld, n$, 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

scoolant, e$

toolchng = one

if mi1$ = one, #Work coordinate system

[

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

pfbld, n$, sg92, *xh$, *yh$, *zh$, e$

]

if prog_stop = 1, pbld, n$, *sm01, e$

if prog_stop = 2, pbld, n$, *sm00, e$

pcom_moveb

pcheckaxis

c_mmlt$ #Multiple tool subprogram call

pbld, " ", e$

ptoolcomment

comment$

pcan

pbld, n$, *t$, sm06, e$

pbld, n$, "G0", "G40", sg43, *sgabsinc, pwcs, e$

pindex

sav_absinc = absinc$

if mi1$ > one, absinc$ = zero

#pcan1, pbld, n$, *sgcode, *sgabsinc, pwcs, pfxout, pfyout, pfcout,

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

pbld, n$, pfxout, pfyout, pfzout, *tlngno$, *spindle, *speed, e$ # A axis = pfcout,

absinc$ = sav_absinc

pcom_movea

toolchng = zero

c_msng$ #Single tool subprogram call

Link to comment
Share on other sites

Dustin sorry, but what are you after need a little more information that what you have given. The are not following in what way? How is it a problem? What is a correct looking format without the debug? What are you getting now without the debug? Also when putting up code from your post do not use the quick reply use the long one and put the code in the code section really help to see the format of the post as it like the post. Like so:

code:

Paste code in 

here keep correct space

 

and indents

 

as see in the editor help people help you.

Let us know.

 

HTH

Link to comment
Share on other sites

The coolant code for tool 1 is:

 

T1 M6

G0 G40 G43 G90

X.2628 Y.0433 Z2. H1 M3 S4000

Z.1

M8

 

then for all following tools:

 

T2 M6

G0 G40 G43 G90

X.1161 Y-.185 Z2. H4 M3 S10000

Z.1

G1 Z-.03 F50.

 

I changed the post for my liking and all the changes worked for tool one but not the rest of the tools in my program

Link to comment
Share on other sites

This is the part of the post ive edited to get what I want:

code:

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

prv_tloffno$ = c9k

pcuttype

toolchng = one

if ntools$ = one,

[

#skip single tool outputs, stagetool must be on

stagetool = m_one

!next_tool$

]

#pbld, n$, *smetric, e$

#pbld, n$, *sgcode, *sgplane, scc0, sg49, sg80, *sgabsinc, e$

sav_absinc = absinc$

if mi1$ <= one, #Work coordinate system

[

absinc$ = one

# pfbld, n$, sgabsinc, *sg28ref, "Z0.", e$

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

# pfbld, n$, sg92, *xh$, *yh$, *zh$, e$

absinc$ = sav_absinc

]

pcom_moveb

pcheckaxis

c_mmlt$ #Multiple tool subprogram call

ptoolcomment

comment$

pcan

" ", e$

pbld, n$, *t$, sm06, e$

pbld, n$, "G0", "G40", sg43, *sgabsinc, pwcs, e$

pindex

if mi1$ > one, absinc$ = zero

#pcan1, pbld, n$, *sgcode, *sgabsinc, pwcs, pfxout, pfyout, pfcout,

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

pbld, n$, pfxout, pfyout, pfcout, *spindle, *speed, E$

pfzout, *tlngno$, e$

#pbld, n$, sg43, *tlngno$, pfzout, pstagetool, e$

pbld, n$, scoolant, 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

pcheckaxis

!op_id$

c_mmlt$ #Multiple tool subprogram call

comment$

pcan

 

pbld, n$, sgplane, e$

pspindchng

pbld, n$, scoolant, e$

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

[

sav_absinc = absinc$

absinc$ = zero

pbld, n$, 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, n$, *sg28ref, "X0.", "Y0.", e$

pfbld, n$, sg92, *xh$, *yh$, *zh$, e$

]

if prog_stop = 1, pbld, n$, *sm01, e$

if prog_stop = 2, pbld, n$, *sm00, e$

pcom_moveb

pcheckaxis

c_mmlt$ #Multiple tool subprogram call

pbld, " ", e$

ptoolcomment

comment$

pcan

pbld, n$, *t$, sm06, e$

pbld, n$, "G0", "G40", sg43, *sgabsinc, pwcs, e$

pindex

sav_absinc = absinc$

if mi1$ > one, absinc$ = zero

#pcan1, pbld, n$, *sgcode, *sgabsinc, pwcs, pfxout, pfyout, pfcout,

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

pbld, n$, pfxout, pfyout, pfcout, pfzout, *tlngno$ *spindle, *speed, e$

#pbld, n$, sg43, *tlngno$, pfzout, pstagetool, e$

pbld, n$, scoolant,e$

absinc$ = sav_absinc

pcom_movea

toolchng = zero

c_msng$ #Single tool subprogram call

I edited the psof$ section and copied it to the ptlchg$ section just the part pertaining to this output of code: G0 G40 G43 G90

X.2628 Y.0433 A0. M3 S4000

Z2. H1

Z.1

Link to comment
Share on other sites

to edit the coolant i moved code around this is what it was

code:

 prapidout       #Output to NC of linear movement - rapid               

pcan1, pbld, n$, sgplane, `sgcode, sgabsinc, pwcs, pccdia,

pxout, pyout, pzout, pcout, strcantext, scoolant, e$

#Modify following line to customize output for high-speed toolpath

#tool inspection/change points

if rpd_typ$ = 7, pbld, n$, "M00", "(TOOL INSPECTION POINT - POST CUSTOMIZATION REQUIRED)", e$

then edited it so it looked like this

code:

prapidout       #Output to NC of linear movement - rapid               

pcan1, pbld, n$, sgplane, `sgcode, sgabsinc, pwcs, pccdia,

pxout, pyout, pzout, pcout, strcantext, e$

scoolant, e$

#Modify following line to customize output for high-speed toolpath

#tool inspection/change points

if rpd_typ$ = 7, pbld, n$, "M00", "(TOOL INSPECTION POINT - POST CUSTOMIZATION REQUIRED)", e$

Link to comment
Share on other sites

Did you do a complete Debug using a minus value in bug2 of the post and you know that the coolant is coming out of that section of the post? Most times the coolant comes out of the pltchng or some other section of the tool change part of the post. It is rare that I see it come out of that part of the post. It does, but again rare. I think you are looking in the wrong area. I also know that is you are using the cantext method verse the old V9 method then some strange things start to happen when you start messing around with the coolant. Also if the operation has it with before and the next operation has it after you will not see the same results. Need to make sure in the operation that all of the coolants you are suing if using the X style of coolant are all set-up the same to insure you get the same results.

 

HTH

Link to comment
Share on other sites

I don't know where the coolant gets put in I just know when I edited that is how I got it to do what I want... Im not a very good post editor cause I just make it do what I want and label it with a comment so I know why I changed it

 

Where should the coolant stuff be?

 

ANY help would be great this is my last issue trying to get the post to follow the same outline for all tools... all tools don't output the same way being the key issue

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