Jan 15, 2020 #1 E Emon Active Member View Badges Joined Apr 29, 2019 Messages 119 Reaction score 92 What state or country do you live in New York Rating - 0% 0 0 0 Good evening, I’m trying to hook up a leak detector to turn on an outlet on my apex. I’m having trouble writing the code, any help would b appreciated
Good evening, I’m trying to hook up a leak detector to turn on an outlet on my apex. I’m having trouble writing the code, any help would b appreciated
Jan 15, 2020 #2 SuncrestReef That Apex guy View Badges Excellence Award Reef Tank 365 Article Contributor Reef Squad Emeritus Controller Advisor Joined Jan 18, 2018 Messages 4,214 Reaction score 9,251 Location Oregon Rating - 0% 0 0 0 Are you sure you want to turn it ON? If so, use this code: Set OFF If leakname CLOSED Then ON Just substitute "leakname" with your sensor name. You can rename the sensor if you like, but be aware sensor names are limited to 6 characters. Typically leak sensors are used to turn off pumps: Set ON If leakname CLOSED Then OFF Keep in mind the sequence of your code matters. The last line that evaluates True will set the output state. If you're new to the Apex, see my 8-part tutorial series: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-1.685/
Are you sure you want to turn it ON? If so, use this code: Set OFF If leakname CLOSED Then ON Just substitute "leakname" with your sensor name. You can rename the sensor if you like, but be aware sensor names are limited to 6 characters. Typically leak sensors are used to turn off pumps: Set ON If leakname CLOSED Then OFF Keep in mind the sequence of your code matters. The last line that evaluates True will set the output state. If you're new to the Apex, see my 8-part tutorial series: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-1.685/
Jan 15, 2020 #3 OP OP E Emon Active Member View Badges Joined Apr 29, 2019 Messages 119 Reaction score 92 What state or country do you live in New York Rating - 0% 0 0 0 When u write “then on” , I’m guessing I have to put the outlet name?
Jan 15, 2020 #4 SuncrestReef That Apex guy View Badges Excellence Award Reef Tank 365 Article Contributor Reef Squad Emeritus Controller Advisor Joined Jan 18, 2018 Messages 4,214 Reaction score 9,251 Location Oregon Rating - 0% 0 0 0 Emon said: When u write “then on” , I’m guessing I have to put the outlet name? Click to expand... No. You need to go into the settings for the outlet (commonly referred to as an Output in Apex terminology) and place the line of code there. Here's an example if you wanted to turn on an output named Drain if the sensor named Leak1 detects water:
Emon said: When u write “then on” , I’m guessing I have to put the outlet name? Click to expand... No. You need to go into the settings for the outlet (commonly referred to as an Output in Apex terminology) and place the line of code there. Here's an example if you wanted to turn on an output named Drain if the sensor named Leak1 detects water:
Jan 15, 2020 #5 OP OP E Emon Active Member View Badges Joined Apr 29, 2019 Messages 119 Reaction score 92 What state or country do you live in New York Rating - 0% 0 0 0 Thank u very much