Author Topic: Retentive On Timer  (Read 5169 times)

solarman

  • Newbie
  • Posts: 3
  • RFID Systems Designer
    • View Profile
Retentive On Timer
« on: September 29, 2010, 08:42:10 AM »
I want to measure the time my process takes to Write and Read data from an RFID Tag. So I am looking for a method to time an event with at least 1ms resolution. I looked into the special functions but did not see a ready made function.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re:Retentive On Timer
« Reply #1 on: September 29, 2010, 12:14:36 PM »
There isn't a build in timer with 1ms resolution.

One thing you can try is to use a PWM output to drive a HSC input and then you can count the number of HSC counts from the time you start measuring until the time you stop (e.g. receive a response). The differential count will give you an idea of the time it takes. A 2KHz PWM with 50% duty cycle driving HSC gives you 0.5ms resolution.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS