forked from stik79/DeltaPVOutput
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdelta33Inv.py
executable file
·36 lines (32 loc) · 1.44 KB
/
delta33Inv.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from Inverter import Inverter
class Delta33G3Inverter(Inverter):
#Known Commands
##code, name, format, divisor, units, response size
cmds = [
['\x00\x09','Serial',11,0,'',100],
['\x10\x07','Date Code',11,0,'',100],
['\x10\x01','DC Cur1',0,10.0,'A',100],
['\x10\x02','DC Volts1',0,1,'V',100],
['\x10\x03','DC Pwr1',0,1,'W',100],
['\x10\x04','DC Cur2',0,10.0,'A',100],
['\x10\x05','DC Volts2',0,1,'V',100],
['\x10\x06','DC Pwr2',0,1,'W',100],
['\x10\x08','AC Volts',0,1,'V',100],
['\x10\x09','AC Power',0,1,'W',100],
['\x11\x07','AC I Avg',0,10.0,'A',100],
['\x11\x08','AC V Avg',0,1,'V',100],
['\x11\x09','AC P Avg',0,1,'W',100],
['\x13\x03','Day Wh',0,1,'Wh',100],
['\x13\x04','Uptime',0,1,'min',100],
['\x00\x01','01',1,0,'',100],
['\x00\x02','02',0,1,'',100],
['\x00\x03','03',0,1,'',100],
['\x00\x04','04',11,0,'',100],
['\x00\x05','05',11,0,'',100],
['\x00\x06','06',0,1,'',100],
['\x00\x07','07',11,0,'',100],
['\x00\x08','08',11,0,'',100],
['\x00\x40','FW Version',10,0,'',100],
['\x20\x05','AC Temp',0,1,'o',100],
['\x21\x08','DC Temp',0,1,'o',100]
]