setting up rpm readout

More
19 Nov 2017 02:02 - 19 Nov 2017 04:22 #101987 by rotccapt
Hello all, I am trying to add an rpm readout on axis. after finishing step config, axis fails to launch. i am using a hal effect sensor with a single magnet to generate the signal for linuxcnc. during stepconfig i added the pyvcp spindle speed display option. i am using pin 15 for my signal pin and set that to spindle phase A. I have verified with hal meter that i get a pulse from the sensor, true when the magnet is off and false when the magnet is on the sensor.

thank you for any help

attatched are my files and the debug report.

File Attachment:

File Name: debug.zip
File Size:5 KB
Attachments:
Last edit: 19 Nov 2017 04:22 by rotccapt.

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

More
19 Nov 2017 13:56 #102009 by PCW
Replied by PCW on topic setting up rpm readout
The error is this:

custom_postgui.hal:20: signal 'spindle-at-speed' not found


I suspect you intended to have

net spindle-at-speed => motion.spindle-at-speed

in your main hal file but forgot

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

More
19 Nov 2017 14:11 #102011 by rotccapt
Replied by rotccapt on topic setting up rpm readout
i do not need that feature, all im looking for is a rpm read out so i know how fast my spindle is running. i have to manually adjust my spindle rpm.

do i need to comment out that line in the postgui.hal file to make it work? thank you for the help

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

More
19 Nov 2017 14:15 #102012 by PCW
Replied by PCW on topic setting up rpm readout
You could replace both lines in the postgui.hal file with

setp pyvcp.spindle-at-speed-led true

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

More
19 Nov 2017 14:36 #102015 by rotccapt
Replied by rotccapt on topic setting up rpm readout
ok ill do that thank you for your help

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

More
19 Nov 2017 16:17 #102020 by rotccapt
Replied by rotccapt on topic setting up rpm readout
I did not quite understand what you were wanting me to do, so i ended up just cementing out those two lines, i did not need it anyways. Everything is working great now. thank you for the help

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

More
07 Jan 2018 01:27 #104095 by rotccapt
Replied by rotccapt on topic setting up rpm readout
Hello again, after some issues with my original machine, I decided to build a new one. I am having a problem with the rpm read out on my new machine. During the upgrade I changed to a cnc4pc c11gs board from my hobbycnc ez board. After some fiddling I finally got the pin to work and indicate on hal meter. My issue now is that the rpm read out is not right, My read out is reading 170 rpm when it should be 17000. I replaced the "post gui hal file" that step confg created with the one from my old machine, which worked perfectly before, so im not sure what went wrong. My scale is set to 60, I tried setting it to 120 but that was not correct either. Thank you for any help

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

Time to create page: 0.156 seconds
Powered by Kunena Forum