Results 1 to 6 of 6

Thread: UV Light Code

  1. #1
    NSI Member
    Join Date
    Dec 2015
    Location
    Indianapolis
    Posts
    104

    UV Light Code

    Trying to program the UV light to trigger from the feed pump for the manifold, it takes a minute for water to start flowing through the manifold, so not sure if there a way to add a defer on the Turn On, but turn off instantly when the pump turns off.

    Here’s the code I have so far? Perhaps it’s better to go off the flow through the Flow sensor on the UV?


    Fallback OFF
    Set OFF
    If Output ReactorPump = ON Then ON
    Defer 001:00 Then OFF
    If Output ReactorPump = OFF Then OFF


    Alternative option with Flow Sensor?


    Fallback OFF
    Set OFF
    If UVFlow = <200 Then ON
    If Output ReactorPump = OFF Then OFF


    Which one do you think will work best?


    Sent from my iPhone using Tapatalk

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    I would do this where X is 75% of the flow you expect in the UV when it's running.

    Fallback OFF
    Set OFF
    If UVFlow > X Then ON
    If Output ReactorPump = OFF Then OFF


    The alternative way is to do this. This turns on 1 minute after the reactor pump turns on and turns off immediately when the reactor pump is off.

    Fallback OFF
    Set OFF
    If Output ReactorPump = ON Then ON
    Defer 001:00 Then ON




    Sent from my SM-G965U using Tapatalk

  3. #3
    NSI Member
    Join Date
    Dec 2015
    Location
    Indianapolis
    Posts
    104
    Thanks Zombie! Think I’m going to use the flow, as this ensures that there is definitely water passing through the chamber, might add another line that also turns the bulb off if flow drops below 25% of expected flow.


    Sent from my iPhone using Tapatalk

  4. #4
    NSI Member
    Join Date
    Dec 2015
    Location
    Indianapolis
    Posts
    104
    Scratch that. Don’t need an additional line, as it will turn off once it’s below the 75% threshold, correct?


    Sent from my iPhone using Tapatalk

  5. #5
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by Iufan View Post
    Thanks Zombie! Think I’m going to use the flow, as this ensures that there is definitely water passing through the chamber, might add another line that also turns the bulb off if flow drops below 25% of expected flow.


    Sent from my iPhone using Tapatalk
    The code I provided already shuts it off at anything less than 75% of current flow. No extra line is needed. You can tweak my suggestion and use a different percentage rather than use 75%, but you dont need any extra lines.

    The one line that may be worth adding is

    Min Time 015:00 Then OFF

    This protects the bulb against short cycling (which can break bulbs) in the event the flow happens to be cycling near the shutoff level or if you are turning the reactor pump on/off quickly for any reason.

    Sent from my SM-G965U using Tapatalk

  6. #6
    NSI Member
    Join Date
    Dec 2015
    Location
    Indianapolis
    Posts
    104
    Done, thanks Zombie!


    Sent from my iPhone using Tapatalk

Similar Threads

  1. Code for light
    By Kodiak66 in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 08-26-2018, 17:06
  2. Review My Program Code for cabinet light with FEED A
    By Iufan in forum Misc Apex Usage & Programming
    Replies: 1
    Last Post: 07-13-2018, 20:45
  3. Code for light
    By MJNTWise in forum Apex Programming for Lighting
    Replies: 3
    Last Post: 07-11-2018, 17:08
  4. Help with code for hood light please
    By mmedeiros2 in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 03-01-2017, 02:52
  5. Light Scheduling code
    By Diazreeflife in forum Apex Programming for Lighting
    Replies: 9
    Last Post: 01-24-2014, 17:04

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
  •