PLC API

The TwinCAT PLC Building Automation Library contains a number of function blocks useful for the building automation.

Lightings

Name

Description

FB_Dimmer1Switch

Light dimmer using a switch.

FB_Dimmer1SwitchEco

Simplified version of the FB_Dimmer1Switch() without extra-functions. Needs less memory.

FB_Dimmer2Switch

Light dimmer using two switches.

FB_Dimmer2SwitchEco

Simplified version of the FB_Dimmer2Switch() without extra-functions. Needs less memory.

FB_Dimmer3Switch

Combination of FB_Dimmer1Switch() und FB_Dimmer2Switch().

FB_Light

Control of lighting.

FB_LightControl

Daylight lamp control.

FB_ConstantLightControlEco

Constant light control.

FB_Ramp

Light-ramp.

FB_Sequencer

Light-sequence.

FB_StairwellDimmer

Stairwell light dimmer.

FB_StairwellLight

Stairwell lighting.

Facade

Name

Description

FB_RoofWindow

Control of roof-window.

FB_VenetianBlind

Control of blinds.

FB_VenetianBlindEx

Venetian blind control with direct position command.

FB_VenetianBlindEx1Switch

Venetian blind control with direct position command with only one switch-input.

Scene Management

Name

Description

FB_RoomOperation

Function block for calling and changing scenes via buttons. *)

FB_ScenesLighting

Function block for managing lighting scenes. *)

FB_ScenesVenetianBlind

Function block for managing blind scenes. *)

Signal Processing

Name

Description

FB_ShortLongClick

Differentiation between short and long button presses.

FB_SignallingContact

Signalling contact.

FB_SingleDoubleClick

Differentiation between single and double button presses.

FB_ThresholdSwitch

Threshold switch.

Filter Functions

Name

Description

FB_PT1

PT1-Filter for smoothing of input-values.

FB_PT2

PT2-Filter for smoothing of input-values.

Conversion Functions

Name

Description

F_Scale

Scaling the / conversion from raw values to measured value

F_TO_C, F_TO_K, F_TO_R, K_TO_F, K_TO_C, K_TO_R, C_TO_F, C_TO_K, C_TO_R, R_TO_K, R_TO_C, R_TO_F

Functions for converting temperatures between Kelvin, Celsius, Reaumur and Fahrenheit

Time Switches

Name

Description

FB_WeeklyTimeSwitch

Weekly time switch.

FB_CalcSunPosition

Calculating of sun height and sun sun azimuth.

FB_CalcSunriseSunset

Calculation of sunrise and Sunset. *)

FB_CalcPublicHolidaysDE

Calculation of german holidays.

FB_CalcPublicHolidaysUS

Calculation of the United States public holidays.

FB_CalcFederalHolidaysUS

Calculation of the United States federal holidays.

FB_DailyScheduler

switches every n-th day.

FB_WeeklyScheduler

switches every n-th week on specific days of the week.

FB_MonthlyScheduler1

switches in specific months on a specific weekday.

FB_MonthlyScheduler2

switches in specific months on a specific day of the month.

FB_YearlyScheduler

switches on a specific day of the year.

Energy Management

Name

Description

FB_MaximumDemandController

Maximum Demand Controller in order to reduce power peaks.

*) Note: This functionblock is only available in the PC-based version of the library.