Community
HSM Post Processor Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fanuc 4th axis B only post positive

5 REPLIES 5
Reply
Message 1 of 6
davidlam4TGED
143 Views, 5 Replies

Fanuc 4th axis B only post positive

https://a360.co/41va76i

 

Hello everyone, 

 

I am a noob here and finally have the guts to do some rotational movement to utilize my machine.
I am trying to do a simple rotation for engraving.

There are 2 faces that is 3.434 deg and -3.434 deg.

 

I am trying to fix my post processor and it is still giving me the positive 3.434 degree for both operation.

(in the testrotation setup)
Can anyone help and teach me how to modify the postprocessor correctly?

I think I have messed with commenting out 68.2/53.1

and written in writeBlock("G00", "B" + abcFormat.format(abc.y));

Also, i have messed with baxis in line 1460

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

 

my fanuc ddr goes from -360 to 0 to 360, machine can continue to go 361+ or -361+ after the full rotation

 

Please kindly help!
Thank you, 

 

David

5 REPLIES 5
Message 2 of 6
1001_nc
in reply to: davidlam4TGED

I had the same problem. I changed the orientation for the "B" axis to "-1". See attached image.

 

jordanLMEK6_0-1734020528356.png

 

To do it within the post processor would look like this.

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

Notice I also removed the range. If your range is infinite then the range is not necessary.

 

Hope this helps!

 

Message 3 of 6
davidlam4TGED
in reply to: 1001_nc

oh wow i think i got it working on posts!

 

my machine b axis is turning on x axis, which i put the -1 into the first of the 3 positions

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

 

also i have set the eulerconvention into true and etc

 

Hopefully it wont crash anything on machine =D

 

Thank you and let's see!

Tags (1)
Message 4 of 6

Also now after i post the nc, it gave me this warning beside the NC program:  Warning: The provided CAM machine configuration is overwritten by the postprocessor.

is this normal for 4th axis/5th?

Message 5 of 6

i think it maybe my post processor difference between the machine builder and the post

 

 

 

Screenshot 2024-12-13 at 7.48.24 PM.png

 

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

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

do you know what should i look out for?  Thank you guys!

 

Message 6 of 6
1001_nc
in reply to: davidlam4TGED

If you use the "defineMachine()" function then it will override what you have set in the machine builder.

 

Just set the "if" statement to false and it will follow your machine builder.

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

Post to forums  

Autodesk Design & Make Report