SIL2CheckCallerContext (FUN) ¶ FUNCTION SIL2CheckCallerContext : RTS_IEC_RESULT Function to check the current Caller Context. Expected Context is checked vs the current context and an exception is thrown if they are different. InOut: Scope Name Type Return SIL2CheckCallerContext RTS_IEC_RESULT Input udiCallerContextExpected UDINT
SIL2CopyCodeGuid (FUN) ¶ FUNCTION SIL2CopyCodeGuid : RTS_IEC_RESULT Function to copy the current CodeGuid to a given location (by Pointer) IMPORTANT: Size is always 16 BYTES! The caller must provid this much space. InOut: Scope Name Type Return SIL2CopyCodeGuid RTS_IEC_RESULT Input pDstCodeGuid POINTER TO BYTE
SIL2CopyDataGuid (FUN) ¶ FUNCTION SIL2CopyDataGuid : RTS_IEC_RESULT Function to copy the current DataGuid to a given location (by Pointer) IMPORTANT: Size is always 16 BYTES! The caller must provid this much space. InOut: Scope Name Type Return SIL2CopyDataGuid RTS_IEC_RESULT Input pDstDataGuid POINTER TO BYTE
SIL2ExecuteNonSafetyJob (FUN) ¶ FUNCTION SIL2ExecuteNonSafetyJob : RTS_IEC_RESULT Function to delegate a Non-Safety Job This function can be used to delegate a non-safety job from within the safe-context to be executed from the Unsafe context. InOut: Scope Name Type Return SIL2ExecuteNonSafetyJob RTS_IEC_RESULT Input pfNonSafetyJob POINTER TO BYTE pParam POINTER TO BYTE ulSize ULINT
SIL2ExecuteNonSafetyJob_WRAP_FB_INIT (FUN) ¶ FUNCTION SIL2ExecuteNonSafetyJob_WRAP_FB_INIT : RTS_IEC_RESULT InOut: Scope Name Type Return SIL2ExecuteNonSafetyJob_WRAP_FB_INIT RTS_IEC_RESULT Input pInstance POINTER TO BYTE pfNonSafetyJob POINTER TO BYTE bInitRetains BOOL bInCopyCode BOOL
SIL2ExecuteNonSafetyJob_WRAP_INITIALIZE (FUN) ¶ FUNCTION SIL2ExecuteNonSafetyJob_WRAP_INITIALIZE : RTS_IEC_RESULT InOut: Scope Name Type Return SIL2ExecuteNonSafetyJob_WRAP_INITIALIZE RTS_IEC_RESULT Input pInstance POINTER TO BYTE pfNonSafetyJob POINTER TO BYTE wModuleType UINT dwInstance UDINT pConnector POINTER TO IoConfigConnector
SIL2OEMException (FUN) ¶ FUNCTION SIL2OEMException : RTS_IEC_RESULT Function to set Runtime into Exception-Mode. Whenever the runtime detects invalid behaviour, values or states, it calls this function with a specific Exception Code.</p> Depending on the implementation this function may not return! InOut: Scope Name Type Comment Return SIL2OEMException RTS_IEC_RESULT Input udiException RTS_SIL2_EXCEPTION Range > 16#100
SIL2OEMGetCallerContext (FUN) ¶ FUNCTION SIL2OEMGetCallerContext : UDINT Function to get the current Caller Context. Returns RTS_SIL2_CALLERCTX_SAFE or RTS_SIL2_CALLERCTX_UNSAFE depending on Caller context Returns RTS_SIL2_CALLERCTX_ERROR if error occured or if in unknown state. InOut: Scope Name Type Return SIL2OEMGetCallerContext UDINT
SIL2OEMGetMemoryState (FUN) ¶ FUNCTION SIL2OEMGetMemoryState : RTS_SIL2_ADDRESSSTATE Function to get the MemoryState (safe/unsafe) for a specific Memoryrange. The Addressrange where pAddress points to with the length of ulLength is checked and the corresponding RTS_SIL2_ADDRESSSTATE is returned: RTS_SIL2_ADDRESS_SAFE or RTS_SIL2_ADDRESS_UNSAFE. InOut: Scope Name Type Return SIL2OEMGetMemoryState RTS_SIL2_ADDRESSSTATE Input pAddress POINTER TO BYTE udiLength UDINT
SIL2OEMGetOperationMode (FUN) ¶ FUNCTION SIL2OEMGetOperationMode : RTS_SIL2_OPMODE Function to get the Operationmode of the Runtime Returns RTS_SIL2_OPMODE_DEBUG or RTS_SIL2_OPMODE_SAFE depending on Operationmode, Returns RTS_SIL2_OPMODE_ERROR if error occured or if in unknown state InOut: Scope Name Type Return SIL2OEMGetOperationMode RTS_SIL2_OPMODE