FB_BA_MeasuredValueCardinal

FB_BA_MeasuredValueCardinal 1:

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:
FB_BA_MeasuredValueCardinal 3:

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

FB_BA_MeasuredValueCardinal 4: 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".

FB_BA_MeasuredValueCardinal 5: Inputs CONSTANT

Name

Type

Description

MV_N

FB_BA_AI

Analog input object for the "North" value.

MV_S

FB_BA_AI

Analog input object for the "South" value.

MV_E

FB_BA_AI

Analog input object for the "East" value.

MV_W

FB_BA_AI

Analog input object for the "West" value.

FB_BA_MeasuredValueCardinal 6: 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