changing location of m08 and m09 in fusion post for daewoo vmc fanuc oi-mb

changing location of m08 and m09 in fusion post for daewoo vmc fanuc oi-mb

egrimU4Y2L
Participant Participant
889 Views
2 Replies
Message 1 of 3

changing location of m08 and m09 in fusion post for daewoo vmc fanuc oi-mb

egrimU4Y2L
Participant
Participant

Hello,

 

I am currently trying to change the post processor placement of m08 and m09. Controller is fanuc oi-mb for a daewoo mill. I always want m08 to be on the line directly after the g43 Z2. line (since I always have the tool rapid down 2 inches above part for clearance height for every part I do) at the beginning of each tool. 

 

To turn off the coolant at the end of each tool, I always want m09 on the same line with the g80.

 

I was wondering if somebody could help me with this or at least point me in the right direction?

 

I have attached an example post where I did the changes I want by hand. I have also attached the post processor I want modified.

 

Thanks,

 

Chris

0 Likes
890 Views
2 Replies
Replies (2)
Message 2 of 3

KrupalVala
Autodesk
Autodesk

Hi @egrimU4Y2L ,

 

Please add setCoolant codes as shown below,

 

These codes help to turn-on coolant code if  drilling Heights are different.

if (isFirstCyclePoint() || isProbeOperation()) {
    if (!isProbeOperation()) {
      // return to initial Z which is clearance plane and set absolute mode
      repositionToCycleClearance(cycle, x, y, z);
    }
    setCoolant(tool.coolant); // add coolant mode

 

Below codes will turn of coolant at the end of drilling cycle.

 if (!cycleExpanded) {
      writeBlock(gCycleModal.format(80),setCoolant(COOLANT_OFF));
      zOutput.reset();
    }

 

Save the modified post and test the codes.

Thanks



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 3 of 3

Laurens-3DTechDraw
Mentor
Mentor

It seems the M08 is already in the correct place?

The M09 on the last G0 move is a little tricky. But right after it is easy.

Find an updated post attached.

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
Found out the hard way is the best way to win.