FB_BA_BO_IO

The FB_BA_BO_IO function block represents a binary output object within the base framework. The variables for linking the switching output to the terminal are declared within the function block. The feedback control of the binary output is automatically activated if the bRawValFeedback variable is linked to the process image of a terminal.
Inheritance hierarchy
FB_BA_Base
Syntax
FUNCTION_BLOCK FB_BA_BO_IO EXTENDS FB_BA_BaseBO IMPLEMENTS I_BA_RawBO
VAR_INPUT CONSTANT PERSISTENT
{region 'Variable Parameters'}
{attribute 'parameterCategory':='Config'}
ePolarity : E_BA_Polarity := E_BA_Polarity.eNormal;
{attribute 'parameterCategory':='Config'}
eFeedbackPolarity : E_BA_Polarity := E_BA_Polarity.eNormal;
{attribute 'parameterCategory':='Config'}
eOverriddenPolarity : E_BA_Polarity := E_BA_Polarity.eNormal;
{endregion}
END_VAR
VAR
{region 'Raw I/O'}
bRawOverridden AT %I* : BOOL
bRawValFeedback AT %I* : BOOL
bRawVal AT %Q* : BOOL;
{endregion}
END_VAR
Inputs Constant Persistent
Name | Type | Description |
|---|---|---|
ePolarity | E_BA_Polarity | The polarity of the sensor must be set at this input. The setting is made by selecting the type in the enumeration. |
eFeedbackPolarity | Variable for parameterizing the polarity of the binary operating feedback of an output. | |
eOverriddenPolarity | Output terminals with mechanical priority operation report the state of their switches back to the controller. With this enumeration the polarity of the switch feedback can be parameterized. |
VAR
Name | Type | Description |
|---|---|---|
bRawOverridden | BOOL | Variable for detecting an override from the outside. |
bRawValFeedback | BOOL | Activation of feedback control after linking with the bus terminal. |
bRawVal | BOOL | Variable for linking the output value to the terminal. |
Requirements
Development environment | Required PLC library |
|---|---|
TwinCAT from v3.1.4024.35 | Tc3_XBA from v5.3.0.0 |