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:

COOLANT...


Recommended Posts

Hello everyone,
   I have added my custom "COOLANT" M-CODEs in the Machine definition such as M88 for thru spindle coolant ON,  M89 to turn off.  M88 does work well, at the end of the toolpath it still shows M9 not M89.  I looked at my post and I don't know which section should I look for.  Is it PCAN2 for after (please see image attached)?

 

 

Thank you,
   S.Luong

=====================G-CODES===============
N1( .1250,1/8 4F CB EM *.3/8 LOC*, CB, USED TOOL,)
(4FLTS .375LOC, 1.00STO)
G0 G17 G40 G49 G80 G90
G91 G28 Z0 M19
/G28 Y0
T1 M6(MILL SLOT .125 DP.024, CUT#4)
G90 G59 X-.0005 Y.25
S6112 M3
G43(D1)H1 Z1. M88(DOC= Z-.025) ====================> Works great as M88
Z.1
G1 Z-.025 F25.
Y-.1625
X.0005
Y.25
G0 Z.1
X-.0005
G1 Z-.025
Y-.1625
X.0005
Y.25
G0 Z1.
X0. Y10. Z0.
M9 ====================> It should be M89
G91 G28 Z0. M5
/G28 Y0.
G0 G90 G59 X0.
M30
%

 

========================= post====================

#Region pcan2
pcan2           #Canned text - after output call coolant after
      strcantext = sblank
      if cant_no$ > zero,
        [
        if cant_pos1$ = two | cant_pos1$ = five, pcant_1
        if cant_pos2$ = two | cant_pos2$ = five, pcant_2
        if cant_pos3$ = two | cant_pos3$ = five, pcant_3
        if cant_pos4$ = two | cant_pos4$ = five, pcant_4
        if cant_pos5$ = two | cant_pos5$ = five, pcant_5
        if cant_pos6$ = two | cant_pos6$ = five, pcant_6
        if cant_pos7$ = two | cant_pos7$ = five, pcant_7
        if cant_pos8$ = two | cant_pos8$ = five, pcant_8
        if cant_pos9$ = two | cant_pos9$ = five, pcant_9
        if cant_pos10$ = two | cant_pos10$ = five, pcant_10
        if cant_pos11$ = two | cant_pos11$ = five, pcant_11
        if cant_pos12$ = two | cant_pos12$ = five, pcant_12
        if cant_pos13$ = two | cant_pos13$ = five, pcant_13
        if cant_pos14$ = two | cant_pos14$ = five, pcant_14
        if cant_pos15$ = two | cant_pos15$ = five, pcant_15
        if cant_pos16$ = two | cant_pos16$ = five, pcant_16
        if cant_pos17$ = two | cant_pos17$ = five, pcant_17
        if cant_pos18$ = two | cant_pos18$ = five, pcant_18
        if cant_pos19$ = two | cant_pos19$ = five, pcant_19
        if cant_pos20$ = two | cant_pos20$ = five, pcant_20
        pbld, no_spc$, strcantext, no_spc$ , #COOLANT AFTER
        prestart
        strcantext = sblank
        ]
#EndRegion pcan2

COOLANT.png

Link to comment
Share on other sites
12 minutes ago, PcRobotic said:

Hello everyone,
   I have added my custom "COOLANT" M-CODEs in the Machine definition such as M88 for thru spindle coolant ON,  M89 to turn off.  M88 does work well, at the end of the toolpath it still shows M9 not M89.  I looked at my post and I don't know which section should I look for.  Is it PCAN2 for after (please see image attached)?

 

1

Look in your general machine parameters. Under the coolant tab

 

Capture.JPG.85f630d1c1068fe35f1aa6f6700ca07d.JPG

 

Link to comment
Share on other sites
  • 1 month later...

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