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:

Multi collant codes


Recommended Posts

If you're using X-Style coolant, you can change it in the control def

 

and in this section of the post

# --------------------------------------------------------------------------
# Coolant output code selection for X style coolant
# Note: To enable X style coolant, click on the General Machine Parameters icon
#   in the Machine Definition Manager, Coolant tab, disable first check box
#   Output of X style coolant commands in this post is controlled by pcan, pcan1, & pcan2
scool50    : "M8"                 #Coolant 1 on value
scool51    : "M9"                 #Coolant 1 off value
scool52    : "M8M130"             #Coolant 2 on value
scool53    : "M9"                 #Coolant 2 off value
scool54    : "M51"                #Coolant 3 on value
scool55    : "M9"                 #Coolant 3 off value
scool56    : "M131(Coolant4=ON)"  #Coolant 4 on value
scool57    : "M9(Coolant4=OFF)"   #Coolant 4 off value
scool58    : "M8(Coolant5=ON)"    #Coolant 5 on value
scool59    : "M9(Coolant5=OFF)"   #Coolant 5 off value
scool60    : "M8(Coolant6=ON)"    #Coolant 6 on value
scool61    : "M9(Coolant6=OFF)"   #Coolant 6 off value
scool62    : "M8(Coolant7=ON)"    #Coolant 7 on value
scool63    : "M9(Coolant7=OFF)"   #Coolant 7 off value
scool64    : "M8(Coolant8=ON)"    #Coolant 8 on value
scool65    : "M9(Coolant8=OFF)"   #Coolant 8 off value
scool66    : "M8(Coolant9=ON)"    #Coolant 9 on value
scool67    : "M9(Coolant9=OFF)"   #Coolant 9 off value
scool68    : "M8(Coolant10=ON)"   #Coolant 10 on value
scool69    : "M9(Coolant10=OFF)"  #Coolant 10 off value
scoolantx : ""                    #Target for string

fstrsel scool50 coolantx scoolantx 20 -1

Link to comment
Share on other sites

You're mostly likely still using V9 style coolant

If you want and still use V9 style

 

# --------------------------------------------------------------------------
# Coolant M code selection for V9 style coolant
# Note: To enable V9 style coolant, click on the General Machine Parameters icon
#   in the Machine Definition Manager, Coolant tab, enable first check box
#   Output of V9 style coolant commands in this post is controlled by scoolant
sm09    : "M9"       #Coolant Off
sm08    : "M8"       #Coolant Flood 
sm08_1  : "M8M130"   #Coolant WATERFALL
sm08_2  : "M51"      #Coolant Tool
scoolant : ""        #Target for string

fstrsel sm09 coolant$ scoolant 4 -1

 

 

But you only have 3 options available

Edited by Guest
Link to comment
Share on other sites

Don't know how you're currently set up but you might have to break out the scoolant onto it's own line like such

pbld, n$, sg43, maz_hoff, pfzout, e$ #[if nextdc$ <> 8, scoolant, sm08_1], e$

pbld, n$ scoolant$

Then you could do something like this...I "think" it would work

# --------------------------------------------------------------------------
# Coolant M code selection for V9 style coolant
# Note: To enable V9 style coolant, click on the General Machine Parameters icon
#   in the Machine Definition Manager, Coolant tab, enable first check box
#   Output of V9 style coolant commands in this post is controlled by scoolant
sm09    : "M9"       #Coolant Off
sm08    : "M8"       #Coolant Flood 
sm08_1  : "M8 M130"   #Coolant WATERFALL
sm08_2  : "M51, e$ M8"      #Coolant Tool  <-------Like this line
scoolant : ""        #Target for string

fstrsel sm09 coolant$ scoolant 4 -1

Link to comment
Share on other sites

Ours will post out both before, with or after; any combination you have active, that is all fields remain active and functional even if one or two are already selected. And it puts them in the right spot for before, with after.

Works on Mori/Fanuc, Mori/Mitsubishi and Haas.

MPMASTER based, but originally written at X2

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