News:

  • June 07, 2026, 07:10:29 PM

Login with username, password and session length

Author Topic: Counting Problem  (Read 25310 times)

tkempher

  • Newbie
  • *
  • Posts: 2
Counting Problem
« on: April 20, 2011, 08:50:28 PM »
I have a DL06 PLC with a H0-Ctrio High speed count card. What I am trying to do is set up a system to measure cut marks on a web of paper as it is passing past a high speed mark sensor and counting pulses between leading edges of cut marks. Then scale them counts to give me an accurate output of length be it in inches or millimeters. This is a high speed application as web is traveling at 1000 FPM and I need .002 resolution, as you can see I will need full capability of this input module. About 100khz = 192". Any help that anyone could provide would be deeply appreciated. Thanks!!

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Counting Problem
« Reply #1 on: April 20, 2011, 09:21:47 PM »
You haven't said what the resolution of your pulse count generator is. I am going to assume that your '.002' is '.002 inches'. Even at one pulse every .002 inches is indeed right at the 100 khz max on the inputs of the CTRIO.

Looking at the CTRIO Workbench, I'm not sure how to perform the function - one edge of an input starts a count the second edge (possibly wired to another input?) latches the count. I see it for time but not for count.

Maybe the good folks at this site will reply.
An output is a PLC's way of getting its inputs to change.

tkempher

  • Newbie
  • *
  • Posts: 2
Re: Counting Problem
« Reply #2 on: April 20, 2011, 09:46:48 PM »
Thanks for replying b_carlton. Yes I am looking for a resolution of .002 in. pr roughly 95,000 pulses per second. I would appreciate any ideas anyone has, even if it is on a different platform. Thanks 

Darenko

  • Newbie
  • *
  • Posts: 1
    • Ремонт и строительство своими руками
Re: Counting Problem
« Reply #3 on: July 07, 2011, 12:29:38 PM »
??

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: Counting Problem
« Reply #4 on: July 08, 2011, 10:39:39 AM »
Hi Darenko, I assume the "??" means you are wondering why there are no replies to this post. Sometimes some of the posts slip through the cracks, and this is one we missed. My apologies to tkempher and you.

The CTRIO can count 100KHz (and we are soon releasing a CTRIO2 that can count up to 1MHz). There is a feature on the CTRIO called "Capture" but in tkempher's application, it may not be quick enough if he was going to use it in rapid succession. The reason being once you enable the Capture (with a bit), and the Capture pulse comes along and the CTRIO's counter captures the count, then the Capture feature must be re-enabled to get the next one.

Hope this helps!
There are two types of people in the world; those that can extrapolate from incomplete data sets.