rasProject_01 / weSweetHome  R. 240
process control       /     RasPi software         by   weinert-automation
Loading...
Searching...
No Matches
valFilVal_t Struct Reference

Smart meters' and other process values. More...

#include <sweetHome.h>

Data Fields

float batVolt
 Battery voltage by esp8266 module and MQTT. More...
 
uint8_t by [12]
 Relays, outputs and states. More...
 
float chStLimit
 Actual charging station current limit. More...
 
float fLine
 last valid power line frequency
 
float groVoltP
 Growatt panel (DC) voltage.
 
float growLoss
 Growatt inverter loss negative: all values invalid.
 
float groWorkD
 Growatt work of the current day.
 
float groWorkS
 Growatt total inverter work.
 
float growPow
 Growatt line power.
 
float growTemp
 Growatt inverter temperature.
 
int hourOffs
 actual offset in hours of local time zone (+ is east)
 
uint16_t ms
 ms supplement to stmpS
 
float pAll
 all power sum (all meters were read OK)
 
float pBatUnl
 battery unload power ( + unload, since 7.2020: - load)
 
float pGiveAway
 PstdW - Pwaste (all meters were read OK)
 
float phPckLimit
 Actual phase packet switch power limit (/W) water boiler. More...
 
float phPckpower
 actual phase packet switch power (/W)
 
float pSolar
 solar power (w/o Growatt) only, w/o bat unload
 
float pWaste
 battery load and other waste; negative to be waste
 
char rTmTxt [34]
 local time as text; length is 32
 
uint32_t stmpS
 epoch time; s since 1.1.1970 (until 7.2.2106)
 
uint32_t stmpS1stStartSol
 epoch time stamp for 1st solar power ON
 
uint32_t stmpSCurStartSol
 time stamp for current/last solar power ON
 
uint32_t stmpSLstStopSol
 time stamp for current/last solar power OFF
 
int tempPipe
 Temperature dto.; (hot water pipe, forward feed)
 
int tempTankBott
 Temperature in 1/1000 grdC; (tank bottom)
 
int tempTankTop
 Water temperature in 1/1000 grdC; (tank top)
 
float wSumExp
 sum of export work (all meters were read OK)
 
float wSumIn
 sum of import work (all meters were read OK)
 

Detailed Description

Smart meters' and other process values.

This structure unites all (two, ANZmodSLAVES) smart meter readings as a meterVal_t array plus some common evaluation and process control values.

The four timing data will mark the the evaluation and forwarding time of the complete structure/information. For the meter read times see the equivalent data in the structure .meterVal, which will be 300 .. 600ms older for the meter's latest read (+1s for every other meter read earlier).

Field Documentation

◆ by

uint8_t by[12]

Relays, outputs and states.

Byte 0 : relays (8..1 in bit 7..0) Bits 7..0: P..W_S.uX
Byte 1 : power module voltage PWM: 0 = lowest; 255 = highest
Byte 2 : outputs (open drain) Bits 7..0: P234_xHIB
Byte 3 : error 0: OK; 1,2,3: meter 0,1,both;
Byte 4 : stateBits Bits 7..0: UBLK_wWGS
Byte 5 : phase packet switch PhPckSw power: 0..200 (%)
Byte 6 : state2Bits (PPS manual, limits, h2 Bits 7..0: M-PL_--fh
: P: power at Limit L, L: limit L at it's max, fh: heater2 at full /
: half power; ph: number of phases used by E-Car: 1..3 (default:3)
Byte 7 : chStBits man, ball, carCon, .Pow | _ nPh (1..6)
Byte 8 : c2StBits | iLim _ phLimH phLimLo

◆ batVolt

float batVolt

Battery voltage by esp8266 module and MQTT.

The value by ESP and MQTT will be corrected by ESP_U_CORR. battery voltage by esp8266 module and MQTT

◆ phPckLimit

float phPckLimit

Actual phase packet switch power limit (/W) water boiler.

Surplus solar energy will be put in a battery storage, in charging an electric car and in the hot water tank, automatically. This ensures in-house-consumption (Eigenverbrauch).

Of all these the water boiler has the highest capacity and mid range power. Most important for Eigenverbrauch is its virtually unlimited availability and fast and fine grained power control. phPckpower is the current value and phPckLimit the actual limit (/W) for heating water.

Start value: PCK_POWER_LIM_DEF

◆ chStLimit

float chStLimit

Actual charging station current limit.

The value is the limit in A per phase set for E-Cars loading their drive batteries. The number of phases depend on the car's loading electronics (hence on data not seldom hard to find). One car may use 1 to 3 phases.

With two cars connected one may have 2..6 phases used. Both cars would get the same current limit, i.e. control pilot (CP) pulse width (PWM). The value (which can't be less than 6A) is an upper limit the cars must obey but the may draw any lower value down to zero. Hence, few cars are no means for fine grained surplus power consumption.

The power limit set so is chStLimit * 230V * nOfPhases (by), where the last factor may be not known. actual charging station current limit (/A every phase)


The documentation for this struct was generated from the following file: