1
G-Code, CAD, and CAM discussions / Step by step it does not fail but in automatic it does. Please help.
« on: November 08, 2022, 05:32:25 PM »
Greetings, I have a CNC manufactured by me controlled by Mach3, I have generated this G code with SheetCam because it is a very simple design, it is made up of several programs since it uses several tools, specifically this part (drilling) is the one that fails me but only if I run the program automatically and it always fails at the same point and in the same way, the three axes are out of phase and it is not due to machine jamming, since the machine follows the DRO coordinates, but if I run the program step by step and from the beginning it works perfectly, if I start the program automatically but a little more advanced, from line 160 for example, before the error, it works perfectly, it drives me crazy, I leave you the complete program with comments so that see it as clearly as possible and see if you can give me a hand.
Many thanks in advance. Greetings.
N0010 (Filename: 2 Soporte motor Z 10mm taladrado.tap)
N0020 (Post processor: Mach3.scpost)
N0030 (Date:08/11/2022 Time:20:55:54)
N0040 G21 (Units: Metric)
N0050 G40 G90 G91.1
N0060 F1
N0070 (Part: Soporte motor)
N0080 (Operation: Taladrado, Taladro, T28: Taladrado, 8 mm Diámetro, 10 mm Profundidad)
N0090 S9000
N0100 G00 Z70.0000
N0110 (Taladrado, 8 mm Diámetro)
N0120 ;T28 M06
N0130 ;G43 H28
N0140 G00 Z5.0000
N0150 S9000 M03
N0155 G04 P13
N0160 X11.5000 Y11.0000
N0170 Z2.0000
N0180 G01 Z-5.0000 F400.0
N0190 G00 Z-1.0000
N0200 Z-3.0000
N0210 G01 Z-10.0000
N0220 G00 Z5.0000
N0230 Y59.0000
N0240 Z2.0000
N0250 G01 Z-5.0000
N0260 G00 Z-1.0000
N0270 Z-3.0000
N0280 G01 Z-10.0000
N0290 G00 Z5.0000
N0300 X58.5000
N0310 Z2.0000
N0320 G01 Z-5.0000
N0330 G00 Z-1.0000
N0340 Z-3.0000
N0350 G01 Z-10.0000
N0360 G00 Z5.0000 ;Go up to Z5.0 and stay
N0370 X75.0000 Y47.0000 ;This displacement does it well
N0380 Z2.0000 ;** Here instead of going down to Z2.0 it goes up to Z7.0 and then goes down out of phase **
N0390 G01 Z-5.0000 ;It does not go down to Z-5.0, it stays at Z-3.0
N0400 G00 Z-1.0000 ;All the axes are progressively offset
N0410 Z-3.0000
N0420 G01 Z-10.0000
N0430 G00 Z5.0000 ;At this point it goes up to Z12.0, totally out of phase
N0440 X115.0000 ;This movement is also super out of phase at X131 approx.
N0450 Z2.0000
N0460 G01 Z-5.0000
N0470 G00 Z-1.0000
N0480 Z-3.0000
N0490 G01 Z-10.0000
N0500 G00 Z5.0000
N0510 Y23.0000
N0520 Z2.0000
N0530 G01 Z-5.0000
N0540 G00 Z-1.0000
N0550 Z-3.0000
N0560 G01 Z-10.0000
N0570 G00 Z5.0000
N0580 X75.0000
N0590 Z2.0000
N0600 G01 Z-5.0000
N0610 G00 Z-1.0000
N0620 Z-3.0000
N0630 G01 Z-10.0000
N0640 G00 Z5.0000
N0650 X58.5000 Y11.0000
N0660 Z2.0000
N0670 G01 Z-5.0000
N0680 G00 Z-1.0000
N0690 Z-3.0000
N0700 G01 Z-10.0000
N0710 G00 Z70.0000
N0720 M05
N0725 X0 Y0
N0730 M05 M30
Many thanks in advance. Greetings.
N0010 (Filename: 2 Soporte motor Z 10mm taladrado.tap)
N0020 (Post processor: Mach3.scpost)
N0030 (Date:08/11/2022 Time:20:55:54)
N0040 G21 (Units: Metric)
N0050 G40 G90 G91.1
N0060 F1
N0070 (Part: Soporte motor)
N0080 (Operation: Taladrado, Taladro, T28: Taladrado, 8 mm Diámetro, 10 mm Profundidad)
N0090 S9000
N0100 G00 Z70.0000
N0110 (Taladrado, 8 mm Diámetro)
N0120 ;T28 M06
N0130 ;G43 H28
N0140 G00 Z5.0000
N0150 S9000 M03
N0155 G04 P13
N0160 X11.5000 Y11.0000
N0170 Z2.0000
N0180 G01 Z-5.0000 F400.0
N0190 G00 Z-1.0000
N0200 Z-3.0000
N0210 G01 Z-10.0000
N0220 G00 Z5.0000
N0230 Y59.0000
N0240 Z2.0000
N0250 G01 Z-5.0000
N0260 G00 Z-1.0000
N0270 Z-3.0000
N0280 G01 Z-10.0000
N0290 G00 Z5.0000
N0300 X58.5000
N0310 Z2.0000
N0320 G01 Z-5.0000
N0330 G00 Z-1.0000
N0340 Z-3.0000
N0350 G01 Z-10.0000
N0360 G00 Z5.0000 ;Go up to Z5.0 and stay
N0370 X75.0000 Y47.0000 ;This displacement does it well
N0380 Z2.0000 ;** Here instead of going down to Z2.0 it goes up to Z7.0 and then goes down out of phase **
N0390 G01 Z-5.0000 ;It does not go down to Z-5.0, it stays at Z-3.0
N0400 G00 Z-1.0000 ;All the axes are progressively offset
N0410 Z-3.0000
N0420 G01 Z-10.0000
N0430 G00 Z5.0000 ;At this point it goes up to Z12.0, totally out of phase
N0440 X115.0000 ;This movement is also super out of phase at X131 approx.
N0450 Z2.0000
N0460 G01 Z-5.0000
N0470 G00 Z-1.0000
N0480 Z-3.0000
N0490 G01 Z-10.0000
N0500 G00 Z5.0000
N0510 Y23.0000
N0520 Z2.0000
N0530 G01 Z-5.0000
N0540 G00 Z-1.0000
N0550 Z-3.0000
N0560 G01 Z-10.0000
N0570 G00 Z5.0000
N0580 X75.0000
N0590 Z2.0000
N0600 G01 Z-5.0000
N0610 G00 Z-1.0000
N0620 Z-3.0000
N0630 G01 Z-10.0000
N0640 G00 Z5.0000
N0650 X58.5000 Y11.0000
N0660 Z2.0000
N0670 G01 Z-5.0000
N0680 G00 Z-1.0000
N0690 Z-3.0000
N0700 G01 Z-10.0000
N0710 G00 Z70.0000
N0720 M05
N0725 X0 Y0
N0730 M05 M30