![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Hello, I want to read a 12 bits absolute encoder which supplies 7 common bits + 5 lag bits + 5 lead bits in parallel ... yes, this gives me 17 bits to read. Which algorithm do I have to use to get the correct position value? Kind regards, Cl. |
|
#3
| |||
| |||
| Application: I want to read the position of a slider. The 17 bits of the encoder is connected to a 24 digital input module according the following: 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 <-- bit number 6 5 4 3 2 1 0 <-- COMMON 7 bits 11 10 9 8 7 <-- LAG 5 bits 11 10 9 8 7 <-- LEAD 5 bits The combination of Common and Lag gives me a 12 bits value (gray code). The combination of Common and Lead gives me an other 12 bits value (gray code). a) The conversion from gray to decimal is fine. b) There should be a logic to know which of the 2 values is the good one. That's this logic that I'm looking for. |
|
#4
| |||
| |||
| Just to complete my information, as the space characters have not been included in the previous post: 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 <-- bit number 6 5 4 3 2 1 0 <-- COMMON 7 bits == bit 7 to bit 1 11 10 9 8 7 <-- LAG 5 bits == bit 17 to bit 13 11 10 9 8 7 <-- LEAD 5 bits == bit 12 to bit 8 |
|
#5
| |||
| |||
| I still don't get the meaning of the lead and lag bits. If it's a 12 bit absolute encoder, why does it not just output 12 bits of absolute position? I'm new to absolute encoders, as you might notice .Arvid |
| Sponsored Links |
|
#8
| |||
| |||
| Yeah, if it is an absolute encoder one only has to compare the last reading with the current to determine direction... no need for "lead/lag" bits. Weird. Anyone's got an idea what these bits are for? (Hoping for an interesting answer )Arvid |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| encoder issues | rutexus | Servo Drives | 13 | 05-21-2006 06:49 PM |
| Stop Bits, Parity | gar | Computers and Networking | 4 | 06-04-2005 02:10 PM |
| Lead screw whip | spalm | DIY-CNC Router Table Machines | 3 | 05-24-2005 02:04 PM |