Post Fail with tool orientation for 4th axis positioning

Post Fail with tool orientation for 4th axis positioning

Anonymous
Not applicable
963 Views
4 Replies
Message 1 of 5

Post Fail with tool orientation for 4th axis positioning

Anonymous
Not applicable

Hi, I've been using the planetCNC post in the library for 3 axis machining with no problems. I have now added a rotary 4th axis and am trying to run a program that requires 16 different tool orientations, and I get errors. It looks the the post is capable of doing 4 axis, but I assume there are modifications needed and I don't know how to do that. Can you help?

See below for errors:

 

Legal: Copyright (C) 2012-2020 by Autodesk, Inc.
Generated by: Fusion 360 CAM 2.0.10564
...
Warning: Work offset has not been specified. Using G54 as WCS.

###############################################################################
Error: Tool orientation is not supported.
Error at line: 766
Error in operation: 'Pencil2 (2)'
Failed while processing onSection() for record 3116.
###############################################################################

Error: Failed to invoke function 'onSection'.
Error: Failed to invoke 'onSection' in the post configuration.
Error: Failed to execute configuration.
Stop time: Wednesday, August 252021 12:14:33 AM
Post processing failed.
0 Likes
Accepted solutions (1)
964 Views
4 Replies
Replies (4)
Message 2 of 5

daniel_lyall
Mentor
Mentor

Around line 256 change this 

if (false) { // note: setup your machine here
    var aAxis = createAxis({coordinate:0table:falseaxis:[100], range:[-360360], preference:1});
    var cAxis = createAxis({coordinate:2table:falseaxis:[001], range:[-360360], preference:1});
    machineConfiguration = new MachineConfiguration(aAxiscAxis);
 
To
if (true) { // note: setup your machine here
    var aAxis = createAxis({coordinate:0table:falseaxis:[100], range:[-360360], preference:1});
    //var cAxis = createAxis({coordinate:2table:falseaxis:[001], range:[-360360], preference:1});
    machineConfiguration = new MachineConfiguration(aAxis, /*cAxis*/);


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

0 Likes
Message 3 of 5

boopathi.sivakumar
Autodesk
Autodesk

Hi @Anonymous 

In addition to what @daniel_lyall said make sure the parameters defined in the createAxis is matching as per your machine. You can read the documentation here How to set up a 4/5 axis machine configuration - Autodesk Community- HSM
For a typical 4th axis mounted on the table along X will have a kinematics something like below

 

  if (true) { // note: setup your machine here
    var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0],cyclic:true, range:[0, 360], preference:1});
    //var cAxis = createAxis({coordinate:2, table:false, axis:[0, 0, 1], range:[-360, 360], preference:1});
    machineConfiguration = new MachineConfiguration(aAxis);

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(1); // TCP mode
  }

 

 


Boopathi Sivakumar
Principal Technology Consultant

0 Likes
Message 4 of 5

Anonymous
Not applicable
Thanks Daniel,
I copied the revised text from your email and pasted it into the post, but there was a syntax error on line 259.
This is line 259 as copied:
     machineConfiguration  =  new   MachineConfiguration ( aAxis , /* cAxis*/ );
I also made the change per the message from Boopathi to change (0) to (1) in this line:
optimizeMachineAngles2(1); // TCP mode
Thanks for your help.
 
0 Likes
Message 5 of 5

daniel_lyall
Mentor
Mentor
Accepted solution

That's my fault the /* is in the wrong places 

 

It should be like this

machineConfiguration  =  new   MachineConfiguration ( aAxis /*,  cAxis*/ );

 

Not this

machineConfiguration  =  new   MachineConfiguration ( aAxis , /* cAxis*/ );

 

Example attached 


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

0 Likes