CodeMEncrypt (FUN) ¶ FUNCTION CodeMEncrypt : RTS_IEC_RESULT Encrypt data InOut: Scope Name Type Comment Return CodeMEncrypt RTS_IEC_RESULT Error code (see CmpErrors2 Interfaces Library) or ERR_OK if succeeded Input hCodeMeter RTS_IEC_HANDLE Handle to the CodeMeter license container retrieved by CodeMOpen(). udiEncryptionCode UDINT Encryption code pbyData POINTER TO BYTE Pointer to plain text data to encrypt nDataLen __XWORD Length of data to encrypt Inout ulCRC UDINT Returns CRC of the encrypted data
CodeMGetContentByFirmcode (FUN) ¶ FUNCTION CodeMGetContentByFirmcode : RTS_IEC_RESULT Get the license entry stored on a CodeMeter container with the specified identifiers InOut: Scope Name Type Comment Return CodeMGetContentByFirmcode RTS_IEC_RESULT Returns error code (see CmpErrors2 Interfaces Library) or ERR_OK if succeeded Input duiFirmcode UDINT FirmCode of the license duiProductcode UDINT ProductCode of the license Inout licenseEntry RTS_CMBOXENTRY Returns the content of the license entry
CodeMGetContentByFirmcode2 (FUN) ¶ FUNCTION CodeMGetContentByFirmcode2 : RTS_IEC_RESULT Get the license entry stored on a CodeMeter container with the specified identifiers with the possibility to occupy a license. InOut: Scope Name Type Comment Return CodeMGetContentByFirmcode2 RTS_IEC_RESULT Returns error code (see CmpErrors2 Interfaces Library) or ERR_OK if succeeded Input duiFirmcode UDINT FirmCode of the license duiProductcode UDINT ProductCode of the license bReleaseLicense BOOL TRUE: Release license so it can be used several from several instances FALSE: Don’t release license so it remains occupied and cannot be used by another instance Inout licenseEntry RTS_CMBOXENTRY Returns the content of the license entry
CodeMGetExpirationTime (FUN) ¶ FUNCTION CodeMGetExpirationTime : RTS_IEC_RESULT Get expiration time of an opened license InOut: Scope Name Type Comment Return CodeMGetExpirationTime RTS_IEC_RESULT Error code (see CmpErrors2 Interfaces Library) or ERR_OK if succeeded Input hCodeMeter RTS_IEC_HANDLE Handle to the CodeMeter license container retrieved by CodeMOpen(). Inout dtExpiration DT Expiration time of the license
CodeMGetFirst (FUN) ¶ FUNCTION CodeMGetFirst : RTS_IEC_HANDLE Open the first CodeMeter license container InOut: Scope Name Type Comment Return CodeMGetFirst RTS_IEC_HANDLE Handle to the CodeMeter container or RTS_INVALID_HANDLE if not available! Inout Result RTS_IEC_RESULT Returns error code (see CmpErrors2 Interfaces Library) or ERR_OK if succeeded
CodeMGetInfo (FUN) ¶ FUNCTION CodeMGetInfo : RTS_IEC_RESULT Get information of the opened CodeMeter device InOut: Scope Name Type Comment Return CodeMGetInfo RTS_IEC_RESULT Error code (see CmpErrors2 Interfaces Library) or ERR_OK if succeeded Input hCodeMeter RTS_IEC_HANDLE Handle to the CodeMeter license container retrieved by CodeMOpen() or CodeMGetFirst / CodeMGetNext. Inout info RTS_CODEMETER_INFO Returns information about the specified CodeMeter license container
CodeMGetName (FUN) ¶ FUNCTION CodeMGetName : RTS_IEC_RESULT Get name of the opened CodeMeter container InOut: Scope Name Type Comment Return CodeMGetName RTS_IEC_RESULT Error code (see CmpErrors2 Interfaces Library) or ERR_OK if succeeded Input hCodeMeter RTS_IEC_HANDLE Handle to the CodeMeter license container retrieved by CodeMOpen() or CodeMGetFirst / CodeMGetNext. Inout wstName WSTRING(255) Returns the name of the specified CodeMeter license container Input nLenBytes UDINT Maximum length of wstName: SIZEOF(wstName)
CodeMGetNext (FUN) ¶ FUNCTION CodeMGetNext : RTS_IEC_HANDLE Open the next CodeMeter license container InOut: Scope Name Type Comment Return CodeMGetNext RTS_IEC_HANDLE Handle to the CodeMeter container or RTS_INVALID_HANDLE if not available! Input hPrevCodeMeter RTS_IEC_HANDLE Handle to the previous CodeMeter license container retrieved by CodeMGetFirst / CodeMGetNext. Inout Result RTS_IEC_RESULT Returns error code (see CmpErrors2 Interfaces Library) or ERR_OK if succeeded
CodeMGetQuantity (FUN) ¶ FUNCTION CodeMGetQuantity : RTS_IEC_RESULT Get quantity of the license InOut: Scope Name Type Comment Return CodeMGetQuantity RTS_IEC_RESULT Error code (see CmpErrors2 Interfaces Library) or ERR_OK if succeeded Input hCodeMeter RTS_IEC_HANDLE Handle to the CodeMeter license container retrieved by CodeMOpen(). Inout udiQuantity UDINT Quantity of the license
CodeMGetUnitCounter (FUN) ¶ FUNCTION CodeMGetUnitCounter : RTS_IEC_RESULT Get the unit count InOut: Scope Name Type Comment Return CodeMGetUnitCounter RTS_IEC_RESULT Error code (see CmpErrors2 Interfaces Library) or ERR_OK if succeeded Input hCodeMeter RTS_IEC_HANDLE Handle to the CodeMeter license container retrieved by CodeMOpen(). Inout udiUnitCount UDINT Unit counter of the license