F_GetClassIdVersioned

The function calculates the versioned Class ID based on the Class ID and the Library ID. This is used for versioned C++ projects.

FUNCTION F_GetClassIdVersioned : BOOL

VAR_INPUT

VAR_INPUT
    sLibraryId     : STRING(255); // 'vendorName|libraryName|libraryVersion' (e.g. 'C++ Module Vendor|IncrementerCpp|0.0.0.1' )
    clsId          : CLSID;
    clsIdVersioned : REFERENCE TO CLSID;
END_VAR

sLibraryId: the Library ID is specified here.

clsId: the Class ID is specified here.

clsIdVersioned: the calculated versioned Class ID is output here.

Requirements

Development environment

Target platform

PLC libraries to be integrated (category group)

TwinCAT v3.1.4024.29

PC or CX (x86, x64, ARM)

Tc2_Utilities (System) >= 3.3.51.0