Gamesa Wind Turbines
Purpose
This plugin will read from the Gamesa Data Historian via ODBC. The Gamesa Historian is a Microsoft SQL Server.
Configuration of the Ardexa Edge Device
Ensure you have read a copy of the manufacturer's operating and safety manual. Please review the manual for safety instructions. Ardexa uses the Gamesa Historian to read live and historical data. The Historian uses a Microsoft SQL Server to store the data. It is available from TCP Port 1433 on the IP address for which the Gamesa Historian server is located. Access to the data is via userid and password to a specific database. Once the Ardexa edge device is installed on the plant's network, verify that it can "ping" the Gamesa Historian using the following command in the REMOTE SHELL (replace the IP address with the IP address of the Historian Server):
Also, check that the TCP Port for the Gamesa Historian is open. You can do this using the REMOTE SHELL, using the nmap command as follows.
Generally speaking, most firewalls are stateful. This means that once you allow outgoing connections, the firewall will recognise responses coming back from the Internet and let them pass despite the fact that there is no explicit rule to allow incoming data. Some older Gamesa installations may require additional rules to allow the Ardexa machine to work correctly. So be aware that;
The firewall may not be stateful and therefore explicit incoming rules need to be created to allow replies to come back through the firewall (5671/tcp, 53/udp)
DNS uses UDP which is not a "connection orientated" protocol and while modern routers handle it just fine. Some Gamesa sites might be old enough to require explicit rules to allow DNS.
At the Wind park, Gamesa sometimes sets up the Ardexa devices in the following way. Use the ifconfig
or ip a
command to check the interfaces.
LAN A: Internet with an IP address allocated by DHCP
LAN B: Direct connection to the OPC server, via a static IP address provided by the plant technicians
The static address needs to be applied to the interface LAN B
above. Please check the correct interface since it is possible that the interfaces may appear to be swapped. The OPC server address is almost always located at IP address 192.168.1.2/29
. To check which interface is being used for Internet access, run the route
command. It will respond with something like...
The Iface
column in the line with Destination
default tells you which interface is used for Internet access. Please don't forget to send to Ardexa:
Clear photographs of the installation
The IP address of the Gamesa Historian
The userid of the Gamesa Historian
The password of the Gamesa Historian
The database name, if it is different to
windnet
The port of the Gamesa Historian, if it is different to 1433.
The quantity and model numbers of all wind turbines at the park
Usage
The Linux driver to read the Microsoft SQL Server is automatically installed and configured when this plugin is installed. This Ardexa plugin will read the Gamesa data, via the Historian, in real time, and send it to the Ardexa cloud. Gamesa Historian data is recorded at various intervals, and stored historically for (usually) the life of the system. Selected data is collected from the Historian. The plugin will read 5 different types of datasets: live
, logbook
, 15m
, 10m
, config
(or all
to show all datasets). The following scenarios are recommended to be configured as five separate scenarios:
Ardexa will only send data to the cloud if the timestamp of the last read has changed. Ardexa is able to send all historical data to the cloud, if required. The discover
verb is be used to display the contents of the database. It needs 2 arguments
Run a discover
to see all the data. It will also show the data and time on SQL Server and compare it to the Ardexa device. Pay particular attention to these, since at times the Gamesa Historian time may not be synced. All date and times are in UTC.
Arguments
Configuration YAML
A configuration YAML file must be included which can contain up to 6 items of information. An example of which is:
The
db_name
,driver
and/orport
maybe excluded and the default values will be used as follows:
The
port
is optional. It will default to1433
If
db_name
is optional. If it is not defined, it will default to:windnet
the
user
andpasswd
items MUST be supplied by the clientThe
driver
is the software driver to use to connect to the database. For MSSQL installations greater than Version 2000, remove thedriver
entry and it will default toODBC Driver 17 for SQL Server
. For all other installations, include the linedriver: FreeTDS
Debug Commands
Running a discover
command with -vv
(debug data), will show the available tables and all available data in the database. Command example:
You can run a first
verb, which will show the earliest data record for the dataeset/turbine. Command examples:
It will return something like:
There is also sample
verb which again can only be manually run. It will show a sample of the last 2 hours of the database, for all turbines. The argument for this command is:
eg; gamesa_odbc sample /opt/ardexa/config/gamesa-odbc/task/task-1.config_path 24711
Last updated