Why doesn't my spindle speed display work?

More
24 Dec 2013 03:27 #41955 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?
Attachments:

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

More
24 Dec 2013 07:08 #41958 by BigJohnT
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
The following user(s) said Thank You: mtngun, Vector

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

More
24 Dec 2013 07:25 #41961 by BigJohnT
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
net encoder-velocity pyvcp.spindle-speed <= encoder.0.velocity

JT
The following user(s) said Thank You: mtngun, Vector

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

More
24 Dec 2013 07:30 #41962 by mtngun

I assume you added the spindle-index signal to your parallel port pin 13 in the Stepconf Wizard.

Yes.

Try changing it to Spindle Phase A and see if it works.

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. :woohoo: If the "spindle-at-speed" option was not selected, then LinuxCNC would give a "missing spindle-at-speed" error.

Thank you for the help, BigJohn. :cheer:
The following user(s) said Thank You: Vector

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

More
24 Dec 2013 07:46 #41963 by BigJohnT
I missed the checkbox on the spindle page, glad you got it sorted out.

JT

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

Time to create page: 0.223 seconds
Powered by Kunena Forum