Glass scales index

More
21 Jan 2022 00:49 - 21 Jan 2022 00:56 #232586 by einarak
Glass scales index was created by einarak
I´m struggling to get a reliable signal from the index channel, running heidenhein ls486 glass scales. The index pulse is created with magnets under the scale.
But I just get an ocasional signal pulse in hal scope, but it works flawlessly in my oscilloscope. What am I missing here?

HAL file


INI file
Attachments:
Last edit: 21 Jan 2022 00:56 by einarak.

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

More
21 Jan 2022 00:55 #232587 by tommylight
Replied by tommylight on topic Glass scales index
Hal scope works at servo thread speed, so 1ms, and that might be to much to reliably detect the index pulse.
Try setting the trigger to the index channel, also use "show hal configuration" to set the index low or high and watch it change.

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

More
21 Jan 2022 11:50 #232629 by einarak
Replied by einarak on topic Glass scales index
Thanks, how would the line look to connect those two? I am a total newbee here

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

More
21 Jan 2022 13:42 #232637 by tommylight
Replied by tommylight on topic Glass scales index
No connecting, those are for hal scope (your attached screenshot) on the lover right side there is a button named "trigger", click on it and choose the index pin, that way the scope will wait for that pin to change state and start monitoring.
The second hal show is also a LinuxCNC feature for live monitoring of pins and parameters, also for changing values on the fly, it is found in the "machine" menu.

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

More
21 Jan 2022 17:45 #232662 by einarak
Replied by einarak on topic Glass scales index
Aha, ofcourse.
I think I am missing something in the setup, I put my pulsgenerator on the input and it did´n give me anything on encoder input-index, it was set to 2v like the signal from the glass scale. Or could that be the problem, that 2v is not high enough so it might need a pullup?

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

More
21 Jan 2022 23:03 #232696 by einarak
Replied by einarak on topic Glass scales index
I did some experiments tonight, and found out that if the slider is moved slow enough the signal is picked up repeatedly and accurate. So that will be the solution of that. Next up, homing with index... Any tips on where to seek info on that one?

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

More
21 Jan 2022 23:58 #232708 by PCW
Replied by PCW on topic Glass scales index
Index will work at almost any speed because it does not depend
on LinuxCNCs servo thread rate but rather is implemented in hardware
in the encoder counter.

The way to check index operation is not by looking at the index
input (which is limited by LinuxCNC's servo thread period sampling)
but rather setting index-enable true and seeing if it gets set false
when the index signal occurs.

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

More
22 Jan 2022 11:31 #232756 by einarak
Replied by einarak on topic Glass scales index
Works like a charm, so the problem newer was a problem! Thanks for the inoput
The following user(s) said Thank You: tommylight

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

Time to create page: 0.096 seconds
Powered by Kunena Forum