4th axis postprocess

More
28 Sep 2019 20:35 - 28 Sep 2019 20:37 #146504 by bobwolf
hi

i'm a new Fusion360 user

i've a destop mill with 4th axis located on the table in the X direction (A)

i've try to face an object using rotary axis...

the toolpath simulation is ok but when i postprocess the gcode return a code like i have the rotary axis in the milling head...

my postprocessor line to set the 4th axes:

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



and the gcode generated:

%
(1001)
(T3 D=8. CR=0. - FLAT END MILL)
G90 G94 G17 G91.1
G21
G53 G0 Z0.
(FACE9)
M9
T3 M6
S10000 M3
G54
A-90.
M8
G0 G43 X101.2 Y-41. Z-21.774 H3
G0 Y-31.
G1 Y-25.8 F1920.
G3 X100.4 Y-25. I-0.8 J0.
G1 X96.
X21.
G18 G3 Z-14.625 I0. K3.575
G1 X96.
G2 Z-7.475 I0. K3.575
G1 X21.
G3 Z-0.325 I0. K3.575
G1 X96.
G2 Z6.825 I0. K3.575
G1 X21.
G3 Z13.974 I0. K3.575
G1 X96.
G2 Z21.124 I0. K3.575
G1 X21.
G17 G3 X20.2 Y-25.8 I0. J-0.8
G0 Y-41.
M9
G53 Z0.
A0.
M30
%



seem like the option table:true don't work on my configuration

in attachment the model with the toolpath generated and the toolpath on linuxcnc

Attachment not found

Attachment not found





thanks

Roberto
Attachments:
Last edit: 28 Sep 2019 20:37 by bobwolf. Reason: added images

Please Log in or Create an account to join the conversation.

More
28 Sep 2019 21:18 #146505 by Hakan
Replied by Hakan on topic 4th axis postprocess
It's that last line you need to change as well. The last line in that initialization routine where createAxis is. Optimizenachineangles() or something similar. You set it to 1 if it is 0, or the opposite. I am not at the computer right now, but i hope you can find it from this vague description.

Please Log in or Create an account to join the conversation.

More
28 Sep 2019 21:49 #146508 by bobwolf
Replied by bobwolf on topic 4th axis postprocess
the line is:
optimizeMachineAngles2(0); // TCP mode

i've try option 1 and 0 and the result is the same

if the postprocessor work well and if i want to face the side angle of the workpiece with a 4th axis, i must have a gcode with the A rotation to the right angle and the milling toolpath in the normal XYZ coordinate???

ciao
Roberto

Please Log in or Create an account to join the conversation.

More
28 Sep 2019 22:39 #146510 by Hakan
Replied by Hakan on topic 4th axis postprocess
The preview of the toolpath with an A axis will not be very good. But that G-code you have there isn't right.

Here is my initialization
if (true) { // note: setup your machine here
    var aAxis = createAxis({coordinate:0, table:true, axis:[-1, 0, 0], cyclic:true, preference:0});
    machineConfiguration = new MachineConfiguration(aAxis);

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(1); // TCP mode
  }

Then when you get this working you will see some jerky movements. Here is what I did to that

There is a link to my modified post processor in the video description.

Please Log in or Create an account to join the conversation.

More
29 Sep 2019 09:55 #146549 by bobwolf
Replied by bobwolf on topic 4th axis postprocess
thanks
i've dowloaded an upgraded postprocessor from hsmposts and the 4th axis work fine
probabily the postprocessor in the installation files is corrupted or not complitely working
here the gcode from new postprocessor
%
(1001)
(T3 D=8. CR=0. - FLAT END MILL)
G90 G94 G17 G91.1
G21
G53 G0 Z0.
(FACE9)
T3 M6
S10000 M3
G54
A90.
M8
G0 X101.2 Y-21.774
G43 Z41. H3
G0 Z31.
G1 Z25.8 F1920.
G18 G3 X100.4 Z25. I-0.8 K0.
G1 X96.
X21.
G17 G2 Y-14.625 I0. J3.575
G1 X96.
G3 Y-7.475 I0. J3.575
G1 X21.
G2 Y-0.325 I0. J3.575
G1 X96.
G3 Y6.825 I0. J3.575
G1 X21.
G2 Y13.974 I0. J3.575
G1 X96.
G3 Y21.124 I0. J3.575
G1 X21.
G18 G3 X20.2 Z25.8 I0. K0.8
G0 Z41.
G17
M9
G53 G0 Z0.
A0.
M30
%

now the milling path is on the upper side of the workpiece

thanks for all

ciao

Roberto

Please Log in or Create an account to join the conversation.

Moderators: Skullworks
Time to create page: 0.115 seconds
Powered by Kunena Forum