Jump to content

Using timers to set current status


Recommended Posts

Hello,

I'm developing a project which toggles connected devices on and off. The program toggles itself on 8AM and off after 4PM. Mode works automatically by default. It can be manually forced on or off for five seconds. It will revert to automatic-setting after set time.

Right now I'm able to change current mode between values 1, 2 and 3. I have yet to find a proper way to set timer back to automatic. Suspected problem is timer applying itself multiple times when chosen.

Attachments include:
    - Current copy of a project
    - Screenshot from main routine and subroutine.

office_IV.vlp

post-28520-0-85411400-1428927254_thumb.png

post-28520-0-91992500-1428927257_thumb.png

post-28520-0-06013000-1428927260_thumb.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...