Hello everyone,
I'm looking to solve this issue but I'm not sure there is an easy way, hopefully their is.
Previously, I did all my CAM inside Inventor (hsmexpress) and used the Post Process of Mach3. Here is a sample of my block and coding for tool changes that has worked great.
(1001)
(004 PROFILE CLEARANCE)
(T5 D=0.375 CR=0.015 - ZMIN=-0.8374 - BULLNOSE END MILL)
(T6 D=0.25 CR=0. TAPER=45DEG - ZMIN=-0.05 - CHAMFER MILL)
(T9 D=0.375 CR=0. TAPER=118DEG - ZMIN=-0.1 - CENTER DRILL)
(T26 D=0.135 CR=0. TAPER=135DEG - ZMIN=-0.8874 - DRILL)
G90 G94 G40 G49 G17
G20
(2D CONTOUR1)
M5
M9
T5 G43 H5 M6
S5000 M3
G54
M8
G0 X0.7975 Y6.0094
Z0.6
Z0.2
G1 Z0.1375 F35.
G19 G2 Y5.972 Z0.1 J-0.0375 K0. F50.
G1 Y1.6025 Z0.0811
G17 G3 X0.82 Y1.58 Z0.0809 I0.0225 J0.
G1 X0.855 Z0.0808
Other than the title and perhaps an interesting piece is the G43 of the Inventor Generic Mach3 post title. I switched all of Solidworks settings to match my good, verified, qualified G-code (as shown above). However, when I save the Solidworks post, with the same settings I have some extra codes that have shown issues.
Attachment 323840
Inventor
Attachment 323842
Solidworks
Here is the Solidworks code:
(0004-0001-WARMUP-2)
(WARM-UP TEST2)
(T4 D=0.5 CR=0. - ZMIN=-0.43 - FLAT END MILL)
G90 G94 G91.1 G40 G49 G17
G20
(2D ADAPTIVE5)
M5
M9
T4 M6
(ER32 COLLET)
S6000 M3
G54
M8
G0 X-0.3648 Y-5.2405
G43 Z0.6 H4
Z0.2
Z-0.33
G1 Z-0.38 F30.
X-0.3645 Y-5.2403 Z-0.3856
X-0.3637 Y-5.2399 Z-0.3911
X-0.3624 Y-5.2391 Z-0.3965
X-0.3605 Y-5.2381 Z-0.4017
X-0.3581 Y-5.2367 Z-0.4066
X-0.3553 Y-5.2351 Z-0.4112
X-0.3521 Y-5.2333 Z-0.4154
Where is the G91.1 code coming from? What am I missing? Also, this G43 Z0.0 H4 would have wreaked havoc if I was not test cutting air. From my pursuit, removing G91.1 and removing that entire line starting from G43 has shown that the code does not try to stop and travel upward in the Z-Axis. Typically (with Inventor post) it stops, I hit cycle start and the tool number changes. At this point I am free to move and make a toolchange and when ready; hit cycle start. This with the new loaded offset is set for the next cycle. But with G43 it was stopping and going up some distance, setting to Z0.0 and starting at this elevated plane.
What is adding this and how can I go about NOT having to edit the G-code for these lines or safety blocks? I am able to search through the code and delete what I need but it would be nice to be automated like when with Inventor.
Regards,
-Jason