PicoC controll power usage

63 views
Skip to first unread message

Espen Bø

unread,
Jan 11, 2016, 2:01:45 AM1/11/16
to Loxone English
Hello.

I was wondering if anyone who can PicoC can help me with this.
We are now getting effect tarifft on electricpower consumption, and must pay for the highest pick power used.

Therefore, I want a script that turn off electric effects when power consumption is above a set level.

Inputs:
Now value output in kW
Set max power in kW
Max time effekt is off.
Max time before power is allowed to be sef off again
Status of effect 1 (ex 1200W livingroom)
Status of effect 2 (ex 600W bedroom 1)
Status of effect 3 (ex 600W bedroom 2)
Status of effect 4 (ex 900W bedroom 3)
Status of effect 5 (ex 400W bedroom 4)
Status of effect 6 (ex 1600W bathroom)
Status of effect 7 (ex 500w hall)
Status of effect 8 (ex 3000W hot water heater)
Status of effect 9 (ex 200W Heating water pipes)

Outputs
Effect 1 (ex 1200W livingroom)
Effect 2 (ex 600W bedroom 1)
Effect 3 (ex 600W bedroom 2)
Effect 4 (ex 900W bedroom 3)
Effect 5 (ex 400W bedroom 4)
Effect 6 (ex 1600W bathroom)
Effect 7 (ex 500w hall)
Effect 8 (ex 3000W hot water heater)
Effect 9 (ex 200W Heating water pipes)


The functions, I think.

A pool (1) containing any effects in use. (Status)
When consumption is above the preset level. Screwed effect (s) that is closest to what is needed for and get below the set level of.
They are off so long as the "max time effect can be removed."
When this time has passed, be the effect (s) in the pool (2). Where they are lying to the "Max time power is out" has expired.
When the time in the "Max time power is out" has expired moved effect back to the pool (1) if it has "status on effect" on.
When consumption is higher value the same thing happens again, although one / multiple effects already located there. Or pool (2).

Thanks for all help
Reply all
Reply to author
Forward
0 new messages