# Library of General Functions (LGF)

Overview

# Library overview

## General information

TIA Portal has an extensive number of "ready-to-use" instructions (mathematical functions, times, counters, etc.). In addition, there are other useful basic functions.

These functions are provided in the form of a library and they can be used freely. The finished functions are freely customizable and can therefore be used universally.

The library described here is versioned and it will be continuously extended. For information on versioning, see Chapter "Versioning".

## Hardware and software requirements

#### Requirements for this library

In order to be able to use the functionality of the library described here, the following hardware and software requirements must be met.

#### Hardware

All blocks (FB, FC, DB, ...) in the library can be used universally with the following controllers:

- SIMATIC S7-1200 and SIMATIC S7-1200 F product family
  (from firmware V4.2)
- SIMATIC S7-1500 and SIMATIC S7-1500 F product family
  (from firmware V2.0)
- Simulation with SIMATIC S7-PLCSIM
  (from V14)

#### Software

- SIMATIC STEP 7 Basic/Professional (TIA PORTAL)

NOTE
  In general, it is possible to open a library with STEP 7 Basic, although STEP 7 Professional elements (e.g. SIMATIC S7-1500 controller) are included. In this case you will be informed with a message when opening the library.
  All elements (types and copy templates) can be used if they are supported by the hardware installed in the TIA Portal.
  If you try to copy elements with STEP 7 Basic from the library that are not supported (e.g. SIMATIC S7-1500 controller), an error message is displayed.

# Working with the library

## General information

All blocks in the "LGF" library can be used freely in conjunction with SIMATIC S7-1200 and SIMATIC S7-1500 controllers.

Most of the blocks are stored as types in the library. This means that the blocks are versioned and can thus use all advantages.

- Central update function for library elements
- Versioning of library elements

Note
  Information on the general handling of libraries is provided in the Guideline for Library Handling
  https://support.industry.siemens.com/cs/ww/en/view/109747503
  and in the Programming Guideline for S7-1200/1500 in the chapter "Libraries".
  https://support.industry.siemens.com/cs/ww/en/view/81318674

Note
  All blocks in the LGF were created in accordance with the Programming Style Guide.
  https://support.industry.siemens.com/cs/ww/en/view/81318674

For more information on libraries, visit the TIA Portal:

- Libraries in the TIA Portal
  https://support.industry.siemens.com/cs/ww/en/view/109738702

- How do you open libraries in STEP 7 (TIA Portal)?
  https://support.industry.siemens.com/cs/ww/en/view/37364723

- Automate in less than 10 minutes TIA Portal: Time Savers – Global libraries
  https://support.industry.siemens.com/cs/ww/en/view/78529894

- Which elements from STEP 7 (TIA Portal) can be stored in a library as a type or as a copy template?
  https://support.industry.siemens.com/cs/ww/en/view/109476862

- How can you automatically open a global library when starting TIA Portal V13 or higher and use it e.g. as a corporate library?
  https://support.industry.siemens.com/cs/ww/en/view/100451450

- Library with PLC data types for IO module / technology modules and PROFIdrive drives (LPD)
  https://support.industry.siemens.com/cs/ww/en/view/109482396

## Simulation capability with SIMATIC S7-PLCSIM Advanced

Simulation with SIMATIC S7-PLCSIM Advanced is already activated in the properties of the LGF blocks.

After translation with SIMATIC S7-PLCSIM Advanced, proceed as follows so that the blocks can be simulated.

1. Open the properties of your project and activate the option "Support simulation during block compilation" in the "Protection" tab.

Note
  Blocks with activated simulation capability take up more memory space in the PLC.

## User-defined documentation (user help)

In order to explain the principle of operation and use of the blocks to users of the LGF library, user-defined documentation has been created for each block.
The user-defined documentation per block is available in German and English as a PDF file. The PDF files are stored in the following directories of the LGF library.

- German: `"UserFiles\UserDocumentation\en-DE\Library Types"`
- English: `"UserFiles\UserDocumentation\en-US\Library Types"`

The user-defined documentation for a block can be called up in the Task Card "Library" and in the library view with the key combination `<Shift+F1>`.
The respective PDF is always opened with the standard program defined in Microsoft Windows.

So that the user-defined documentation of the blocks can also be called up in the project navigation, you must copy the directories with the PDF files into the project directory `UserFiles`.

Note
  For user-defined documentation, you require SIMATIC STEP 7 Basic / Professional V15.1 Update 1.

#### Central directory for user-defined documentation

Alternatively, you can store the user-defined documentation in a central directory for all projects. To define a central storage location for user help, proceed as follows:

1. In the "Options" menu, select the "Settings" command.
2. Open the area "General > General".
3. Navigate to the "User documentation" section.
4. Activate the checkbox "Display call log for user-defined documentation" to display a log of the call-up of the user-defined documentation in the Inspector window.
5. Activate the "Search for user-defined documentation in a central directory" checkbox to store user-defined documentation in a central directory for projects.
6. In the "Central directory for user-defined documentation" field, specify the path where you want to store cross-project documentation.

Note
  Do not change the names of the PDF, because the file name must precisely match the name of the object in the TIA Portal.

Note
  Further information on the user-defined documentation can be found in the system manual "SIMATIC STEP 7 Basic/Professional V15.1 and SIMATIC WinCC V15.1":
  https://support.industry.siemens.com/cs/ww/en/view/109755202/114872699275

# Explanation of the blocks

The chapters below describe all blocks of the library, "Library of General Functions".
The chapters have the same structure as the library itself.

All blocks are divided into application areas or categories:

- Bit logic operations
- Date and timer operations
- Counter operations
- Comparator operations
- Math operations
- Data handling
- Converter operations
- Signal generators
- Technology operations
- Measurement operations

# Program blocks

