A simple, logical battery which stores and discharges electricity.
The input signal (W_setpoint) drives the battery attempt to charge or discharge.
- W_setpoint = Negative | Mode = Discharge (port.W = negative)
- W_setpoint = Positive | Mode = Charge (port.W = positive)