FB_BA_CombinationBI_BV

FB_BA_CombinationBI_BV 1:

The template is a combination of a BI and BV object.

The binary input object Input logs a binary input value from a bus terminal and outputs it as a boolean process value. In addition, the process value Input is output as a rising edge bTrigBI_PrVal.

The binary value object Value represents a boolean process value. It can be parameterized as a switch or push button by the parameter E_BA_ToggleMode. The output value of the Value object is also output as a rising edge bTrigBV_PrVal.

FB_BA_CombinationBI_BV 2:

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

Block diagram

FB_BA_CombinationBI_BV 3:

Syntax

FUNCTION_BLOCK FB_BA_CombinationBI_BV EXTENDS FB_BA_View
VAR_INPUT CONSTANT
  Input            : FB_BA_BI_Raw;
  Value            : FB_BA_BV_Op;
END_VAR
VAR_OUTPUT
  bBI_PrVal        : BOOL;
  bTrigBI_PrVal    : BOOL;
  bBV_PrVal        : BOOL; 
  bTrigBV_PrVal    : BOOL; 
END_VAR
VAR
  TrigInput        : FB_BA_RFTrig;
  TrigValue        : FB_BA_RFTrig;
END_VAR

FB_BA_CombinationBI_BV 4: Inputs CONSTANT

Name

Type

Description

Input

FB_BA_BI_Raw

Binary input object for displaying a process value.

Value

FB_BA_BV_Op

Binary value object for displaying a process value. It can be used as a switch or push button.

FB_BA_CombinationBI_BV 5: Outputs

Name

Type

Description

bBI_PrVal

BOOL

Current value of the binary input object Input.

bTrigBI_PrVal

BOOL

Current value of the output Qr of the function block TrigInput.

bBV_PrVal

BOOL

Current value of the binary value object Value

bTrigBV_PrVal

BOOL

Current value of the output Qr of the function block TrigValue.

Variables

Name

Type

Description

TrigInput

FB_BA_RFTrig

The function block generates a rising edge from the output signal of the binary input object Input.

TrigValue

FB_BA_RFTrig

The function block generates a rising edge from the output signal of the binary value object Value.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0