EventClose2 (FUN) ¶ FUNCTION EventClose2 : RTS_IEC_RESULT Close an event specified by handle InOut: Scope Name Type Comment Return EventClose2 RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE Event handle
EventCreate2 (FUN) ¶ FUNCTION EventCreate2 : RTS_IEC_HANDLE Creates a new event object. If event still exists, a handle to this object will be returned. An IEC event is typically created by the provider in FB_Init of a function block InOut: Scope Name Type Comment Return EventCreate2 RTS_IEC_HANDLE Input EventId UDINT Event ID of the event. Contains the class and the event CmpIdProvider UDINT Component ID of the provider nCallbacksPossible UDINT Maximum number of callbacks possible on this event or EVENT_CALLBACKS_NO_LIMIT for no limit Inout Result RTS_IEC_RESULT Error code
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