CS-Lab Support Forum for CNC Community

Help to run this brand-new forum and stay with us.
Ask your questions, we are here to help! 

 

Forum Navigation
You need to log in to create posts and topics.

Spindle not works in MDI and Gcode

Hello,

I'm experiencing an issue with my spindle and SimCNC.

I've configured the spindle and assigned digital outputs for CW and CCW, as well as an analog output.

When I press the spindle button in the SimCNC software, the spindle starts up correctly. This works as expected, and I can also see the digital and analog outputs in the diagnostics.

However, when I try to start the spindle via MDI, it doesn't work. I've tried commands like M3S500, M3 S500, M03S500, and others.

Unfortunately, it also doesn't work when running G-code. I don't receive any error messages either.

___________________

 

Hallo,

ich habe aktuell ein Problem mit meiner Spindelsteuerung in SimCNC.

Die Spindel ist korrekt konfiguriert: Ich habe digitale Ausgänge für Rechtslauf (CW) und Linkslauf (CCW) sowie einen analogen Ausgang für die Drehzahlsteuerung zugewiesen. 

Wenn ich in der SimCNC-Oberfläche den Spindel-Button betätige, startet die Spindel wie erwartet. In der Diagnostik sind sowohl die digitalen als auch die analogen Ausgänge aktiv und sichtbar.

Allerdings reagiert die Spindel nicht, wenn ich versuche, sie über MDI-Befehle zu starten. Ich habe verschiedene Befehlsformate ausprobiert, wie z. B. M3 S500, M3S500, M03 S500 usw., aber keiner davon funktioniert.

Auch beim Ausführen von G-Code tritt das gleiche Problem auf – die Spindel startet nicht, und es wird keine Fehlermeldung angezeigt.

Bitte um Hilfe.

Danke LG Raphi

 

 

 

 

 

Please send the content of your m3.py macro, or export the entire configuration profile so I can check what is happening.

 

Es funktioniert nicht auf der virtuellen Version wie auch nicht auf der Maschine. 

Weiters hab ich gesehen das kein M-Code in MDI oder Automatik funktioniert. 

Also auch nicht M7 oder M8....

 

"It doesn't work on the virtual version, nor on the actual machine.

Furthermore, I noticed that no M-code works in MDI or automatic mode — not even M7 or M8."

The outputs are assigned correctly, but they only switch when using the manual toggle buttons — not via M-code.

 

anbei M3:

print("spindle on CW")
d.setSpindleState( SpindleState.CW_ON )
print("spindle ready")

 

M4:

print("spindle on CCW")
d.setSpindleState( SpindleState.CCW_ON)
print("spindle ready")

 

Best regards

Hallo, 

nach Deinstallation von Simcnc und erneuter Installation funktioniert es bei der virtuellen Version. (Noch eine Info: nun funktioniert auch das Textfeld (Statusleiste).)

Ich teste es noch heute Abend auf der Maschine mit einer Neuinstallation und melde mich danach. 

LG 

 

______

 

Hello,

After uninstalling and reinstalling simCNC, it now works with the virtual version.
(Just a quick note: the text field in the status bar is also working now.)

I’ll test it again this evening on the actual machine with a fresh installation and will get back to you afterwards.

Best regards

Ok, nach Neuinstallation funktioniert es wieder. 

Vielen Dank

LG

___

Ok, after reinstalling it works again. Thank you very much.

Best regards

CS-Lab Support has reacted to this post.
CS-Lab Support

PARTNERS:

 

USA

Germany

Slovenia / Bosnia

Spain

South Africa

UNI-CAM

The Netherlands

Portugal

Greece

  Distrib milionis logo

Hungary

Distrib logot

Bulgaria

Master

Kenya

Proteq Automation

Egypt

Germanelectronix

China

Jun Ma

Serbia

ALCO

Italy

LVL tech r

Denmark

Varntoft Dania

Finland