FB_BA_SensorBinary

FB_BA_SensorBinary 1:

The function block Input logs a binary input value from an I/O bus terminal and outputs it as a boolean process value.

FB_BA_SensorBinary 2:

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

Block diagram

FB_BA_SensorBinary 3:

Syntax

FUNCTION_BLOCK FB_BA_SensorBinary EXTENDS FB_BA_View
VAR_INPUT CONSTANT
  Input            : FB_BA_BI_Raw;
END_VAR
VAR_OUTPUT
  bPresentValue    : BOOL;
END_VAR

FB_BA_SensorBinary 4: Inputs CONSTANT

Name

Type

Description

Input

FB_BA_BI_Raw

Binary input object for displaying a process value.

FB_BA_SensorBinary 5: Outputs

Name

Type

Description

bPresentValue

BOOL

Current value of the binary input object Input to display a process value.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0