On Mon, 31 Aug 2020 at 05:40, jrmitchellj <jrmitche...@gmail.com> wrote:

> I am running out of workspaces.

You can have as many as you want if you can swap var files around:
http://linuxcnc.org/docs/2.8/html/config/ini-config.html#gcode:ini-features

It means stopping and re-starting LinuxCNC with a different var file
for a specific job, but it might be an option.

But editing the postprocessor doesn't look so hard. It is apparently
Javascript and this is the section:

  if (workOffset > 0) {
    if (workOffset > 6) {
      var p = workOffset - 6; // 1->...
      if (p > 3) {
        error(localize("Work offset out of range."));
        return;
      } else {
        if (workOffset != currentWorkOffset) {
          writeBlock(gFormat.format(59.1), "P" + p); // G59.1P
          currentWorkOffset = workOffset;
        }
      }
    } else {
      if (workOffset != currentWorkOffset) {
        writeBlock(gFormat.format(53 + workOffset)); // G54->G59
        currentWorkOffset = workOffset;
      }
    }
  }

I decided to completely rewrite that section in my postprocessor, to
the (lightly tested) following code.

  if (workOffset != currentWorkOffset) {
      switch (workOffset){
        case 0:
            return;
        case 1:
        case 2:
        case 3:
        case 4:
        case 5:
        case 6:
            writeBlock(gFormat.format(53 + workOffset)); // G54->G59
            break;
        case 7:
            writeBlock(gFormat.format(59.1));
            break;
        case 8:
            writeBlock(gFormat.format(59.2));
            break;
        case 9:
            writeBlock(gFormat.format(59.3));
            break;
        default:
            error(localize("Work offset out of range."));
            return
        }
    currentWorkOffset = workOffset;
  }

Alternatively, download the modified postprocessor from here and add
it to your "Personal Posts"
http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Fusion360

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to