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:

Not post M09?


Recommended Posts

Hello,

 

I am trying to get the post to not post a M09 after I select M51 in the coolant... The reason is because the machine takes a few seconds to blow out the lines when a M09 is selected after a M51... Do I have to set up a special coolant selection for this to work? I tried just deleting the M09's in post but it still posted them... I have X5 and using MPmaster post..

 

N350 G00 G17 G20 G40 G80 G90

N360 G91 G28 Z0.

N370 (G54 17/32 .5312 DRILL THROUGH)

N380 T1 M06 (17/32 SOLID CARBIDE DRILL)

N390 (MAX - Z1.)

N400 (MIN - Z-2.125)

N410 M51

N420 G00 G17 G90 G54 A0. X-.562 Y-.5 S6000 M03

N430 G43 H1 Z1. T12

N440 G94

N450 G98 G81 Z-2.125 R.1 F60.

N460 X-7.218

N470 G80

N480 (G55 17/32 .5312 DRILL THROUGH)

N490 G55 X-7.218 Y.5 Z1.

N500 G98 G81 Z-2.125 R.1 F60.

N510 X-.562

N520 G80

N530 M09 <------------------------------------ need it to not post here ------------------------------------->

N540 M05

N550 G91 G28 Z0.

N560 M01

 

Thanks

Link to comment
Share on other sites

So which one of the 2 options you are using is doing the actual output (M51), your canned text or your Coolant parameter? Have you tried to just leave all coolants off and keep the M51 before call out on your canned text??

 

I mean leave the coolant tab to all off and leave the canned text selection as it in on pic#2. See what that does.

Link to comment
Share on other sites

So which one of the 2 options you are using is doing the actual output (M51), your canned text or your Coolant parameter? Have you tried to just leave all coolants off and keep the M51 before call out on your canned text??

 

I mean leave the coolant tab to all off and leave the canned text selection as it in on pic#2. See what that does.

 

 

Yes I tried that same thing... It seams to post a M09 as a default for each tool maybe? So the M09 is getting read some where else in the post not from the coolant pull down or canned text.. I also noticed that the coolant pull down page and the canned text are linked so if you put M51 in canned text only it changes the pull down page also to M51.. But I tried selecting no coolant at all and it doesn't post a M09 then..

Link to comment
Share on other sites

From the MPMaster, look for the following:

 

cool_zmove : yes$ #Coolant off with last move

 

Without trying it here I don't know how it will affect your M08/M09 callout

 

I found it and changed it to no but still posted M09... Should I try deleting the line?

 

 

cool_zmove : no$ #Coolant off with last move

Link to comment
Share on other sites

Just as Keith suggested, from the MPMaster:

 

pretract #End of tool path, toolchange

phsm_off

sav_absinc = absinc$

absinc$ = one

sav_coolant = coolant$

coolant$ = zero

 

# if nextop$ = 1003, #Uncomment this line to leave coolant on until eof unless

# [ # explicitely turned off through a canned text edit

if all_cool_off,

[

#all coolant off with a single off code here

if coolant_on, pbld, n$, *sall_cool_off, e$

coolant_on = zero

]

else,

[

local_int = zero

coolantx = zero

while local_int < 20,

[

coolantx = and(2^local_int, coolant_on)

local_int = local_int + one

if coolantx > zero,

[

coolantx = local_int

pbld, n$, scoolantx, e$

]

coolantx = zero

]

coolant_on = zero

]

# ]

 

Notice the option to either use it or not.

 

Thanks Keith!!!

Link to comment
Share on other sites

Post up the pretract postblock of your post...

The section of code with the M09 you posted in your 1st post is controlled by the pretract postblock, something in there is outputting it.

Do you ever want the M09 to be output?

 

 

Here is what is on my post for pretract... Not sure where to edit it to not post M09 only with M51... I guess it will be ok if it never posted a M09.. Because a tool change and a moo automatically turns coolant off..

 

 

