LGF_IsGermanHoliday (FC / V3.0.1)

Overview

Author: Siemens Digital Industry

Short description

The function determines whether a given date is a public holiday.
All public holidays in Germany are taken into account.
Holidays that are NOT uniform nationwide can be switched on or off

Block Interface

LGF_IsGermanHoliday (FC)
DTL  date Ret_Val  Bool
    
Bool  threeKings   
    
Bool  roseMonday   
    
Bool  ascension   
    
Bool  corpusChristi   
    
Bool  augsburgerFriedensfest   
    
Bool  assumptionOfMary   
    
Bool  reformationDay   
    
Bool  allSaintDay   
    
Bool  bussUndBettag   
    
   

Input parameter

IdentifierData type Description
dateDTL Date, which has to be evaluated
threeKingsBool Three Kings
roseMondayBool Rose Monday
ascensionBool Ascension
corpusChristiBool Corpus Christi
augsburgerFriedensfestBool Augsburger Friedensfest
assumptionOfMaryBool Assumption Of Mary
reformationDayBool Reformation Day
allSaintDayBool All Saint Day
bussUndBettagBool Day of Prayer and Repentance (Buss und Bettag)

Output parameter

IdentifierData type Description
Ret_ValBool If the date at the input parameter is a public holiday - returning TRUE, otherwise returning FALSE

Functional description

The block calculates the public holiday calendar of the year for a given date and displays whether the given date is a public holiday.
Optionally, holidays that are not uniform nationwide, such as Epiphany (Three Kings), can be taken into account via the appropriate input parameters in the block.

Change log

Version & DateChange description
01.00.00Siemens Industry Online Support
03.07.2018First released version
01.00.01Siemens Industry Online Support
17.08.2018Upgrade: TIA V15 Update 2
01.00.02Siemens Industry Online Support
23.11.2018Upgrade: TIA V15.1
01.00.03Simatic Systems Support
17.07.2019Standard header, comments, style updated
refactoring code
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
19.01.2020fix bug in Constant "DAYS_AFTER_EASTER_60" from 6 to 60
Insert documentation