FB_BA_BaseBO

The function block FB_BA_BaseBO represents a binary output object.
It is the base for all other binary outputs.
Inheritance hierarchy
FB_BA_Base
Syntax
FUNCTION_BLOCK ABSTRACT FB_BA_BaseBO EXTENDS FB_BA_ComEventObject IMPLEMENTS I_BA_BinaryOutObject, 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;
ePolarity : E_BA_Polarity := E_BA_Polarity.eNormal;
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. | |
ePolarity | The polarity describes the dependency between the value resulting from the evaluation of the Priority array and the value that is output at the output of the controller. If the polarity is normal then the result of the Priority array is directly forwarded to the output of the controller. With "reverse" polarity the output is negated. | |
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. |
bValManualRm | BOOL | Binary value for the "Manual Remote" priority. |
bEnManualRm | BOOL | Enabling 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 logging 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 |