CheckPreferredIODataTypes

CheckPreferredIODataTypes 1:

Syntax

Definition:

METHOD CheckPreferredIODataTypes : BOOL
VAR_INPUT
    fmtInputType  : ETcMllDataType;
    fmtOutputType : ETcMllDataType;
    IsPreferred   : Reference To BOOL;
END_VAR

CheckPreferredIODataTypes 2: Inputs

Name

Type

Description

fmtInputType

ETcMllDataType

Input type to check

fmtOutputType

ETcMllDataType

Output type to check

IsPreferred

Reference To BOOL

Return true if preferred typo

CheckPreferredIODataTypes 3: Return value

BOOL

A distinction is made between preferred and supported data types. The only difference is that a conversion of the data type takes place at runtime if a non-preferred type is selected. This may lead to slight losses in performance when using non-preferred data types.