Fanuc 31i horizontal post processor request

Fanuc 31i horizontal post processor request

britovsekmatic128
Advocate Advocate
1,968 Views
8 Replies
Message 1 of 9

Fanuc 31i horizontal post processor request

britovsekmatic128
Advocate
Advocate

Hello,

 

My company is planning on buying fusion 360 after i've been nagging them for a while.

 

My question is, will the generic fanuc post output work with b axis?

 

If not could some help me with editing an existing post? I have literally zero experience with posts and coding.

 

Thanks!

0 Likes
Accepted solutions (1)
1,969 Views
8 Replies
Replies (8)
Message 2 of 9

KrupalVala
Autodesk
Autodesk
Accepted solution

Hi @britovsekmatic128 ,

 

Yes. You can download Fanuc Milling generic post-processor from here and make the following changes on your post-processor.

Open your Postprocessor in any editor or VS code & search for function defineMachine() . You will find the following codes in your post-processor.

Step 1 : Now change it from this...

function defineMachine() {
  var useTCP = true;
  if (true) { // note: setup your machine here
    var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], cyclic:true,range:[-90, 90], preference:0, tcp:useTCP});
    var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], cyclic:true, tcp:useTCP});

to this

function defineMachine() {
  var useTCP = false; // set it true if machine supports TCP 
  if (true) { // note: setup your machine here
    var bAxis = createAxis({coordinate:1, table:true, axis:[0, 1, 0], cyclic:true, preference:0, tcp:useTCP});
   // var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], cyclic:true, tcp:useTCP});
    machineConfiguration = new MachineConfiguration(bAxis); // set B axis

 

Step : 2 Set the following variable to false.

From true to 

var useMultiAxisFeatures = true;

false

var useMultiAxisFeatures = false; // set it to false 

 

Now save the post modification and test it carefully.

 

If you are still facing difficulty in the post modification Please contact one of our CAM partners who offer post customization services. You will find these partners here: Service Marketplace

 

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
Message 3 of 9

britovsekmatic128
Advocate
Advocate

Thanks @KrupalVala 

Made the changes that you posted and it seems that it outputs the correct code,
even changed the coolant calls!
Should i be worriend about the G19 code that it posts or is that only for the lead in/lead out(for facing)?
Going to try it out tomorrow by cutting some air.

Thanks again.

0 Likes
Message 4 of 9

jjohnson333U4
Contributor
Contributor
That's most likely there because you have a vertical lead in radius value. I usually set that to 0.
Message 5 of 9

britovsekmatic128
Advocate
Advocate

You're right, i disabled the vertical lead-in and the program plunges straight to depth without G19.
What is the idea behind vertical lead-in?Less force on the screwballs/axes?

@KrupalValaFollow up question if i may?

Is there a way to add G code before every tool call and behind tool call the Workoff set that is being used(G54)?

Example:

(Face mill D125);
G90 G94 G80 G40 G49;
T1 M6;
G54.1 P016;

Thanks!

0 Likes
Message 6 of 9

KrupalVala
Autodesk
Autodesk

Hi @britovsekmatic128 ,

 

Add following code before the insert Tool Call

    gFeedModeModal.reset();
    gAbsIncModal.reset();
    writeBlock(gAbsIncModal.format(90), gFeedModeModal.format(getProperty("useG95") ? 95 : 94), gFormat.format(49), gFormat.format(40));

    skipBlock = !insertToolCall;
    writeBlock("T" + toolFormat.format(tool.number), mFormat.format(6));

 You will get following output.

N145 G90 G94 G49 G40
N150 T2 M06
N155 S5000 M03
N160 G54​

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
Message 7 of 9

britovsekmatic128
Advocate
Advocate

Thank you @KrupalVala 

 

0 Likes
Message 8 of 9

marcelo_merindol
Explorer
Explorer
I downloaded the .cps file and when trying to change "var useMultiAxisFeatures = false; // set it to false" and I can't find that variable
0 Likes
Message 9 of 9

KrupalVala
Autodesk
Autodesk

Hi @marcelo_merindol ,

 

In the latest PostProcessor, Please search for the following setting and set it to false. When it is disabled, the rotary axes will be output for 3+2 operations and the output coordinates could be adjusted for the tables/heads based on the TCP setting for each axis.

useTiltedWorkplane    : false, // specifies that tilted workplanes should be used (ie. G68.2, G254, PLANE SPATIAL, CYCLE800)

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation