CmpSIL2 Library Documentation ¶ Company System Title CmpSIL2 Version 3.5.17.0 Categories System|SysLibs Author 3S - Smart Software Solutions GmbH Placeholder CmpSIL2 Description 1 ¶ This library provides access to important SIL2 functions of the runtime system. Contents: ¶ GUIDS (GVL) GuidHelper (FunctionBlock) FB_INIT (Method) RTS_SIL2_ADDRESSSTATE (Enum) RTS_SIL2_CALLERCTX (Enum) RTS_SIL2_EXCEPTION (Alias) RTS_SIL2_OPMODE (Enum) SIL2AddLog (Function) SIL2CheckCallerContext (Function) SIL2CopyCodeGuid (Function) SIL2CopyDataGuid (Function) SIL2ExecuteNonSafetyJob (Function) SIL2ExecuteNonSafetyJob_WRAP_FB_INIT (Function) SIL2ExecuteNonSafetyJob_WRAP_INITIALIZE (Function) SIL2OEMException (Function) SIL2OEMGetCallerContext (Function) SIL2OEMGetMemoryState (Function) SIL2OEMGetOperationMode (Function) SIL2OEMStackIsValid (Function) WRAP_FB_INIT_STRUCT (Struct) WRAP_INITIALIZE_STRUCT (Struct) Indices and tables ¶ 1 Based on CmpSIL2.library, last modified 20.04.2021, 15:55:56. LibDoc 4.4.0.0-b.27 The content file CmpSIL2.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 20.04.2021, 15:55:56.
GUIDS (GVL) ¶ InOut: Name Type HELPER GuidHelper
GuidHelper (FB) ¶ FUNCTION_BLOCK GuidHelper InOut: Scope Name Type Output CODEGUID ARRAY [0..15] OF BYTE Result_CODE RTS_IEC_RESULT DATAGUID ARRAY [0..15] OF BYTE Result_DATA RTS_IEC_RESULT Methods: FB_INIT Structure: FB_INIT (Method)
GuidHelper.FB_INIT (METH) ¶ METHOD FB_INIT : BOOL InOut: Scope Name Type Return FB_INIT BOOL Input bInitRetains BOOL bInCopyCode BOOL
RTS_SIL2_ADDRESSSTATE (ENUM) ¶ TYPE RTS_SIL2_ADDRESSSTATE : InOut: Name Initial RTS_SIL2_ADDRESS_SAFE 16#CCDD RTS_SIL2_ADDRESS_UNSAFE 16#5566
RTS_SIL2_CALLERCTX (ENUM) ¶ TYPE RTS_SIL2_CALLERCTX : InOut: Name Initial RTS_SIL2_CALLERCTX_SAFE 16#BBAA RTS_SIL2_CALLERCTX_UNSAFE 16#DDCC RTS_SIL2_CALLERCTX_ERROR 16#FFFF
RTS_SIL2_EXCEPTION (ALIAS) ¶ TYPE RTS_SIL2_EXCEPTION : UDINT
RTS_SIL2_OPMODE (ENUM) ¶ TYPE RTS_SIL2_OPMODE : InOut: Name Initial RTS_SIL2_OPMODE_SAFE 16#AABB RTS_SIL2_OPMODE_DEBUG 16#7788 RTS_SIL2_OPMODE_ERROR 16#FFFF
SIL2AddLog (FUN) ¶ FUNCTION SIL2AddLog : RTS_IEC_RESULT Function to add a secure Logentry These secure logentries don’t use the standard Logging mechanism! With this function it is possible to add secure messages to a Messagequeue within CmpSIL2. This Messagequeue can be fetched by an Onlineservice from the SIL2 Programmingsystemplugin. The messages are stored and transmitted with a CRC to provide a secure logging. The maximal length of the string might be restricted in the Runtime (CMPSIL2_LOGADD_MAX_STRLEN). InOut: Scope Name Type Return SIL2AddLog RTS_IEC_RESULT Input sMessage STRING(80) udiLogId UDINT
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