Results 1 to 4 of 4

Thread: Newbie Question for Virtual Outlets

  1. #1
    New User
    Join Date
    Jul 2017
    Location
    Eastern Standard Time
    Posts
    6

    Newbie Question for Virtual Outlets

    I am trying to program a VO that will ultimately be triggered by a switch through a BoB for a Maintenance program. I want the maintenance mode to essentially be a long feed mode. From my understanding, I cannot trigger a feed mode directly from a switch. Assuming that is correct, what would a program look like in order to run a switch to trigger a maintenance mode?

    Apologies if this question is a bit all over the place, a bit overwhelming getting started with this!

    Thanks,
    Russ

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Two ways to do it depending on how you want it to behave.

    1. You want something to happen for X time after the switch is no longer CLOSED.

    MaintVO
    Set OFF
    If Switchname CLOSED Then ON
    Defer XXX:XX Then OFF

    Thing to turn off
    (Existing code)
    If Outlet MaintVO = ON Then OFF

    2. You want something to happen for X time after the switch is first CLOSED.

    MaintVO
    Set OFF
    If Switchname CLOSED Then ON
    Min Time XXX:XX Then ON

    Thing to turn off
    (Existing code)
    If Outlet MaintVO = ON Then OFF

    You might be an engineer if...You have no life and can prove it mathematically.

  3. #3
    New User
    Join Date
    Jul 2017
    Location
    Eastern Standard Time
    Posts
    6
    Super helpful. Thank you!

    So if I were using a momentary button, the Min Time option would be best, correct?

  4. #4
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Correct. Just make sure you hold the button for a couple of seconds since the apex polls switch states every processing interval (about 1 second).

    You might be an engineer if...You have no life and can prove it mathematically.

Similar Threads

  1. Newbie help with EB832 outlets and SG
    By Steve1500 in forum EnergyBars 832 / 632 / 8 / 6 / 4
    Replies: 0
    Last Post: 03-23-2019, 04:58
  2. Virtual Outlet Newbie
    By Justjohno in forum Misc Apex Usage & Programming
    Replies: 4
    Last Post: 10-23-2017, 07:53
  3. Question: Virtual Outlets
    By NK1019 in forum APEX Fusion
    Replies: 4
    Last Post: 10-08-2016, 18:52
  4. Virtual Outlets Basic Question
    By DigitalOz in forum Misc Apex Usage & Programming
    Replies: 3
    Last Post: 04-30-2016, 20:23
  5. How do I add a virtual EB8 for virtual outlets?
    By kirk_m in forum Apex Classic/Apex Lite/Apex Jr
    Replies: 1
    Last Post: 07-09-2014, 16:59

Bookmarks

Bookmarks

Posting Permissions

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