Modifying FANUC post for 4 axis HBM

Modifying FANUC post for 4 axis HBM

Anonymous
Not applicable
681 Views
4 Replies
Message 1 of 5

Modifying FANUC post for 4 axis HBM

Anonymous
Not applicable

Looking for help in modifying the existing FANUC A-axis post to use on our Pama Speedram.

 

Currently it will not generate and code unless the A-Axis is in line with the X axis, this presents a problem as our machine has our rotary table in the Y axis orientation.

 

Our control is FANUC series 30i-model B.

 

 

0 Likes
682 Views
4 Replies
Replies (4)
Message 2 of 5

bob.schultz
Alumni
Alumni

I am going to guess that you are running the 'fanuc with a-axis.cps' post processor.  You can modify this post to support a rotary table around the Y-axis by changing the following code in the onOpen function ...

  if (true) {
    var aAxis = createAxis({coordinate:0, table:true, axis:[(properties.makeAAxisOtherWay ? -1 : 1) * -1, 0, 0], cyclic:true, preference:1});
    machineConfiguration = new MachineConfiguration(aAxis);

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(1); // map tip mode
  }

... To ...

  if (true) {
    var aAxis = createAxis({coordinate:0, table:true, axis:[0, (properties.makeAAxisOtherWay ? -1 : 1) * -1, 0], cyclic:true, preference:1});
    machineConfiguration = new MachineConfiguration(aAxis);

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(1); // map tip mode
  }

If your machine wants to see the rotary table as a B-axis, then make the following changes.

  if (true) {
    var bAxis = createAxis({coordinate:1, table:true, axis:[0, (properties.makeAAxisOtherWay ? -1 : 1) * -1, 0], cyclic:true, preference:1});
    machineConfiguration = new MachineConfiguration(bAxis);

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(1); // map tip mode
  }


Bob Schultz
Sr. Post Processor Developer

0 Likes
Message 3 of 5

Anonymous
Not applicable

So I modified the post, per your suggestions, and have gotten this error:

 

Error: Error: Direction is not supported for machine configuration.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Stack dump:
("Direction is not supported for machine configuration.")@:0
onOpen()@C:\Users\Public\Documents\Autodesk\Inventor HSM\Posts\Pama-M8-4 axis.cps:204
Failed while processing onOpen().
Error: Failed to invoke 'onOpen' in the post configuration.
Error: Failed to invoke function 'onOpen'.
Error: Failed to execute configuration.
Stop time: Wednesday, October 24, 2018 9:12:55 PM
Post processing failed.
 
Here is what my onOpen() command currently looks like in the post:
 
function onOpen() {
  if (properties.useRadius) {
    maximumCircularSweep = toRad(360); // avoid potential center calculation errors for CNC
  }
  if (true) {
    var bAxis = createAxis({coordinate:1, table:true, axis:[0, (properties.makeAAxisOtherWay ? -1 : 1) * -1, 0], cyclic:true, preference:1});
    machineConfiguration = new MachineConfiguration(bAxis);
    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(1); // map tip mode
  }
  if (!machineConfiguration.isMachineCoordinate(0)) {
    aOutput.disable();
  }
  if (!machineConfiguration.isMachineCoordinate(1)) {
    bOutput.disable();
  }
  if (!machineConfiguration.isMachineCoordinate(2)) {
    cOutput.disable();
  }
 
  if (!properties.separateWordsWithSpace) {
    setWordSeparator("");
 
 
0 Likes
Message 4 of 5

bob.schultz
Alumni
Alumni

This error is generated when the rotary axis cannot be rotated to fulfill the tool axis.  In the case of a B-axis table, the Y-component of the tool axis must always be set to 0, i.e. (x, 0, z).  First make sure that your setup defines the orientation with the Y-axis parallel to the rotation of the B-axis.Setup.png

 

 

When using a multi-axis operation it is possible that the Y-axis component of the tool axis has some noise in it.  You can check the tool axis vectors by running the dump post processor and then looking at the calls to onLinear5D to see what tool axes are being computed.

 

If you are still getting this error, it would be good if you can provide the model you are working with and I can take a look at it.



Bob Schultz
Sr. Post Processor Developer

0 Likes
Message 5 of 5

Anonymous
Not applicable

Let me know where I can send the model and I will do that.  So far everything seems to be setup right, B axis is parallel to my Y.  

0 Likes