FB_BA_RoomSample1

FB_BA_RoomSample1 1:

This template represents a sample room with heating, cooling and shading functions.

Since the requirements for rooms or zones are very different, corresponding changes and adjustments must be made to this template by the user.

FB_BA_RoomSample1 2:

The initialization of the template takes place within the method FB_Init.

Illustration

FUNCTION_BLOCK FB_BA_RoomSample1 EXTENDS FB_BA_View
VAR_INPUT
  eMedium                 : E_BA_Medium;
  stFacade                : ST_BA_Facade;
END_VAR

VAR_INPUT CONSTANT
  Ctrl                    : FB_BA_HeatCool_PID;
  VlvHtg                  : FB_BA_ActuatorAnalog;
  VlvCol                  : FB_BA_ActuatorAnalog;

  PrcDetc                 : FB_BA_SensorBinary;
  Presence                : FB_BA_PresenceMonitoring;
  WdwCon1                 : FB_BA_SensorBinary;
  WdwCon2                 : FB_BA_SensorBinary;
  DewPointSensor          : FB_BA_SensorBinary;
  RmTSen1                 : FB_BA_SensorAnalog;
  RmTSen2                 : FB_BA_SensorAnalog;
  RmTAdj                  : FB_BA_SensorAnalog;
  SunBldZone              : FB_BA_SunblindZone;
  SunBld1                 : FB_BA_SunBld;
  SunBld2                 : FB_BA_SunBld;
VAR
  RmTAvg                  : FB_BA_EnAvrg02;
END_VAR
VAR
  bBlindUp      AT %I*    : BOOL;
  bBlindDown    AT %I*    : BOOL;
END_VAR

FB_BA_RoomSample1 3: Inputs

Name

Type

Description

eMedium

E_BA_Medium

Current medium, if there is a two-pipe system: heating or cooling

stFacade

ST_BA_Facade

Facade-specific blind data and telegrams.

FB_BA_RoomSample1 4: Inputs CONSTANT

Name

Type

Description

Ctrl

FB_BA_HeatCool_PID

Heating-cooling control block.

VlvHtg

FB_BA_ActuatorAnalog

Analog output object heating valve.

VlvCol

FB_BA_ActuatorAnalog

Analog output object cooling valve.

PrcDetc

FB_BA_SensorBinary

Binary input object occupancy sensor.

Presence

FB_BA_PresenceMonitoring

Presence evaluation function block with switch-off delay and reset.

WdwCon1

FB_BA_SensorBinary

Binary input object window contact.

WdwCon2

FB_BA_SensorBinary

Binary input object window contact.

DewPointSensor

FB_BA_SensorBinary

Binary input object dew point sensor.

RmTSen1

FB_BA_SensorAnalog

Analog input object room temperature sensor.

RmTSen2

FB_BA_SensorAnalog

Analog input object room temperature sensor.

RmTAdj

FB_BA_SensorAnalog

Analog input object setpoint adjustment.

SunBldZone

FB_BA_SunblindZone

Function block blind-specific zone functions.

SunBld1

FB_BA_SunBld

Control block for a blind.

SunBld2

FB_BA_SunBld

Control block for a blind.

VAR

Name

Type

Description

RmTAvg

FB_BA_EnAvrg02

Averaging over the room temperatures.

bBlindUp

BOOL

Control variable blinds up.

bBlindDown

BOOL

Control variable blinds down.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0