line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Device::Inverter::Aurora::Strings; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
23
|
use 5.008008; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
37
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
36
|
|
5
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
592
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
require Exporter; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our @ISA = qw/Exporter/; |
12
|
|
|
|
|
|
|
our @EXPORT = qw/ |
13
|
|
|
|
|
|
|
%ProductNames |
14
|
|
|
|
|
|
|
%ProductSpec |
15
|
|
|
|
|
|
|
@TransmissionStates |
16
|
|
|
|
|
|
|
@GlobalStates |
17
|
|
|
|
|
|
|
@InverterStates |
18
|
|
|
|
|
|
|
@DCDCStates |
19
|
|
|
|
|
|
|
@AlarmStates |
20
|
|
|
|
|
|
|
@ConfigurationStrings |
21
|
|
|
|
|
|
|
/; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
our %ProductNames = ( |
24
|
|
|
|
|
|
|
'i' => 'Aurora 2 kW indoor', |
25
|
|
|
|
|
|
|
'o' => 'Aurora 2 kW outdoor', |
26
|
|
|
|
|
|
|
'I' => 'Aurora 3.6 kW indoor', |
27
|
|
|
|
|
|
|
'O' => 'Aurora 3.0-3.6 kW outdoor', |
28
|
|
|
|
|
|
|
'5' => 'Aurora 5.0 kW outdoor', |
29
|
|
|
|
|
|
|
'6' => 'Aurora 6 kW outdoor', |
30
|
|
|
|
|
|
|
'P' => '3-phase interface (3G74)', |
31
|
|
|
|
|
|
|
'C' => 'Aurora 50 kW module', |
32
|
|
|
|
|
|
|
'4' => 'Aurora 4.2 kW new', |
33
|
|
|
|
|
|
|
'3' => 'Aurora 3.6 kW new', |
34
|
|
|
|
|
|
|
'2' => 'Aurora 3.3 kW new', |
35
|
|
|
|
|
|
|
'1' => 'Aurora 3.0 kW new', |
36
|
|
|
|
|
|
|
'D' => 'Aurora 12.0 kW', |
37
|
|
|
|
|
|
|
'X' => 'Aurora 10 kW', |
38
|
|
|
|
|
|
|
); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our %ProductSpec = ( |
41
|
|
|
|
|
|
|
'A' => 'UL1741', |
42
|
|
|
|
|
|
|
'E' => 'VDE0126', |
43
|
|
|
|
|
|
|
'S' => 'DR 1663/2000', |
44
|
|
|
|
|
|
|
'I' => 'ENEL DK 5950', |
45
|
|
|
|
|
|
|
'U' => 'UK G83', |
46
|
|
|
|
|
|
|
'K' => 'AS 4777', |
47
|
|
|
|
|
|
|
'F' => 'VDE French Model', |
48
|
|
|
|
|
|
|
); |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
our @TransmissionStates = ( |
51
|
|
|
|
|
|
|
'Everything is OK', |
52
|
|
|
|
|
|
|
(undef)x50, # Placeholders |
53
|
|
|
|
|
|
|
'Command is not implemented', |
54
|
|
|
|
|
|
|
'Variable does not exist', |
55
|
|
|
|
|
|
|
'Variable value is out of range', |
56
|
|
|
|
|
|
|
'EEprom not accessible', |
57
|
|
|
|
|
|
|
'Cannot send the command to internal micro', |
58
|
|
|
|
|
|
|
'Command not Executed', |
59
|
|
|
|
|
|
|
'The variable is not available, retry', |
60
|
|
|
|
|
|
|
); |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
our @GlobalStates = ( |
63
|
|
|
|
|
|
|
'Sending Parameters', |
64
|
|
|
|
|
|
|
'Wait Sun/Grid', |
65
|
|
|
|
|
|
|
'Checking Grid', |
66
|
|
|
|
|
|
|
'Measuring Riso', |
67
|
|
|
|
|
|
|
'DcDc Start', |
68
|
|
|
|
|
|
|
'Inverter Turn-On', |
69
|
|
|
|
|
|
|
'Run', |
70
|
|
|
|
|
|
|
'Recovery', |
71
|
|
|
|
|
|
|
'Pause', |
72
|
|
|
|
|
|
|
'Ground Fault', |
73
|
|
|
|
|
|
|
'OTH Fault', |
74
|
|
|
|
|
|
|
'Address Setting', |
75
|
|
|
|
|
|
|
'Self Test', |
76
|
|
|
|
|
|
|
'Self Test Fail', |
77
|
|
|
|
|
|
|
'Sensor Test + Measure Riso', |
78
|
|
|
|
|
|
|
'Leak Fault', |
79
|
|
|
|
|
|
|
'Waiting for manual reset', |
80
|
|
|
|
|
|
|
'Internal Error E026', |
81
|
|
|
|
|
|
|
'Internal Error E027', |
82
|
|
|
|
|
|
|
'Internal Error E028', |
83
|
|
|
|
|
|
|
'Internal Error E029', |
84
|
|
|
|
|
|
|
'Internal Error E030', |
85
|
|
|
|
|
|
|
'Sending Wind Table', |
86
|
|
|
|
|
|
|
'Failed Sending Table', |
87
|
|
|
|
|
|
|
'UTH Fault', |
88
|
|
|
|
|
|
|
'Remote Off', |
89
|
|
|
|
|
|
|
'Interlock Fail', |
90
|
|
|
|
|
|
|
'Executing Autotest', |
91
|
|
|
|
|
|
|
undef, undef, |
92
|
|
|
|
|
|
|
'Waiting Sun', |
93
|
|
|
|
|
|
|
'Temperature Fault', |
94
|
|
|
|
|
|
|
'Fan Staucked', |
95
|
|
|
|
|
|
|
'Int. Com. Fail', |
96
|
|
|
|
|
|
|
'Slave Insertion', |
97
|
|
|
|
|
|
|
'DC Switch Open', |
98
|
|
|
|
|
|
|
'TRAS Switch Open', |
99
|
|
|
|
|
|
|
'MASTER Exclusion', |
100
|
|
|
|
|
|
|
'Auto Exclusion', |
101
|
|
|
|
|
|
|
(undef)x59, |
102
|
|
|
|
|
|
|
'Erasing Internal EEprom', |
103
|
|
|
|
|
|
|
'Erasing External EEprom', |
104
|
|
|
|
|
|
|
'Counting EEprom', |
105
|
|
|
|
|
|
|
'Freeze', |
106
|
|
|
|
|
|
|
); |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
our @InverterStates = ( |
109
|
|
|
|
|
|
|
'Stand By', |
110
|
|
|
|
|
|
|
'Checking Grid', |
111
|
|
|
|
|
|
|
'Run', |
112
|
|
|
|
|
|
|
'Bulk Over Voltage', |
113
|
|
|
|
|
|
|
'Out Over Current', |
114
|
|
|
|
|
|
|
'IGBT Sat', |
115
|
|
|
|
|
|
|
'Bulk Under Voltage', |
116
|
|
|
|
|
|
|
'Degauss Error', |
117
|
|
|
|
|
|
|
'No Parameters', |
118
|
|
|
|
|
|
|
'Bulk Low', |
119
|
|
|
|
|
|
|
'Grid Over Voltage', |
120
|
|
|
|
|
|
|
'Communication Error', |
121
|
|
|
|
|
|
|
'Degaussing', |
122
|
|
|
|
|
|
|
'Starting', |
123
|
|
|
|
|
|
|
'Bulk Cap Fail', |
124
|
|
|
|
|
|
|
'Leak Fail', |
125
|
|
|
|
|
|
|
'DcDc Fail', |
126
|
|
|
|
|
|
|
'Ileak Sensor Fail', |
127
|
|
|
|
|
|
|
'SelfTest: relay inverter', |
128
|
|
|
|
|
|
|
'SelfTest: wait for sensor test', |
129
|
|
|
|
|
|
|
'SelfTest: test relay DcDc + sensor', |
130
|
|
|
|
|
|
|
'SelfTest: relay inverter fail', |
131
|
|
|
|
|
|
|
'SelfTest: timeout fail', |
132
|
|
|
|
|
|
|
'SelfTest: relay DcDc fail', |
133
|
|
|
|
|
|
|
'Self Test 1', |
134
|
|
|
|
|
|
|
'Waiting self test start', |
135
|
|
|
|
|
|
|
'Dc Injection', |
136
|
|
|
|
|
|
|
'Self Test 2', |
137
|
|
|
|
|
|
|
'Self Test 3', |
138
|
|
|
|
|
|
|
'Self Test 4', |
139
|
|
|
|
|
|
|
'Internal Error (30)', |
140
|
|
|
|
|
|
|
'Internal Error (31)', |
141
|
|
|
|
|
|
|
(undef)x8, |
142
|
|
|
|
|
|
|
'Forbidden State', |
143
|
|
|
|
|
|
|
'Input UC', |
144
|
|
|
|
|
|
|
'Zero Power', |
145
|
|
|
|
|
|
|
'Grid Not Present', |
146
|
|
|
|
|
|
|
'Waiting Start', |
147
|
|
|
|
|
|
|
'MPPT', |
148
|
|
|
|
|
|
|
'Grid Fail', |
149
|
|
|
|
|
|
|
'Input OC', |
150
|
|
|
|
|
|
|
); |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
our @DCDCStates = ( |
153
|
|
|
|
|
|
|
'DcDc OFF', |
154
|
|
|
|
|
|
|
'Ramp Start', |
155
|
|
|
|
|
|
|
'MPPT', |
156
|
|
|
|
|
|
|
'not used', |
157
|
|
|
|
|
|
|
'Input Over Current', |
158
|
|
|
|
|
|
|
'Input Under Voltage', |
159
|
|
|
|
|
|
|
'Input Over Voltage', |
160
|
|
|
|
|
|
|
'Input Low', |
161
|
|
|
|
|
|
|
'No Parameters', |
162
|
|
|
|
|
|
|
'Bulk Over Voltage', |
163
|
|
|
|
|
|
|
'Communication Error', |
164
|
|
|
|
|
|
|
'Ramp Fail', |
165
|
|
|
|
|
|
|
'Internal Error', |
166
|
|
|
|
|
|
|
'Input mode Error', |
167
|
|
|
|
|
|
|
'Ground Fault', |
168
|
|
|
|
|
|
|
'Inverter Fail', |
169
|
|
|
|
|
|
|
'DcDc IGBT Sat', |
170
|
|
|
|
|
|
|
'DcDc ILEAK Fail', |
171
|
|
|
|
|
|
|
'DcDc Grid Fail', |
172
|
|
|
|
|
|
|
'DcDc Comm. Error', |
173
|
|
|
|
|
|
|
); |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
our @AlarmStates = ( |
176
|
|
|
|
|
|
|
'No Alarm', |
177
|
|
|
|
|
|
|
'Sun Low W001 (1)', |
178
|
|
|
|
|
|
|
'Input Over Current E001', |
179
|
|
|
|
|
|
|
'Input Under Voltage W002', |
180
|
|
|
|
|
|
|
'Input Over Voltage E002', |
181
|
|
|
|
|
|
|
'Sun Low W001 (5)', |
182
|
|
|
|
|
|
|
'No Parameters E003', |
183
|
|
|
|
|
|
|
'Bulk Over Voltage E004', |
184
|
|
|
|
|
|
|
'Comm. Error E005', |
185
|
|
|
|
|
|
|
'Output Over Current E006', |
186
|
|
|
|
|
|
|
'IGBT Sat E007', |
187
|
|
|
|
|
|
|
'Bulk UV W011', |
188
|
|
|
|
|
|
|
'Internal error E009', |
189
|
|
|
|
|
|
|
'Grid Fail W003', |
190
|
|
|
|
|
|
|
'Bulk Low E010', |
191
|
|
|
|
|
|
|
'Ramp Fail E011', |
192
|
|
|
|
|
|
|
'Dc/Dc Fail E012', |
193
|
|
|
|
|
|
|
'Wrong Mode E013', |
194
|
|
|
|
|
|
|
'Ground Fault (18)', |
195
|
|
|
|
|
|
|
'Over Temp. E014', |
196
|
|
|
|
|
|
|
'Bulk Cap Fail E015', |
197
|
|
|
|
|
|
|
'Inverter Fail E016', |
198
|
|
|
|
|
|
|
'Start Timeout E017', |
199
|
|
|
|
|
|
|
'Ground Fault E018 (23)', |
200
|
|
|
|
|
|
|
'Degauss error (24)', |
201
|
|
|
|
|
|
|
'Ileak Sens. fail E019', |
202
|
|
|
|
|
|
|
'DcDc Fail E012', |
203
|
|
|
|
|
|
|
'Self Test Error 1 E020', |
204
|
|
|
|
|
|
|
'Self Test Error 2 E021', |
205
|
|
|
|
|
|
|
'Self Test Error 3 E019', |
206
|
|
|
|
|
|
|
'Self Test Error 4 E022', |
207
|
|
|
|
|
|
|
'DC inj error E023', |
208
|
|
|
|
|
|
|
'Grid Over Voltage W004', |
209
|
|
|
|
|
|
|
'Grid Under Voltage W005', |
210
|
|
|
|
|
|
|
'Grid OF W006', |
211
|
|
|
|
|
|
|
'Grid UF W007', |
212
|
|
|
|
|
|
|
'Z grid Hi W008', |
213
|
|
|
|
|
|
|
'Internal error E024', |
214
|
|
|
|
|
|
|
'Riso Low E025', |
215
|
|
|
|
|
|
|
'Vref Error E026', |
216
|
|
|
|
|
|
|
'Error Meas V E027', |
217
|
|
|
|
|
|
|
'Error Meas F E028', |
218
|
|
|
|
|
|
|
'Error Meas I E029', |
219
|
|
|
|
|
|
|
'Error Meas Ileak E030', |
220
|
|
|
|
|
|
|
'Read Error V E031', |
221
|
|
|
|
|
|
|
'Read Error I E032', |
222
|
|
|
|
|
|
|
'Table fail W009', |
223
|
|
|
|
|
|
|
'Fan Fail W010', |
224
|
|
|
|
|
|
|
'UTH E033', |
225
|
|
|
|
|
|
|
'Interlock Fail', |
226
|
|
|
|
|
|
|
'Remote Off', |
227
|
|
|
|
|
|
|
'Vout Avg error', |
228
|
|
|
|
|
|
|
'Battery low', |
229
|
|
|
|
|
|
|
'Clk fail', |
230
|
|
|
|
|
|
|
'Input UC', |
231
|
|
|
|
|
|
|
'Zero Power', |
232
|
|
|
|
|
|
|
'Fan Stucked', |
233
|
|
|
|
|
|
|
'DC Switch Open', |
234
|
|
|
|
|
|
|
'Tras Switch Open', |
235
|
|
|
|
|
|
|
'AC Switch Open', |
236
|
|
|
|
|
|
|
'Bulk UV', |
237
|
|
|
|
|
|
|
'Autoexclusion', |
238
|
|
|
|
|
|
|
'Grid df/dt', |
239
|
|
|
|
|
|
|
'Den switch Open', |
240
|
|
|
|
|
|
|
'Jbox fail', |
241
|
|
|
|
|
|
|
); |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
our @ConfigurationStrings = ( |
244
|
|
|
|
|
|
|
'System operating with both strings.', |
245
|
|
|
|
|
|
|
'String 1 connected, String 2 disconnected.', |
246
|
|
|
|
|
|
|
'String 2 connected, String 1 disconnected.', |
247
|
|
|
|
|
|
|
); |
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
1; |