Shop OBEX P1 Docs P2 Docs Learn Events
Can the SX handle this application? — Parallax Forums

Can the SX handle this application?

Tom BakerTom Baker Posts: 1
edited 2005-04-01 15:02 in General Discussion
There is a very large and expensive electromagnet at my work that has a 50% duty cycle and may be allowed to be on for up to 5 minutes. Sometimes the operator exceeds the 5 minute parameter and smokes the magnet. (This happens about 2 or 3 times a year).

So, I am looking into creating a special timer that counts up to 5 minutes and then sounds an alarm. If he turns off the magnet, the timer starts counting down. If he only turns it off for 1 minute, then he can operate it for 1 minute again.

There would have to be a time display for the operator to see how much on-time has elapsed. Is this something that the SX is capable of doing? As an added gizmo, supervision would like an ongoing date-time stamp to be remotely created to see whether the operator paid attention to any alarms that were or were not present. Any suggestions would be appreciated.

Thanks turn.gif

Comments

  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2005-04-01 09:27
    Tom,

    the SX can definitely handle this application.

    In my book, I have described how to drive 7-segment displays, and there is also a stopwatch example which might give you an idea how to code the 5-minutes timer.

    You can download all the book code samples from www.parallax.com/dl/src/prod/sx/ProgSXEdPre.zip. In the ZIP file, you will find APP12.SCR (the 7-segment example), and APP15.SRC (the stopwatch).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • pjvpjv Posts: 1,903
    edited 2005-04-01 15:02
    Right on Guenther; a "piece of cake".

    Peter
Sign In or Register to comment.