Error: Direction is not supported for machine configuration. Using CB Universal head Siemens 840D

Error: Direction is not supported for machine configuration. Using CB Universal head Siemens 840D

Anthony.Williamson2G362
Explorer Explorer
421 Views
3 Replies
Message 1 of 4

Error: Direction is not supported for machine configuration. Using CB Universal head Siemens 840D

Anthony.Williamson2G362
Explorer
Explorer

Im getting a Error messasge that I cant seem to solve "Error: Direction is not supported for machine configuration." Im am using the Siemens 840D post and the Autodesk CB Head Head machine config with altered axis dimensions to suit my application. When I work with the tool vertical its fine but if I have the tool/head turned horizontal I get the above error message??

0 Likes
422 Views
3 Replies
Replies (3)
Message 2 of 4

KrupalVala
Autodesk
Autodesk

HI @Anthony.Williamson2G362 ,

 

This is a known issue for the head-head machines. It will be fixed soon.(March release)

 

The reason behind here is the post engine expects the rotary head rider (A/B axis) should come first and then the rotary head carrier (C axis) for the head-head machine. but the machine's head chain is interpreted in reverse order on the postprocessor side, but in forward order on the fusion side.

For the Time being to get it to work, Please add the following code in the function defineMachine()

 

function defineMachine() {
  var useTCP = true;
  if (false) { // note: setup your machine here
    var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[-120, 120], preference:1, tcp:useTCP});
    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
    }
  }
   // To correct the order of Rotary axis in Head-Head machines
   // Add the following code from here to
  if (machineConfiguration.isHeadConfiguration() && machineConfiguration.getAxisU().getCoordinate() == 2) {
    var axis1 = machineConfiguration.getAxisU();
    var axis2 = machineConfiguration.getAxisV();
    machineConfiguration.setAxisV(axis1);
    machineConfiguration.setAxisU(axis2);
  }
   // to here

  if (!receivedMachineConfiguration) {
    // multiaxis settings

 

Save the post modification and test the code.

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 3 of 4

Anthony.Williamson2G362
Explorer
Explorer

Will this mod work for a CB head or will I have to change where it says a axis do I change it to B??

0 Likes
Message 4 of 4

KrupalVala
Autodesk
Autodesk

HI @Anthony.Williamson2G362 ,

 

Since you are defining machine in setup then you don't need to change machine kinematics in the post-processor. Make sure you machine hierarchy match with Machine configuration. 

 

KrupalVala_1-1645589753668.png

 

Thanks,

 

 

 

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes