F_BA_SetSchedulerEntry

The function F_BA_SetSchedulerEntry of return type BOOL first checks whether the input structure uEntryValue is undefined, i.e. filled with 16#FF values.
If this is the case, the value E_BA_SchedEntryState.eNull is assigned to the status variable eState of the input-output structure stEntry, in the opposite case the value E_BA_SchedEntryState.eValue.
The time component stTime of the input-output structure stEntry is assigned the input tEntryTime, adjusted via the function F_BA_ToSTTime and the value component uValue is assigned the input value uEntryValue.
Nothing is assigned to the function return value itself.
Syntax
FUNCTION F_BA_SetSchedulerEntry : BOOL
VAR_IN_OUT
stEntry : ST_BA_SchedEntry;
END_VAR
VAR_INPUT
tEntryTime : TIME;
uEntryValue : U_BA_ClassValue;
END_VAR
Inputs/outputs
Name | Type | Description |
---|---|---|
stEntry |
Reference to the schedule entry structure to be read and written. |
Inputs
Name | Type | Description |
---|---|---|
tEntryTime |
TIME |
Input of the time. |
uEntryValue |
Input of the value. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT 3.1 4024.35 | Tc3_BA2_Common from V2.1.20.0 |