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:

Change of coolant in Postprocessor


Guffie
 Share

Recommended Posts

I have a quick little question for those of you who knows somehting about postprocessor editing...

 

To get the highest possible pressure when we drill with I/K we normally switch off the outside coolant, but I have to manually add a M9 always before the M51 (I/K code)

 

The part of the post looks like below... How do I change this to post out first M9 and on next line M51?

 

# Coolant M code selection

sm09 : "M9" #Coolant Off

sm08 : "M8" #Coolant Flood

sm08_1 : "M8" #Coolant Mist

sm08_2 : "M51" #Coolant Tool

 

If any has an idea it would be great!! :)

Link to comment
Share on other sites

# Coolant M code selection

sm09 : "M9" #Coolant Off

sm08 : "M8" #Coolant Flood

sm08_1 : "M8" #Coolant Mist

sm08_2 : "M51" #Coolant Tool

This is the string definition area for 'scoolant' string, the actual coolant command area is in 'psof', 'ptlchg' and 'ptlchg0' areas.

In these areas, where you find 'scoolant' specified, you need something like this:

 

if coolant = 3, #Evaluates whether "M51" is active

[

"M9", e$ #Force "M9" on its own line

*scoolant, e$ #Force "M51" output on its own line

]

else, scoolant, e$ #If not "M51" coolant output if needed on own line.

 

This can be adjusted for desired output.

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