- Program blocks
  - 00 Bit logic operations
    - LGF_BitReset (FC / 3.0.1)
    - LGF_BitSet (FC / 3.0.1)
    - LGF_BitSetTo (FC / 3.0.1)
    - LGF_BitTest (FC / 3.0.1)
    - LGF_BitToggle (FC / 3.0.1)
    - LGF_IecTimerOnOff (FB / 1.0.0)
    - LGF_PulseRelay (FB / 3.0.1)
  - 01 Date and timer operations
    - LGF_GetCalendarDay (FC / 3.0.1)
    - LGF_GetCalendarWeek_ISO (FC / 3.0.1)
    - LGF_GetCalendarWeek_US (FC / 3.0.1)
    - LGF_IsGermanHoliday (FC / 3.0.1)
    - LGF_AstroClock (FB / 3.0.1)
    - LGF_DelayProgram (FB / 1.0.0)
    - LGF_GetClockState (FB / 1.0.0)
    - LGF_SetTime (FB / 3.0.3)
    - LGF_TimerSwitch (FB / 3.1.0)
  - 02 Counter operations
    - LGF_BitCount (FC / 3.0.2)
    - LGF_CountArrayElements (FC / 1.0.0)
    - LGF_CountBooleanEdges (FB / 1.0.0)
    - LGF_CountFalInDWord (FB / 3.0.1)
    - LGF_CountRisInDWord (FB / 3.0.1)
    - LGF_GetBitStates (FB / 1.0.0)
  - 03 Comparator operations
    - LGF_BinaryMaskCompare (FC / 1.0.0)
    - LGF_CompareLReal (FC / 3.0.2)
    - LGF_CompareLRealByPrecision (FC / 3.0.2)
    - LGF_CompareString (FC / 1.0.0)
    - LGF_CompareVariant (FC / 3.0.1)
  - 04 Math operations
    - LGF_CalcDistance_2D (FC / 3.0.1)
    - LGF_CalcDistance_3D (FC / 3.0.1)
    - LGF_GetFactorial (FC / 3.0.1)
    - LGF_IsNumber (FC / 1.0.0)
    - LGF_IsValueInLimits (FC / 3.0.1)
    - LGF_IsValueInRange (FC / 3.0.1)
    - LGF_IsValueInTolerance (FC / 3.0.2)
    - LGF_NthRoot (FC / 3.0.1)
    - LGF_Random_DInt (FC / 3.0.1)
    - LGF_Random_Real (FC / 3.0.1)
    - LGF_Random_UDInt (FC / 3.0.1)
    - LGF_RandomRange_DInt (FC / 3.0.1)
    - LGF_RandomRange_Real (FC / 3.0.1)
    - LGF_RandomRange_UDInt (FC / 3.0.1)
    - LGF_RoundByPrecision (FC / 1.0.0)
    - LGF_ScaleLinear (FC / 3.0.1)
    - LGF_SearchMinMax (FC / 3.0.1)
    - LGF_SearchMinMax_DInt (FC / 3.0.2)
    - LGF_SearchMinMax_LReal (FC / 3.0.2)
    - LGF_SearchMinMax_UDInt (FC / 3.0.1)
    - LGF_Integration (FB / 3.1.0)
    - LGF_IsValueInToleranceByTime (FB / 1.0.0)
    - LGF_SimpleAveraging (FB / 1.0.0)
    - LGF_StoreMinMax (FB / 3.0.1)
    - Matrix
      - LGF_MatrixAddition (FC / 3.0.1)
      - LGF_MatrixCompare (FC / 3.0.1)
      - LGF_MatrixInverse (FC / 3.0.1)
      - LGF_MatrixMultiplication (FC / 3.0.1)
      - LGF_MatrixScalarMultiplication (FC / 3.0.2)
      - LGF_MatrixSubtraction (FC / 3.0.1)
      - LGF_MatrixTranspose (FC / 3.0.1)
  - 05 Data handling
    - LGF_CalcCRC16 (FC / 3.1.0)
    - LGF_CalcCRC16Advanced (FC / 3.1.0)
    - LGF_CalcCRC32 (FC / 3.1.0)
    - LGF_CalcCRC32Advanced (FC / 3.1.0)
    - LGF_CalcCRC8 (FC / 3.1.0)
    - LGF_CalcCRC8Advanced (FC / 3.1.0)
    - LGF_CalcCRC8For1Byte (FC / 3.0.1)
    - LGF_IsParityEven (FC / 3.0.1)
    - LGF_IsParityOdd (FC / 3.0.1)
    - LGF_DataLogC (FB / 1.0.0)
    - LGF_FIFO (FB / 4.0.0)
    - LGF_FileDelete (FB / 1.0.0)
    - LGF_FileRead (FB / 1.0.1)
    - LGF_FileReadWriteDelete (FB / 1.0.0)
    - LGF_FileWrite (FB / 1.1.0)
    - LGF_LIFO (FB / 4.0.0)
    - LGF_ShellSort_DInt (FB / 3.0.1)
    - LGF_ShellSort_LReal (FB / 3.0.1)
    - LGF_ShellSort_UDInt (FB / 3.0.1)
    - LGF_ShiftRegister (FB / 4.0.0)
    - LGF_StartValueReadWrite (FB / 1.0.0)
  - 06 Converter operations
    - LGF_BinaryToGray (FC / 3.0.1)
    - LGF_DecodeUtf8 (FC / 1.0.0)
    - LGF_DTLToJulianDate (FC / 0.0.1)
    - LGF_DTLToString_DE (FC / 3.1.1)
    - LGF_DTLToString_ISO (FC / 3.1.1)
    - LGF_DTLToString_US (FC / 1.0.1)
    - LGF_DTLToUnixTime (FC / 3.0.2)
    - LGF_EncodeUtf8 (FC / 1.0.0)
    - LGF_GpsDDToGps (FC / 3.0.2)
    - LGF_GpsToGpsDD (FC / 3.0.2)
    - LGF_GrayToBinary (FC / 3.0.1)
    - LGF_IntToString (FC / 3.0.1)
    - LGF_JulianTimeToDTL (FC / 0.0.1)
    - LGF_StringToDTL_DE (FC / 3.1.0)
    - LGF_StringToDTL_ISO (FC / 3.1.0)
    - LGF_StringToDTL_US (FC / 1.0.0)
    - LGF_StringToInt (FC / 3.0.1)
    - LGF_StringToTaddr (FC / 3.0.1)
    - LGF_StringToTime (FC / 3.1.0)
    - LGF_TaddrToString (FC / 3.0.1)
    - LGF_TimeToString (FC / 3.1.0)
    - LGF_UnixTimeToDTL (FC / 3.0.1)
    - Binary types - Byte Swaping
      - LGF_SwapBlockDWord (FC / 1.0.2)
      - LGF_SwapBlockLWord (FC / 1.0.2)
      - LGF_SwapBlockWord (FC / 1.0.2)
    - Binary types - Split and Merge
      - LGF_MergeBitsToByte (FC / 3.0.1)
      - LGF_MergeBitsToDWord (FC / 3.0.1)
      - LGF_MergeBitsToWord (FC / 3.0.1)
      - LGF_MergeBytesToDWord (FC / 3.0.1)
      - LGF_MergeBytesToWord (FC / 3.0.1)
      - LGF_MergeWordsToDWord (FC / 3.0.1)
      - LGF_SplitByteToBits (FC / 3.0.1)
      - LGF_SplitDWordToBits (FC / 3.0.1)
      - LGF_SplitDWordToBytes (FC / 3.0.1)
      - LGF_SplitDWordToWords (FC / 3.0.1)
      - LGF_SplitWordToBits (FC / 3.0.1)
      - LGF_SplitWordToBytes (FC / 3.0.1)
    - String Operations
      - LGF_ExtractStringFromCharArray (FC / 1.1.0)
      - LGF_ExtractStringFromCharArrayAdv (FC / 1.1.0)
      - LGF_FindStringInCharArray (FC / 1.1.0)
      - LGF_ToLower (FC / 1.0.0)
      - LGF_ToUpper (FC / 1.0.0)
    - Temperature
      - LGF_CelsiusToFahrenheit (FC / 3.0.1)
      - LGF_CelsiusToKelvin (FC / 3.0.1)
      - LGF_ConvertTemperature (FC / 3.0.1)
      - LGF_FahrenheitToCelsius (FC / 3.0.1)
      - LGF_FahrenheitToKelvin (FC / 3.0.1)
      - LGF_KelvinToCelsius (FC / 3.0.1)
      - LGF_KelvinToFahrenheit (FC / 3.0.1)
      - LGF_KelvinToRankine (FC / 3.0.1)
      - LGF_RankineToKelvin (FC / 3.0.1)
  - 07 Signal generators
    - LGF_ClockGen (FB / 1.0.1)
    - LGF_CosinusCI (FB / 3.0.2)
    - LGF_Frequency (FB / 3.0.1)
    - LGF_Impulse (FB / 3.0.1)
    - LGF_RectangleCI (FB / 3.0.1)
    - LGF_SawToothCI (FB / 3.0.1)
    - LGF_SinusCI (FB / 3.0.2)
    - LGF_TriangleCI (FB / 3.0.1)
  - 08 Technology operations
    - LGF_LimRateOfChangeAdvancedCI (FB / 3.0.1)
    - LGF_LimRateOfChangeCI (FB / 3.0.1)
    - LGF_NonLinearInterpolation (FB / 3.0.1)
    - LGF_RampCI (FB / 3.0.1)
  - 09 Measurement operations
    - LGF_AverageAndDeviation (FC / 3.0.1)
    - LGF_DifferenceQuotientFC (FC / 3.0.1)
    - LGF_RegressionLine (FC / 3.0.1)
    - LGF_SimpleSmoothingFC (FC / 3.0.1)
    - LGF_SmoothByPolynomFC (FC / 3.0.1)
    - LGF_Boxplot_DInt (FB / 3.0.3)
    - LGF_Boxplot_LReal (FB / 3.0.3)
    - LGF_Boxplot_UDInt (FB / 3.0.3)
    - LGF_DifferenceQuotientFB (FB / 3.0.1)
    - LGF_FloatingAverage (FB / 3.0.2)
    - LGF_Histogram_DInt (FB / 3.0.3)
    - LGF_Histogram_LReal (FB / 3.0.3)
    - LGF_Histogram_UDInt (FB / 3.0.3)
    - LGF_SimpleSmoothingFB (FB / 3.0.1)
    - LGF_SmoothByPolynomFB (FB / 3.0.1)
  - 10 System operations
    - LGF_IsBigEndian (FC / 1.0.0)
    - LGF_IsLittleEndian (FC / 1.0.0)
    - LGF_ActDeactDevice (FB / 2.0.0)
    - LGF_ActDeactMonitorDevice (FB / 2.0.0)
    - LGF_MeasureCpuLoad (FB / 1.1.1)
    - LGF_ReadPnInterfaceParameter (FB / 1.0.0)
  - 99 Legacy
    - 002 Counter operations
      - LGF_CountFalInDWord (FC / 3.0.1)
      - LGF_CountRisInDWord (FC / 3.0.1)
    - 007 Signal generators
      - LGF_SawTooth (FB / 3.0.1)

