spindle at speed active at zero speed

More
14 Dec 2019 21:16 #152661 by billykid
hi, I have the signal spindle at speed active at zero speed and the movement starts without waiting.
the encoder is in place and the speed is the effective one, I don't understand what it can be. maybe there is a way to not have this signal at a standstill.
regards
Mauro

Please Log in or Create an account to join the conversation.

More
14 Dec 2019 22:02 #152665 by tommylight
Check the HAL file if there is something like :
setp spindle-at-speed = true
and remove that line.

Please Log in or Create an account to join the conversation.

More
14 Dec 2019 22:22 #152666 by billykid
thanks, but I don't have this line ...

Please Log in or Create an account to join the conversation.

More
15 Dec 2019 08:34 #152678 by newbynobi
have you a spindle speed command in your gcode file like S3200 M3

if not, the spindle expect a value of zero and that is correct if the soindle is of, so the movement will start immediatly.

Norbert

Please Log in or Create an account to join the conversation.

More
15 Dec 2019 09:29 #152679 by billykid
S3200 M3 or M3 S3200 is the same from the tests done.
yes in a certain sense it is right that from a standstill it is "at speed" but makes the signal useless.
is there a way to not have "at speed" at spindle stopped?
thanks
Mauro

Please Log in or Create an account to join the conversation.

More
15 Dec 2019 21:38 #152698 by macsddau@linuxcnc
Is there something like M3 S0 or M4 S0 at the end of the program instead of M5? When you start a new program the last speed is used.

Please Log in or Create an account to join the conversation.

More
16 Dec 2019 08:20 #152717 by billykid
thank you for answering, but I tried like Norbert said and it's the same. I checked what Macsddau said but I have M5 at the end.
probably rightly so, but only serves as a visual indication.
regards
Mauro

Please Log in or Create an account to join the conversation.

More
16 Dec 2019 09:19 #152720 by MaHa
Just in case you didn`t solve yet and running 2.7, have a look at following link, section 6.2. Spindle At Speed.

linuxcnc.org/docs/2.7/html/examples/spindle.html

Please Log in or Create an account to join the conversation.

More
16 Dec 2019 09:56 #152723 by billykid
thanks but I have already seen .. the problem is that when the spindle is stopped I have the "at-speed" signal then it starts immediately

Please Log in or Create an account to join the conversation.

More
16 Dec 2019 11:23 #152726 by Hakan
But spindle-at-speed isn't a general motion-prevention mechanism. Here is what linuxcnc.org/docs/html/man/man9/motion.9.html says

motion.spindle−at−speed IN BIT

Motion will pause until this pin is TRUE, under the following conditions: before the first feed move after each spindle start or speed change; before the start of every chain of spindle-synchronized moves; and if in CSS mode, at every rapid->feed transition.


So if spindle-at-speed is true, and none of the conditions above apply, it will start to move.

Please Log in or Create an account to join the conversation.

Time to create page: 0.310 seconds
Powered by Kunena Forum