I want to leave AC Out 2 on as normal when the grid is up but I want to override the normal behaviour of the system opening it when the grid is lost by closing the relay again 5 minutes after AC Input is lost unless the SOC is below 25%. If SOC subsequently drops below 25% I want the relay to open again too. Unfortunately the system controls the power supply for 17 people so I don’t really have the luxury of letting it reset repeatedly whilst I experiment with different assistants.
Researching the topic it is easy enough to find the few sphinx like pronouncements available on the issue - writing multiple assistants affecting one relay is common and order is critical, ON condition takes priority over OFF, multiple criteria in the ON (or OFF) list go by the OR principle, last assistant in the list wins, and (possibly) reversing logic might be helpful with the ON priority issue - but still there are various approaches that may or may not work depending on the finer details and I don’t wish to subject my tenants and their valued possessions to trying them all.
Once you write any assistant affecting a relay do you become completely responsible for the setting of that relay in all circumstances or are you only writing the changes to default behaviour that you want to see? If multiple conditions exist in one assistant does it become an AND or an OR situation within that assistant? If multiple assistants exist do subsequent ones completely override earlier ones and if that’s the case what can it possibly mean that ON conditions take priority when in any assistant there can only be an ON or an OFF - ie. the only way ON conditions can meaningfully take priority is in the case of multiple assistants? Under what conditions do things get re-evaluated - every time any condition in any assistant involving that relay is triggered all such assistants get triggered again in order or only those ones directly affected by changing conditions?
If multiple conditions within one assistant instance are combined as AND then it seems logical that I have one assistant to check SOC is high enough AND that AC Input has been unavailable for 5 minutes and then drive the relay on, whilst a second assistant can check if SOC is low AND AC Input has been unavailable for no time and leave it off instead. This does leave it undefined for some possibilities but if default behaviour kicks in anyway in those cases that’s fine.
If ON just takes priority no matter what else happens or in what sequence and there’s no way to AND anything then there would simply be no way to turn off on a low SOC because unavailability of AC for 5 minutes will win the argument by itself.
If there’s no way to AND but subsequent assistants can override an ON then do I switch it on if AC Input has been unavailable for 5 minutes and then off if SOC is low and execution order alone solves it? What happens if SOC changes subsequently though? And did I take over responsibility for even closing the relay when AC is present too?
The mind boggles at the varying interpretation possibilities here and community post after community post in the various different fora over the years reflects this confusion as different parties attempt to elucidate the logic by experimentation and deduction. Does anyone have the absolute answers though and can share them unequivocally?