Time limit while waiting for input ?


Results 1 to 6 of 6

Threaded View

  1. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,656


    Did you find this post helpful? Yes | No

    Default Re: Time limit while waiting for input ?

    is it possible to have a time limit on how long to wait for that low input and if it doesn't happen, the timer will effectively provide the low and the program can continue just as if the sensor worked ?

    the code I posted in this link

    http://www.picbasic.co.uk/forum/show...ht=#post136604

    effectively does this. that's what "run_count" is all about

    when the motor is moving the limit switches are checked every so many mS and the run count decremented
    if a limit is reached or the run count reaches 0 then movement is terminated.

    a run count of 2000 @ 50mS = 100 seconds till timeout
    or
    a run count of 185 @ 100mS = 18.5 seconds till timeout , simply adjust to suit
    Last edited by richard; - 3rd July 2017 at 02:37.
    Warning I'm not a teacher

Similar Threads

  1. Upgrade time limit?
    By fowardbias in forum Off Topic
    Replies: 1
    Last Post: - 5th August 2012, 16:34
  2. Limit of PokeCode??
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th June 2012, 20:18
  3. Replies: 0
    Last Post: - 1st December 2010, 22:48
  4. Replies: 11
    Last Post: - 14th May 2010, 10:11
  5. Replies: 4
    Last Post: - 5th October 2007, 10:25

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts