Okuma coolant off / dwell

Okuma coolant off / dwell

Anonymous
Not applicable
474 Views
1 Reply
Message 1 of 2

Okuma coolant off / dwell

Anonymous
Not applicable

Hi everyone.

 

I'm looking for help modifying my post. Currently, at the end of an operation, the spindle turns off, then it rapids up, then the coolant turns off. I would like to change the order of things so that first the coolant turns off, then add a dwell (2 seconds?) for the tool to spin off excess coolant, then the rapid and everything else as it is now.

 

I have rudimentary coding skills so i was able to figure out how to change all the m06 with g116 for the okuma, and I was able to make the end of the program do a G30 Px before the M02. The order of operations mentioned above is a little outside my wheelhouse. Any ideas?? thanks

 

Chris

0 Likes
475 Views
1 Reply
Reply (1)
Message 2 of 2

bob.schultz
Alumni
Alumni

Hello Chris,

 

This is a pretty simple change.  I am guessing that you are using the stock Okuma post, so the changes I am suggesting are based on this post.

 

First find this code in the onSection function.

 

  if (insertToolCall || newWorkOffset || newWorkPlane) {
    // stop spindle before retract during tool change
    if (insertToolCall && !isFirstSection()) {
      onCommand(COMMAND_STOP_SPINDLE);
    }
    // retract to safe plane
    writeRetract(Z);
    if (newWorkPlane) {
      setWorkPlane(new Vector(0, 0, 0)); // reset working plane
    }
  }

And modify it to look like this ...

 

 

  if (insertToolCall || newWorkOffset || newWorkPlane) {
setCoolant(COOLANT_OFF); // add these 2 lines
onDwell(2);

// retract to safe plane (move these 2 lines up)
writeRetract(Z);
// stop spindle before retract during tool change if (insertToolCall && !isFirstSection()) { onCommand(COMMAND_STOP_SPINDLE); } if (newWorkPlane) { setWorkPlane(new Vector(0, 0, 0)); // reset working plane } }

Now comment out the coolant off code further down the function.

  if (insertToolCall) {
    forceWorkPlane();
    // setCoolant(COOLANT_OFF); // comment out this line
  
    if (!isFirstSection() && properties.optionalStop) {
      onCommand(COMMAND_OPTIONAL_STOP);
    }

 

 



Bob Schultz
Sr. Post Processor Developer

0 Likes