Calling convention: GetDataFromIP21FromTo("ObjectName": String, StartTime: Integer, EndTime: Integer, AspenSQLPostFix:String): Variant
Description: Imports IP.21 values for a specified time interval. Connection and tag mappings are read from the fixed PIMSSetup and pimsTagsTable objects, and imported values are written to tempEventData.
Parameters:
ObjectName: destination object name used to select configured tag mappings.
StartTime: interval start as a parser date/time value.
EndTime: interval end as a parser date/time value.
AspenSQLPostFix: optional SQL suffix appended to the generated Aspen query; omitted or NULL means no suffix.
Returns: NULL. The function updates database records but does not return a success value.
Availability: Default; requires the site-specific PIMS objects, entries, database connection and IP.21 schema.
Example:
GetDataFromIP21FromTo("ProductionEvents", StartTime, EndTime, "");