News:

  • June 08, 2026, 12:51:50 PM

Login with username, password and session length

Author Topic: CTRIO Count Inhibit  (Read 25359 times)

watertech2

  • Jr. Member
  • **
  • Posts: 11
CTRIO Count Inhibit
« on: July 09, 2009, 03:04:24 PM »
I am using the CTRIO cards to calculate flow based on pulses from a paddle wheel.  There are some instances, in which I have a reverse flow, when I do not want to include the pulses in my count.  Reading the manual, I noticed that there is a hardware "inhibit" input option and am assuming that I can also directly write a count inhibit using certain states w/in my PLC.  What register/method would I use for this function.

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: CTRIO Count Inhibit
« Reply #1 on: July 10, 2009, 08:58:09 AM »
I don't believe that you can inhibit the counting where you can freeze the current count other than being at zero. The only software control is that you have a reset bit and the actual count. I guess the reasoning being that if you needed a high speed counter then trying to inhibit the counting in software  would be inaccurate. 

However, you could still accomplish what you want either by configuring an unused output on the counter for RAW if you are not using it and tie it back to the enable input.  Then enable/disable that output to inhibit/enable the counter. Or use another output.  Another option is to capture the count in the counter when you want to freeze the count and then write it back when you ready to count again. Both instances you have to be mindful of delays in your program scan to get an accurate count.