FB_BA_SensorBinary

The function block Input logs a binary input value from an I/O bus terminal and outputs it as a boolean process value.
![]() | The initialization of the template takes place within the method FB_Init. |
Block diagram

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
Inputs CONSTANT
Name | Type | Description |
---|---|---|
Input | Binary input object for displaying a process value. |
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 |