SIEMENS 840D POST PROCESSOR MODIFICATION NEED IT

SIEMENS 840D POST PROCESSOR MODIFICATION NEED IT

sinan-ba
Contributor Contributor
1,011 Views
4 Replies
Message 1 of 5

SIEMENS 840D POST PROCESSOR MODIFICATION NEED IT

sinan-ba
Contributor
Contributor

PLEASE  NEED SOME EDITING TO SIEMENS 840D  POST PROCESSOR , I ATT. A TEXT FILE SHOWING THE EDITING REQUIRED. 

 

THANKS IN ADVANCE

 

0 Likes
Accepted solutions (1)
1,012 Views
4 Replies
Replies (4)
Message 2 of 5

boopathi.sivakumar
Autodesk
Autodesk
Accepted solution

@sinan-ba 

Edit the post like this below

add the code in red "//"

if (insertToolCall || newWorkOffset || newWorkPlane) {
    
    // retract to safe plane
    //writeRetract(Z);
    if (newWorkPlane && useMultiAxisFeatures) {
      setWorkPlane(new Vector(0, 0, 0), false); // reset working plane
    }
  }

And 

    if (lengthOffset > 99) {
      error(localize("Length offset out of range."));
      return;
    }
    //writeBlock("T" + (properties.toolAsName ? "="  + "\"" + (tool.description.toUpperCase()) + "\"" : toolFormat.format(tool.number)), dFormat.format(lengthOffset));
    //writeBlock(mFormat.format(6));
    if (tool.comment) {
      writeComment(tool.comment);
    }

And finally in onClose

function onClose() {
  writeln("");
  //writeRetract(Z);
  setWorkPlane(new Vector(0, 0, 0), true); // reset working plane
  if (properties.homeXYAtEnd) {
    writeRetract(X, Y);
  }

Save the file now and test it

 


Boopathi Sivakumar
Senior Technology Consultant

0 Likes
Message 3 of 5

sinan-ba
Contributor
Contributor

Dear Mr Sivakumar,

 

Thank you very much for help, I could made successfully some modification, maybe you did not noticed  that others I need. 

Please I need also to add 

(percent sign)    at the beginning  & also at the end of the nc file.

   (semicolon sign)  at the beginning of line    ;WORKPIECE (,,,,,ex.....)

 

That is will be all, Thank you in advance

0 Likes
Message 4 of 5

boopathi.sivakumar
Autodesk
Autodesk

@sinan-ba 

Go and search for this line if (programComment)

and make something like below

 

  writeln("% " + translateText(String(programName).toUpperCase(), " ", "_") + "_MPF");
  
  if (programComment) {
    writeComment(programComment);
  }

And search for this below portion do the changes ln red

  if (true) { // stock - workpiece
    var workpiece = getWorkpiece();
    var delta = Vector.diff(workpiece.upper, workpiece.lower);
    if (delta.isNonZero()) {
     writeln(
        "; WORKPIECE" + "(" + ",,," + "\"" + "BOX" + "\""  + "," + "112" + "," + xyzFormat.format(workpiece.upper.z) + "," + xyzFormat.format(workpiece.lower.z) + "," + "80" +
        "," + xyzFormat.format(workpiece.upper.x) + "," + xyzFormat.format(workpiece.upper.y) + "," + xyzFormat.format(workpiece.lower.x) + "," + xyzFormat.format(workpiece.lower.y) + ")"
      );
    }
  }

At the end of the code in function onClose()

add the code in red

  onImpliedCommand(COMMAND_END);
  onImpliedCommand(COMMAND_STOP_SPINDLE);
  writeBlock(mFormat.format(30)); // stop program, spindle stop, coolant off
  if (subprograms.length > 0) {
    writeln("");
    write(subprograms);
  }
  writeln("%");
}

Boopathi Sivakumar
Senior Technology Consultant

0 Likes
Message 5 of 5

sinan-ba
Contributor
Contributor

Mr. Sivakumar, 

Thank you very much , all are ok.... Please  see the att photo, I posted the same cam file , on the left is siemens 840D processor) &  the right one was posted with siemens 802D postprocessor.

As you can see RAMP on 840 D generated with G1 , but On 802 D The file generated with G3.

How can I let 840 D post processor output G3 & G2  instead of G1 , on RAMPING operation ?

 

 

Thank you , My best regards

0 Likes