Calling convention: CIPBAsic_GetSchicht(ObjectID, Hour)
Description: Loads the OPEX shift model of an object and returns the shift ID for the hour derived from the fractional time part of the second argument.
Parameters:
ObjectID: target OEE object ID.
Hour: despite its registered name, the implementation expects a Delphi DateTime/time fraction and calculates Round(Frac(Hour) * 24).
Returns: Integer: matching shift ID; NULL for missing arguments, an invalid object, or no matching shift.
Availability: Default; requires an OPEX shift model for the object.
Example:
ShiftID := CIPBAsic_GetSchicht(1, GetSysDate());