Internet PLC Forum
General => Technical support => Topic started 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
-
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.
-
Great Thanks,
wil try that out next week
/Peter