# Beginner Questions

**URL:** <https://community.openems.io/t/beginner-questions/432>\
**Category:** English Forum\
**Created:** [February 18, 2021, 3:52pm UTC](https://community.openems.io/t/beginner-questions/432 "2021-02-18T15:52:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stefan.feilmeier](https://community.openems.io/user_avatar/community.openems.io/stefan.feilmeier/32/2585_2.png) [@stefan.feilmeier](https://community.openems.io/u/stefan.feilmeier)\
**Post date:** [February 19, 2021, 7:51am UTC](https://community.openems.io/t/beginner-questions/432/2 "2021-02-19T07:51:52Z")

</div>

Hi Carlos,

Thanks for getting in touch. Power is not actually ‘sent to grid’. It rather follows the simple formula that in each point in time `Consumption = Grid + Production + Storage` (where Grid and Storage may also be negative values, meaning ‘sell-to-grid’ or ‘charge battery’ respectively). I posted some slides of my lecture a while ago here (sorry - German): [FH Kiel: Pro 9-12 + OpenEMS Potential](https://community.openems.io/t/fh-kiel-pro-9-12-openems-potential/312/4).

With this formula in mind we can control:

- charge/discharge the battery
- curtail photovoltaics production
- start additional generators
- start/stop/reduce consumption
- …

and as a result the grid exchange power will change. And this is what OpenEMS Controllers do.In our Gidpod Live-Demo you can play with this yourself, using OpenEMS as a simulator:

> **[Gitpod – Dev environments built for the cloud](https://gitpod.io/#https://github.com/OpenEMS/openems/tree/master)**
>
> Gitpod streamlines developer workflows by providing prebuilt, collaborative development environments in your browser – powered by VS Code.

For your use-case you could write a Controller that evaluates with how much power you would want to charge/discharge any of your storage systems (e.g. stop at 80 %). The rest is solved by physicis 😉

Regards,  
Stefan

---

_[View the full topic](https://community.openems.io/t/beginner-questions/432)._
