Author Topic: T100MD+ as a timer  (Read 12564 times)

peterh_DK

  • Newbie
  • Posts: 37
    • View Profile
T100MD+ as a timer
« 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
« Last Edit: June 05, 2007, 01:37:05 PM by peterh_DK »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:T100MD+ as a timer
« Reply #1 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.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

peterh_DK

  • Newbie
  • Posts: 37
    • View Profile
Re:T100MD+ as a timer
« Reply #2 on: June 06, 2007, 05:40:04 AM »
Great Thanks,

wil try that out next week

/Peter