FB_BA_MeasuredValueCardinal
![FB_BA_MeasuredValueCardinal 1:](Images/png/11187957131__Web.png)
This template represents at the output, in a hierarchical representation, a collection of four values, which are assigned to the cardinal points. This template can be used to display the external brightnesses for all four cardinal points on one display layer, as shown in the following graphic.
![FB_BA_MeasuredValueCardinal 2:](Images/png/11187955211__Web.png)
![]() | The initialization of the template takes place within the method FB_Init. |
Syntax
FUNCTION_BLOCK FB_BA_MeasuredValueCardinal EXTENDS FB_BA_View
VAR_INPUT
fVal_N : REAL;
fVal_S : REAL;
fVal_E : REAL;
fVal_W : REAL;
END_VAR
VAR_INPUT CONSTANT
MV_N : FB_BA_AI;
MV_S : FB_BA_AI;
MV_E : FB_BA_AI;
MV_W : FB_BA_AI;
END_VAR
VAR_OUTPUT
fPresentValueN : REAL;
fPresentValueS : REAL;
fPresentValueE : REAL;
fPresentValueW : REAL;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
fVal_N | REAL | Analog input value for "North". |
fVal_S | REAL | Analog input value for "South". |
fVal_E | REAL | Analog input value for "East". |
fVal_W | REAL | Analog input value for "West". |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
MV_N | Analog input object for the "North" value. | |
MV_S | Analog input object for the "South" value. | |
MV_E | Analog input object for the "East" value. | |
MV_W | Analog input object for the "West" value. |
Outputs
Name | Type | Description |
---|---|---|
fPresentValueN | REAL | Output value for "North". |
fPresentValueS | REAL | Output value for "South". |
fPresentValueE | REAL | Output value for "East". |
fPresentValueW | REAL | Output value for "West". |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.0.0.0 |