FB_BA_BaseStateMV
The function block FB_BAStateMV enables the display of states. Each referenced object is seen as state.
It is represented as multi-state object.
The state texts of this multi-state object are automatically the names of all commanded references.
The PresentValue is automatically the highest active state, or reference.
Abstract The FB serves as a base (ABSTRACT) for providing described functionalities for inheriting FBs. |
Illustration
FUNCTION_BLOCK ABSTRACT FB_BA_BaseStateMV EXTENDS FB_BA_Object IMPLEMENTS I_BA_MultistateObject
VAR_INPUT CONSTANT PERSISTENT
{region 'Fixed Parameters'}
eStateTextDeterminationMode : E_BA_NodeTypeTarget := E_BA_NodeTypeTarget.eFunction;
aStateText : T_BA_StateTextArray;
{endregion}
END_VAR
VAR
{region 'Informational'}
stActiveInfo : ST_BA_ActiveInfo;
{endregion}
{region 'Output-Properties'}
nPresentValue : UDINT := 1;
nStateCount : UDINT;
{endregion}
END_VAR
Inputs CONSTANT PERSISTENT
Name | Type | Description |
---|---|---|
eStateTextDeterminationMode | Defines the reference to the object whose description is displayed to represent the state. | |
aStateText | The array is used to declare the state texts of a multi-state object. |
VAR
Name | Type | Description |
---|---|---|
stActiveInfo | Description of the object. | |
nPresentValue | UDINT | Current value for multi-stage outputs. |
nStateCount | UDINT | Number of states of a multi-state object. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.35 | Tc3_XBA from v5.3.0.0 |