Incremental Encoder Convert to Degree

I have an application using an incremental encoder and then I convert it to degree (0-360) using calculation program. For a while, the calculation is correct, but after several movement from the machine, the degree calculation is not the same anymore. Have you all experience something like this before and how you resolve this
 
You say an incremental encoder these are normally single phase so keep counting where absolute are actual position 2 phase, need more information how are you determining the fwd/rev, or is it circular motion, how are you reading the pulses high speed input, counter card or interrupts it will depend on what you are doing.
 
You say these are "high-speed pulses?"

Is it possible the pulses are coming in too fast for the PLC? The PLC is a discrete device, and there need to be at least two PLC scan cycles (one to see the "1" and one to see the "0", and preferably more, per rising edge of the encoder signal, to ensure the PLC detects every edge.
 
Yes I use high-speed pulses
Previously I use rising edge and falling edge pulses when I use 2000 pls/rev encoder, but the increment not very stable so I changed it to 10000 pls/rev and I change the method (from rising/falling edge increment) to the automatic increment from buffer address my module and apparently using this address is more suitable for highspeed application
 
Some PLCs have high-speed counters (HSC) available on certain inputs. An HSC counts pulses independently of, and is capable of handling a higher pulse frequency than, the scan cycle. In the scan cycle the code can use the HSC accumulator value, with some tap dancing at rollover (typically from +32767 to -32768 or +2147483647 to -2147483648, or the unsigned equivalents).
 
Tavsiyeniz için teşekkür ederim, bu hesaplama yöntemini denedim ama sonuç eskisinden daha kötü
MERHABA,
öncelikle böyle kaymalar yaşarsanız minimum ve maksimum pals sayılarını çözümlerinde fayda var.
Aşağıdaki kodu deneyebilirsin.

#"gerçek tur sayısı" := FLOOR("gerçek test" /360.0);
#"pals bileşimi" := #"aktuel tur sayısı round" * 360.0;
#enkoder_gerçek := "Enkoder" - #"pals bulunur";
 
Thank you for your advice, I try this method to calculation but the result is worse than before
  • Keep track of the an absolute count as an integer.
  • Do not convert any new incremental count to degrees.
  • When a new incremental count comes in, add the new incremental count to the absolute count
  • If the absolute count goes above 9999 (10000 or more), subtract 10000 from the absolute count
    • repeat until absolute count is less than 10000.
  • Multiply the absolute count by 0.0360 to get the current position in degrees.
Homing the absolute count is left as an exercise for the student.
 
There are a couple of root causes.

1.) The PLC can't count fast enough. Your module/PLC needs to be able to handle the maximum velocity of your system.
2.) Your signal is noisy at high speeds. Always use shielded cable for encoders. For quadrature incremental encoders you should be using 2 STP + Shield or 2 shielded twisted pair + overall shield. If you don't use shielded cable and you are running multiple encoder cables together in the same conduit or raceway, they can cross communicate, which means if only one axis is moving, your PLC will think multiple axes had moved.
 
I have an application using an incremental encoder and then I convert it to degree (0-360) using calculation program. For a while, the calculation is correct, but after several movement from the machine, the degree calculation is not the same anymore. Have you all experience something like this before and how you resolve this
If a new machine - is it possible that the calculations have a remainder and you are seeing spillover after a few cycles?
If an existing machine - have you checked the physical connections? Key in the shaft? Mechanical slipping?
 

Similar Topics

Hello everyone, I am still pretty new to automatism and I recently have been trying to use an incremental encoder to measure the position of an...
8
Replies
932
Views
Hi! I am having issues with a machine at work, with zero documentation.. The issue is that the incremental decoder (SIKO MSK2000, 0,25mm res)...
76
Replies
4,210
Views
PLC: Delta DVP EC3-8K Incremental Encoder: Omron E6B2-CWZ6C Application: Retrofit of Old Roll Forming Machine, Encoder Position Sample Problem...
39
Replies
4,133
Views
Starting to program a project where we are controlling an induction motor w/ an 847B encoder attached via a PF527 motion commands. Has anyone had...
0
Replies
732
Views
Incremental encoder:KOYO TRD N250 RZW Module:TM Count 2x24V Parameter settings: Channel0 Operating mode :Operating with technology object...
0
Replies
985
Views
Top