pretract #End of tool path, toolchange

phsm_off

sav_absinc = absinc$

absinc$ = one

sav_coolant = coolant$

coolant$ = zero

 

# if nextop$ = 1003, #Uncomment this line to leave coolant on until eof unless

# [ # explicitely turned off through a canned text edit

if all_cool_off,

[

#all coolant off with a single off code here

if coolant_on, pbld, n$, *sall_cool_off, e$

coolant_on = zero

]

else,

[

local_int = zero

coolantx = zero

while local_int < 20,

[

coolantx = and(2^local_int, coolant_on)

local_int = local_int + one

if coolantx > zero,

[

coolantx = local_int

pbld, n$, scoolantx, e$

]

coolantx = zero

]

coolant_on = zero

]

# ]

 

#cc_pos is reset in the toolchange here

cc_pos$ = zero

if convert_rpd$ = one,

[

gcode$ = one

feed = maxfeedpm

ipr_type = zero

]

else, gcode$ = zero

pbld, n$, sccomp, *sm05, psub_end_mny, e$

pbld, n$, sgabsinc, sgcode, [if gcode$ = 1, sgfeed], *sg28, "Z0.", [if gcode$ = 1, feed], scoolant, e$

#if lock_codes = one & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

#pbld, n$, *sg28, "X0.", "Y0.", protretinc, e$

#if lock_codes = one & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$

if abs(fmtrnd(cabs)) > 360 & nextop$ <> 1003 & not(index),

