model101

package
v0.0.0-...-1daccfa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2023 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ModelID          = 101
	ModelLabel       = "Inverter (Single Phase)"
	ModelDescription = "Include this model for single phase inverter monitoring"
)
View Source
const (
	A       = "A"
	A_SF    = "A_SF"
	AphA    = "AphA"
	AphB    = "AphB"
	AphC    = "AphC"
	DCA     = "DCA"
	DCA_SF  = "DCA_SF"
	DCV     = "DCV"
	DCV_SF  = "DCV_SF"
	DCW     = "DCW"
	DCW_SF  = "DCW_SF"
	Evt1    = "Evt1"
	Evt2    = "Evt2"
	EvtVnd1 = "EvtVnd1"
	EvtVnd2 = "EvtVnd2"
	EvtVnd3 = "EvtVnd3"
	EvtVnd4 = "EvtVnd4"
	Hz      = "Hz"
	Hz_SF   = "Hz_SF"
	PF      = "PF"
	PF_SF   = "PF_SF"
	PPVphAB = "PPVphAB"
	PPVphBC = "PPVphBC"
	PPVphCA = "PPVphCA"
	PhVphA  = "PhVphA"
	PhVphB  = "PhVphB"
	PhVphC  = "PhVphC"
	St      = "St"
	StVnd   = "StVnd"
	TmpCab  = "TmpCab"
	TmpOt   = "TmpOt"
	TmpSnk  = "TmpSnk"
	TmpTrns = "TmpTrns"
	Tmp_SF  = "Tmp_SF"
	VA      = "VA"
	VA_SF   = "VA_SF"
	VAr     = "VAr"
	VAr_SF  = "VAr_SF"
	V_SF    = "V_SF"
	W       = "W"
	WH      = "WH"
	WH_SF   = "WH_SF"
	W_SF    = "W_SF"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Block101

type Block101 struct {
	A       uint16              `sunspec:"offset=0,sf=A_SF"`
	AphA    uint16              `sunspec:"offset=1,sf=A_SF"`
	AphB    uint16              `sunspec:"offset=2,sf=A_SF"`
	AphC    uint16              `sunspec:"offset=3,sf=A_SF"`
	A_SF    sunspec.ScaleFactor `sunspec:"offset=4"`
	PPVphAB uint16              `sunspec:"offset=5,sf=V_SF"`
	PPVphBC uint16              `sunspec:"offset=6,sf=V_SF"`
	PPVphCA uint16              `sunspec:"offset=7,sf=V_SF"`
	PhVphA  uint16              `sunspec:"offset=8,sf=V_SF"`
	PhVphB  uint16              `sunspec:"offset=9,sf=V_SF"`
	PhVphC  uint16              `sunspec:"offset=10,sf=V_SF"`
	V_SF    sunspec.ScaleFactor `sunspec:"offset=11"`
	W       int16               `sunspec:"offset=12,sf=W_SF"`
	W_SF    sunspec.ScaleFactor `sunspec:"offset=13"`
	Hz      uint16              `sunspec:"offset=14,sf=Hz_SF"`
	Hz_SF   sunspec.ScaleFactor `sunspec:"offset=15"`
	VA      int16               `sunspec:"offset=16,sf=VA_SF"`
	VA_SF   sunspec.ScaleFactor `sunspec:"offset=17"`
	VAr     int16               `sunspec:"offset=18,sf=VAr_SF"`
	VAr_SF  sunspec.ScaleFactor `sunspec:"offset=19"`
	PF      int16               `sunspec:"offset=20,sf=PF_SF"`
	PF_SF   sunspec.ScaleFactor `sunspec:"offset=21"`
	WH      sunspec.Acc32       `sunspec:"offset=22,sf=WH_SF"`
	WH_SF   sunspec.ScaleFactor `sunspec:"offset=24"`
	DCA     uint16              `sunspec:"offset=25,sf=DCA_SF"`
	DCA_SF  sunspec.ScaleFactor `sunspec:"offset=26"`
	DCV     uint16              `sunspec:"offset=27,sf=DCV_SF"`
	DCV_SF  sunspec.ScaleFactor `sunspec:"offset=28"`
	DCW     int16               `sunspec:"offset=29,sf=DCW_SF"`
	DCW_SF  sunspec.ScaleFactor `sunspec:"offset=30"`
	TmpCab  int16               `sunspec:"offset=31,sf=Tmp_SF"`
	TmpSnk  int16               `sunspec:"offset=32,sf=Tmp_SF"`
	TmpTrns int16               `sunspec:"offset=33,sf=Tmp_SF"`
	TmpOt   int16               `sunspec:"offset=34,sf=Tmp_SF"`
	Tmp_SF  sunspec.ScaleFactor `sunspec:"offset=35"`
	St      sunspec.Enum16      `sunspec:"offset=36"`
	StVnd   sunspec.Enum16      `sunspec:"offset=37"`
	Evt1    sunspec.Bitfield32  `sunspec:"offset=38"`
	Evt2    sunspec.Bitfield32  `sunspec:"offset=40"`
	EvtVnd1 sunspec.Bitfield32  `sunspec:"offset=42"`
	EvtVnd2 sunspec.Bitfield32  `sunspec:"offset=44"`
	EvtVnd3 sunspec.Bitfield32  `sunspec:"offset=46"`
	EvtVnd4 sunspec.Bitfield32  `sunspec:"offset=48"`
}

func (*Block101) GetId

func (block *Block101) GetId() sunspec.ModelId

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL