5 axis codes with G43.4 compensation
- July 14, 2025
- 2 replies
- 1178 views
Hello everyone, I want to output G-code like this for swivel head 3,4,5-axis milling. For 4 and 5 axes, required G43.4 before rotary motion, and for 3 axes, G43. Can someone point me to which section in the post-processor I need to modify to achieve the required code? plz check the attached post-processor file. and creo10 mfg file..
(5-AXIS SWIVEL HEAD CLEANED PROGRAM)
%
O0001
N3 G91 G28 Z0.
N4 G91 G28 X0. Y0.
N5 G91 G28 B0.
N6 G91 G28 C0.
N7 G00 G80 G40 G49 G90 G54
N8 G00 B0.
N9 G00 C0.
N15 T1 M06
N16 S2387 M03
N18 G43.4 Z210.000 H1
N19 G00 X-100.000 Y-337.491 C-90. B90.
N20 G00 Z-10.000
N21 G00 Y-107.000
N22 G01 Y-100.000 F1193.66
N23 G01 X100.000
N24 G00 Y-337.491
N25 G91 G28 Z0.
N26 G91 G28 X0. Y0.
N27 G91 G28 B0.
N28 G91 G28 C0.
N29 M30
%

