QUOTE(smichalo @ Jun 17 2007, 03:39 PM) [snapback]55603[/snapback]
Hello
I just finished a project where I installed a redlion display that displayed how many pulses/min. Really easy to set up and a nice display.
My question is this... On the next machine I plan on installing a touch screen operator interface. Is it possible to get the same pulses I used on the redlion, hook it up to the PLC scale it and display it on the touch screen?
I will be using a ML 1000.
The pulses will be coming from sensor that detects lugs on a conveyor belt. ( Used for bit shifting )
This is something I am just curious about. The redlion is a cheap solution so it's not a failure if I can't do it
Thanks
Steve
Depends on the pulse speeds and your scan rate. If your scan rate is reasonably quick compared to the pulse rate (and length), then connect it to a digital input and count away. If not, then you have to have some extra hardware to do it...a pulse counter or frequency-voltage (or current) converter. Check your scan rate and compare it to the pulse electrical characteristics (how often, how long). Frequently Red Lion and Simpson (another similar company that I've had good luck with) offer a "redirected output" which is often easier to deal with than buying a specialized piece of hardware without a display.
In addition, this is notoriously a "difficult" problem, because it is somewhat hard to get a "stable" display.
Assuming you passed hardware part, there are two ways to processing it. The first solution is to count pulses over an interval. For instance, use the pulse input to trigger a counter (CTU). Simultaneously, monitor the real time clock minute. At the moment the minute changes, save the counter value as your result and reset the counter. If this is too slow, count over a shorter interval such as every 10 seconds and multiply by 6.
As you reduce the time interval, the result will appear to "jump" around more. One way around this is to apply a filter. For instance, output = (last output X 0.75) + (new value X 0.25) is an exponentially weighted filter that generally smooths the output over the last 4 readings.
If you want quicker response, the other choice is to count the time from pulse to pulse. In this case, the scan rate really becomes a factor, but essentially you have to capture the time period. If the time period is measured in seconds, 60 / (time interval) = pulses per minute.
In any case, getting acceptable response from any of this stuff is notoriously hard. This is one reason that in the world of motion control, they usually resort to high resolution encoders (thousands of pulses per revolution) with high speed hardware counters in order to measure shaft speeds with reasonable accuracy and response speeds.