High Speed Counter Totalizer

Tomo453

Lifetime Supporting Member
Join Date
Mar 2018
Location
Mt. Juliet, TN
Posts
83
I have a non-contact laser encoder connected to a high speed counter. I have posted screen shots of the configuration and logic. The total counts work fine until the counter rolls over, and then I get trash values oscillating between negative and positive. The process is to measure length. It seems to be an overflow issue, but a DINT should be a large enough data type to hold the total count even if the counter rolls over multiple times in a run. I feel like this subject has been worked to death, but I am definitelly missing something. I do have the counter configured as a counter and not an encoder desiganation. I am using quadrature inputs A, A- and B, B-.

1734VHSC_config.PNG 1734VHSC_config2.PNG 1734VHSC_config3.PNG Laser_Encoder_HSC_Logic.PNG Laser_Encoder_HSC_Logic2.PNG
 
Last edited:
My logic was flawed. i was adjusting the total counts on rollover condition, but the current count needed to be adjusted on rollover by the number of rollovers times the rollover value. This way the last scan count is updated accordingly. Now to account for the line reversing as currently I simply check if current scan is less than last scan to increment the rollover count.
 

Similar Topics

Hello Folks, Has anyone configured a Momentum high speed counter on Unity 13.1. We need the wiring diagram for Momentum High speed counter and...
Replies
0
Views
65
i am bench testing a 1734 -VHSC24 Point I/O High Speed counter module, i cannot find any examples of wiring the outputs from the module. does...
Replies
4
Views
1,314
Hello guys, I have created a program where I count the high speed inputs of a flowmeter and create pulses per second to check the flowrate. Next I...
Replies
5
Views
1,746
Hello to all, I don't have to much experience in the PLC. I'm using the Studio 5000 v32.03 We are trying to measure the length of a product, in...
Replies
3
Views
1,087
Does anyone know how to set the output window on-off values on the fly without having to inhibit the module? I could of sworn when I first started...
Replies
11
Views
2,342
Back
Top Bottom