FB_BA_BaseBI
The function block FB_BA_BaseBI generates a binary input object.
It is the base of all binary input objects.
Inheritance hierarchy
FB_BA_Base
FB_BA_BasePublisher
Illustration
FUNCTION_BLOCK ABSTRACT FB_BA_BaseBI EXTENDS FB_BA_ComEventObject IMPLEMENTS I_BA_BinaryInObject, I_BA_AnyValue
VAR_OUTPUT
bPresentValue : BOOL;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
{region 'Variable Parameters'}
bEnOutOfService : BOOL;
sInactiveText : T_BA_StateText;
sActiveText : T_BA_StateText;
bAlarmValue : BOOL := TRUE;
ePolarity : E_BA_Polarity := E_BA_Polarity.eNormal;
nStateChangeCount : UDINT;
nActiveTimeElapsed : UDINT;
{endregion}
END_VAR
VAR
{region 'Output-Properties'}
stStateChangeTime : ST_BA_DateTime;
stStateChangeResetPoint : ST_BA_DateTime;
stActiveTimeResetPoint : ST_BA_DateTime;
{endregion}
END_VAR
Inputs CONSTANT PERSISTENT
Name | Type | Description |
---|---|---|
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. |
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. |
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 |