Fusion gcode not working on machine

Fusion gcode not working on machine

Anonymous
Not applicable
510 Views
1 Reply
Message 1 of 2

Fusion gcode not working on machine

Anonymous
Not applicable

Hi all. I have a vmc with siemens 840d control. it has a 5 axis trunnion setup as b/c. the limits of movement in b are -5 +110 degrees. When I try to create some 5 axis simultaneous code the machine always gets a b axis limit switch error. I am not sure what  I am doing wrong. attatched are the model I am using and  a copy of the code created, and the post processor. I have changed the post processor to only use b and c axis and to give the above limits on b. I hope someone can help please.

0 Likes
511 Views
1 Reply
Reply (1)
Message 2 of 2

bob.schultz
Alumni
Alumni

There are a couple of changes you need to make where the rotary axes are defined in the onOpen function.

  if (true) { // change to true
    //var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[-120.0001, 120.0001], preference:1});
    var bAxis = createAxis({coordinate:1, table:true, axis:[0, 1, 0], range:[-5.000, 360.000], preference:1});
    var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], range:[0, 360], cyclic:true});
    machineConfiguration = new MachineConfiguration(bAxis, cAxis);  // change to bAxis

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(0);
  }

This will output the actual rotary axes positions instead of the tool axis vector, which  is currently being output in A3, B3, C3.

 

You will now find that the post will error due to the limits of B-axis being exceeded, just like on your machine.  This is because the tool tilts more than 110 degrees.  You can see this by changing the limits of the B-axis and looking at the output for the B-axis.

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

B-axis exceeds limits
N161 G1 X-14.673 Y24.484 Z-22.024 B120.92 C=DC(61.504)


Bob Schultz
Sr. Post Processor Developer

0 Likes