FB_BA_BaseMO
The function block FB_BA_BaseMO represents a multi-level output.
Inheritance hierarchy
FB_BA_Base
FB_BA_BasePublisher
Illustration
FUNCTION_BLOCK ABSTRACT FB_BA_BaseMO EXTENDS FB_BA_ComEventObject IMPLEMENTS I_BA_MultistateOutObject, I_BA_AnyValue
VAR_INPUT
bEnSfty : BOOL;
nValSfty : UDINT := 1;
bEnCrit : BOOL;
nValCrit : UDINT := 1;
bEnManLoc : BOOL;
nValManLoc : UDINT := 1;
bEnPgm : BOOL;
nValPgm : UDINT := 1;
END_VAR
VAR_OUTPUT
nPresentValue : UDINT := 1;
eActivePrio : E_BA_Priority;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
{region 'Variable Parameters'}
eMappingMode : E_BA_ByteMappingMode := E_BA_ByteMappingMode.eIndex1N;
eFeedbackMappingMode : E_BA_ByteMappingMode := E_BA_ByteMappingMode.eIndex1N;
nDefaultValue : UDINT := 1;
bEnOutOfService : BOOL;
{endregion}
{region 'Fixed Parameters'}
aStateText : T_BA_StateTextArray;
{endregion}
{region 'Operational Parameters'}
bEnManualRm : BOOL;
nValManualRm : UDINT := 1;
{endregion}
END_VAR
VAR
{region 'Output-Properties'}
nStateCount : UDINT;
{endregion}
END_VAR
Inputs
Name | Type | Description |
---|---|---|
bEnSfty | BOOL | Enabling the "Safety" priority. |
nValSfty | UDINT | Analog value for the "Safety" priority. |
nValCrit | UDINT | Analog value for the "Critical" priority. |
bEnCrit | BOOL | Enabling the "Critical" priority. |
bEnManLoc | BOOL | Enabling the "Manual Local" priority. |
nValManLoc | UDINT | Analog value for the "Manual Local" priority. |
bEnPgm | BOOL | Enabling the "Program" priority. |
nValPgm | UDINT | Analog value for the "Program" priority. |
Outputs
Name | Type | Description |
---|---|---|
nPresentValue | UDINT | Analog output value. |
eActivePrio |
Active priority |
Inputs CONSTANT PERSISTENT
Name | Type | Description |
---|---|---|
eMappingMode | Mode for configuring the terminal link. | |
eFeedbackMappingMode | Structure for mapping the feedback inputs. | |
nDefaultValue | UDINT | Value that is assumed if all 16 priorities of the Priority_Array of a commandable object have no entry or are NULL. |
bEnOutOfService | BOOL | This variable sets an object out of service. It is thus OutOfService. |
aStateText | The array is used to declare the state texts of a multi-state object. | |
bEnManualRm | BOOL | Enabling the "Manual Remote" priority. |
nValManualRm | UDINT | Variable for writing a value to the "Manual Remote" priority. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.35 | Tc3_XBA from v5.3.0.0 |