On 1/28/25 11:42, Horváth Csaba wrote:
Dear All,
I have an old milling machine with a hydraulic spindle speed range switch. The hydraulic valve has 2 coils (low and high speed). There are 2 feedback inductive sensors (for low and high speed). How can I solve this so that when a program needs to change the speed range, it does so automatically under the following conditions. - the spindle can only rotate (in the between min-max range (50-3200rpm) if the inductive feedback corresponding to the speed
- the range can be changed by reducing the speed to 1-2 rpm
- low range (50-1500rpm)
- high range (1501-3200rpm)

I am looking for advice on how I can solve this properly. (I have never done this with Linuxcnc before)
This is a bit of a conundrum, one I solved with a mux4 and tally switches on the hand gearshift knob of my GO704. If neither tally is true, the spindle is then sent about a 10 rpm speed so the gears are slowly moving and can engage the next position w/o any excitement. I can reach up and change gears at any speed as the PID slows the spindle to a  non-damagining crawl in a few dozen milliseonds, long before the gears are disengaged and normal speed is restored when the gears are 95% engaged in the other gear.  hal is quite capable of such a task.  I use the same basic mechanism to correct the spindle tach. So the displayed value derived from motor rpms, not spindle. is properly scaled to a 0-1500 or 0-3000 range. Some of this also changes the ini file.  If desired I can pm those files for study.

Best regards,
Csaba

Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to