Author Topic: A good way to measure scan rate  (Read 12519 times)

cch1955

  • Full Member
  • Posts: 198
  • Automated Machine Systems Designer
    • View Profile
A good way to measure scan rate
« on: May 14, 2008, 01:34:28 PM »
I have an application that is counting inputs from an optical sensor with a conventional input to a standard counter. I suspect I am loosing counts at higher rates. The On time is quite short.

What is a good way to measure the scan time so I can estimate the rate I should be a able to read.

I would use the fast counters, but they are tied up.

Thanks.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:A good way to measure scan rate
« Reply #1 on: May 14, 2008, 02:42:19 PM »
<tt>
construct a circuit:
     OUT1                 OUT1
|---|/|-----------------(OUT)
</tt>

Then use an oscilloscope to view the resulting wave form. The scan time is half the period.

However, if you have differentiated Custom Function running then the scan time varies widely depending on whether the Custom Function is executed. So you may need to use a second PLC with PULSEPERIOD monitoring and a comparison routine to capture the worst case pulsewidth/pulseperiod in order to find out the worst case scan time.

Email: support@triplc.com
Tel: 1-877-TRI-PLCS