I am looking to control my return pump with that variable via the variable speed port and an optical sensor. What I would like to do is step down or up the pump by 10% based on the water level and continue to do so. For I would like it to run at 80% during normal operation. For some reason if the water gets low sets the pump at 70%, waits a minute, if still low sets to 60% etc.
I am making several assumptions based on the apex documentation when writing the code. If any are wrong please let me know:
1. The only way to control the variable speed port on the apex is with profiles. I would have to 11 profiles with PF_0, PF_10,...PF_100.
2. There is no way to get the profile or % the variable speed port is set to.
3. Virtual Outlets are only on or off (booleans). There is no way to store a number.
Based on these assumptions I think what I need to do is:
Create a bunch of virtual outputs (PUMP_10,PUMP_20,...)
In each virtual outputs configuration use the optical sensor status along with the current values of the other virtual outputs (this is where it gets tricky and could use some guidance) to set its value
For the return pump check these virtual outputs and turn on the corresponding profile. For example IF Output PUMP_10 THEN PF_10.
Any help would be greatly appreciated!!!
Bookmarks