Description: Writes hourly Aspen energy averages into one or more target records, using the current or latest record's eight-hour window by default or an optionally supplied date range.
Calling convention: Aspen_Witten_Energy4Record("TargetObject": String, "InterfaceObjectName": String, "HourSlotsID": String, ["StartTime": String], ["EndTime": String])
Parameters:
TargetObject: target CIP object name.
InterfaceObjectName: accepted but not used by the implementation.
HourSlotsID: non-empty hour-slot identifier.
StartTime: optional locale-dependent date/time String.
EndTime: optional locale-dependent date/time String; defaults to StartTime when omitted or NULL. The function accepts three to five arguments.
Returns: NULL; the routine updates records and does not assign a success value.
Availability: Default; Witten energy-specific and dependent on AspenWitten, STARTZEITPUNKT_ENV and scheduler mappings.
Example:
Aspen_Witten_Energy4Record("EnergyShift", "EnergyInterface", "ENV", "2026-08-19 06:00", "2026-08-20 06:00");