bbird Posted June 6, 2013 Report Share Posted June 6, 2013 I have an application using the low end of the highspeed counter scale on a flow switch. The flow switch counts give a pretty accurate indication of volume when counted correctly. The flow switch uses a reed relay at 50pps. (customer supplied and working with competitors plc) The reed generates some contact bounce at a much higher frequency that the HS counter picks up. This gives some issues with volume dispensed. I'd like to filter it without adding external components/signal conditioners. It would be nice in the config of the HS counter to set a minimum pulse width to ignore. Is there a way to do this either in the module config or via software? I realize i may have to do to some signal conditioning external to the plc but thought I would throw it out in case there is something I am not aware of. - Brian Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted June 7, 2013 MVP 2022 Report Share Posted June 7, 2013 At that speed you really don't need to use the HSC. If you set up an 2.5 ms interrupt subroutine it will inherently filter the input to 200 Hz. Put an Immediate input in it along with a positive transitional contact that increments a register. Let me know if you need an example. Joe T. Quote Link to comment Share on other sites More sharing options...
bbird Posted June 7, 2013 Author Report Share Posted June 7, 2013 Thanks, I hadn't considered the interupt subroutine which is exactly why I posted it. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted June 10, 2013 MVP 2022 Report Share Posted June 10, 2013 Let me know if it works. Worst case is you'll have to hang a 0.1 uF cap across the input and 0V to filter out the bounce. I had to use the interrupt trick on an -E1B module reading 10 "low-speed" pulsing flow meters. For anyone else looking at this post, note that the Immediate Input function is only valid for inputs on the main board of the controller. It doesn't work on expansion modules. Joe T. Quote Link to comment Share on other sites More sharing options...
bbird Posted July 31, 2013 Author Report Share Posted July 31, 2013 Everything went as planned and no more phantom counts. thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.