FB_BA_CombinationBI_BV
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.
The initialization of the template takes place within the method FB_Init. |
Block diagram
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
Inputs CONSTANT
Name | Type | Description |
---|---|---|
Input | Binary input object for displaying a process value. | |
Value | Binary value object for displaying a process value. It can be used as a switch or push button. |
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 | The function block generates a rising edge from the output signal of the binary input object Input. | |
TrigValue | 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 |