EventCreateEventID (FUN) ¶ FUNCTION EventCreateEventID : UDINT Create your own EventID InOut: Scope Name Type Comment Return EventCreateEventID UDINT Input Event UINT Event Class UINT Class, see classes in EventClass Inout Result RTS_IEC_RESULT Error code
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