PLC Function Blocks

The objects configured in the TwinCAT Building Automation Framework can also be used with the following function blocks from the PLC. Performance features that are not covered by the standard functions of the TwinCAT Building Automation Framework can thus be implemented with the help of these function blocks. The function blocks are contained in the PLC library TcBAFramework2.20.lib.

The function blocks are firmly bound to the respective type. This means, for example, that only one DALI lamp can be addressed with the function blockFB_BAFLampDALI(). An error message is returned if an attempt is made to address a standard lamp object or a DALI lamp for the security lighting.

Sensors

Name of the Function Block

Description

FB_BAFDigitalSignalStandard

Function block for controlling a digital signal.

FB_BAFDigitalSignalEnOcean

Function block for controlling a digital EnOcean signal.

FB_BAFDigitalSignalSmartSPOT

Function block for controlling a digital signal (occupancy) of a smartSPOT.

FB_BAFDigitalSignalUpDownCounterKL1512

Function block for controlling an up/down counter via KL1512.

FB_BAFAnalogSignalStandard

Function block for controlling an analog signal.

FB_BAFAnalogSignalEnOcean

Function block for controlling an analog EnOcean signal.

FB_BAFAnalogSignalSmartSPOT

Function block for controlling an analog signal (brightness) of a smartSPOT.

Actuators

Name of the Function Block

Description

FB_BAFLampStandard

Function block for controlling a lamp.

FB_BAFLampDALI

Function block for controlling a DALI lamp.

FB_BAFLampDALIEmergencyLighting

Function block for controlling a DALI lamp for emergency-lighting.

FB_BAFBlindDriveStandard

Function block for controlling a blind drive.

FB_BAFBlindDriveKL2532

Function block for controlling a blind drive via KL2532.

FB_BAFWindowDriveStandard

Function block for controlling a window drive.

FB_BAFValveActuator2Point

Function block for controlling a 2-point valve actuator.

FB_BAFValveActuator3Point

Function block for controlling a 3-point valve actuator.

FB_BAFValveActuatorContinuous

Function block for controlling a continuous valve actuator.

Sensor Groups

Name of the Function Block

Description

FB_BAFDigitalSignalGroupStandard

Function block for controlling a digital signal group.

FB_BAFAnalogSignalGroupStandard

Function block for controlling an analog signal group.

Actuator Groups

Name of the Function Block

Description

FB_BAFLampGroupStandard

Function block for controlling a lamp group.

FB_BAFBlindDriveGroupStandard

Function block for controlling a blind drive group.

FB_BAFWindowDriveGroupStandard

Function block for controlling a window drive group.

FB_BAFValveActuatorGroupStandard

Function block for controlling a valve actuator group.

Functional Units

Name of the Function Block

Description

FB_BAFLightingDimmerSwitch

Function block for controlling a lighting with dimmer function.

FB_BAFLightingStairwellDimmer

Function block for controlling a stairwell lighting.

FB_BAFLightingTwilightSwitch

Function block for controlling a twighlight switch.

FB_BAFLightingDaylightLightControl

Function block for controlling a daylight dependent light control.

FB_BAFLightingConstantLightRegulation

Function block for controlling a constant light control.

FB_BAFLightingTestsForEmergencyLighting

Function block for controlling function- and duration tests of DALI lamps.

FB_BAFSunblindStandard

Function block for controlling a sunblind.

FB_BAFSunblindSuntracking

Function block for controlling a sunblind with sun position tracking.

FB_BAFWindowStandard

Function block for controlling a window unit.

FB_BAFHVACHeatingCooling

Function block for controlling a temperature controller for heating and cooling.

Scenes

Name of the Function Block

Description

FB_BAFSceneStandard

Function block for controlling a scene.

Time Scheduler Channels

Name of the Function Block

Description

FB_BAFSchedulerDaily

Function block for controlling a daily time scheduler channel.

FB_BAFSchedulerWeeklyIndividual

Function block for controlling a weekly time scheduler channel for individual days of the week.

FB_BAFSchedulerWeeklyContinual

Function block for controlling a weekly time scheduler channel for continual days of the week.

FB_BAFSchedulerMonthlyNthDay

Function block for controlling a monthly time scheduler channel for the nth day of the month.

FB_BAFSchedulerMonthlyIndividualWeekday

Function block for controlling a monthly time scheduler channel for an individual weekday of the month.

Weather Stations

Name of the Function Block

Description

FB_BAFWeatherStationVirtual

Function block for controlling a virtual weather station.

FB_BAFWeatherStationElsnerP03

Function block for controlling a P03 weather station of the Elsner Company.

FB_BAFWeatherStationThiesClimaSensorD

Function block for controlling a Sensor D weather station of the Thies Clima Company.

FB_BAFWeatherStationAnalogDigitalSignals

Function block for controlling a weather station composed of analog and digital signals.

Subsystems

Name of the Function Block

Description

FB_BAFPowerMeasurementKL3403

Function block for controlling a power measurement unit via KL3403.

Application

Name of the Function Block

Description

FB_BAFApplicationProgram

Function block for controlling global services of the application program.