Jump to content

Recommended Posts

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

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

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

  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...