knob + quadrature encoder problem

damjaniii

Member
Join Date
Feb 2014
Location
Maribor
Posts
14
Hi guys. I wrote a programme for determining direction of movement of the quadrature encoder on 5V with TTL logic. Everything works perfect except when i spin the knob really really fast, then it gets a little confused. I'm using beckhoff EL1124 module for digital inputs. Ahy help or hint? i think the code is right and i also think that there may be something i dot know about speed of reading the inpust or something like that. i wrote 3-4 algorithms till now and they all have one single bug, when i spin it really fast. Any help please?
 
How fast is really fast?
How many pulse per second?
What is the scan time of the plc program?
What is the input delay of the input card?
 
The module you're using is just a fast input card, the module I'm suggesting is suitable for encoders as it has an internal processor that "catches" the encoder pulses, and transmits the actual value to the processor.
That's the type of modules we use, when we have encoders...
 
The module you're using is just a fast input card, the module I'm suggesting is suitable for encoders as it has an internal processor that "catches" the encoder pulses, and transmits the actual value to the processor.
That's the type of modules we use, when we have encoders...

thanks a lot @jmsmoreira. :)
 
so the program can keep up with 1 pulse/ms
the card 1124 is a lot faster it takes only 0.05 us to get the info.
but 1124 is not counting thus max it keeps to the program.
(a way to solve this is to use interupt logic (a special task reacting on a event.
the 5111 can keep up with 1 us signal and this one has a counter intern so you can ask the position al the time.
no need for special event.
 

Similar Topics

Does anyone know of someone makes an encoder that fits in the opening for a 22mm pushbutton? Something with low resolution but A & B channels so...
Replies
7
Views
2,667
Hello, friends, I am trying to upgrade a system that uses an Onrom incremental encoder (E6B2-CWZ6C) connected to a Danfoss VFD (FC360), but now...
Replies
4
Views
272
We have a new machine build scheduled for next year that will use a spindle motor. That motor may have a quadrature encoder mounted directly on...
Replies
5
Views
1,923
I'm using a BEI (H37C-SS-2356-ABC-28V/V-SM16)quadrature rotary encoder (A/B) connected to the high speed inputs (A phase=X0, B phase=X1) of a FX1S...
Replies
6
Views
5,338
The project: Fixture for checking long steal pins (.250" to 1.0" Dia. 4" to 24" long) The PLC: AD D06 with 3 H0-CTRIO cards to control 3 stepping...
Replies
0
Views
4,448
Back
Top Bottom