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 inspection in new HST paths


Guest
 Share

Recommended Posts

  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

quote:

No, it does not show up in backplot

I'm working on an operation set to retract to 40 inches and I've set the inspection point at 20 minutes..

In backplot I'm getting a retract to Z40. every 20 minutes of tool time..

and my post (which is not set up yet)

posts a G0Z40. at the proper point in the program

every 20 minutes then rapid straight back down into the cut.

 

Get you opertaion doing that before trying to get

the post dialed in

Link to comment
Share on other sites

quote:

maybe it's the full vertical retract setting??

Tried that too. It was set to minimum vertical retract with a feedrate of 600.0, but I changed it to full retract.

Just tried it with waterline too.......still no work. Im gonna be a bald man before I leave today.

 

Surface (from the forum) sent me some things to try in the post, but like you said, if it dont simulate doing it, it sure wont post it headscratch.gif

Link to comment
Share on other sites

are you seeing the retract when you backplot? Mastercam will output the retracts at the desired locations however, to my knowledge, the standard mpmaster post will not pick it up and output a stop code.

 

A workaround for this one job would be to just edit in an M01 at the retract positions. It's how I've used this in the past.

Link to comment
Share on other sites

Not seeing it in backplot.

quote:

A workaround for this one job

I'm already done with that program. I just copied & pasted my core roughing path 4 times and controlled it by Z depths with force toolchange checked, but in my line of work I know it will be handy in the future, so I am still working on it.

 

Thanx to everyone for their help. cheers.gif

 

I aint givin up yet biggrin.gifbiggrin.gif

Link to comment
Share on other sites

One more thing

code:

 N67080 G0 M25 - good

N67085 M00 (TOOL CHECK)- good

N67090 S12000 M03 - good

N67095 M08 - good

N67100 M00 - do not want

N67105 Z-.5867

What do I do to remove the second M00?

 

code:

 ptool_insp

prv_coolant$ = 0

prv_feed = c9k

pbld, n$, "G0", "M25", e$

pbld, n$, "M00", "(TOOL CHECK)", e$

pbld, n$, *speed, *spindle, e$

pbld, n$, scoolant,e$

 

#Tool inspection point

#Modify following lines to customize output for tool inspection

If posttype$ = 2, #Lathe tool inspection point

[

=(TOOL INSPECTION POINT – POST CUSTOMIZATION MAY BE REQUIRED) =, e$

If prmcode$ = 29999, #Only output tool insp comment if one was entered with this insp point

[

sparameter$ = ucase (sparameter$)

pbld, n$, *sm00, “(“, sparameter$, “)”. e$

]

else, pbld, n$, *sm00, e$ #Output just the stop if no comment

pbld, n$, *sgcode, *toolno, e$ #Restate tool number

pbld, n$, pgsgplane, e$ #Restate plane code

prpm # Output programmed RPM #Restate spindle

prv_feed = c9k #Set prv_values to c9k to force them out with next moves

prv_gcodes$ = c9k

prv_workofs$ = c9k

if coolant$, prv_coolant$ = c9k

]

else, #Mill tool inspection point

pbid, n$, *sm00, “(TOOL INSPECTION POINT – POST CUSTOMIZATION REQUIRED)”, e$

 

prapidout #Output to NC of linear movement - rapid

sav_gcode = gcode$

if convert_rpd$ = 1,

[

feed = maxfeedpm

gcode$ = 1

ipr_type = 0

]

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

pxout, pyout, pzout, pcout, [if gcode$ = 1, `feed], strcantext, scoolant, e$

gcode$ = sav_gcode

if rpd_typ$ = 7, ptool_insp #Tool inspection point

 

plinout #Output to NC of linear movement - feed

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

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

if rpd_typ$ = 7, ptool_insp #Tool inspection point

 


Link to comment
Share on other sites
  • 4 months later...

K I know the tool paths work I also can’t get it to post out correctly with the mpmaster post.

 

From the generic HAAS vertical

 

N1210 G0 Z40.

N1220 X5.3335 Y-1.0872

N1230 M00 (TOOL INSPECTION POINT - POST CUSTOMIZATION REQUIRED)

N1240 Z-.0277

 

From the mpmaster post

 

N1280 G00 Z40.

N1290 X5.3335 Y-1.0872

N1300 Z-.0277

 

I as well have a huge runtime cavity to do that this would be handy for. It’s not too bad to edit manually but it would be nice to have it post properly.

Link to comment
Share on other sites
  • 8 months later...

Here is the best way I found to get it working. Macro line as shown is for Blum probe...

code:

ptool_insp

pbld, n$, "(TOOL INSPECTION POINT)", e$

tool_insp = 1

pretract #turn coolant off, hsm off, move Z to safe position (Home)

 

if mi10$=one, n$, *sm00, e$

else, pbld, n$, *sm01, e$

 

pbld, n$, "G9602", *tlngno$, *mr5$, "B1.", *n_flutes$, *mr6$, *mr7$, *mr8$, e$

 

if mi10$=one, n$, *sm00, e$

else, pbld, n$, *sm01, e$

 

toolchng = 1 #Not Sure if this is needed? Taken from ptlchg$

prv_feed = c9k #To force feed on next feed move

#Tool change common blocks taken from ptlchg_com

if force_output,

[

result = force(ipr_type,ipr_type)

result = force(absinc$,absinc$)

result = force(plane$,plane$)

]

pcom_moveb

pcan

if plane$ < 0 | opcode$ = 3 | opcode$ = 16, plane$ = 0

sav_absinc = absinc$

if wcstype > one, absinc$ = zero

if convert_rpd$ = one,

[

gcode$ = one

feed = maxfeedpm

ipr_type = zero

]

pcan1, pbld, n$, *sgcode, sgplane, sgabsinc, pwcs,

[if gcode$ = 1, sgfeed], pfcout, pfxout, pfyout,

pfspindleout, [if gcode$ = 1, *feed], strcantext, e$

phsm1_on #must remain before G43

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

pcan2 #Added so M and G codes in canned text will output before phsm2_on

phsm2_on #must remain after G43

sav_coolant = coolant$

if coolant$ = 1, sm09 = sm09_0

if coolant$ = 2, sm09 = sm09_1

if coolant$ = 3, sm09 = sm09_2

absinc$ = sav_absinc

pcom_movea

toolchng = zero

plast

tool_insp = zero

pbld, n$, "(TOOL INSPECTION POINT)", e$


I added the tool_insp flag to leave the spindle on in pretract with following line modified...

code:

      pbld, n$, sccomp, [if tool_insp = 0, *sm05], psub_end_mny, e$

The problem I have left is getting the coolant back on using X style coolant, works fine if using V9 coolant. Any one have any ideas?

Link to comment
Share on other sites

I've got the mpmaster working nicely with it so far...

code:

 

N690 X-24.9289 Y.3828 R2.3664

N700 G00 Z10.

N710 X-24.4958 Y.5184

N720 M00

 

 

N730 CHECK TOOL

N740 ( T3 M06 ) ( 1 INCH FLAT ENDMILL)

N750 M11 (UNLOCK
B)

N760 G00 G17 G90 G54 B0. X-24.4958 Y.5184 S534 M03

N770 M10 (LOCK
B)

N780 W0.

N790 G43 H3 Z10.

N800 Z.301 M08

N810 G94 G01 Z.276 F20.

N820 G03 X-25.8079 Y1.2147 Z.2439 R.95


I just sent it back to the ptlchg_com postblock (with a couple small changes) cheers.gif

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