FB_BA_BurglarAlarmSystem

This template receives the burglar alarm as an input via a FB_BA_SensorBinary function block and transfers it as Site.stBuildingAlarms.bBurglary to the local variable list Site.
The alarms are made available to other controllers in the FB_BA_AdsComServer_Basic template.
The MagneticContact01 sub-template represents an alarm system (aggregate level). If several systems are available, the template FB_BA_BurglarAlarmSystem must be extended.
The recording of the signal is defined in FB_Init as a quiescent current principle (MagneticContact01.Input.ePolarity := E_BA_Polarity.eReverse).
![]() | The initialization of the template takes place within the method FB_Init. |
Block diagram

Syntax
FUNCTION_BLOCK FB_BA_FireAlarmSystem EXTENDS FB_BA_View
VAR_INPUT CONSTANT
MagneticContact01 : FB_BA_SensorBinary;
END_VAR
VAR_INPUT CONSTANT
Name | Type | Description |
|---|---|---|
MagneticContact01 | Sub-template for recording the alarm signal. |
