Missing-tooth index added to the encoder component

More
20 Jul 2021 20:27 #215441 by andypugh
The following user(s) said Thank You: BigJohnT, tommylight, HalaszAttila, samuelt, Aciera

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

More
20 Jun 2022 06:30 #245472 by HalaszAttila
Hello,

is anyone tested this new feature on real machine? I installed it on Emco Compact 5 lathe, with LinuxCNC 2.9 verzion.
(the encoder.c component in which is integrated the "missing-teeth" funtion, i found on github. Copy pasted to src/hal/components, and compiled it).
But, when the lathe is threading, the result is not ok (see the picture).
I used the original 100ppr encoder disk, and cut out 3 holes.
The encoder component has the following paramteers:

setp spindleEncoder.counter-mode 1
setp spindleEncoder.min-speed-estimate 0
setp spindleEncoder.position-scale 100
setp spindleEncoder.x4-mode 0
setp spindleEncoder.missing-teeth 2

I try to change the .missing-teeth parameter to 3, and the result is the same.
Does anyone have experience with this?
On the finished thread seems, the synchronisation works, but maybe the position where the tool entered in material is every time offsetted a little.  

 
 

 
Attachments:

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

More
21 Jun 2022 23:25 #245567 by andypugh
If you watch index-enable do you see the expected behaviour?

The position should reset to zero at the index, so I wouldn't expect any error accumulation.

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

More
24 Jun 2022 19:58 #245805 by HalaszAttila
Sorry, my mistake! The encoder optocoupler sensor i first use for encoder.N.phase-Z, later i modify to be encoder.N.phase-A signal, but forgot to delete connection to phase-Z. This causes the 'problem'.
The missing-tooth works properly, tested.
Sorry to flood the forum. The machine i transported 400km away, and was no chanse to test it.

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

Time to create page: 0.085 seconds
Powered by Kunena Forum