# PLC data types

- PLC data types
  - LGF_typeDiagnostics (UDT / V1.0.1)
  - 01 Date and timer operations
    - LGF_typeGPS (UDT / V3.0.1)
    - LGF_typeGPS_DD (UDT / V3.0.1)
    - LGF_typeGPS_DMS (UDT / V3.0.1)
  - 04 Math operations
    - LGF_typeIsValueInToleranceByTimeConfiguration (UDT / V1.0.0)
  - 05 Data handling
    - LGF_typeDataLogParameter (UDT / V1.0.0)
    - LGF_typeFileReadWriteDeleteParameter (UDT / V0.0.1)
    - LGF_typeFileReadWriteDeleteTimestamp (UDT / V0.0.1)
    - LGF_typeFileReadWriteDeleteTimestamps (UDT / V0.0.1)
  - 08 Technology operations
    - LGF_typeNonLinSetpoints (UDT / V3.0.1)
    - LGF_typeRampTimeTable (UDT / V3.0.1)
  - 09 Measurement operations
    - LGF_typeRegressionLine (UDT / V3.0.1)
  - 10 System operations
    - LGF_typeActDeactDeviceParameter (UDT / V2.0.0)
    - LGF_typeActDeactMonitorDeviceParameter (UDT / V2.0.0)
    - LGF_typeMeasureCpuLoad_Configuration (UDT / V1.0.0)
    - LGF_typeMeasureCpuLoad_ConfigurationBlock (UDT / V1.0.0)
    - LGF_typeMeasureCpuLoad_ResultBlock (UDT / V1.0.0)
    - LGF_typeSystemClockGen (UDT / V1.0.0)

# PLC tags & constants

- PLC tags & constants
  - LGF_CONSTANTS (TagTable / global constants)
  - LGF_CONSTANTS_UNITS (TagTable / global constants)
  - LMATH_CONSTANTS (TagTable / global constants)
  - LMATH_CONSTANTS_EXTENDED (TagTable / global constants)
  - LPHYSICS_CONSTANTS (TagTable / global constants)

# Appendix

## Service and support

#### SiePortal

The integrated platform for product selection, purchasing and support - and connection of Industry Mall and Online support. The SiePortal home page replaces the previous home pages of the Industry Mall and the Online Support Portal (SIOS) and combines them.

- Products & Services
  In Products & Services, you can find all our offerings as previously available in Mall Catalog.
- Support
  In Support, you can find all information helpful for resolving technical issues with our products.
- mySieportal
  mySiePortal collects all your personal data and processes, from your account to current orders, service requests and more. You can only see the full range of functions here after you have logged in.

You can access SiePortal via this address: sieportal.siemens.com

#### Technical Support

The Technical Support of Siemens Industry provides you fast and competent support regarding all technical queries with numerous tailor-made offers - ranging from basic support to individual support contracts.

Please send queries to Technical Support via Web form:
support.industry.siemens.com/cs/my/src

#### SITRAIN - Digital Industry Academy

We support you with our globally available training courses for industry with practical experience, innovative learning methods and a concept that's tailored to the customer's specific needs.
For more information on our offered trainings and courses, as well as their locations and dates, refer to our web page:

siemens.com/sitrain

#### Industry Online Support app

You will receive optimum support wherever you are with the "Siemens Industry Online Support" app. The app is available for iOS and Android:

## Industry Mall

The Siemens Industry Mall is the platform on which the entire Siemens Industry product portfolio is accessible. From the selection of products to the order and the delivery tracking, the Industry Mall enables the complete purchasing processing – directly and independently of time and location:
mall.industry.siemens.com

## Links and Literature

No. | Topic
--- | ---
\1\ | Siemens Industry Online Support https://sieportal.siemens.com
\2\ | Link to the entry page of the application exampl https://support.industry.siemens.com/cs/ww/en/view/109479728
\3\ | Programming Guidelines and Programming Style guide for SIMATIC S7-1200 and S7-1500 https://support.industry.siemens.com/cs/ww/en/view/81318674
\4\ | Library with PLC data types (LPD) for STEP 7 (TIA Portal) and SIMATIC S7-1200 / S7-150 https://support.industry.siemens.com/cs/ww/en/view/109482396
\5\ | Guideline on Library Handling in Tia Portal https://support.industry.siemens.com/cs/ww/en/view/109747503
\6\ | Libraries in the TIA Portal https://support.industry.siemens.com/cs/ww/en/view/109738702

## Change documentation

#### Versioning of the library

The library and library elements are maintained in accordance with the table below:

P |  |  |
--- | --- | --- | ---
| Non-compatible change | Compatible change | Error correction
| Reduction of interfaces Changing the interfaces Incompatible extension of functionality | Extension of the interfaces Compatible extension of functionality | Bug fix

#### Versioning example

Example for version numbers and their use

