Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fanuc generic post

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
patrizio.costa
251 Views, 3 Replies

Fanuc generic post

Hi,

we just purchased a used Yasda 5 axis milling machine, with A and B axis.
Unfortunately the cnc doesn't support G68.2 code.
In the generic Fanuc post (version 44056) I changed the line 396

useTiltedWorkplane from True to False.

But if i post an operation with rotated axis I get this error:

 

###############################################################################
Errore: Error: Direction is not supported for machine configuration.
Error at line: 1
Error in operation: 'Spianatura (Y-)'

Stack dump:
("Direction is not supported for machine configuration.")@:0
getWorkPlaneMachineABC([object Section],true)@C:/Users/patri/AppData/Roaming/Autodesk/Fusion 360 CAM/Posts/fanuc 2.cps:1299
defineWorkPlane([object Section],true)@C:/Users/patri/AppData/Roaming/Autodesk/Fusion 360 CAM/Posts/fanuc 2.cps:1267
onSection()@C:/Users/patri/AppData/Roaming/Autodesk/Fusion 360 CAM/Posts/fanuc 2.cps:573
Failed while processing onSection() for record 473.
###############################################################################

Errore: Failed to invoke function 'onSection'.
Errore: Failed to invoke 'onSection' in the post configuration.
Errore: Failed to execute configuration.
Stop time: Tuesday, March 21, 2023 9:05:29 PM
Post processing failed.
 
 
What am I doing wrong?
 
Thanks Patrick
3 REPLIES 3
Message 2 of 4

I think I solved the problem. Needed Machine configuration!

Message 3 of 4

Hi @patrizio.costa 

 

to be accurate you need a kinematic definition.
With the updated post, this kinematic can be provided, either by a machine configuration file, or may be hardcoded inside the post.
Nowadays, we prefer to suggest the first solution, as the same post can be used with several machines, with the same controller.
Using a machine configuration file require to select it, from the Fusion dialog for editing Setup.

Defining the kinematic in the post require to edit the defineMachine function (on the up-to-date post, or look at the beginning of onOpen)
And make some changes.

 

 

function defineMachine() {
  var useTCP = true;
  if (false) { // note: setup your machine here, replace by true
    var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[-120, 120], preference:1, tcp:useTCP});  // depending on the machine set the direction, tcp support and limits
    var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], range:[-360, 360], preference:0, tcp:useTCP});
    machineConfiguration = new MachineConfiguration(aAxis, cAxis);

    setMachineConfiguration(machineConfiguration);
    if (receivedMachineConfiguration) {
      warning(localize("The provided CAM machine configuration is overwritten by the postprocessor."));
      receivedMachineConfiguration = false; // CAM provided machine configuration is overwritten
    }
  }

 

 

Regards.

 



Serge.Q
Technical Consultant
cam.autodesk.com
Message 4 of 4

Thank you for the clarification!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report