Class to manipulate Multi MPPT Model registers. More...
#include <MultiMpptModel.h>
Public Member Functions | |
bool | IsMultiMpptRegisterMap (void) |
bool | GetDcCurrent (double &res, const int string_id=1) |
bool | GetDcVoltage (double &res, const int string_id=1) |
bool | GetDcPower (double &res, const int string_id=1) |
bool | GetDcEnergyLifetime (double &res, const int string_id=1) |
Public Member Functions inherited from SunSpec | |
SunSpec (void) | |
virtual | ~SunSpec (void) |
std::string | GetErrorMessage (void) const |
bool | ConnectModbusTcp (const std::string &node, const std::string &service="502") |
bool | ConnectModbusRtu (const std::string &device, const int &baud_rate=9600) |
void | SetModbusDebug (const bool &debug) |
bool | SetModbusAddress (const int &slave_id=1) |
bool | GetModbusAddress (int &slave_id) |
bool | SetResponseTimeout (const int &millis=500) |
bool | GetResponseTimeout (int &millis) |
bool | SetByteTimeout (const int &millis=500) |
bool | GetByteTimeout (int &millis) |
bool | SetIndicationTimeout (const int &millis=0) |
bool | GetIndicationTimeout (int &millis) |
bool | SetErrorRecovery (const bool recovery) |
template<> | |
std::string | ConvertRegister (const uint16_t *tab_reg, const uint16_t &size) |
template<> | |
float | ConvertRegister (const uint16_t *tab_reg, const uint16_t &size) |
Additional Inherited Members | |
Protected Member Functions inherited from SunSpec | |
template<typename T > | |
bool | GetRegister (T &res, const uint16_t ®_addr, const uint16_t &size) |
bool | SetRegister (const uint16_t &value, const uint16_t ®_addr) |
Protected Attributes inherited from SunSpec | |
std::string | ErrorMessage |
Class to manipulate Multi MPPT Model registers.
bool MultiMpptModel::GetDcCurrent | ( | double & | res, |
const int | string_id = 1 |
||
) |
DC current
res | DC current [A] |
string_id | string 1 (default) or string 2 |
bool MultiMpptModel::GetDcEnergyLifetime | ( | double & | res, |
const int | string_id = 1 |
||
) |
DC lifetime energy
res | DC energy [kWh] |
string_id | string 1 (default) or string 2 |
bool MultiMpptModel::GetDcPower | ( | double & | res, |
const int | string_id = 1 |
||
) |
DC power
res | DC power [W] |
string_id | string 1 (default) or string 2 |
bool MultiMpptModel::GetDcVoltage | ( | double & | res, |
const int | string_id = 1 |
||
) |
DC voltage
res | DC voltage [V] |
string_id | string 1 (default) or string 2 |
bool MultiMpptModel::IsMultiMpptRegisterMap | ( | void | ) |
Checks if device has a SunSpec Multi MPPT register map