Internet PLC Forum

General => Technical support => Topic started by: solarman on September 29, 2010, 08:42:10 AM

Title: Retentive On Timer
Post by: solarman 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.
Title: Re:Retentive On Timer
Post by: support 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.