FB_BA_BurglarAlarmSystem

FB_BA_BurglarAlarmSystem 1:

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).

FB_BA_BurglarAlarmSystem 2:

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

Block diagram

FB_BA_BurglarAlarmSystem 3:

Syntax

FUNCTION_BLOCK FB_BA_FireAlarmSystem EXTENDS FB_BA_View
VAR_INPUT CONSTANT
  MagneticContact01    : FB_BA_SensorBinary;
END_VAR

FB_BA_BurglarAlarmSystem 4: VAR_INPUT CONSTANT

Name

Type

Description

MagneticContact01

FB_BA_SensorBinary

Sub-template for recording the alarm signal.