CDate (FB)¶
FUNCTION_BLOCK CDate
Short Description¶
Conversion of the date components Day/Month/Year to the date format (YYYYMMDD)
Portrayal¶
Interfaces¶
Inputs¶
Outputs¶
Name Datatype
Range
Init-Value
Function
datYYYYMMDD DATE Date in format YYYYMMDD
Setpoints / Paramters¶
Name Datatype
Range
Init-Value
Function
iDD INT 1 Definition of the day in the format DD (1..31)
iMM INT 1 Definition of the months in the format MM (1..12)
iYYYY INT 1970 Definition of the years in the format YYYY (1970..2099)
Functional Description¶
General¶
These Functionblock is used for the creation of the date format datYYYYMMDD of all the single date components iDD, iMM, and iYYYY.
The logical inputlimit of the single data components are monitored and be corrected if necessary.
This Functionblock can for example be used within the visualization.
Visualization¶
Information¶
Element Authors
Datum Version Notes
Function
Lukas Pfänder 04.2016 1.0 Initial-Version
Programming
Adam Bartod 04.2016 1.0 Initial-Version
Test Jochen Reu / 06.2016 1.0 Initial-Version
Documentation
Jochen Reu 10.2017 1.0 Initial-Version
Documentation
Lukas Pfänder 11.2017 0.1.3.0 Revision
Codesys¶
- InOut:
Scope Name Type Initial Comment Input iDD INT 1 Definition of the day in the format DD (1..31)
iMM INT 1 Definition of the months in the format MM (1..12)
iYYYY INT 1970 Definition of the years in the format YYYY (1970..2099)
Output datYYYYMMDD DATE Date in format YYYYMMDD