FB_BA_BV
The function block FB_BA_BV represents a binary value object.
It has a priority array and can therefore be commanded.
Inheritance hierarchy
FB_BA_Base
FB_BA_BasePublisher
Illustration
FUNCTION_BLOCK FB_BA_BV EXTENDS FB_BA_EventObjectEx IMPLEMENTS I_BA_BinaryPrioObject, I_BA_AnyValue
VAR_INPUT
bEnSfty : BOOL;
bValSfty : BOOL;
bEnCrit : BOOL;
bValCrit : BOOL;
bEnManLoc : BOOL;
bValManLoc : BOOL;
bEnPgm : BOOL;
bValPgm : BOOL;
END_VAR
VAR_OUTPUT
bPresentValue : BOOL;
eActivePrio : E_BA_Priority;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
{region 'Variable Parameters'}
nMinimumOffTime : UDINT;
nMinimumOnTime : UDINT;
bDefaultValue : BOOL;
bEnOutOfService : BOOL;
sInactiveText : T_BA_StateText;
sActiveText : T_BA_StateText;
bAlarmValue : BOOL := TRUE;
nStateChangeCount : UDINT;
nActiveTimeElapsed : UDINT;
{endregion}
{region 'Operational Parameters'}
bEnManualRm : BOOL;
bValManualRm : BOOL;
{endregion}
END_VAR
VAR
{region 'Output-Properties'}
stStateChangeTime : ST_BA_DateTime;
stStateChangeResetPoint : ST_BA_DateTime;
stActiveTimeResetPoint : ST_BA_DateTime;
{endregion}
END_VAR
Inputs
Name | Type | Description |
---|---|---|
bEnSfty | BOOL | Enabling the "Safety" priority. |
bValSfty | BOOL | Binary value for the "Safety" priority. |
bEnCrit | BOOL | Enabling the "Critical" priority. |
bValCrit | BOOL | Binary value for the "Critical" priority. |
bEnManLoc | BOOL | Enabling the "Manual Local" priority. |
bValManLoc | BOOL | Binary value for the "Manual Local" priority. |
bEnPgm | BOOL | Enabling the "Program" priority. |
bValPgm | BOOL | Binary value for the "Program" priority. |
Outputs
Name | Type | Description |
---|---|---|
bPresentValue | BOOL | Current binary output value of the object. |
eActivePrio |
Active priority |
Inputs CONSTANT PERSISTENT
Name | Type | Description |
---|---|---|
nMinimumOffTime | UDINT | Minimum time [s] in which the Present_Value should remain in the INACTIVE state after a write operation to Present_Value has assumed the INACTIVE state. This can be used to implement protection against too fast restarting. |
nMinimumOnTime | UDINT | Minimum time [s] in which the Present_Value is to remain in the ACTIVE state after a write operation to Present_Value has assumed the ACTIVE state. This can be used to implement protection against premature, renewed switch-off |
bDefaultValue | BOOL | 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. |
sInactiveText | Text output when the object is inactive. | |
sActiveText | Text output when the object is active. | |
bAlarmValue | BOOL | Value in the event of an alarm. |
nStateChangeCount | UDINT | The variable indicates how often the state of the Present_Value has changed since the date and the last reset. |
nActiveTimeElapsed | UDINT | Time [s] in which the Present_Value of the object had the value ACTIVE. The time is valid from the last reset by the property Time_Of_Active_Time_Reset. |
bEnManualRm | BOOL | Enabling the "Manual Remote" priority. |
bValManualRm | BOOL | Binary value for the "Manual Remote" priority. |
VAR
Name | Type | Description |
---|---|---|
stStateChangeTime | This property shows the time of the last state change. The state change refers to the Present_Value of the object. | |
stStateChangeResetPoint | Shows the date and time from which the counting of state changes started. | |
stActiveTimeResetPoint | Indicates the time when the recording of the object's switch-on times started. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.35 | Tc3_XBA from v5.3.0.0 |