FB_ALY_WtTurbulence_1Ch
The WT Turbulence 1Ch calculates the mean of the wind velocity, the turbulence, and the turbulence intensity according to the standard EN 61400-1. As input signal, the wind velocity is required. The output values are updated in a cycle of 10 minutes.
Syntax
Definition:
FUNCTION_BLOCK FB_ALY_WtTurbulence_1Ch
VAR_OUTPUT
ipResultMessage: Tc3_EventLogger.I_TcMessage;
bError: BOOL;
bNewResult: BOOL;
bConfigured: BOOL;
fMean: LREAL;
fTurbulence: LREAL;
fTurbulenceIntensity: LREAL;
END_VAR
Outputs
Name | Type | Description |
---|---|---|
ipResultMessage | Contains more detailed information on the current return value. This special interface pointer is internally secured so that it is always valid/assigned. | |
bError | BOOL | This output is |
bNewResult | BOOL | When a new result has been calculated, the output is |
bConfigured | BOOL | Displays |
fMean | LREAL | Mean value of the wind speed. |
fTurbulence | LREAL | Turbulence of the wind. According to the EN standard, this is the standard deviation of the wind speed during a time interval of 10 minutes. |
fTurbulenceIntensity | LREAL | Intensity of wind turbulence. |
Methods
Name | Definition Location | Description |
---|---|---|
Call() | Local | Method calculates the outputs for a given configuration. |
Configure() | Local | General configuration of the algorithm with its parameterized conditions. |
Reset() | Local | Resets all internal states or the calculations made so far. |
SetChannelValue() | Local | Method to pass values to the algorithm. |
Sample
VAR
fbWtTurbulence : FB_ALY_WtTurbulence_1Ch;
fbSystemTime : FB_ALY_GetSystemTime;
nNumCycles : UDINT;
bConfigure : BOOL := TRUE;
nInput : INT;
END_VAR
// Configure algorithm
IF bConfigure THEN
bConfigure := FALSE;
fbWtTurbulence.Configure(nNumCycles);
END_IF
// Get current system time
fbSystemTime.Call();
// Call algorithm
fbWtTurbulence.SetChannelValue(nInput);
fbWtTurbulence.Call(fbSystemTime.tSystemTime);
Requirements
Development environment | Target platform | Plc libraries to include |
---|---|---|
TwinCAT v3.1.4024.0 | PC or CX (x64, x86) | Tc3_Analytics |