Eric @ SM Posted June 22, 2012 Report Share Posted June 22, 2012 I have a 24VDC flow meter that outputs from 1.7Hz to 55.5Hz and is NPN. This is obviously not an HSC but rather a low speed device, will I have to treat it as an HSC in order to use this with a V570-57-T20B and V200-18-E1B? It will have its signal wire in position I0 and that block is wired for NPN inputs. I have base programs for HSC flow meter applications, but not this. Any guidance will be greatly appreciated. Thanks Link to comment Share on other sites More sharing options...
Emil Posted June 23, 2012 Report Share Posted June 23, 2012 My advice is ot define 1.25 ms interrupt subroutine, to read immediatelly there I0 and ot count both rising edges of it and interrupts. Once pre second (800 interrupts) you you will get the result in Hz. Maybe for better resolution you need to measure it once per more than one second. Link to comment Share on other sites More sharing options...
dahnuguy Posted June 28, 2012 Report Share Posted June 28, 2012 Use the function "Immediate Read Input" Read the help file on immediate read. If you don't interupt the PLC when a pulse comes in, you could miss pulses during the scan time. There is a cost to using the interrupts, it will slow down the program, but if you need it, you do it. Link to comment Share on other sites More sharing options...
Eric @ SM Posted July 12, 2012 Author Report Share Posted July 12, 2012 Thanks guys, appreciate the input. We'll give it a try. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now