On 04/01/2015 09:09 AM, Jon Elson wrote:
> On 04/01/2015 07:19 AM, andy pugh wrote:
>> On 1 April 2015 at 12:32, Belli Button <be...@iafrica.com> wrote:
>>> When I stop a program, LCNC sends my spindle speed to zero
>> I think that is normal (and standard).
>>
> It is the way my system works, too.  it is annoying.  If 
> doing stuff manually, I start the spindle
> with MDI M03 S2720 or something, then stop it with F9.  If I 
> hit F9 again, the relay to start the spindle is turned on, 
> but the speed is set to 0.  Kind of annoying, but safer.  it 
> would be kind of nice if clicking F9 again would start the 
> spindle at the last speed, but I can see there is a safety 
> issue there.

I played around a bit with this tonight.

I never noticed any funny business before because i don't have speed
feedback from my spindle, i manually set the speed using a mechanical
transmission and LinuxCNC just turns it on and off at that speed,
totally ignoring the S-word and motion.spindle-speed-cmd-rps.

In 2.6 (v2.6.7-14-gde51d6b), sim/axis/axis.ini, with the spindle off, i
can use MDI to program S1000, and it shows up in the Active G-Codes.  If
i then program M3 i get the commanded 1000 rpm speed, as expected (as
indicated by motion.spindle-speed-cmd-rps).

If i use F9 to turn the spindle on, it turns the spindle on at 200 RPM
(or at whatever [DISPLAY]DEFAULT_SPINDLE_SPEED says, presumably),
independent of what the programmed S-word says.

If i'm running a program, clicking the Stop button (or hitting the
Escape key) stops motion and the spindle, which is good and right.  F9
starts the spindle a [DISPLAY]DEFAULT_SPINDLE_SPEED, and M3 starts the
spindle at the programmed S-word speed.


2.7 (v2.7.0-pre5-28-gb1c6283) behaves the same way, so that's good.


So i think the only wonky thing here is that F9 doesn't use the
programmed S-word.  I think F9 should start the spindle at the
programmed S-word if there is one, and default back to
[DISPLAY]DEFAULT_SPINDLE_SPEED only if there is *no* programmed S-word.

Does that sound like reasonable behavior?


-- 
Sebastian Kuzminsky

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to