Library | FB1 | FB2 | FC1 | FC2 | Comment
--- | --- | --- | --- | --- | ---
1.0.0 | 1.0.0 | 1.0.0 | 1.0.0 |  | Released
`1.0.1` | `1.0.1` | 1.0.0 | 1.0.0 |  | Troubleshooting of FB1
`1.0.2` | 1.0.1 | `1.0.1` | 1.0.0 |  | Optimization of FB2
`1.0.3` | 1.0.1 | `1.0.2` | 1.0.0 |  | Adjusting Documentation of FB2
`1.1.0` | `1.1.0` | 1.0.1 | 1.0.0 |  | Compatible functional extension to FB1
`1.2.0` | `1.2.0` | 1.0.1 | 1.0.0 |  | Compatible functional extension to FB1
`2.0.0` | `2.0.0` | 1.0.1 | `2.0.0` |  | Incompatible functional extension on FB1 and FC1
`2.0.1` | 2.0.0 | `1.0.2` | 2.0.0 |  | Troubleshooting FB2
(`3.0.0`) `3.0.0` | 2.0.0 | 1.0.2 | 2.0.0 | `1.0.0` | New function FC2, can be labeled as a major or minor release
`3.0.1` | 2.0.0 | 1.0.2 | `2.0.1` | `1.0.1` | Troubleshooting

## Change log

Version & Date | Change description
--- | ---
V5.2.1 10/2025 | UPDATED: LGF_DTLToString_DE / V3.1.1 Spelling errors LGF_DTLToString_ISO / V3.1.1 Spelling errors LGF_DTLToString_US / V1.0.1 Spelling errors LGF_MeasureCpuLoad / V1.1.1 Bugfixed error in loop
V5.2.0 08/2025 | GLOBAL / V5.2.0 Reduce number of templates, all others can be derived from the present templates NEW: LGF_ActDeactDevice / V2.0.0 First released version in different project Refactoring & Improve Code for LGF Integration Thats why we start here with V2.0 for the LGF integration Copy of `LGF_ActDeactMonitorDevice` without device monitoring, just executing activation and deactivation LGF_ActDeactMonitorDevice / V2.0.0 First released version in different project Refactoring & Improve Code for LGF Integration Thats why we start here with V2.0 for the LGF integration LGF_ClockGen / V1.0.1 First released version Integration into LGF LGF_DelayProgram / V1.0.0 First Release LGF_DTLToString_US / V1.0.0 First released version LGF_FileDelete / V1.0.0 First released version LGF_FileReadWriteDelete / V1.0.0 First released version LGF_GetClockState / V1.0.0 First released version LGF_IsNumber / V1.0.0 First release version LGF_MeasureCpuLoad / V1.1.0 First Release Add Output with overall runtime incl. interrupts LGF_RoundByPrecision / V1.0.0 First released version LGF_SimpleAveraging / V1.0.0 First Release LGF_StartValueReadWrite / V1.0.0 First released version LGF_StringToDTL_US / V1.0.0 First released version UPDATED: LGF_Boxplot_DInt / V3.0.3 Fixed bug for array starting index Fixed comments and block info header LGF_Boxplot_LReal / V3.0.3 Fixed bug for array starting index Fixed comments and block info header LGF_Boxplot_UDInt / V3.0.3 Fixed bug for array starting index Fixed comments and block info header LGF_DTLToString_DE / V3.1.0 Insert parameter for separator between Data and time Assign default value '-' for separator parameter LGF_DTLToString_ISO / V3.1.0 Insert parameter for separator between Data and time Assign default value '-' for separator parameter LGF_FIFO / V4.0.0 Rework to PLC Open `Enable` behavior Add `isFull` outputs Fix Bug while filling after left shift operation Rework to diagnostic output datatype LGF_FileRead / V1.0.1 Add missing text in constant area LGF_FileWrite / V1.1.0 Insert parameter `clearBufferBefore` to clear buffer befor serializing the data LGF_Histogram_DInt / V3.0.3 Fixed bug for histValues Array Fixed comments and block info header LGF_Histogram_LReal / V3.0.3 Fixed bug for histValues Array Fixed comments and block info header LGF_Histogram_UDInt / V3.0.3 Fixed bug for histValues Array Fixed comments and block info header LGF_Integration / V3.1.0 Fix bug - Time measurement and calculation for nanoseconds fixed Fix Wording/Bug - Time measurement scaling [ms] / [s] - timing for calculatiuon is bnased on seconds LGF_LIFO / V4.0.0 Rework to PLC Open `Enable` behavior Add `isFull` outputs Rework to diagnostic output datatype LGF_MatrixScalarMultiplication / V3.0.2 Fix bug regarding wrong calculation LGF_ShiftRegister / V4.0.0 Rework to PLC Open `Enable` behavior Add `reset` input / counter outputs Fix Bug while filling after left shift operation Rework to diagnostic output datatype LGF_StringToDTL_DE / V3.1.0 Fix bug - missing error code in case of wrong date string LGF_StringToDTL_ISO / V3.1.0 Fix bug - missing error code in case of wrong date string LGF_StringToTime / V3.1.0 Implemented separator functionality LGF_SwapBlockDWord / V1.0.2 Fixed comments and block info header Fixed bug in loop upper index LGF_SwapBlockLWord / V1.0.2 Fixed comments and block info header Fixed bug in loop upper index LGF_SwapBlockWord / V1.0.2 Fixed comments AND block info header Fixed bug in loop upper index LGF_TimeToString / V3.1.0 Implemented separator input and functionality
V5.1.1 01/2024 | NEW: LGF_CompareString / V1.0.0 First released version LGF_CountArrayElements / V1.0.0 First released version LGF_DataLogC / V1.0.0 First released version LGF_DecodeUtf8 / V1.0.0 First released version LGF_DTLToJulianDate / V1.0.0 First released version LGF_EncodeUtf8 / V1.0.0 First released version LGF_ExtractStringFromCharArray / V1.1.0 First released version (LHttp) Adaption and integration into LGF LGF_ExtractStringFromCharArrayAdv / V1.1.0 First released version (LHttp) Adaption and integration into LGF LGF_FileRead / V1.0.0 First released version LGF_FileWrite / V1.0.0 First released version LGF_FindStringInCharArray / V1.1.0 First released version (LHttp) Adaption and integration into LGF LGF_IecTimerOnOff / V1.0.0 First released version LGF_IsBigEndian / V1.0.0 First released version LGF_IsLittleEndian / V1.0.0 First released version LGF_IsValueInToleranceByTime / V1.0.0 First released version Copied snd extended from "IsValueInRange" LGF_JulianTimeToDTL / V1.0.0 First released version LGF_ReadPnInterfaceParameter / V1.0.0 First released version LGF_SwapBlockDWord / V1.0.0 First released version LGF_SwapBlockLWord / V1.0.0 First released version LGF_SwapBlockWord / V1.0.0 First released version LGF_ToLower / V1.0.0 First released version LGF_ToUpper / V1.0.0 First released version RENAMED: LGF_DTLToString_DE / V3.0.1 Insert documentation LGF_DTLToString_ISO / V3.0.1 Insert documentation LGF_RandomRange_DInt / V3.0.1 Insert documentation UPDATED: LGF_CalcCRC16 / V3.1.0 Add input `noOfElements` to assign length to be converted different from array size Add outputs `error` and `status` display a wrong assignment to `noOfElements` LGF_CalcCRC16Advanced / V3.1.0 Add input `noOfElements` to assign length to be converted different from array size Add outputs `error` and `status` display a wrong assignment to `noOfElements` LGF_CalcCRC32 / V3.1.0 Add input `noOfElements` to assign length to be converted different from array size Add outputs `error` and `status` display a wrong assignment to `noOfElements` LGF_CalcCRC32Advanced / V3.1.0 Add input `noOfElements` to assign length to be converted different from array size Add outputs `error` and `status` display a wrong assignment to `noOfElements` LGF_CalcCRC8 / V3.1.0 Add input `noOfElements` to assign length to be converted different from array size Add outputs `error` and `status` display a wrong assignment to `noOfElements` LGF_CalcCRC8Advanced / V3.1.0 Add input `noOfElements` to assign length to be converted different from array size Add outputs `error` and `status` display a wrong assignment to `noOfElements` LGF_CompareLReal / V3.0.2 Fix compare error if one value is exactly zero LGF_CompareLRealByPrecision / V3.0.2 Fix compare error if one value is exactly zero LGF_CosinusCI / V3.0.2 Fix callculation of 'phaseShift' LGF_DTLToUnixTime / V3.0.2 Improve data verification for input `timeDTL` for valid data LGF_SearchMinMax_DInt / V3.0.2 Fix loop start index (start from lower Bound + 1) LGF_SearchMinMax_LReal / V3.0.2 Fix loop start index (start from lower Bound + 1) LGF_SetTime / V3.0.3 Bug fix - bias correction for time offsets (200) LGF_SinusCI / V3.0.2 Fix callculation of 'phaseShift' LGF_TimerSwitch / V3.1.0 Insert mode `permanently On`: `10`, `permanently Off`: `0`
V5.1.0 11/2021 | NEW: LGF_BinaryMaskCompare / V1.0.0 First released version LGF_CountBooleanEdges / V1.0.0 First released version LGF_GetBitStates / V1.0.0 First released version LGF_ShiftRegister / V3.0.0 First released version Refactoring and alignment to Datatype Variant Insert documentation UPDATED: LGF_AstroClock / V3.0.1 Bug fix - not enabled - block still running Insert documentation LGF_AverageAndDeviation / V3.0.1 Insert documentation LGF_BinaryToGray / V3.0.1 Insert documentation LGF_BitCount / V3.0.2 Insert documentation LGF_BitReset / V3.0.1 Insert documentation LGF_BitSet / V3.0.1 Insert documentation LGF_BitSetTo / V3.0.1 Insert documentation LGF_BitTest / V3.0.1 Insert documentation LGF_BitToggle / V3.0.1 Insert documentation LGF_Boxplot_DInt / V3.0.1 Insert documentation LGF_Boxplot_LReal / V3.0.1 Insert documentation LGF_Boxplot_UDInt / V3.0.1 Insert documentation LGF_CalcCRC16 / V3.0.1 Insert documentation Assign default start values to optional inputs - `initValue`, `mask` LGF_CalcCRC16Advanced / V3.0.1 Insert documentation Assign default start values to optional inputs - `initValue`, `mask`, `finalXorValue`, `reflectInput`, `reflectResult` LGF_CalcCRC32 / V3.0.1 Insert documentation Assign default start values to optional inputs - `initValue`, `mask` LGF_CalcCRC32Advanced / V3.0.1 Insert documentation Assign default start values to optional inputs - `initValue`, `mask`, `finalXorValue`, `reflectInput`, `reflectResult` LGF_CalcCRC8 / V3.0.1 Insert documentation Assign default start values to optional inputs - `initValue`, `mask` LGF_CalcCRC8Advanced / V3.0.1 Insert documentation Assign default start values to optional inputs - `initValue`, `mask`, `finalXorValue`, `reflectInput`, `reflectResult` LGF_CalcCRC8For1Byte / V3.0.1 Insert documentation Assign default start values to optional inputs - `initValue`, `mask` LGF_CalcDistance_2D / V3.0.1 Insert documentation LGF_CalcDistance_3D / V3.0.1 Insert documentation LGF_CelsiusToFahrenheit / V3.0.1 Insert documentation LGF_CelsiusToKelvin / V3.0.1 Insert documentation LGF_CompareLReal / V3.0.1 Insert documentation LGF_CompareLRealByPrecision / V3.0.1 Insert documentation LGF_CompareVariant / V3.0.1 Insert documentation LGF_ConvertTemperature / V3.0.1 Rename from "LGF_TemperatureConvert" to "LGF_ConvertTemperature" to start with the verb include the Rankine conversion Code refactoring, regions, commends and constants Set version to V3.0.0 harmonize the version of the whole library Insert documentation LGF_CosinusCI / V3.0.1 Insert documentation LGF_CountFalInDWord / V3.0.1 Insert documentation LGF_CountRisInDWord / V3.0.1 Insert documentation LGF_DifferenceQuotientFB / V3.0.1 Insert documentation LGF_DifferenceQuotientFC / V3.0.1 Insert documentation LGF_DTLToString_DE / V3.0.1 Insert documentation LGF_DTLToString_ISO / V3.0.1 Insert documentation LGF_DTLToUnixTime / V3.0.1 Insert documentation LGF_FahrenheitToCelsius / V3.0.1 Insert documentation LGF_FahrenheitToKelvin / V3.0.1 Insert documentation LGF_FIFO / V3.0.1 Insert documentation LGF_FloatingAverage / V3.0.2 Insert documentation LGF_Frequency / V3.0.1 Insert documentation LGF_GetCalendarDay / V3.0.1 Insert documentation LGF_GetCalendarWeek_ISO / V3.0.1 Insert documentation LGF_GetCalendarWeek_US / V3.0.1 Insert documentation LGF_GetFactorial / V3.0.1 Insert documentation LGF_GpsDDToGps / V3.0.2 Fix `tempStatus` initialization Insert documentation LGF_GpsToGpsDD / V3.0.2 Fix `tempStatus` initialization Insert documentation LGF_GrayToBinary / V3.0.1 Insert documentation LGF_Histogram_DInt / V3.0.1 Insert documentation LGF_Histogram_LReal / V3.0.1 Insert documentation LGF_Histogram_UDInt / V3.0.1 Insert documentation LGF_Impulse / V3.0.1 Insert documentation LGF_Integration / V3.0.2 Insert documentation Fix bug - incompatibility with S7-1200 and LTIME LGF_IntToString / V3.0.1 Insert documentation LGF_IsGermanHoliday / V3.0.1 fix bug in Constant "DAYS_AFTER_EASTER_60" from 6 to 60 Insert documentation LGF_IsParityEven / V3.0.1 Insert documentation LGF_IsParityOdd / V3.0.1 Insert documentation LGF_IsValueInLimits / V3.0.1 Insert documentation LGF_IsValueInRange / V3.0.1 Insert documentation LGF_IsValueInTolerance / V3.0.2 Bug fix - negative setpoint verification Insert documentation LGF_KelvinToCelsius / V3.0.1 Insert documentation LGF_KelvinToFahrenheit / V3.0.1 Insert documentation LGF_KelvinToRankine / V3.0.1 Insert documentation LGF_LIFO / V3.0.1 Insert documentation LGF_LimRateOfChangeAdvancedCI / V3.0.1 Insert documentation LGF_LimRateOfChangeCI / V3.0.1 Insert documentation LGF_MatrixAddition / V3.0.1 Insert documentation LGF_MatrixCompare / V3.0.1 Insert documentation LGF_MatrixInverse / V3.0.1 Insert documentation LGF_MatrixMultiplication / V3.0.1 Insert documentation LGF_MatrixScalarMultiplication / V3.0.1 Insert documentation LGF_MatrixSubtraction / V3.0.1 Insert documentation LGF_MatrixTranspose / V3.0.1 Insert documentation LGF_MergeBitsToDWord / V3.0.1 Insert documentation LGF_MergeBitsToWord / V3.0.1 Insert documentation LGF_MergeBytesToDWord / V3.0.1 Insert documentation LGF_MergeBytesToWord / V3.0.1 Insert documentation LGF_MergeWordsToDWord / V3.0.1 Insert documentation LGF_NonLinearInterpolation / V3.0.1 Insert documentation LGF_NthRoot / V3.0.1 Insert documentation LGF_PulseRelay / V3.0.1 Insert documentation LGF_RampCI / V3.0.1 Insert documentation Change UDT member name from `outValue` to `outputValue` LGF_Random_DInt / V3.0.1 Insert documentation LGF_Random_Real / V3.0.1 Insert documentation LGF_Random_UDInt / V3.0.1 Insert documentation LGF_RandomRange_DInt / V3.0.1 Insert documentation LGF_RandomRange_Real / V3.0.1 Insert documentation LGF_RandomRange_UDInt / V3.0.1 Insert documentation LGF_RankineToKelvin / V3.0.1 Insert documentation LGF_RectangleCI / V3.0.1 Insert documentation LGF_RegressionLine / V3.0.1 Insert documentation LGF_SawTooth / V3.0.1 Insert documentation LGF_SawToothCI / V3.0.1 Insert documentation LGF_ScaleLinear / V3.0.1 Insert documentation Move to folder "Math operations" LGF_SearchMinMax / V3.0.1 Rework constants and comments Insert documentation LGF_SearchMinMax_DInt / V3.0.1 Insert documentation LGF_SearchMinMax_LReal / V3.0.1 Insert documentation LGF_SearchMinMax_UDInt / V3.0.1 Insert documentation LGF_SetTime / V3.0.2 Bug fix - bias correction for time offsets (200 / 330) Insert documentation LGF_ShellSort_DInt / V3.0.1 Insert documentation LGF_ShellSort_LReal / V3.0.1 Insert documentation LGF_ShellSort_UDInt / V3.0.1 Insert documentation LGF_SimpleSmoothingFB / V3.0.1 Insert documentation LGF_SimpleSmoothingFC / V3.0.1 Insert documentation LGF_SinusCI / V3.0.1 Insert documentation LGF_SmoothByPolynomFB / V3.0.1 Insert documentation LGF_SmoothByPolynomFC / V3.0.1 Insert documentation LGF_SplitByteToBits / V3.0.1 Insert documentation LGF_SplitDWordToBits / V3.0.1 Insert documentation LGF_SplitDWordToBytes / V3.0.1 Insert documentation LGF_SplitDWordToWords / V3.0.1 Insert documentation LGF_SplitWordToBits / V3.0.1 Insert documentation LGF_SplitWordToBytes / V3.0.1 Insert documentation LGF_StoreMinMax / V3.0.1 Insert documentation LGF_StringToDTL_DE / V3.0.1 Insert documentation LGF_StringToDTL_ISO / V3.0.1 Insert documentation LGF_StringToInt / V3.0.1 Insert documentation ENO handling done by STRG_VAL system function LGF_StringToTaddr / V3.0.1 Insert documentation LGF_StringToTime / V3.0.1 Insert documentation LGF_TaddrToString / V3.0.1 Insert documentation LGF_TimerSwitch / V3.0.1 Insert documentation LGF_TimeToString / V3.0.1 Insert documentation LGF_TriangleCI / V3.0.1 Insert documentation LGF_UnixTimeToDTL / V3.0.1 Insert documentation
V5.0.1 04/2020 | NEW: LGF_AstroClock / V3.0.0 First released version T_ADD instruction is replaced with "+" "offsetSunrise", "offsetSunset" is calculated in "daytime" Bug fix at "Adjust back TO UTC" Add output actSystemTime and actLocalTime Add comments Bug fix at calculation sunrise and sunset Upgrade: TIA V14 Update 1 Code optimization Initialize #tempIntSunrise, #tempIntSunset,#tempDate1Jan Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Rename from Astro to AstroClock Update Type name to positionGps - "LGF_typeGPS_DD" - GPS position as decimal degree Refactoring of interface - one input type for GPS data - refactored for better usability - refactoring of whole block to "ENABLE" behaviour Set version to V3.0.0, harmonize the version of the whole library LGF_AverageAndDeviation / V3.0.0 First released version Bug fix at WRONG_TYPE: #error := true Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Data type changed from Variant to Array[*] of LReal Regions,commens and constants are added Set version to V3.0.0, harmonize the version of the whole library LGF_BinaryToGray / V3.0.0 First released version Name changed Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Standard header and block parameters update add eno handling Set version to V3.0.0 harmonize the version of the whole library LGF_BitCount / V3.0.0 first release Set version to V3.0.0 harmonize the version of the whole library LGF_BitReset / V3.0.0 first release Set version to V3.0.0 harmonize the version of the whole library LGF_BitSet / V3.0.0 first release Set version to V3.0.0 harmonize the version of the whole library LGF_BitSetTo / V3.0.0 first release Set version to V3.0.0 harmonize the version of the whole library LGF_BitTest / V3.0.0 first release Set version to V3.0.0 harmonize the version of the whole library LGF_BitToggle / V3.0.0 first release Set version to V3.0.0 harmonize the version of the whole library LGF_Boxplot_DInt / V3.0.0 First released version Code reworked, regions,commens and constants are added Set version to V3.0.0, harmonize the version of the whole library LGF_Boxplot_LReal / V3.0.0 First released version Set version to V3.0.0, harmonize the version of the whole library LGF_Boxplot_UDInt / V3.0.0 First released version Set version to V3.0.0, harmonize the version of the whole library LGF_CalcCRC16 / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, comments added Set version to V3.0.0, harmonize the version of the whole library LGF_CalcCRC16Advanced / V3.0.0 first release, copied from "LGF_CalcCRC32Advanced" Set version to V3.0.0, harmonize the version of the whole library LGF_CalcCRC32 / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, comments added Set version to V3.0.0, harmonize the version of the whole library LGF_CalcCRC32Advanced / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, comments added Set version to V3.0.0, harmonize the version of the whole library LGF_CalcCRC8 / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, comments added Set version to V3.0.0, harmonize the version of the whole library LGF_CalcCRC8Advanced / V3.0.0 first release, copied from "LGF_CalcCRC32Advanced" Set version to V3.0.0, harmonize the version of the whole library LGF_CalcCRC8For1Byte / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, comments added Set version to V3.0.0, harmonize the version of the whole library LGF_CalcDistance_2D / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Data type changed to LREAL renamed from "Distance" to "CalcDistance_2D" Data type changed to LREAL Set version to V3.0.0, harmonize the version of the whole library LGF_CalcDistance_3D / V3.0.0 First released version derivated from "CalcDistance_2D" and extended to 3D Set version to V3.0.0, harmonize the version of the whole library LGF_CelsiusToFahrenheit / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_CelsiusToKelvin / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_CompareLReal / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Refactoring and performance improvment Delete Error and Status there is no need for, because of changed / adjusted algorithm add eno handling Set version to V3.0.0, harmonize the version of the whole library LGF_CompareLRealByPrecision / V3.0.0 First released version function besad on "LGF_CompareLReal" Set version to V3.0.0, harmonize the version of the whole library LGF_CompareVariant / V3.0.0 First released version Bug fix Upgrade: TIA V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Refactoring and performance improvment Change error handling to status and subFctStatus update serialize instruction add eno handling Set version to V3.0.0, harmonize the version of the whole library LGF_ConvertTemperature / V16.12.2018 First released version Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Siemens Industry Support harmonize the version of the whole library LGF_CosinusCI / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, comments added, phase shift availabilty added Set version to V3.0.0, harmonize the version of the whole library LGF_CountFalInDWord / V3.0.0 First released version Code refactoring - minimize used code memory Set version to V3.0.0, harmonize the version of the whole libraryENO not in use, no error handling needed LGF_CountRisInDWord / V3.0.0 First released version Code refactoring - minimize used code memory Set version to V3.0.0, harmonize the version of the whole library LGF_DifferenceQuotientFB / V3.0.0 First released version Code reworked. Regions,commens and constants are added Set version to V3.0.0, harmonize the version of the whole library LGF_DifferenceQuotientFC / V3.0.0 First released version Regions,commens and constants are added Set version to V3.0.0, harmonize the version of the whole library LGF_DTLToString_DE / V3.0.0 First released version split from "LGF_DTLToString" Set version to V3.0.0 harmonize the version of the whole library LGF_DTLToString_ISO / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 BUgfix - nanosecond precision and '0' filling renamed from "LGF_DTLToString" to "LGF_DTLToString_ISO" split into two blocks, removed "format" input Set version to V3.0.0 harmonize the version of the whole library LGF_DTLToUnixTime / V3.0.0 First released version Standard header and block parameters update, status parameter added commends added and code refactoring add eno handling Set version to V3.0.0 harmonize the version of the whole library LGF_FahrenheitToCelsius / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_FahrenheitToKelvin / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_FIFO / V3.0.0 First released version Bug fix resetBuffer Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Output "done" removed (not necessary, because block works synchron) Code refactoring, comments added Interface change (enqueue, dequeue etc.) Set version to V3.0.0, harmonize the version of the whole library LGF_FloatingAverage / V3.0.1 First released version Upgrade: TIA Portal V14 Update 1 Adding variable window size for calculation Optimizing calculation algorithm Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, comments added Set version to V3.0.0, harmonize the version of the whole library refactor and simplify code LGF_Frequency / V3.0.0 First released version New function: pulse pause ratio Add comments Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, regions and more commens added Set version to V3.0.0, harmonize the version of the whole library LGF_GetCalendarDay / V3.0.0 First release ENO used for internal error handling, interface has error and status temp tag naming, insert constant Set version to V3.0.0, harmonize the version of the whole library LGF_GetCalendarWeek_ISO / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 renamed from LGF_CalenderWeek to LGF_CalenderWeek_ISO Function splitted into week for ISO and US Format and as well day counter. Result passed as return value. Standard header implemented Constant, temp variable naming Update function call of CalendarDay Set version to V3.0.0, harmonize the version of the whole library LGF_GetCalendarWeek_US / V3.0.0 First release based on LGF_CalenderWeek (because of split) Set version to V3.0.0, harmonize the version of the whole library LGF_GetFactorial / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Renamed from "Factorial" to "GetFactorial" Code refactoring, regions and more commens added Reworked to case of, MAGIC numbers are okay as they stay for the number/case itself Set version to V3.0.0, harmonize the version of the whole library LGF_GpsDDToGps / V3.0.0 First released version Set version to V3.0.0 harmonize the version of the whole library LGF_GpsToGpsDD / V3.0.0 First released version Set version to V3.0.0 harmonize the version of the whole library LGF_GrayToBinary / V3.0.0 First released version Name changed Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Standard header,block parameters update and performance update add eno handling Set version to V3.0.0 harmonize the version of the whole library LGF_Histogram_DInt / V3.0.0 First released version Code refactoring, comments added Set version to V3.0.0, harmonize the version of the whole library LGF_Histogram_LReal / V3.0.0 First released version Code refactoring, comments added Set version to V3.0.0, harmonize the version of the whole library LGF_Histogram_UDInt / V3.0.0 First released version Code refactoring, comments added Set version to V3.0.0, harmonize the version of the whole library LGF_Impulse / V3.0.0 First released version LGF_Impulse calls new LGF_Frequency V1.1.1 Upgrade: TIA Portal V14 Update 1 Code optimization: no call of LGF_Frequency Fix at output "countdown" Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, regions and more commens added Set version to V3.0.0, harmonize the version of the whole library LGF_Integration / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Regions,commens and constants are added, code refactored Set version to V3.0.0, harmonize the version of the whole library LGF_IntToString / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Standard header and block parameters update Program changed to VAL_STRG wrapper add eno handling Set version to V3.0.0 harmonize the version of the whole library LGF_IsGermanHoliday / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Standard header, comments, style updated refactoring code Set version to V3.0.0, harmonize the version of the whole library LGF_IsParityEven / V3.0.0 First released version Set version to V3.0.0 harmonize the version of the whole library LGF_IsParityOdd / V3.0.0 First released version Set version to V3.0.0 harmonize the version of the whole library LGF_IsValueInLimits / V3.0.0 First released version Copied from "IsValueInRange" Set version to V3.0.0, harmonize the version of the whole library LGF_IsValueInRange / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 renamed from "LGF_HighLowLimit" to "LGF_IsValueInRange" Code refacturing error values changed,regions,commens and costants are added Set version to V3.0.0, harmonize the version of the whole library LGF_IsValueInTolerance / V3.0.0 First released version Copied from "IsValueInRange" Set version to V3.0.0, harmonize the version of the whole library LGF_KelvinToCelsius / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_KelvinToFahrenheit / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_KelvinToRankine / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_LIFO / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Output "done" removed (not necessary, because block works synchron) Code refactoring, comments added Interface change (push, pop, peek etc.) Set version to V3.0.0, harmonize the version of the whole library LGF_LimRateOfChangeAdvancedCI / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Regions,commens and costants are added Set version to V3.0.0, harmonize the version of the whole library LGF_LimRateOfChangeCI / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Regions,commens and costants are added Set version to V3.0.0, harmonize the version of the whole library LGF_MatrixAddition / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Functionality using Array[*,*] Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Regions,commens and costants are added Moved matrices to IO field. Set version to V3.0.0, harmonize the version of the whole library LGF_MatrixCompare / V3.0.0 First release Set version to V3.0.0, harmonize the version of the whole library LGF_MatrixInverse / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Functionality using Array[*,*] Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Regions, comments and constants are added Moved matrices to IO field. Set version to V3.0.0, harmonize the version of the whole library LGF_MatrixMultiplication / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Functionality using Array[*,*] Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Regions,commens and costants are added Moved matrices to IO field. Set version to V3.0.0, harmonize the version of the whole library LGF_MatrixScalarMultiplication / V3.0.0 First released version based on "LGF_MatrixMultiplication" Set version to V3.0.0, harmonize the version of the whole library LGF_MatrixSubtraction / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Functionality using Array[*,*] Upgrade: TIA V15 Update 2 Regions,commens and costants are added Moved matrices to IO field. Set version to V3.0.0, harmonize the version of the whole library LGF_MatrixTranspose / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Functionality using Array[*,*] Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Regions, comments and constants are added Moved matrices to IO field. Set version to V3.0.0, harmonize the version of the whole library LGF_MergeBitsToByte / V3.0.1 First release Set version to V3.0.0 harmonize the version of the whole library Insert documentation LGF_MergeBitsToDWord / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_MergeBitsToWord / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Standard header, style guide add ENO handling Set version to V3.0.0 harmonize the version of the whole library LGF_MergeBytesToDWord / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_MergeBytesToWord / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_MergeWordsToDWord / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_NonLinearInterpolation / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Regions,commens and costants are added Set version to V3.0.0, harmonize the version of the whole library LGF_NthRoot / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Calculation changed Renamed from "LGF_XRoot" to "LGF_NthRoot" Regions,commens and costants are added Set version to V3.0.0, harmonize the version of the whole library LGF_PulseRelay / V3.0.0 First released version Upgrade: TIA V14 Update 1 Comment correction Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Refactoring and performance improvment add eno handling Set version to V3.0.0, harmonize the version of the whole library LGF_RampCI / V3.0.0 First released version Comment correction (REGION) Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code optimization. Commens and costants are added Set version to V3.0.0, harmonize the version of the whole library LGF_Random_DInt / V3.0.0 First release copied from "LGF_Random_Real" Set version to V3.0.0, harmonize the version of the whole library LGF_Random_Real / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Renamed from "LGF_RandomBasic" to "LGF_Random_Real" Regions, commens and costants are added Set version to V3.0.0, harmonize the version of the whole library LGF_Random_UDInt / V3.0.0 First release copied from "LGF_Random_Real" Set version to V3.0.0, harmonize the version of the whole library LGF_RandomRange_DInt / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Renamed from "LGF_RandomInt" to "LGF_RandomRange_DInt" change random datatype from int to dint Regions, commens and costants are added Set version to V3.0.0, harmonize the version of the whole library LGF_RandomRange_Real / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Bugfix: FC number Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Renamed from "LGF_RandomReal" to "LGF_RandomRange_Real" Regions, commens and costants are added Set version to V3.0.0, harmonize the version of the whole library LGF_RandomRange_UDInt / V3.0.0 First released version copied from "LGF_RandomRange_DInt" Set version to V3.0.0, harmonize the version of the whole library LGF_RankineToKelvin / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_RectangleCI / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, comments added, phase shift availabilty added Set version to V3.0.0, harmonize the version of the whole library LGF_RegressionLine / V3.0.0 First released version Code refactoring, comments added Set version to V3.0.0, harmonize the version of the whole library LGF_SawTooth / V1.0.10 First released version Bug fix Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, regions and more commens added LGF_SawToothCI / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, regions and more commens added, phase shift availabilty added Set version to V3.0.0, harmonize the version of the whole library LGF_ScaleLinear / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Data type changed from Variant to LReal Standard header and block parameters update, status parameter added LReal value comparison added Result paramter changed to return value of FC for use in SCL Warning nummber changed to range of 16#6xxx refactor variablehandling and extract returns inbetween the code add eno handling Set version to V3.0.0 harmonize the version of the whole library LGF_SearchMinMax / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, regions and more commens added Set version to V3.0.0, harmonize the version of the whole library LGF_SearchMinMax_DInt / V3.0.0 First release copied from "LGF_SearchMinMax" and reworked to array[*] Set version to V3.0.0, harmonize the version of the whole library LGF_SearchMinMax_LReal / V3.0.0 First release copied from "LGF_SearchMinMax" and reworked to array[*] Set version to V3.0.0, harmonize the version of the whole library LGF_SearchMinMax_UDInt / V3.0.0 First release copied from "LGF_SearchMinMax" and reworked to array[*] Set version to V3.0.0, harmonize the version of the whole library LGF_SetTime / V3.0.0 First released version Upgrade: TIA V14 Update 1 Bugfix: FB number: automatic Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Bugfix: Rising edge at input REQ of SET_TIMEOUT Reworked interface to PLC Open "execute" behaviour Magic numbers removed, tag naming added, code reworked Set version to V3.0.0, harmonize the version of the whole library LGF_ShellSort_DInt / V3.0.0 First released version New function: reverse sort Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Output "done" removed (not necessary, because only one cycle) Code refactoring, comments added, change data type from Int to DInt Set version to V3.0.0, harmonize the version of the whole library LGF_ShellSort_LReal / V3.0.0 First released version New function: reverse sort Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Output "done" removed (not necessary, because only one cycle) Code refactoring, comments added, change data type from Real to LReal Set version to V3.0.0, harmonize the version of the whole library LGF_ShellSort_UDInt / V3.0.0 First released version New function: reverse sort Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Output "done" removed (not necessary, because only one cycle) Code refactoring, comments added, change data type from UInt to UDInt Set version to V3.0.0, harmonize the version of the whole library LGF_SimpleSmoothingFB / V3.0.0 First released version Regions,commens and constants are added Set version to V3.0.0, harmonize the version of the whole library LGF_SimpleSmoothingFC / V3.0.0 First released version Regions,commens and constants are added Set version to V3.0.0, harmonize the version of the whole library LGF_SinusCI / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, comments added, phase shift availabilty added Set version to V3.0.0, harmonize the version of the whole library LGF_SmoothByPolynomFB / V3.0.0 First released version BugFixes,Regions,commens and constants are added Set version to V3.0.0, harmonize the version of the whole library LGF_SmoothByPolynomFC / V3.0.0 First released version Regions,commens and constants are added Set version to V3.0.0, harmonize the version of the whole library LGF_SplitByteToBits / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_SplitDWordToBits / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_SplitDWordToBytes / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_SplitDWordToWords / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_SplitWordToBits / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Standard header, style guide add ENO handling Set version to V3.0.0 harmonize the version of the whole library LGF_SplitWordToBytes / V3.0.0 First release Set version to V3.0.0 harmonize the version of the whole library LGF_StoreMinMax / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Code optimization Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Regions,commens and costants are added Set version to V3.0.0, harmonize the version of the whole library LGF_StringToDTL_DE / V3.0.0 First released version Split from "LGF_StringToDTL" Correction of the weekday of DTL, comments added add ENO handling, adjust comments in interface Set version to V3.0.0 harmonize the version of the whole library LGF_StringToDTL_ISO / V3.0.0 First released version Upgrade: TIA Portal V14 Update 1 Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Reworked from "LGF_StringToDTL" to "LGF_StringToDTL_ISO" removed format and split into two blocks Bugfix - set weekday correctly Correction of the weekday of DTL, comments added add ENO handling, adjust comments in interface Set version to V3.0.0 harmonize the version of the whole library LGF_StringToInt / V3.0.0 First released version add eno handling Set version to V3.0.0 harmonize the version of the whole library LGF_StringToTaddr / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Standard header and block parameters update Code refactoring and performance improvments add eno handling Set version to V3.0.0 harmonize the version of the whole library LGF_StringToTime / V3.0.0 First released version Further improvments and codeoptimization add eno handling Set version to V3.0.0 harmonize the version of the whole library LGF_TaddrToString / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Standard header and block parameters update refactoring of While to Do/While and constants inserted add eno handling Set version to V3.0.0 harmonize the version of the whole library LGF_TimerSwitch / V3.0.0 First released version Fix in mode 2 New mode 5 + 6 New output: actLocalTime Upgrade: TIA V14 Update 1 Fix in modes 1, 3, 5, 6 Upgrade: TIA V15 Update 2 Connection to type restored Upgrade: TIA V15.1 Magic numbers removed, tag naming added, code reworked Set version to V3.0.0, harmonize the version of the whole library LGF_TimeToString / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Standard header and block parameters update, status parameter added further improvments minimization and commends added add eno handling Set version to V3.0.0 harmonize the version of the whole library LGF_TriangleCI / V3.0.0 First released version Upgrade: TIA V15 Update 2 Upgrade: TIA V15.1 Code refactoring, comments added, phase shift availabilty added Set version to V3.0.0, harmonize the version of the whole library LGF_UnixTimeToDTL / V3.0.0 First released version Standard header and block parameters update, status parameter added commends added and code intention addjusted add eno handling Set version to V3.0.0 harmonize the version of the whole library