Delay motion - spindle spinup
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
12 Dec 2019 22:59 - 13 Dec 2019 00:58 #152559
by bevins
Delay motion - spindle spinup was created by bevins
I found this code from Tod in the forum and just want some clarification.
If I read this right I could replace "sets spindle-at-speed true" with this and it will delay motion for the time delay set.
Is that correct?
If I read this right I could replace "sets spindle-at-speed true" with this and it will delay motion for the time delay set.
Is that correct?
loadrt timedelay count=1
addf timedelay.0 servo-thread
setp timedelay.0.on-delay 5
net spindle-on => timedelay.0.in
net spindle-timer <= timedelay.0.out
net spindle-timer => motion.spindle-at-speed
Last edit: 13 Dec 2019 00:58 by bevins.
Please Log in or Create an account to join the conversation.
- MaHa
- Offline
- Platinum Member
Less
More
- Posts: 405
- Thank you received: 163
12 Dec 2019 23:42 #152562
by MaHa
Replied by MaHa on topic Delay motion - spindle spinup
I use a similar configuration, rapid moves are done while timedelay, only feed mode is stoped during delay.
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
13 Dec 2019 12:49 #152598
by bevins
Replied by bevins on topic Delay motion - spindle spinup
motion.spindle-at-speed does not exist.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
13 Dec 2019 13:02 #152599
by cmorley
Replied by cmorley on topic Delay motion - spindle spinup
2.8 + it has changed:
spindle.0.at-speed
spindle.0.at-speed
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
13 Dec 2019 13:26 - 13 Dec 2019 13:27 #152600
by bevins
Replied by bevins on topic Delay motion - spindle spinup
loadrt timedelay count=1
addf timedelay.0 servo-thread
setp timedelay.0.on-delay 5
net spindle-on => timedelay.0.in
net spindle-timer <= timedelay.0.out
net spindle-timer => spindle.0.at-speed
This does not work. It never gets spindle-on
Is there a quick fix for this?
addf timedelay.0 servo-thread
setp timedelay.0.on-delay 5
net spindle-on => timedelay.0.in
net spindle-timer <= timedelay.0.out
net spindle-timer => spindle.0.at-speed
This does not work. It never gets spindle-on
Is there a quick fix for this?
Last edit: 13 Dec 2019 13:27 by bevins.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
13 Dec 2019 14:12 #152602
by cmorley
Replied by cmorley on topic Delay motion - spindle spinup
The quickest fix would be to use halmeter/halcmd to probe where the problem is
Is the spindle-on signal connected to anything?
If it is, use halmeter to see if it changes state properly.
if not, connect it to spindle.0.on
Is the spindle-on signal connected to anything?
If it is, use halmeter to see if it changes state properly.
if not, connect it to spindle.0.on
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
13 Dec 2019 15:50 - 13 Dec 2019 15:52 #152605
by bevins
ACK...... spindle-on is not connected to anything. spindle-enable is connected to spindle.0.on
Was staring me right on the face.
Replied by bevins on topic Delay motion - spindle spinup
The quickest fix would be to use halmeter/halcmd to probe where the problem is
Is the spindle-on signal connected to anything?
If it is, use halmeter to see if it changes state properly.
if not, connect it to spindle.0.on
ACK...... spindle-on is not connected to anything. spindle-enable is connected to spindle.0.on
Was staring me right on the face.
Last edit: 13 Dec 2019 15:52 by bevins.
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
13 Dec 2019 15:58 #152607
by bevins
Replied by bevins on topic Delay motion - spindle spinup
Why is spindle.0.on connected to spindle-enable?
Shouldn't this be connected to spindle-on? This config was built with pncconf. Was it changed on purpose or is this an error?
Shouldn't this be connected to spindle-on? This config was built with pncconf. Was it changed on purpose or is this an error?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4862
07 Jan 2020 15:13 #154217
by andypugh
Replied by andypugh on topic Delay motion - spindle spinup
If you are using a version of linuxCNC 2.8+ then the spindle pins now have names like
spindle.0.at-speed
This is a result of changes that allow LinuxCNC to control multiple spindles.
spindle.0.at-speed
This is a result of changes that allow LinuxCNC to control multiple spindles.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
07 Jan 2020 19:29 #154238
by cmorley
Because pncconf had a bug in it - should be fixed now.
Replied by cmorley on topic Delay motion - spindle spinup
Why is spindle.0.on connected to spindle-enable?
Shouldn't this be connected to spindle-on? This config was built with pncconf. Was it changed on purpose or is this an error?
Because pncconf had a bug in it - should be fixed now.
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds