File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 11.09.2023, 10:42:01 companyName string 3S-Smart Software Solutions GmbH libraryFile SNTP Service SL.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile SNTP Service SL.clean.json version version 2.0.0.0 ProjectInformation ActivateDongleLicensing bool False IsEndUserLibrary True OnlineHelp True Released True LastModificationDateTime date 11.09.2023, 10:41:58 FirmCode int 101597 ProductCode 8719 LibraryCategories library-category-list Application|Utils ActivationMail string support@codesys.com ActivationUrl http://license.codesys.com AlternativeFirmCodes 5000304 Author CODESYS Development GmbH Company CODESYS CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 Patch 2 DefaultNamespace SNTP Description See: Description DocFormat reStructuredText DocLanguages en,de LanguageModelAttribute qualified-access-only Placeholder SNTP_Service_SL Project SNTP Service SL Title SNTP Service SL Version version 1.9.0.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. 3SLicense ¶ Library Identification ¶ Placeholder: 3SLicense Default Resolution: 3SLicense, * (3S - Smart Software Solutions GmbH) Namespace: _3S_LICENSE Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: 3SLicense 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) CmpLog ¶ Library Identification ¶ Placeholder: CmpLog Default Resolution: CmpLog, * (System) Namespace: CmpLog Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpLog Component Manager ¶ Library Identification ¶ Placeholder: Component Manager Default Resolution: Component Manager, * (System) Namespace: Component_Manager Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Component Manager Net Base Services ¶ Library Identification ¶ Placeholder: NetBaseSrv Default Resolution: Net Base Services, * (3S - Smart Software Solutions GmbH) Namespace: NBS Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: NetBaseSrv Standard ¶ Library Identification ¶ Placeholder: Standard Default Resolution: Standard, * (System) Namespace: Standard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Standard SysTime ¶ Library Identification ¶ Name: SysTime Version: 3.5.9.0 Company: System Namespace: SysTime Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTime, 3.5.9.0 (System) 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)
String Util Intern Library Documentation ¶ Company : CODESYS Title : String Util Intern Version : 1.10.0.0 Categories : Intern Namespace : MSU Author : CODESYS Development GmbH Placeholder : String_Util_Intern Description [ 1 ] ¶ This library is an internal collection of string processing POUs that can process strings with a maximum length of UDINT. Contents: ¶ String Util Intern Enums Function Blocks Functions Types Indices and tables ¶ [ 1 ] Based on String Util Intern.library, last modified 06.05.2024, 08:27:42. LibDoc 4.5.0.0 The content file String Util Intern.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 06.05.2024, 08:27:46.
String Util Intern ¶ Enums ERROR (Enum) Function Blocks StringWriter (FunctionBlock) AppendBuffer (Method) AppendData (Method) AppendString (Method) AppendWString (Method) Clear (Method) CopyString (Method) Functions FindString (Function) FindWString (Function) MidWString (Function) Replace (Function) StrConcatA (Function) StrConcatW (Function) StrLenA (Function) StrLenW (Function) StrMidA (Function) StrReplaceW (Function) StrToUpperA (Function) StrTrimW (Function) Types CharBufferPtr (Alias)
ERROR (ENUM) ¶ TYPE ERROR : {attribute ‘conditionalshow’} {attribute ‘conditionalshow’ := ‘SomeText’} {attribute ‘hide’} Attributes: qualified_only InOut: Name NO_ERROR TIME_OUT INVALID_PARAMETER MEMORY_CAPACITY NOT_FOUND
Function Blocks ¶ StringWriter (FunctionBlock) AppendBuffer (Method) AppendData (Method) AppendString (Method) AppendWString (Method) Clear (Method) CopyString (Method)
StringWriter (FB) ¶ FUNCTION_BLOCK StringWriter The StringWriter is ideal for creating large strings. You can concatenate STRINGs with the method AppendString and WSTRINGs with the method AppendWString. The data is copied to an internal memory. Strings with a maximum length of UDINT can be passed. The normal workflow is as follows: You start with a fresh StringWriter or you initialize the existing one with the method StringWriter.Clear . Subsequently, the concatenation methods StringWriter.AppendString or StringWriter.AppendWString are used. Attention Mixed operation is not permitted! Only a concatenation of the same string type is possible. The data is transferred to the internal memory without filtering or any kind of type conversion. Finally, copy the result to the desired location using the method StringWriter.CopyString . Note If there is a need to concatenate larger constant character strings again and again, it is possible to reduce the memory requirement and increase performance by providing these character strings with an SBM.Buffer and passing them to the method StringWriter.AppendBuffer . Methods: AppendBuffer AppendData AppendString AppendWString Clear CopyString Structure: AppendBuffer (Method) AppendData (Method) AppendString (Method) AppendWString (Method) Clear (Method) CopyString (Method)
StringWriter.AppendBuffer (METH) ¶ METHOD AppendBuffer : ERROR AppendBuffer adds the passed buffer to the end of the current user data. The transfer takes place by reference and the specified free memory of this buffer is used for further use. Note Normally, buffers with a remaining length of 0 are transferred. Otherwise the original buffer might be changed with further operations! Schematic mode of operation ¶ Tip Larger constant character strings should be concatenate again and again by buffers. 1 PROGRAM PLC_PRG 2 VAR CONSTANT 3 c_wsLargeString : WSTRING ( 300 ) := 'Large information ...' ; 4 END_VAR 5 VAR 6 bfLargeString : SBM.Buffer := ( pData := ADR ( c_wsLargeString ), udiSize := 300 * 2 ); 7 StringWriter : MSU.StringWriter ; 8 9 ... 10 END_VAR 11 12 StringWriter.AppendBuffer ( itfBuffer := bfLargeString , udiFreePageSize := 0 ); 13 14 ... InOut: Scope Name Type Comment Return AppendBuffer ERROR Input itfBuffer SBM.IBuffer udiFreePageSize UDINT Buffer to append
StringWriter.AppendData (METH) ¶ METHOD PROTECTED AppendData : ERROR AppendData adds the referenced data to the end. If the free internal memory is insufficient, it is expanded and, if necessary, the data transferred is distributed among several internal administrative buffer pages. Schematic mode of operation ¶ InOut: Scope Name Type Comment Return AppendData ERROR Input pbyData POINTER TO BYTE udiSize UDINT address to raw data