Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Post Procesor for siemens 840d, the 4th axis

toneanu_livia26
Enthusiast

Post Procesor for siemens 840d, the 4th axis

toneanu_livia26
Enthusiast
Enthusiast

Hi,

   I want to make a piece in the 4th axis, but when I open the program on the machine, an error appear at the phrase "TRAORI". Is there a post procesor that replace "TRAORI" with something else?

   And another problem that I have with this post procesor is that it doesn't inserts the workpiece and the name of the tool. I have attached below the program and the post procesor that I use for the 4th axis.

0 Likes
Reply
Accepted solutions (3)
803 Views
6 Replies
Replies (6)

Arun.rs
Autodesk
Autodesk
Accepted solution

HI @toneanu_livia26 

 

Most of the 4th axis machines has no any TCP function, so it is possible you have to configure it in this way :

 

optimizeMachineAngles2(1);
 b. Go to line number 819 and put '//' in front of below code. 
 
writeBlock("TRAORI");​

This will omit the TRAORI code in NC output.

 

c. Go to line number 247, and make it as true to enable the 'WORKPIECE' option

if (true) { // stock - workpiece
    var workpiece = getWorkpiece();
    var delta = Vector.diff(workpiece.upper, workpiece.lower);
    if (delta.isNonZero()) {
      writeBlock(
        "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) + ")"
      );
    }
  }

 

Save the file and test the output carefully,

 

Regards



Arun.RS
Technical Consultant - Post Processor
1 Like

toneanu_livia26
Enthusiast
Enthusiast
Accepted solution
Hello,
Thank you very much, I am looking forward to test it tomorrow.
1 Like

toneanu_livia26
Enthusiast
Enthusiast

Hi again 🙂

Please, when you have time, I have two contoured pieces. One works, with your solution, another no. The postprocessor does not output anything. I know it works because I've done this piece in the past. Thanks a lot!

0 Likes

Arun.rs
Autodesk
Autodesk

HI @toneanu_livia26 

 

You have incorrectly set the WCS. 

 

Set the WCS as shown in image and check the output 

 

WCS.png

 

Regards

 



Arun.RS
Technical Consultant - Post Processor
0 Likes

toneanu_livia26
Enthusiast
Enthusiast

Hi

He has something else if it doesn't work... yet 🙂

0 Likes

Arun.rs
Autodesk
Autodesk
Accepted solution

HI @toneanu_livia26 

 

This is happening because limits you have mentioned in the post are reached, so it tries to retract to the home position. Mostly the 4 axis machines allows the cyclic motion it doesn't need to be retract and reconfigure.

 

Change this:

var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[-360.0001,360.0001], preference:1});

 

To this:

var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], cycle:true, preference:1});

 

Regards

 

 



Arun.RS
Technical Consultant - Post Processor
1 Like