Hi, I am sure it must be simple but my head is not working at the time.
I have
- Encoder pulses (Input)
- Pulse per Rev of the belt
- Belt circumference (mm)
mm_per_rev = (Belt circumference/PPR)
I am calculating distance d (m) = (Pulses) x mm_per_rev/1000
Question is how to calculate the speed?
I must have all this within AOI so cannot use time based routine to calculate the speed. But ms pulse is provided for AOI.
it must be something like
d2 - d2 / t2 - t1
what about rollovers etc.
Appreciate your help.
I have
- Encoder pulses (Input)
- Pulse per Rev of the belt
- Belt circumference (mm)
mm_per_rev = (Belt circumference/PPR)
I am calculating distance d (m) = (Pulses) x mm_per_rev/1000
Question is how to calculate the speed?
I must have all this within AOI so cannot use time based routine to calculate the speed. But ms pulse is provided for AOI.
it must be something like
d2 - d2 / t2 - t1
what about rollovers etc.
Appreciate your help.