[

if lock_codes = one, pbld, n$, *sunlock, sunlockcomm, e$

rotretflg = 1

pbld, n$, `sg28, protretinc, e$

rotretflg = 0

if lock_codes = one & cuttype = 0, pbld, n$, *slock, slockcomm, e$

]

absinc$ = sav_absinc

coolant$ = sav_coolant

 

pretract0 #End of tool path, null toolchange

phsm_off

sav_absinc = absinc$

absinc$ = one

# sav_coolant = coolant$

# coolant$ = zero

 

## if nextop$ = 1003, #Uncomment this line to leave coolant on until eof unless

## [ # explicitely turned off through a canned text edit

# if all_cool_off,

# [

# #all coolant off with a single off code here

# if coolant_on, pbld, n$, *sall_cool_off, e$

# coolant_on = zero

# ]

# else,

# [

# local_int = zero

# coolantx = zero

# while local_int < 20,

# [

# coolantx = and(2^local_int, coolant_on)

# local_int = local_int + one

# if coolantx > zero,

# [

# coolantx = local_int

# pbld, n$, scoolantx, e$

# ]

# coolantx = zero

# ]

# coolant_on = zero

# ]

## ]

Link to comment
Share on other sites

Up near the top it states "Uncomment this line..... yada yada"

take the # out of the beginning of that line (& the next too it looks like, the one that only has #[ ). Make it just [

 

Your next postblock down will be the pretract0 (null toolchange retract) postblock. You may need to make similar edits there also (for null toolchange retracts to behave the same as actual toolchange retracts)

 

 

I didn't know that feature was in the post & have never tried it. Hopefully it works as intended without further modification.

Link to comment
Share on other sites

Up near the top it states "Uncomment this line..... yada yada"

take the # out of the beginning of that line (& the next too it looks like, the one that only has #[ ). Make it just [

 

Your next postblock down will be the pretract0 (null toolchange retract) postblock. You may need to make similar edits there also (for null toolchange retracts to behave the same as actual toolchange retracts)

 

 

I didn't know that feature was in the post & have never tried it. Hopefully it works as intended without further modification.

 

 

Ya thanks that worked but it takes out all of the M09's except at the end where it post two M09 for some reason... That should work but it would be nice to just have the M51 not post M09.....

 

 

Here is what the code looks like now. Doesn't post M09 at all just at end..

 

 

 

N350 G00 G17 G20 G40 G80 G90

N360 G91 G28 Z0.

N370 (G54 17/32 .5312 DRILL THROUGH)

N380 T1 M06 (17/32 SOLID CARBIDE DRILL)

N390 (MAX - Z1.)

N400 (MIN - Z-2.125)

N410 M51

N420 G00 G17 G90 G54 A0. X-.562 Y-.5 S6000 M03

N430 G43 H1 Z1. T12

N440 G94

N450 G98 G81 Z-2.125 R.1 F60.

N460 X-7.218

N470 G80

N480 (G55 17/32 .5312 DRILL THROUGH)

N490 G55 X-7.218 Y.5 Z1.

N500 G98 G81 Z-2.125 R.1 F60.

N510 X-.562

N520 G80

N530 M01

N540 (MILLS SLOT WITH .1875 SLITTING SAW G54.1)

N550 (COMPENSATION TYPE - OFF)

N560 T12 M06 (4.0 DIA .1875 THICKNESS CARBIDE INDEXABLE SLOTTING CUTTER)

N570 (MAX - Z2.9)

N580 (MIN - Z-1.1)

N590 M08

N600 G00 G17 G90 G54.1 P1 A0. X2.1252 Y-.5009 S2000 M03

N610 G43 H12 Z-1.1 T6

N620 G94 G01 G91 X-.875 Y.0003 F50.

N630 X1. Y-.0003 F500.

N640 (MILLS SLOT WITH .1875 SLITTING SAW G54.2)

N650 G90 G54.1 P2 X2.1267 Y4.5491 Z-1.1

N660 X1.2517 Y4.5494 F50.

N670 X2.2517 Y4.5491 F500.

N680 G00 Z2.9

N690 (MILLS SLOT WITH .1875 SLITTING SAW G54.3)

 

End

 

N1960 G01 Z-1.376 F500.

N1970 G41 D5 X-6.3745 Y-.9737 F85.

N1980 G03 X-6.7205 Y-1.0263 I-.173 J-.0263

N1990 X-6.3745 Y-.9737 I.173 J.0263

N2000 X-6.4162 Y-.8843 I-.173 J-.0263

N2010 G01 G40 X-6.5535 Y-1.0053

N2020 G00 Z4.

N2030 M09 <--------------------------------- Posts two M09 for some reason -------------------------------->

N2040 M09

N2050 M05

N2060 G91 G28 Z0.

N2070 G28 Y0. A0.

N2080 G90

N2090 #3901=#3901+1

N2100 M30

%

 

 

Was this in post

 

pretract #End of tool path, toolchange

phsm_off

sav_absinc = absinc$

absinc$ = one

sav_coolant = coolant$

coolant$ = zero

 

# if nextop$ = 1003, #Uncomment this line to leave coolant on until eof unless

# [ # explicitely turned off through a canned text edit

if all_cool_off,

[

 

Changed to this

 

pretract #End of tool path, toolchange

phsm_off

sav_absinc = absinc$

absinc$ = one

sav_coolant = coolant$

coolant$ = zero

 

if nextop$ = 1003, Uncomment this line to leave coolant on until eof unless

[ explicitely turned off through a canned text edit

if all_cool_off,

[

#all coolant off with a single off code here

if coolant_on, pbld, n$, *sall_cool_off, e$

coolant_on = zero

]

Link to comment
Share on other sites

Change this...

 

 

 

if nextop$ = 1003, Uncomment this line to leave coolant on until eof unless
[ explicitely turned off through a canned text edit
if all_cool_off,

 

 

to this...

if nextop$ = 1003, #Uncomment this line to leave coolant on until eof unless

# explicitely turned off through a canned text edit
[
if all_cool_off,

 

Just want to make sure that bracket is on a line by itself, and the actual comments are commented out.

 

Your reseller could help get it perfect for you, I am just self taught & use the trial & error method... If your going to get deep into it, make sure you back up your post.

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