Why doesn't my spindle speed display work?
24 Dec 2013 03:27 #41955
by mtngun
Why doesn't my spindle speed display work? was created by mtngun
New LinuxCNC installation here, converting over from TurboCNC.
My spindle tach worked fine in TurboCNC, but I can't get it working in LinuxCNC.
The spindle speed box displays when LinuxCNC starts, but the RPM never registers in the display.
The Hal meter indicates that the sensor is toggling pin 13 when the spindle rotates, so LinuxCNC seems to be reading the sensor OK.
I presume I have something setup wrong?
Do you have to give a certain command before the RPM will register?
My spindle tach worked fine in TurboCNC, but I can't get it working in LinuxCNC.
The spindle speed box displays when LinuxCNC starts, but the RPM never registers in the display.
The Hal meter indicates that the sensor is toggling pin 13 when the spindle rotates, so LinuxCNC seems to be reading the sensor OK.
I presume I have something setup wrong?
Do you have to give a certain command before the RPM will register?
Please Log in or Create an account to join the conversation.
24 Dec 2013 07:08 #41958
by BigJohnT
Replied by BigJohnT on topic Why doesn't my spindle speed display work?
I assume you added the spindle-index signal to your parallel port pin 13 in the Stepconf Wizard. Try changing it to Spindle Phase A and see if it works.
Here is a spindle example.
www.linuxcnc.org/docs/html/examples/spin...d_spindle_feedback_a
JT
Here is a spindle example.
www.linuxcnc.org/docs/html/examples/spin...d_spindle_feedback_a
JT
Please Log in or Create an account to join the conversation.
24 Dec 2013 07:25 #41961
by BigJohnT
Replied by BigJohnT on topic Why doesn't my spindle speed display work?
I did some checking and it seems like the Stepconf Wizard has a bug if you select the pyvcp speed and have the make hal connections checked.
So if you change the input to Spindle Phase A and in your custom hal file add the following line it should work
JT
So if you change the input to Spindle Phase A and in your custom hal file add the following line it should work
net encoder-velocity pyvcp.spindle-speed <= encoder.0.velocity
JT
Please Log in or Create an account to join the conversation.
24 Dec 2013 07:30 #41962
by mtngun
Thank you for the help, BigJohn.
Replied by mtngun on topic Why doesn't my spindle speed display work?
Yes.I assume you added the spindle-index signal to your parallel port pin 13 in the Stepconf Wizard.
Switching to the Phase A option seemed to do the trick providing I selected the "use spindle-at-speed" option on the Wizard's spindle page. If the "spindle-at-speed" option was not selected, then LinuxCNC would give a "missing spindle-at-speed" error.Try changing it to Spindle Phase A and see if it works.
Thank you for the help, BigJohn.
The following user(s) said Thank You: Vector
Please Log in or Create an account to join the conversation.
24 Dec 2013 07:46 #41963
by BigJohnT
Replied by BigJohnT on topic Why doesn't my spindle speed display work?
I missed the checkbox on the spindle page, glad you got it sorted out.
JT
JT
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds