Unit Conversion Interfaces Library Documentation ¶ Company : Intern Title : Unit Conversion Interfaces Version : 4.5.0.0 Categories : Intern Namespace : UC Author : CODESYS Development GmbH Description [ 1 ] ¶ Interface library for unit conversions. Indices and tables ¶ [ 1 ] Based on UnitConversion_Itfs.library, last modified 13.12.2023, 11:05:26. LibDoc 4.4.0.0-b.37 The content file UnitConversion_Itfs.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 13.12.2023, 11:05:27.
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 13.12.2023, 11:05:27 companyName string 3S-Smart Software Solutions GmbH libraryFile UnitConversion_Itfs.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile UnitConversion_Itfs.clean.json version version 2.0.0.0 ProjectInformation IECCodeConverter bool True IsInterfaceLibrary True Released True LastModificationDateTime date 13.12.2023, 11:05:26 LibraryCategories library-category-list Intern Author string CODESYS Development GmbH Company Intern CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 DefaultNamespace UC Description See: Description LanguageModelAttribute qualified-access-only Project UnitConversion_Itfs Title Unit Conversion Interfaces Version version 4.5.0.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces.
Util Library Documentation ¶ Company System Title Util Version 3.5.19.0 Categories Application|Common Author 3S - Smart Software Solutions GmbH Placeholder Util Description 1 ¶ Provides data types for generator modes and points. And provides function blocks and functions for the following use cases: Analog monitors, BCD conversions, bit/byte functions, controller, function manipulators, mathematical functions and signals. In the folder TimerSwitch the types, functions and function blocks are located for handling UTC and local time and the implementation of a timer switch. Contents: ¶ Analog Monitors HYSTERESIS (FunctionBlock) LIMITALARM (FunctionBlock) BCD Conversions BCD_TO_BYTE (Function) BCD_TO_DWORD (Function) BCD_TO_INT (Function) BCD_TO_WORD (Function) BYTE_TO_BCD (Function) DWORD_TO_BCD (Function) INT_TO_BCD (Function) WORD_TO_BCD (Function) Bit/Byte Functions BIT_AS_BYTE (FunctionBlock) BIT_AS_DWORD (FunctionBlock) BIT_AS_WORD (FunctionBlock) BYTE_AS_BIT (FunctionBlock) DWORD_AS_BIT (FunctionBlock) EXTRACT (Function) GETBIT (Function) PACK (Function) PUTBIT (Function) SETBIT (Function) SWITCHBIT (Function) UNPACK (FunctionBlock) WORD_AS_BIT (FunctionBlock) Constants TextBlockSize (ParamList) Controller PD (FunctionBlock) PID (FB) Temperature control with PID and LIMIT PID_FIXCYCLE (FunctionBlock) Datatypes GEN_MODE (Enum) POINT (Struct) PT_SIZE (Struct) Encoding BASE64 (Function) Function Manipulators CHARCURVE (FunctionBlock) RAMP_INT (FunctionBlock) RAMP_REAL (FunctionBlock) Gray Conversions BYTE_TO_GRAY (Function) DWORD_TO_GRAY (Function) GRAY_TO_BYTE (Function) GRAY_TO_DWORD (Function) GRAY_TO_WORD (Function) WORD_TO_GRAY (Function) HEX/ASCII Functions BYTE_TO_HEXinASCII (Function) HEXinASCII_TO_BYTE (Function) WORD_AS_STRING (Function) Library Information GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function) Mathematical Functions DERIVATIVE (FunctionBlock) INTEGRAL (FunctionBlock) LIN_TRAFO (FunctionBlock) ROTATION_DIFFERENCE (FunctionBlock) STATISTICS_INT (FunctionBlock) STATISTICS_REAL (FunctionBlock) VARIANCE (FunctionBlock) Signals BLINK (FunctionBlock) FREQ_MEASURE (FunctionBlock) GEN (FunctionBlock) TimerSwitch Enums FunctionBlocks Functions GlobalConstants Interfaces Structs Types Indices and tables ¶ 1 Based on Util.library, last modified 02.03.2023, 10:46:37. LibDoc 4.4.0.0-b.27 The content file Util.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 02.03.2023, 10:46:40.
Analog Monitors ¶ HYSTERESIS (FunctionBlock) LIMITALARM (FunctionBlock)
HYSTERESIS (FB) ¶ FUNCTION_BLOCK HYSTERESIS Realizes a hysteresis function InOut: Scope Name Type Comment Input IN INT Input value HIGH INT Upper limit LOW INT Lower limit Output OUT BOOL TRUE : Input IN is less than input LOW FALSE : Input IN is greater than input HIGH
BCD Conversions ¶ A BYTE in the BCD format contains integers between 0 and 99. Four BITs are used for each decimal place. The ten decimal place is stored in the BITs 4-7. Thus the BCD format is similar to the hexadecimal presentation, with the simple difference that only values between 0 and 99 can be stored in a BCD BYTE, whereas a hexadecimal BYTE reaches from 0 to FF. Example: The integer 51 should be converted to BCD format: 5 in binary code is 0101, 1 in binary code is 0001, which makes the BYTE 01010001 in BCD code, which corresponds to the value $51=81. BCD_TO_BYTE (Function) BCD_TO_DWORD (Function) BCD_TO_INT (Function) BCD_TO_WORD (Function) BYTE_TO_BCD (Function) DWORD_TO_BCD (Function) INT_TO_BCD (Function) WORD_TO_BCD (Function)
Port.GetOption (METH) ¶ METHOD GetOption : SysTypes.RTS_IEC_RESULT Sets an option on the socket InOut: Scope Name Type Comment Return GetOption SysTypes.RTS_IEC_RESULT Input diSockOption DINT Option to get pdiOption POINTER TO DINT Return value of option
Port.IoControl (METH) ¶ METHOD IoControl : SysTypes.RTS_IEC_RESULT Executes a command on the socket InOut: Scope Name Type Comment Return IoControl SysTypes.RTS_IEC_RESULT Input diCommand DINT Command to execute pdiParam POINTER TO DINT Command result
Port.SetOption (METH) ¶ METHOD SetOption : SysTypes.RTS_IEC_RESULT Sets an option on the socket InOut: Scope Name Type Comment Return SetOption SysTypes.RTS_IEC_RESULT Input diSockOption DINT Option to set pdiOptionValue POINTER TO DINT Value of option diOptionLength DINT Length of the option value