Announcements

Announcement: We’re aware of an issue affecting starting a new topic from category pages and creating new blog posts. New topics can still be started directly from the relevant board. Learn more here.

Haas milling post - incorrect output at end of program when setting "safePositionMethod" to clearance Height.

Haas milling post - incorrect output at end of program when setting "safePositionMethod" to clearance Height.

jimjovan8YE22
Observer Observer
577 Views
3 Replies
Message 1 of 4

Haas milling post - incorrect output at end of program when setting "safePositionMethod" to clearance Height.

jimjovan8YE22
Observer
Observer

It appears there is some incorrect code in both the Haas NGC and preNGC posts for milling.  I have tried the latest of each (released today, 6-4-24) as well as older versions...they have the same problem.

If safePositionMethod is set to G53 it works correctly and outputs the following at the end of the program:

 

N240 M5

N245 M9

N250 G53 G0 Z0.

N255 G53 G0 X0. Y0.

N260 M30

 

If safePositionMethod is set to clearanceHeight it does not work correctly and outputs the following at the end of the program:

 

N235 M5

N240 M9

N245 M30

 

This code stops the machine at its last programmed position and does not move the Z axis or table to a convenient location.  It should really output the same homing code as output using G53 for safePositionMethod.

If I run the machine with safePositionMethod to G53, everything works well, but there are excessive Z axis moves to G53 home and this adds additional wear to the machine and an increase to cycle times.

 

These results were duplicated in Visual Studio Code using the simple face.cnc program under 2D milling.

 

0 Likes
578 Views
3 Replies
Replies (3)
Message 2 of 4

a.laasW8M6T
Mentor
Mentor

Hi

 

Unfortunately that's just how the "Clearance height" mode works, its a pretty basic implementation that just disables the Z retracts.

 

Its not really a problem on small hobby routers etc where the z travel is small but having it stop at the clearance height at the end of the program is pretty annoying on a industrial machine.

 

You could put the G53(in the correct format) in as a Manual NC pass through at the end of your program to get around this

alaasW8M6T_0-1717548666281.pngalaasW8M6T_0-1717548666281.png

 

its this way on all the posts that have the "Clearance Height" mode not just the Haas one

 

 

Andrew Laas
Senior Machinist, Scott Automation


EESignature

0 Likes
Message 3 of 4

jimjovan8YE22
Observer
Observer

I would think that if the Fusion team aspires to be a solution for industry and not just a toy for makers and hobbyists, they would put someone on this and fix it pronto.  As is, it's completely unacceptable.

0 Likes
Message 4 of 4

a.laasW8M6T
Mentor
Mentor

Hi

 

I have looked into this a bit, there is a post mod to allow G53 retracts at the end of the program

Find the onClose() function and add

setProperty("safePositionMethod", "G53"); 

 

before the writeRetract(Z);

line 22 below:

function onClose() {
  if (!(getProperty("useLiveConnection") && controlType != "NGC")) {
    if (isDPRNTopen) {
      writeln("DPRNT[END]");
      writeBlock("PCLOS");
      isDPRNTopen = false;
    }
  }
  if (!getProperty("useLiveConnection") && typeof inspectionProcessSectionEnd == "function") {
    inspectionProcessSectionEnd();
  }

  cancelG68Rotation();
  writeln("");

  optionalSection = false;
  if (getProperty("useSSV")) {
    writeBlock(ssvModal.format(139));
  }
  onCommand(COMMAND_STOP_SPINDLE);
  onCommand(COMMAND_COOLANT_OFF);
  setProperty("safePositionMethod", "G53");
  // retract
  writeRetract(Z);
  if (!getProperty("homePositionCenter") || currentMachineABC.length != 0) {
    writeRetract(X, Y);
  }

 

 

Make sure you test carefully

 

 

Andrew Laas
Senior Machinist, Scott Automation


EESignature

0 Likes