IsCurrentTask (FUN) ¶ FUNCTION IsCurrentTask : BOOL Checks whether hTask is the current task. Always returns TRUE if hTask = RTS_INVALID_HANDLE or the compiler define SM3_DISABLE_TASK_CHECKS is set. InOut: Scope Name Type Input hTask SysTypes.RTS_IEC_HANDLE Return IsCurrentTask BOOL
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 26.07.2024, 11:48:59 companyName string 3S-Smart Software Solutions GmbH libraryFile SM3_Shared.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile SM3_Shared.clean.json version version 2.0.0.0 ProjectInformation IsEndUserLibrary bool False Released True LastModificationDateTime date 26.07.2024, 11:48:57 LibraryCategories library-category-list Intern|SoftMotion Author string CODESYS Development GmbH Company CODESYS CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 DefaultNamespace SM0 Description See: Description LanguageModelAttribute qualified-access-only Placeholder SM3_Shared Project SM3_Shared Title SM3_Shared Version version 4.17.0.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CmpErrors2 Interfaces ¶ Library Identification ¶ Name: CmpErrors2 Interfaces Version: newest Company: System Namespace: CmpErrors Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpErrors2 Interfaces, * (System) CmpIecTask ¶ Library Identification ¶ Placeholder: CmpIecTask Default Resolution: CmpIecTask, * (System) Namespace: CmpIecTask Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CmpIecTask CmpLog ¶ Library Identification ¶ Placeholder: CmpLog Default Resolution: CmpLog, * (System) Namespace: CmpLog Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CmpLog FloatingPointUtils ¶ Library Identification ¶ Placeholder: FloatingPointUtils Default Resolution: FloatingPointUtils, * (System) Namespace: FPU Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: FloatingPointUtils IoStandard ¶ Library Identification ¶ Placeholder: IoStandard Default Resolution: IoStandard, * (System) Namespace: IoStandard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoStandard SM3_CommonPublic ¶ Library Identification ¶ Placeholder: SM3_CommonPublic Default Resolution: SM3_CommonPublic, * (CODESYS) Namespace: SM3_Common Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: SM3_CommonPublic SM3_Error ¶ Library Identification ¶ Placeholder: SM3_Error Default Resolution: SM3_Error, * (CODESYS) Namespace: SM3_Error Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: SM3_Error Standard ¶ Library Identification ¶ Placeholder: Standard Default Resolution: Standard, * (System) Namespace: Standard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Standard SysDir ¶ Library Identification ¶ Placeholder: SysDir Default Resolution: SysDir, * (System) Namespace: SysDir Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: SysDir SysFile ¶ Library Identification ¶ Placeholder: SysFile Default Resolution: SysFile, * (System) Namespace: SysFile Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: SysFile SysMem23 ¶ Library Identification ¶ Placeholder: SysMem Default Resolution: SysMem23, * (System) Namespace: SysMem Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: SysMem SysTypes2 Interfaces ¶ Library Identification ¶ Name: SysTypes2 Interfaces Version: newest Company: System Namespace: SysTypes Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTypes2 Interfaces, * (System)
Is_Lines_2D (FUN) ¶ FUNCTION Is_Lines_2D : BOOL Computes the point of intersection of two 2D lines. If there is none, or infinitely many, FALSE is returned. InOut: Scope Name Type Return Is_Lines_2D BOOL Inout v SM3M.SMC_VECTOR3D Inout Const l1 Line l2 Line
OutRealTimeStream (FB) ¶ FUNCTION_BLOCK OutRealTimeStream IMPLEMENTS IOutStream The real time stream allows to write from a real time task by buffering the data. The buffered data is then written to the final stream (e.g. a file) from a different task. Methods: CommitToStream Init Write Structure: CommitToStream (Method) Init (Method) Write (Method)
OutRealTimeStream.CommitToStream (METH) ¶ METHOD CommitToStream : BOOL Call this method cyclically from a lower priority task. It will write the buffered data to the given stream. InOut: Scope Name Type Return CommitToStream BOOL Input stream IOutStream
DynVState_ApplyParamState (FUN) ¶ FUNCTION DynVState_ApplyParamState : BOOL Assuming uDst(x) = uSrc(sigma(x)), and given ps = (sigma(x), sigma’(x), sigma’’(x)), computes the first two derivatives of uDst(x) according to the chain rule. InOut: Scope Name Type Return DynVState_ApplyParamState BOOL Inout uDst SMRB.DynVState Inout Const uSrc SMRB.DynVState ps ParamState Input bCompute3rdDeriv BOOL
OutRealTimeStream.Init (METH) ¶ METHOD Init : BOOL Initializes the stream. Call from low prio task only. Can also be called to reset the stream. Note: it must be ensured that Write is not called from another task until Init() has finished. InOut: Scope Name Type Return Init BOOL
OutRealTimeStream.Write (METH) ¶ METHOD Write : BOOL InOut: Scope Name Type Return Write BOOL Input pData POINTER TO BYTE nLen UDINT
OutStringStream (FB) ¶ FUNCTION_BLOCK OutStringStream IMPLEMENTS IOutStream Methods: GetString Init Write Structure: GetString (Method) Init (Method) Write (Method)