FB_BA_FireAlarmSystem

FB_BA_FireAlarmSystem 1:

This template receives the fire alarm as an input via an FB_BA_SensorBinary function block and transfers it as Site.stBuildingAlarms.bFireAlert to the local variable list Site.

The alarms are made available to other controllers in the FB_BA_AdsComServer_Basic template.

The FireDetector01 sub-template represents a fire detector or a fire alarm system (aggregate level). If there are several fire detectors/fire alarm systems, the FB_BA_FireAlarmSystem template must be extended.

The recording of the signal is defined in FB_Init as a quiescent current principle (FireDetector01.Input.ePolarity := E_BA_Polarity.eReverse).

FB_BA_FireAlarmSystem 2:

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

Block diagram

FB_BA_FireAlarmSystem 3:

Syntax

FUNCTION_BLOCK FB_BA_FireAlarmSystem EXTENDS FB_BA_View
VAR_INPUT CONSTANT
  FireDetector01    : FB_BA_SensorBinary;
END_VAR

FB_BA_FireAlarmSystem 4: VAR_INPUT CONSTANT

Name

Type

Description

FireDetector01

FB_BA_SensorBinary

Sub-template for recording the fire alarm signal.