LGF_DTLToString_DE (FC / V3.0.1)

Overview

Author: Siemens Digital Industry

Short description

This function converts a date of data type DTL into a character string of data type STRING in the traditional format (DD MM YYYYY…).

Block Interface

LGF_DTLToString_DE (FC)
DTL  date Ret_Val  String
    
Char  separator   
    
   

Input parameter

IdentifierData type Description
dateDTL Date to convert as DTL tag
separatorChar Separator between the components of the output date.

Output parameter

IdentifierData type Description
Ret_ValString Output string according to the traditional format.
Example: `22-01-2019 14:07:57.696417000`.

Functional description

The block reads a date of data type DTL and converts the individual components of the date (year, month, day, hour…) into a character string and outputs it in traditional format (DE). The separator between the components of the date is variable.

####### Traditional format (DE):

LGF_DTLtoString_DE - Structure of the character string in a traditional format

####### Separator:

At the input parameter separatorDate, you specify the separator between the components of the calendar date.

####### Example:

Change log

Version & DateChange description
01.00.00Simatic Systems Support
18.07.2019First released version
Split from "LGF_DTLtoString"
03.00.00Simatic Systems Support
23.04.2020Set version to V3.0.0
Harmonize the version of the whole library
03.00.01Simatic Systems Support
23.02.2021Insert documentation