Vestas Wind Turbine Configuration definition
StripVT100
Read \x1b\[[0-9;]*[a-zA-Z]
will strip all VT100 commands from the input before pattern matching
Farm
Read FARM TOTAL : *(\d+) kW *(\d+),(\d+)m/s
Long Power $1
Real Wind $2.$3
will match
FARM TOTAL : 1964 kW 10,8m/s
Turbine[A,Z]
Read ([A-Z]): *VMP-NO:(\d+) *FARM: *(\d+), *CURRENT DATA\s*\
R-RPM: *(\d+), *STATUS: *(\w), *BRAKE: *(\w+), *WIND: *(\d+),(\d+)m/s, *YAW: *(.), *GEN: *(.), *PWR.: *(\d+)kW\s*\
(\w+) *(\d+)/(\d+) *(\d+):(\d+)\s*\
G-RPM: *(\d+) *RPM, *MAX: *(\d+) *RPM\s*\
VOLTAGE : *(\d+), *(\d+), *(\d+) *VOLT\s*\
CURRENT : *(\d+), *(\d+), *(\d+) *AMP\s*\
TEMPERATURE *g : *(\d+)ø *Max: *(\d+)ø, *G *: *(\d+)ø *Max: *(\d+)ø\s*\
TEMPERATUREGEAR: *(\d+)ø *Max: *(\d+)ø, *HYDR: *(\d+)ø *Max: *(\d+)ø\s*\
COS: *(\d+),(\d+) *PITCH: *([-+])\s*(\d+)ø\s*\
10 *min. *AVG.: *(\d+),(\d+)kW *(\d+),(\d+)m/s\s*\
PRODUCTION G: *(\d+) *kWh, *(\d+) *h\s*\
PRODUCTION g: *(\d+) *kWh, *(\d+) *h\s*\
TOTAL *: *(\d+) *kWh, *(\d+)/(\d+) *-(\w+)
Index $1
Word vmpno $2
Word farm $3
Word rrpm $4
String status[2] $5
String brake[5] $6
Real wind $7.$8
String yaw[2] $9
String gen[2] $10
Word power $11
String state[5] $12
Word day $13
Word month $14
Word hour $15
Word minute $16
Word grpm $17
Word maxrpm $18
Word volt1 $19
Word volt2 $20
Word volt3 $21
Word current1 $22
Word current2 $23
Word current3 $24
Word tempg $25
Word tempgmax $26
Word tempg1 $27
Word tempg2max $28
Word tempgear $29
Word tempgearmax $30
Word temphydr $31
Word temphydrmax $32
Real cos $33.$34
Word pitch $35$36
Real avgpower $37.$38
Real avgspeed $39.$40
Long production1 $41
Long productionhour1 $42
Long production2 $43
Long productionhour2 $44
Long totalproduction $45
Output 2
will match
A: VMP-NO:7629 FARM: 1, CURRENT DATA
R-RPM: 30, STATUS: A, BRAKE: OFF, WIND: 11,6m/s, YAW: ^, GEN: G, PWR.: 328kW
OK 2/8 10:20
G-RPM:1824 RPM, MAX: 1923 RPM
VOLTAGE : 283, 283, 282 VOLT
CURRENT : 393, 396, 390 AMP
TEMPERATURE g :205ø Max:155ø, G : 81ø Max:155ø
TEMPERATUREGEAR: 58ø Max: 80ø, HYDR: 47ø Max: 65ø
COS: 0,989 PITCH: + 1ø
10 min. AVG.:271,5kW 9,2m/s
PRODUCTION G:1736984 kWh, 7104 h
PRODUCTION g: 0 kWh, 0 h
TOTAL : 1736984 kWh, 19/11-97
the "Output 2" will sent a '2' which will cause the data for the next turbine to be received.
example of variables
device.turbine3.avgpower
device.turbine2.avgspeed
Overview[A,Z]
Read ([A-Z]): *(\d+) *(\w) *(\w+) *(\d+),(\d+) *m/s *(.) *(.) *(\d+)kW
Index $1
Word rpm $2
String status[2] $3
String brake[4] $4
Real speed $5.$6
String yaw[2] $7
String generator[2] $8
Word power $9
Output 2
Will match
R-RPM STATUS BRAKE WIND YAW GENERATOR POWER
A: 30 A OFF 9,3 m/s ^ G 330kW
B: 30 A OFF 7,3 m/s ^ G 179kW
C: 28 A OFF 10,4 m/s ^ G 529kW
D: 29 A OFF 11,9 m/s ^ G 650kW
E: 43 A OFF 6,2 m/s ^ G 61kW
vestas.def |