FB_BA_FloorLighting

FB_BA_FloorLighting 1:

This template is used to implement various light functions at floor level. It has a very simple design and can be expanded as required.

The resulting building light telegram from the local variable list Site is routed to the PrioSwi priority function block, which provides further inputs for light telegrams from schedules, for example. The resulting telegram is sent to the inputs of the function blocks AreaLighting[1] and AreaLighting[2]. Their output telegrams are routed back to the local variable list Site.

The lighting area block contains exemplary schedules and manual controls. The function blocks listed there can be copied and amended or reduced for this template.

FB_BA_FloorLighting 2:

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

Block diagram

FB_BA_FloorLighting 3:

Syntax

FUNCTION_BLOCK FB_BA_FloorLighting EXTENDS FB_BA_View
VAR_INPUT CONSTANT
  AreaLighting    : ARRAY[1..BA2_Param.nMaxNumberOfAreas] OF FB_BA_AreaLighting;
END_VAR
VAR
  PrioSwiLight    : FB_BA_LightingTgmSel4;  
END_VAR

FB_BA_FloorLighting 4: Inputs CONSTANT

Name

Type

Description

AreaLighting

FB_BA_AreaLighting

Lighting area block with telegram functions that affect the area within a floor.

VAR

Name

Type

Description

PrioSwiLight

FB_BA_LightingTgmSel4

Telegram selection block for the light telegrams.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0