GetEngineIdFromRef
Syntax
Definition:
METHOD GetEngineIdFromRef : BOOL
VAR_INPUT
    sEngineRef : T_MaxString;
    nEngineId  : Reference To  UDINT;
END_VAR
          
 Inputs
| 
                   Name  | 
                   Type  | 
                   Description  | 
|---|---|---|
| 
                   sEngineRef  | 
                   T_MaxString  | 
                   Reference string of model engine (or parameter set) used for prediction, use default value 0 if there are no multi-engines used  | 
| 
                   nEngineId  | 
                   Reference To UDINT  | 
                   Id of model engine (or parameter set)  | 
          
 Return value
BOOL
In case of multi engines in an ML model description file, engines can be selected via ID or reference name. While the Predict-method expects an ID as input, the PredictRef method expects a reference name as input.
GetEngineIdFromRef can convert a reference name into an engine ID. Reference names can be found in the Beckhoff ML XML file inside the <IODistributor> section, see XML attribute str_reference, and can be set via the TC3 Machine Learning Model Manager, see Merge Tool.