LIBSUNSPEC  v0.1.6
A C++ library for the SunSpec protocol
NameplateModel Class Reference

Class to manipulate Nameplate Model registers. More...

#include <NameplateModel.h>

Inheritance diagram for NameplateModel:
SunSpec FroniusInverter

Public Member Functions

bool IsNameplateRegisterMap (void)
 
bool GetPowerOutputMax (double &res)
 
bool GetPowerApparentMax (double &res)
 
bool GetPowerReactiveMax (double &res, const int quadrant)
 
bool GetAcCurrentMax (double &res)
 
bool GetPowerFactorMin (double &res, const int quadrant)
 
- 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 &reg_addr, const uint16_t &size)
 
bool SetRegister (const uint16_t &value, const uint16_t &reg_addr)
 
- Protected Attributes inherited from SunSpec
std::string ErrorMessage
 

Detailed Description

Class to manipulate Nameplate Model registers.

Author
Alexander Pohl alex@.nosp@m.ahpo.nosp@m.hl.co.nosp@m.m

Member Function Documentation

bool NameplateModel::GetAcCurrentMax ( double &  res)

Maximum RMS AC current level capability of the inverter.

Returns
AC current [A]
bool NameplateModel::GetPowerApparentMax ( double &  res)

Continuous Volt-Ampere capability of the inverter.

Returns
apparent power [VA]
bool NameplateModel::GetPowerFactorMin ( double &  res,
const int  quadrant 
)

Minimum power factor capability of the inverter.

Parameters
respower factor [cos(phi)]
quadrantquadrant [1-4]
bool NameplateModel::GetPowerOutputMax ( double &  res)

Continuous power output capability of the inverter.

Returns
power output [W]
bool NameplateModel::GetPowerReactiveMax ( double &  res,
const int  quadrant 
)

Continuous VAR capability of the inverter.

Parameters
resreactive power [VAr]
quadrantquadrant [1-4]
bool NameplateModel::IsNameplateRegisterMap ( void  )

Checks if device has a SunSpec nameplate register map


The documentation for this class was generated from the following files: