Mist and Air coolant post together

Mist and Air coolant post together

KRoser_12
Advocate Advocate
968 Views
4 Replies
Message 1 of 5

Mist and Air coolant post together

KRoser_12
Advocate
Advocate

Hi guys just a quick question. Is posible to have two mcodes in one coolant option. I have separate m codes to activate mql and air cooling on my machine. 99% time i use mql (M7) but there are some times when i need aditional air (M50) so when i program air cooling in inventor then output will be M7

M50.

 

I hope that i explained my problem well with my english knowledge.

Thanks for help

0 Likes
Accepted solutions (1)
969 Views
4 Replies
Replies (4)
Message 2 of 5

GeorgeRoberts
Autodesk
Autodesk

Hello,

 

Thanks for posting. You can modify your post processor to support multiple coolant commands like this. If you would be willing to share you post, I could advise on what modifications are needed

 

Cheers

-

George Roberts

Manufacturing Product manager
If you'd like to provide feedback and discuss how you would like things to be in the future, Email Me and we can arrange a virtual meeting!
Message 3 of 5

AchimN
Community Manager
Community Manager
Accepted solution

@KRoser_12 sure this is possible.

Here is a sample taken from the generic HAAS UMC750 post:

 

function setCoolant(coolant) {
  if (isProbeOperation()) { // avoid coolant output for probing
    coolant = COOLANT_OFF;
  }

  if (coolant == currentCoolantMode) {
    return; // coolant is already active
  }

  var m = undefined;
  var m2 = undefined;
  if (coolant == COOLANT_OFF) {
    if (currentCoolantMode == COOLANT_THROUGH_TOOL) {
      m = 89;
    } else if (currentCoolantMode == COOLANT_AIR) {
      m = 84;
    } else if (currentCoolantMode == COOLANT_AIR_THROUGH_TOOL) {
      m = 74;
    } else if (currentCoolantMode == COOLANT_FLOOD_THROUGH_TOOL) {
      m = 89;
      m2 = 9;
    } else {
      m = 9;
    }
    writeBlock(mFormat.format(m));
    if (m2) {
      writeBlock(mFormat.format(m2));
    }
    currentCoolantMode = COOLANT_OFF;
    return;
  }

  if (currentCoolantMode != COOLANT_OFF) {
    setCoolant(COOLANT_OFF);
  }

  switch (coolant) {
  case COOLANT_FLOOD:
    m = 8;
    break;
  case COOLANT_THROUGH_TOOL:
    m = 88;
    break;
  case COOLANT_AIR:
    m = 83;
    break;
  case COOLANT_AIR_THROUGH_TOOL:
    m = 73;
    break;
  case COOLANT_FLOOD_THROUGH_TOOL:
    m = 88;
    m2 = 8;
    break;
  default:
    warning(localize("Coolant not supported."));
    if (currentCoolantMode == COOLANT_OFF) {
      return;
    }
    coolant = COOLANT_OFF;
    m = 9;
  }

  writeBlock(mFormat.format(m));
  if (m2) {
    writeBlock(mFormat.format(m2));
  }
  currentCoolantMode = coolant;
}


Achim.N
Principal Technology Consultant
Message 4 of 5

KRoser_12
Advocate
Advocate

Thanks for super quick response, there is my post.

0 Likes
Message 5 of 5

KRoser_12
Advocate
Advocate

I looked at that sample from UMC750, but I didn´t fully understand that. But right now it finally hit me :). I make my changes and it works (so far now at least). Thanks guys.