Conditional M09

Conditional M09

patrik_stellgren
Advocate Advocate
474 Views
5 Replies
Message 1 of 6

Conditional M09

patrik_stellgren
Advocate
Advocate
Hi,

Im by no means any programmer, however i've so far successfully made a couple of changes to the Heidenhain post to suite my TNC 370 on my Bridgeport.
But I'm kind of stuck now.

So basically i have normal flood coolant activated by M8 and deactivated by M9, pretty normal so far. But previous owner added air blast and it's programmed to activate with M58,  <- This part i handled in my post, but it can only be deactivated by M78..But i only get M9 from my post.

So my guess is i need some kind of conditional M9 / M78 for Coolant_Off depending on if Flood or Air was used.

0 Likes
475 Views
5 Replies
Replies (5)
Message 2 of 6

Laurens-3DTechDraw
Mentor
Mentor
Can you upload the post?

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
René for Legend.


0 Likes
Message 3 of 6

patrik_stellgren
Advocate
Advocate
Thanks for the quick reply but i should have tried a bit harder before posting.
Problem solved


var m;
  switch (coolant) {
  case COOLANT_OFF:
  if (currentCoolantMode == COOLANT_AIR)  {
    m = 78;
    break;
    } else {
    m = 9;
    break;
    }


is what i added and works like a charm.

Thanks again
0 Likes
Message 4 of 6

Laurens-3DTechDraw
Mentor
Mentor
Well different posts have different ways of doing this. That's why I asked for the post and couldn't give clear directions.

But all is well, you've learned something and have a working post. 8)

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
René for Legend.


0 Likes
Message 5 of 6

patrik_stellgren
Advocate
Advocate
Oh yeah i see, makes sense i guess  😄
0 Likes
Message 6 of 6

Anonymous
Not applicable
Hey Iccccie,

I also work with a bridgeport, i was wondering if you also need a "M6"?
My problem is that I can't get it in the wright place, the line before the "TOOL DEF" instead of behind the "TOOL DEF"

could you maybe mail me your modified post, it would help me alot...

Thanks,

Bart
0 Likes