CryptoSymmetricEncrypt (FUN) ¶ FUNCTION CryptoSymmetricEncrypt : RTS_IEC_RESULT Perform a symmetric encryption using the algorithm handle. InOut: Scope Name Type Comment Return CryptoSymmetricEncrypt RTS_IEC_RESULT Result of the operation Input hAlgo RTS_IEC_HANDLE Handle to the algorithm. pPlainText POINTER TO RtsByteString Data to be encrypted key RtsCryptoKey Key to encrypt the data. Has to be a KeyType_Key key. pInitVector POINTER TO RtsByteString Init vector of the ecryption xEnablePadding BOOL Enables padding. If this is not enabled the plaintext length has to match a multiple of the block length. pCipherText POINTER TO RtsByteString Encrypted data.
EventDelete2 (FUN) ¶ FUNCTION EventDelete2 : RTS_IEC_RESULT Deletes an event specified by handle. InOut: Scope Name Type Comment Return EventDelete2 RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE Event handle
EventGetClass (FUN) ¶ FUNCTION EventGetClass : UINT Extract the event class from eventid. Return value is the event class InOut: Scope Name Type Comment Return EventGetClass UINT Input EventId UDINT Event id
EventGetEvent (FUN) ¶ FUNCTION EventGetEvent : UINT Extract the event from eventid. Return value ist the event InOut: Scope Name Type Comment Return EventGetEvent UINT Input EventId UDINT Event ID
EventOpen (FUN) ¶ FUNCTION EventOpen : RTS_IEC_HANDLE Opens an existing event object. Can be used to check, if the event was created by the provider. If the event does not exist, an error code is returned. InOut: Scope Name Type Comment Return EventOpen RTS_IEC_HANDLE Input EventId UDINT EventID of the event. Contains the class and the event CmpIdProvider UDINT Component ID of the provider Inout Result RTS_IEC_RESULT Error code
EventPost (FUN) ¶ FUNCTION EventPost : RTS_IEC_RESULT Post or sent an event InOut: Scope Name Type Comment Return EventPost RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE Event handle pEventParam POINTER TO EventParam Pointer to the event parameters
EventPost2 (FUN) ¶ FUNCTION EventPost2 : RTS_IEC_RESULT Post or sent an event InOut: Scope Name Type Comment Return EventPost2 RTS_IEC_RESULT Input hEvent RTS_IEC_HANDLE Event handle pEventParam POINTER TO EventParam2 Pointer to the event parameters
EventPostByEvent (FUN) ¶ FUNCTION EventPostByEvent : RTS_IEC_RESULT Post an event direct without the event handle InOut: Scope Name Type Comment Return EventPostByEvent RTS_IEC_RESULT Input EventId UDINT Event ID of the event. Contains the class and the event CmpIdProvider UDINT Component ID of the provider pEventParam POINTER TO EventParam Pointer to the event parameters
EventPostByEvent2 (FUN) ¶ FUNCTION EventPostByEvent2 : RTS_IEC_RESULT Post an event direct without the event handle InOut: Scope Name Type Comment Return EventPostByEvent2 RTS_IEC_RESULT Input EventId UDINT Event ID of the event. Contains the class and the event CmpIdProvider UDINT Component ID of the provider pEventParam POINTER TO EventParam2 Pointer to the event parameters
EventRegisterCallback (FUN) ¶ FUNCTION EventRegisterCallback : RTS_IEC_HANDLE Register an callback method to an event. The callback must be an interface from an Iec function block! Result will be set to ERR_DUPLICATE if pICallback is already registered. InOut: Scope Name Type Comment Return EventRegisterCallback RTS_IEC_HANDLE Input hEvent RTS_IEC_HANDLE Handle to event pICallback ICmpEventCallback Interface ICmpEventCallback Inout Result RTS_IEC_RESULT Error code