forked from gavinying/modpoll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgen notes
158 lines (134 loc) · 8.13 KB
/
gen notes
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
On page Desrriptoins of each function, page 24, it says that there is a limit to 125 registers
but
Wer
Generaral status page 3
The shutdown flag on a control unit indicates that one or more of the alarm codes has been set to ‘shutdown alarm’, it will clear
automatically when no alarm codes are set to shutdown alarm. A system control function is used to clear shutdown alarms. In some
situations it may not be possible to set one of the alarm codes to indicate the type of shutdown alarm because
the type is not known,
Registser 774 =
Register 6 Control unit not configured No Yes 16/16
Unimplemented 0 0 15/16
Control unit failure No Yes 14/16
Shutdown alarm active No Yes 13/16
Electrical trip No Yes 12/16
Warning alarm active No Yes 11/16
Telemetry alarm flag Not active Active 10/16
Satellite telemetry alarm flag Not active Active 9/16
No font file No Yes 8/16
Controlled shutdown alarm active No Yes 7/16
in this case only the shutdown flag will be set and the client should consider it an undefined shutdown alarm.
Pull yaml from a URL
Reparse yaml every X
Dictionary Maps int to string
Dictionary Maps int to NotUsed
When looking at bch5 gen 3
+--------------------------------------+------+---------+-------+
| name | unit | address | value |
+--------------------------------------+------+---------+-------+
| Battery_voltage_____________________ | Deg | 1029 | 138 |
| dsElement!Engine_Battery_voltage!___ | V | 1029 | 138 |
| dsElement!Fuel_level!_______________ | % | 1027 | 3600 | xx
| dsElement!Coolant_temperature!______ | DegC | 1025 | 600 | xx
| dsElement!Oil_pressure!_____________ | psi | 1024 | 0 | xx -0.14
| dsElement!Engine_speed!_____________ | RPM | 1030 | 1179 | rpm shows 3594
| dsElement!Generator_frequency!______ | Hz | 1031 | 0 | 59.91
| dsElement!Generator_L1-L2_voltage! | V | 1038 | 236.7 |
| dsElement!Generator_L2-L3_voltage! | V | 1040 | -0.1 |
| dsElement!Generator_L3-L1_voltage! | V | 1042 | -0.1 |
| dsElement!Generator_L1_current! | A | 1044 | 4.2 |
| dsElement!Generator_L2_current! | A | 1046 | 0 |
| dsElement!Generator_L3_current! | A | 1048 | -0.1 |
+--------------------------------------+------+---------+-------+
when looking at bch5 gen 0
+--------------------------------------+------+---------+-------+
| name | unit | address | value |
+--------------------------------------+------+---------+-------+
| Battery_voltage_____________________ | Deg | 1029 | 129 |
| dsElement!Engine_Battery_voltage!___ | V | 1029 | 129 |
| dsElement!Fuel_level!_______________ | % | 1027 | -5 | nothing there
| dsElement!Coolant_temperature!______ | DegC | 1025 | 0 |
| dsElement!Oil_pressure!_____________ | psi | 1024 | 0 |
| dsElement!Engine_speed!_____________ | RPM | 1030 | 0 |
| dsElement!Generator_frequency!______ | Hz | 1031 | 0 |
| dsElement!Generator_L1-L2_voltage! | V | 1038 | 0 |
| dsElement!Generator_L2-L3_voltage! | V | 1040 | 0 |
| dsElement!Generator_L3-L1_voltage! | V | 1042 | 0 |
| dsElement!Generator_L1_current! | A | 1044 | 0 |
| dsElement!Generator_L2_current! | A | 1046 | 0 |
| dsElement!Generator_L3_current! | A | 1048 | 0 |
+--------------------------------------+------+---------+-------+
+---------------------------------------+------+---------+-------+
| name | unit | address | value |
+---------------------------------------+------+---------+-------+
| dsElement!Engine_Battery_voltage!____ | V | 1029 | 138 | y
| dsElement!Charge_alternator_voltage!_ | V | 1028 | 3600 |
| dsElement!Engine_speed!______________ | V | 1030 | 600 |
| dsElement!Fuel_level!_______________ | % | 1027 | 0 |y
| dsElement!Coolant_temperature!______ | DegC | 1025 | 1175 | should be 0
| dsElement!Oil_pressure!_____________ | psi | 1024 | 0 | should be -0.14
| dsElement!Generator_frequency!______ | Hz | 1031 | 1181 | 59/91
| dsElement!Generator_L1-L2_voltage! | V | 1038 | 236.1 |y
| dsElement!Generator_L2-L3_voltage! | V | 1040 | -0.1 |y
| dsElement!Generator_L3-L1_voltage! | V | 1042 | -0.1 |y
| dsElement!Generator_L1_current! | A | 1044 | 4.4 |y
| dsElement!Generator_L2_current! | A | 1046 | 0 |y
| dsElement!Generator_L3_current! | A | 1048 | -0.1 |y
+---------------------------------------+------+---------+-------+
Done.
ize:60... SUCCESS
===== references from device: MSChargeControler =====
+---------------------------------------+------+---------+-------+
| name | unit | address | value |
+---------------------------------------+------+---------+-------+
| dsElement!Engine_Battery_voltage!____ | V | 1029 | 138 |
| dsElement!Charge_alternator_voltage!_ | V | 1028 | 3534 | this is engine speed
| dsElement!Engine_speed!______________ | V | 1030 | 589 | this is engine frequency
| dsElement!Fuel_level!_______________ | % | 1027 | 0 |
| dsElement!Coolant_temperature!______ | DegC | 1025 | 1196 | this is power factor
| dsElement!Oil_pressure!_____________ | psi | 1024 | 0 |
| dsElement!Generator_frequency!______ | Hz | 1031 | 1197 |
| dsElement!Generator_L1-L2_voltage! | V | 1038 | 239.4 |
| dsElement!Generator_L2-L3_voltage! | V | 1040 | -0.1 |
| dsElement!Generator_L3-L1_voltage! | V | 1042 | -0.1 |
| dsElement!Generator_L1_current! | A | 1044 | 18.3 |
| dsElement!Generator_L2_current! | A | 1046 | 15.2 |
| dsElement!Generator_L3_current! | A | 1048 | -0.1 |
+---------------------------------------+------+---------+-------+
Done.
+---------------------------------------+------+---------+-------+
| name | unit | address | value |
+---------------------------------------+------+---------+-------+
| Battery_voltage_____________________ | Deg | 1029 | 138 |
| dsElement!Engine_Battery_voltage!____ | V | 1029 | 138 |
| dsElement!Charge_alternator_voltage!_ | V | 1028 | 3534 |
| dsElement!Engine_speed!______________ | V | 1030 | 589 |
| dsElement!Fuel_level!_______________ | % | 1027 | 0 |
| dsElement!Coolant_temperature!______ | DegC | 1025 | 1193 |
| dsElement!Oil_pressure!_____________ | psi | 1024 | 0 |
| dsElement!Generator_frequency!______ | Hz | 1031 | 1199 |
| dsElement!Generator_L1-L2_voltage! | V | 1038 | 238.9 |
| dsElement!Generator_L2-L3_voltage! | V | 1040 | -0.1 |
| dsElement!Generator_L3-L1_voltage! | V | 1042 | -0.1 |
| dsElement!Generator_L1_current! | A | 1044 | 18.3 |
| dsElement!Generator_L2_current! | A | 1046 | 15.1 |
| dsElement!Generator_L3_current! | A | 1048 | -0.1 |
| name | unit | address | value |
+---------------------------------------+------+---------+-------+
| Battery_voltage_____________________ | Deg | 1029 | 138 |
| dsElement!Oil_pressure!_____________ | DegC | 1024 | -1 |
| dsElement!Generator_frequency!______ | Hz | 1031 | 598 |
| dsElement!Coolant_temperature!______ | DegC | 1025 | 0 |
| dsElement!Oil_temperature!__________ | DegC | 1026 | 1168 |
| dsElement!Fuel_level!_______________ | % | 1027 | 0 |
| dsElement!Charge_alternator_voltage!_ | V | 1028 | 1174 |
| dsElement!Engine_Battery_voltage!____ | V | 1029 | -1 |
| dsElement!Engine_speed!______________ | V | 1030 | 65535 |
| dsElement!Generator_L1-L2_voltage! | V | 1038 | 234.5 |
| dsElement!Generator_L2-L3_voltage! | V | 1040 | -0.1 |
| dsElement!Generator_L3-L1_voltage! | V | 1042 | -0.1 |
| dsElement!Generator_L1_current! | A | 1044 | 3.7 |
| dsElement!Generator_L2_current! | A | 1046 | 0 |
| dsElement!Generator_L3_current! | A | 1048 | -0.1 |
+---------------------------------------+------+---------+-------+
Done.