LinuxCNC - how to c...
 
Benachrichtigungen
Alles löschen

LinuxCNC - how to control Spindle speed?

6 Beiträge
2 Benutzer
0 Reactions
7,320 Ansichten
Giulio Buccini
(@julius)
Beiträge: 212
Reputable Member
Themenstarter
 

Hallo zusammen,

I have an SC300 with the HF500 spindle provided by Stepcraft. I would like to know if it's possible to control the spindle speed via LinuxCNC.

When I switch to MDI mode and (manually) enter a g-code command like "M3 S8000" (i.e. set speed to 8000 rpm) then nothing happens. Just the little red light of the spindle control-box turns on.
On the other hand, when I issue the command "M5" (stop the spindle), then the little red light on the control-box of the HF500 correctly turns off.

So seems that M3 (or M4) commands doesn't work, while M5 does. I'm missing something? Any clue?

p.s: for now I'm using the setting reported here: Roberts Modellbaublog
p.p.s: I'm checking also the settings reported here by Norbert

SC300 + Spindle HF500 + Portalerhöhung + LinuxCNC + gsimple

 
Veröffentlicht : 11/03/2015 2:02 pm
Giulio Buccini
(@julius)
Beiträge: 212
Reputable Member
Themenstarter
 

Ubrigens,
also in "Manual" mode I cannot make the HF500 spindle turning on (i.e. by clicking the "" buttons on the TkLinuxCNC GUI interface)
🙁

SC300 + Spindle HF500 + Portalerhöhung + LinuxCNC + gsimple

 
Veröffentlicht : 11/03/2015 3:24 pm
(@chrissc)
Beiträge: 113
Estimable Member
 

Did you add the correct Pin (17 afaik) to LinuxCNCs PinConfig and rerun the stepconf wizard?
In this thread are some screenshots of the Mach3 settings, maybe you can find the needed parameters in them.

(Just guessing, I do not own a HF spindle...)

 
Veröffentlicht : 11/03/2015 4:27 pm
Giulio Buccini
(@julius)
Beiträge: 212
Reputable Member
Themenstarter
 

Danke Chris!
No time to check pin 17 today, I'm going to verify it tomorrow.

Anyway definitely seems that I need to configure/use an additional pin on the parallel port to send the "PWM" information to the control-box of the spindle. The argument is illustrated at page 25 of the Getting started guide from linuxcnc.org.

I will report here my results if one.

SC300 + Spindle HF500 + Portalerhöhung + LinuxCNC + gsimple

 
Veröffentlicht : 11/03/2015 9:29 pm
Giulio Buccini
(@julius)
Beiträge: 212
Reputable Member
Themenstarter
 

Yes! :woohoo:
The problem was the Pin #17 of the parallel port that was not configured, now the spindle runs perfectly via software!
I will post my configuration very soon, just little time fuer further tests.

SC300 + Spindle HF500 + Portalerhöhung + LinuxCNC + gsimple

 
Veröffentlicht : 13/03/2015 12:02 am
Giulio Buccini
(@julius)
Beiträge: 212
Reputable Member
Themenstarter
 

My configuration to control the HF500 is here.

SC300 + Spindle HF500 + Portalerhöhung + LinuxCNC + gsimple

 
Veröffentlicht : 13/03/2015 9:02 pm
Teilen: