CodeMOpen (FUN) ¶ FUNCTION CodeMOpen : RTS_IEC_HANDLE Open a license with the specified identifiers InOut: Scope Name Type Comment Return CodeMOpen RTS_IEC_HANDLE Handle to the CodeMeter container on which the license is installed or RTS_INVALID_HANDLE if not available! Input udiFirmCode UDINT FirmCode of the license udiProductCode UDINT ProductCode of the license udiFeatureCode UDINT Feature code of the license Inout Result RTS_IEC_RESULT Returns error code (see CmpErrors2 Interfaces Library) or ERR_OK if succeeded
GlobalConstants ¶ EventIDs (GVL)
EventIDs (GVL) ¶ Attributes: qualified_only InOut: Scope Name Type Initial Constant CMPID_CmpCodeMeter DWORD 16#7A EVTPARAMID_CMPCODEMETER_LICENSEACTIVATED WORD 16#1 EVTVERSION_CMPCODEMETER_LICENSEACTIVATED WORD 16#1 EVT_CMPCODEMETER_LICENSEACTIVATED DWORD (SHL(UINT_TO_DWORD(EVTCLASS_INFO), 16) OR 16#1)
RTS_CMBOXENTRY (STRUCT) ¶ TYPE RTS_CMBOXENTRY : STRUCT CodeMeter license entry InOut: Name Type Comment musBoxMask WORD Box mask 128…130 = CmAct container (software-based container) 1…3 = USB dongle container mulBoxSerial UDINT Serial number of the CodeMeter license container mflFiCtrl UDINT Firm control code. Only for internal use! mulFirmCode UDINT FirmCode musFirmAccessCounter WORD FirmAccessCounter musFirmItemRef WORD FirmItemRef mulFirmUpdateCounter UDINT FirmUpdateCounter mulFirmPreciseTime UDINT FirmPreciseTime mausFirmItemText WSTRING(255) FirmItemText mulProductCode UDINT ProductCode mulFeatureMap UDINT FeatureMap mulUnitCounter UDINT Unit counter mulLicenseQuantity UDINT Quantity counter musProductItemRef WORD ProductItemRef
RTS_CODEMETER_INFO (STRUCT) ¶ TYPE RTS_CODEMETER_INFO : STRUCT CodeMeter container information InOut: Name Type Comment byMajorVersion BYTE Major version of the CodeMeter license container byMinorVersion BYTE Minor version of the CodeMeter license container wBoxMask WORD Box mask 128…130 = CmAct container (software-based container) 1…3 = USB dongle container dwSerialNumber DWORD Serial number of the CodeMeter license container wChipType WORD Chip type of the CodeMeter license container wSiliconRevision WORD Revision of the CodeMeter license container
Types ¶ EVTPARAM_CmpCodeMeterLicenseActivated (Struct)
EVTPARAM_CmpCodeMeterLicenseActivated (STRUCT) ¶ TYPE EVTPARAM_CmpCodeMeterLicenseActivated : STRUCT InOut: Name Type serialNo DWORD pszUpdateFile POINTER TO STRING
internal functions ¶ CodeMGetFeatureMapByFirmcode (Function)
CodeMGetFeatureMapByFirmcode (FUN) ¶ FUNCTION CodeMGetFeatureMapByFirmcode : UDINT InOut: Scope Name Type Return CodeMGetFeatureMapByFirmcode UDINT Input duiFirmcode UDINT duiProductcode UDINT
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 01.04.2022, 08:12:12 companyName string 3S-Smart Software Solutions GmbH libraryFile CmpCodeMeter.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile CmpCodeMeter.clean.json version version 2.0.0.0 ProjectInformation Released bool True LastModificationDateTime date 01.04.2022, 08:12:12 LibraryCategories library-category-list System|SysLibs Author string 3S - Smart Software Solutions GmbH Company System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 Description See: Description DocFormat reStructuredText Placeholder CmpCodeMeter Project CmpCodeMeter Title CmpCodeMeter Version version 3.5.18.0