Description: Initializes a downtime-statistics pack and exports its result to Excel.
Calling convention: CIP_ExcelExport_DowntimeStat("DowntimeStatPackName": String, "MainObjectName": String, "MainFilterName": String, "XLSOutputPath": String)
Parameters:
DowntimeStatPackName: existing downtime-statistics pack.
MainObjectName: optional object override; NULL or empty uses the pack assignment.
MainFilterName: optional filter override; NULL or empty uses the pack assignment.
XLSOutputPath: output path; an empty value lets the export routine generate a name.
Returns: Undefined on success; an empty String is returned for rejected arguments or missing configuration.
Availability: Default desktop environment with downtime-statistics and Excel-export support.
Example:
CIP_ExcelExport_DowntimeStat("MonthlyDowntime", "Line01", "CurrentMonth", "C:\Exports\Downtime.xlsx");