[Post Processor, Heidenhain] Cycl call after coolant off

[Post Processor, Heidenhain] Cycl call after coolant off

mbl_busse
Enthusiast Enthusiast
1,031 Views
12 Replies
Message 1 of 13

[Post Processor, Heidenhain] Cycl call after coolant off

mbl_busse
Enthusiast
Enthusiast

Hey there folks,

 

I want to optimize the pp for our C52 a bit further.

Before a toolchange happens I want to 'clean' the remaining coolant from the coolant-jets or the tool by blowing it out with air.

With normal flood coolant this is no problem- Hermle added a M-Code wich does exactly this (M440).

But for through-tool coolant there is only a cycle: cycle 315.

Therefore I have to add a cycl def after setting throughTool coolant off.

 

It has to look like this:

CYCL DEF 315 IKZ WZ ausblasen
Q1505=+2 ;Zeit ausblasen

 

Does anyone know how I could achieve this?

 

line from my pp, M440 already added, works flawless:

 

var coolants = [
{id: COOLANT_FLOOD, on: 8, off: [9, 440]},
{id: COOLANT_THROUGH_TOOL, on: 51, off: 52},
{id: COOLANT_AIR, on: 7, off: 9},
{id: COOLANT_AIR_THROUGH_TOOL, on: 12, off: 9},
{id: COOLANT_OFF, off: 9}
];

 

Thanks in advance and stay safe!

 

Janick

0 Likes
Accepted solutions (2)
1,032 Views
12 Replies
Replies (12)
Message 2 of 13

jedQB94J
Advocate
Advocate

Hi,

 

something like this will do the job.

post.png

 

Thanks,

Jacob

Message 3 of 13

mbl_busse
Enthusiast
Enthusiast

Hey there Jacob,

 

this is quite a good start, thank you very much.

So I got it working on pgm-end by writing it like this:

Screenshot 2021-01-21 120652.jpg

But this code doesnt work in case of a toolchange. I think the problem here might be that the currentCoolandMode is set earlier. Is there a way to 'grab' the coolant wich is currently running? In this case he seems to already take the coolandMode from the next tool..

Screenshot 2021-01-21 120939.jpg

 

👋

0 Likes
Message 4 of 13

jedQB94J
Advocate
Advocate

Hi,

 

Do the same in OnSection.

 

post.png

 

Thanks,

Jacob

0 Likes
Message 5 of 13

mbl_busse
Enthusiast
Enthusiast

Thats exactly the line I've inserted the code.. It's still the same thing.

If I go like you stated

[if (COOLANT_THROUGH_TOOL)]

the command will be executed with every toolchange- independent of the actual coolant.

 

If I go like

[if currentCoolantMode == COOLANT_THROUGH_TOOL]

the code will show if the NEXT tool hast TroughToolCoolant.

 

I attached my post, if you want to take a look..

0 Likes
Message 6 of 13

jedQB94J
Advocate
Advocate

Hi,

 

Yes sorry, you need this condition.

 

post.png

 

Thanks,

Jacob

0 Likes
Message 7 of 13

mbl_busse
Enthusiast
Enthusiast

Hi Jacob,

 

thanks for all your help, but I just cant get this to work. Even not with the PP from your last post..

I tried several iterations of this code. I'm sure it's just a small thing, but something is missing here.

 

 

 

Greetings from Germany 🙂

0 Likes
Message 8 of 13

jedQB94J
Advocate
Advocate

Hi,

 

Will you share a project where you have the fail?

 

Thanks,

0 Likes
Message 9 of 13

mbl_busse
Enthusiast
Enthusiast

Sure thing! It's just a file I tinker around for different ToolChange-Scenarios, because the NC-Extension of VisualStudio has no setting for something like M51-Toolchange-M8-Toolchange-M51 etc.

 

https://a360.co/2NsMsQ4

Here you go.

 

I also attached the NC-Program I get when PPing this through your PostProcessor. (changed to .txt for upload)

0 Likes
Message 10 of 13

jedQB94J
Advocate
Advocate
Accepted solution

Hi,

 

Now I thing it works:-)

 

Thanks,

Jacob

Message 11 of 13

mbl_busse
Enthusiast
Enthusiast

Ha, Jacob!

 

This seems to work. Very nice! Thank you very much. This was infact quite educational 🙂

One small issue seems to be, that now the cycl is also added to the first tool call. But thats really just a minor issue.

 

Screenshot 2021-01-22 104513.jpg

 

Thank your very much! 🙂

0 Likes
Message 12 of 13

jedQB94J
Advocate
Advocate
Accepted solution

You welcome:-)

 

Here you go.

Message 13 of 13

mbl_busse
Enthusiast
Enthusiast

Flawless! :):)

0 Likes