Internet PLC Forum

General => Technical support => Topic started by: peterh_DK on June 05, 2007, 01:36:11 PM

Title: T100MD+ as a timer
Post by: peterh_DK on June 05, 2007, 01:36:11 PM
I have an input activated by a PIR sensor,and I would like to know how long the sensor "goes high" when sensing movement. Is there a way where I can measure the amount of time that an input is activated? I am only talking milliseconds - so reading the RTC is not an option

/Peter
Title: Re:T100MD+ as a timer
Post by: support on June 05, 2007, 02:06:56 PM
Try to use input #3 and define it as pulse measurement input (PMON), then connect in parallel to yet another regular digital input as use the falling edge to trigger a custom function that reads the PULSEWIDTH. Since the PMON captures the width of the last rising edge to falling edge it may give you what you want down to 1 microsecond resolution.
Title: Re:T100MD+ as a timer
Post by: peterh_DK on June 06, 2007, 05:40:04 AM
Great Thanks,

wil try that out next week

/Peter