FB_BA_FloorLighting

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.
![]() | The initialization of the template takes place within the method FB_Init. |
Block diagram

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
Inputs CONSTANT
Name | Type | Description |
---|---|---|
AreaLighting | Lighting area block with telegram functions that affect the area within a floor. |
VAR
Name | Type | Description |
---|---|---|
PrioSwiLight | 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 |