F_BA_SetSchedulerEntry

F_BA_SetSchedulerEntry 1:

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

F_BA_SetSchedulerEntry 2: Inputs/outputs

Name

Type

Description

stEntry

ST_BA_SchedEntry

Reference to the schedule entry structure to be read and written.

F_BA_SetSchedulerEntry 3: Inputs

Name

Type

Description

tEntryTime

TIME

Input of the time.

uEntryValue

U_BA_ClassValue

Input of the value.

Requirements

Development environment

Required PLC library

TwinCAT 3.1 4024.35

Tc3_BA2_Common from V2.1.20.0