Hello Guest it is June 03, 2025, 01:24:30 AM

Author Topic: Mach4 Drehen/ Programm bleibt ohne Fehlermeldung stehen  (Read 7655 times)

0 Members and 1 Guest are viewing this topic.

Mach4 Drehen/ Programm bleibt ohne Fehlermeldung stehen
« on: June 28, 2024, 07:36:08 AM »
Hallo zusammen,
habe vor kurzem eine EMCO Drehmaschine auf Mach 4 und Delta B2 Servos umgebaut inkl. CSMIO/IP-S.
Die Inbetriebnahme ist abgeschlossen und läuft im manuellen Mode einwandfrei.

Der G-Code wurde über ECAM V5 im kostenlosen „Wochenendmodus“ generiert.
Programm läuft bis zum Satz 140 und bleibt dann ohne Fehlermeldung stehen.

Hat jemand eine Idee an was das liegen könnte?

Besten Dank schonmal!


N5(TEST INBETRIEBNAHME)
N10 G21
N15 G00 G54 G18 G40 G80
N20(CREATED 06/25/2024 10:24:10)
N25(#2 - EXT TURN TOOL RN 0,4 )
N30
N35(PLANDREHEN - SCHRUPPEN)
N40 M8
N45 G98 G18
N50 G50 S1500
N55(EXT TURN TOOL RN 0,4)
N60 G0 T0202
N65 G96 S1500 M3
N70 G0 X17. Z3.
N75 G01 Z0. F50
N80 X10.
N85 X-0.8 F25
N90 G0 X17. Z0.5
N95(AUSSENDREHEN - SCHRUPPEN)
N100 G96 S1500 M3
N105 G0 X17. Z3.
N110 Z1.6
N115 X12.
N120 G01 X10.
N125 Z-6.
N130 X11. Z-5.5
N135 G0 Z1.6
N140 G01 X8. Z-0.4
N145 Z-6.
N150 X13.2
N155 G03 X14. Z-6.4 I0. K-0.4
N160 G01 Z-12.
N165 X14.2
N170 G0 X17. Z-11.5
N175 Z3.
N180 G91 G28 X0. Z0.
N185 G90
N190 M5
N195 M9
N200 M30
N205
Re: Mach4 Drehen/ Programm bleibt ohne Fehlermeldung stehen
« Reply #1 on: July 03, 2024, 02:18:50 AM »
Hallo,
habe nun die folgende Änderung in Satz 140 und folgende gemacht, nun läuft die Abarbeitung bis Satz 155 und bleibt dann wieder stehen.
Wenn das G01 das Problem wäre würde das Programm ja schon in Satz 120 stehen bleiben!?
Hat jemand vielleicht eine Idee?

Eingefügte Änderung:
N140 G0 Z0
N145 G0 Z-6.
N150 X13.2
N155 G03 X14. Z-6.4 I0. K-0.4

Besten Dank schon mal.

MfG
MacSteve

Offline Graham Waterworth

*
  • *
  •  2,783 2,783
  • Yorkshire Dales, England
Re: Mach4 Drehen/ Programm bleibt ohne Fehlermeldung stehen
« Reply #2 on: July 03, 2024, 06:13:34 PM »
G90 and G91 are not used in lathe, G96 I think should be G97.  It works on my machine with these changes.


N5(TEST INBETRIEBNAHME)
N10 G21
N15 G00 G54 G18 G40 G80
N20(CREATED 06/25/2024 10:24:10)
N25(#2 - EXT TURN TOOL RN 0,4 )
N30
N35(PLANDREHEN - SCHRUPPEN)
N40 M8
N45 G98 G18
N50 G50 S1500
N55(EXT TURN TOOL RN 0,4)
N60 G0 T0202
N65 G96 S1500 M3
N70 G0 X17. Z3.
N75 G01 Z0. F50
N80 X10.
N85 X-0.8 F25
N90 G0 X17. Z0.5
N95(AUSSENDREHEN - SCHRUPPEN)
N100 G96 S1500 M3
N105 G0 X17. Z3.
N110 Z1.6
N115 X12.
N120 G01 X10.
N125 Z-6.
N130 X11. Z-5.5
N135 G0 Z1.6
N140 G01 X8. Z-0.4
N145 Z-6.
N150 X13.2
N155 G03 X14. Z-6.4 I0. K-0.4
N160 G01 Z-12.
N165 X14.2
N170 G0 X17. Z-11.5
N175 Z3.
N180 G91 G28 X0. Z0.
N185 G90
N190 M5
N195 M9
N200 M30
N205
Without engineers the world stops
Re: Mach4 Drehen/ Programm bleibt ohne Fehlermeldung stehen
« Reply #3 on: July 05, 2024, 01:21:15 AM »
Hello Graham,

Thanks a lot for your post.
I adapted the code and let the program run. (Change to G97 an delete G90 and G91).
It only runs up to 140 again, but now there is an error message: “X-axis” soft limit. See attachment.
I don't quite understand why the axis already moves to -0.8mm in line 85 and to +11mm in line 115, so why doesn't it move to 8mm?

Thank you!
« Last Edit: July 05, 2024, 01:22:46 AM by MacSteve »

Offline Graham Waterworth

*
  • *
  •  2,783 2,783
  • Yorkshire Dales, England
Re: Mach4 Drehen/ Programm bleibt ohne Fehlermeldung stehen
« Reply #4 on: July 05, 2024, 11:12:17 AM »
I would turn softlimits off first and see if it will complete the program.
Without engineers the world stops
Re: Mach4 Drehen/ Programm bleibt ohne Fehlermeldung stehen
« Reply #5 on: July 08, 2024, 01:40:15 AM »
Hi Graham, thanks for your comment.
I have switched off the soft limit monitoring and the program runs. I think the cause is line 180 (G28). There was almost a crash here because the Z axis wanted to move to the machine zero point (M at the picture).
I have to determine the G28 differently, then it should work.
Next I'll test thread cutting...

Thank you very much for your help!

Offline Graham Waterworth

*
  • *
  •  2,783 2,783
  • Yorkshire Dales, England
Re: Mach4 Drehen/ Programm bleibt ohne Fehlermeldung stehen
« Reply #6 on: July 08, 2024, 10:10:58 AM »
Replace G28 with G53 X0 Z0 this will return to home position or any value you choose e.g. G53 X-25. Z-50.

Note these values are from the home position NOT the work position.
Without engineers the world stops