Holiday (FB)¶
FUNCTION_BLOCK Holiday
Short description¶
Definition of 10 clock channels with switch-on and switch-off times
Portrayal¶
Interfaces¶
Inputs¶
Name Datatype
Range
Init-Value
Function
xEN BOOL 10 clock channels activate/deactivate function
Outputs¶
Name Datatype
Range
Init-Value
Function
xActive BOOL Clock channel is active
datActiveFrom DATE Switch-on time set for the current day
datActiveTo DATE Switch-off time set for the current day
Functional description¶
General¶
Visualization¶
Information¶
Element Authors
Date
Version Anmerkungen Programming
Adam Bartod 09.2016 1.0 Initial version
Test Jochen Reu 10.2016 1.0 Initial version
Documentation
Kevin Rohn 11.2017 1.0 Initial version
Codesys¶
- InOut:
Scope Name Type Initial Comment Input xEn BOOL Activate/deactivate function block
sCH10_Notice STRING ‘Own Notice - click to change.’
Own notice for clock channel 10
datCH10_DateTo DATE DATE#2017-1-1 Date “to” for clock channel 10
datCH10_DateFrom DATE DATE#2017-1-1 Date “from” for clock channel 10
xCH10_Mode BOOL TRUE Activate/deactivate clock channel 10
sCH9_Notice STRING ‘Own Notice - click to change.’
Own notice for clock channel 10
datCH9_DateTo DATE DATE#2017-1-1 Date “to” for clock channel 10
datCH9_DateFrom DATE DATE#2017-1-1 Date “from” for clock channel 10
xCH9_Mode BOOL TRUE Activate/deactivate clock channel 10
sCH8_Notice STRING ‘Own Notice - click to change.’
Own notice for clock channel 10
datCH8_DateTo DATE DATE#2017-1-1 Date “to” for clock channel 10
datCH8_DateFrom DATE DATE#2017-1-1 Date “from” for clock channel 10
xCH8_Mode BOOL TRUE Activate/deactivate clock channel 10
sCH7_Notice STRING ‘Own Notice - click to change.’
Own notice for clock channel 10
datCH7_DateTo DATE DATE#2017-1-1 Date “to” for clock channel 10
datCH7_DateFrom DATE DATE#2017-1-1 Date “from” for clock channel 10
xCH7_Mode BOOL TRUE Activate/deactivate clock channel 10
sCH6_Notice STRING ‘Own Notice - click to change.’
Own notice for clock channel 10
datCH6_DateTo DATE DATE#2017-1-1 Date “to” for clock channel 10
datCH6_DateFrom DATE DATE#2017-1-1 Date “from” for clock channel 10
xCH6_Mode BOOL TRUE Activate/deactivate clock channel 10
sCH5_Notice STRING ‘Own Notice - click to change.’
Own notice for clock channel 10
datCH5_DateTo DATE DATE#2017-1-1 Date “to” for clock channel 10
datCH5_DateFrom DATE DATE#2017-1-1 Date “from” for clock channel 10
xCH5_Mode BOOL TRUE Activate/deactivate clock channel 10
sCH4_Notice STRING ‘Own Notice - click to change.’
Own notice for clock channel 10
datCH4_DateTo DATE DATE#2017-1-1 Date “to” for clock channel 10
datCH4_DateFrom DATE DATE#2017-1-1 Date “from” for clock channel 10
xCH4_Mode BOOL TRUE Activate/deactivate clock channel 10
sCH3_Notice STRING ‘Own Notice - click to change.’
Own notice for clock channel 10
datCH3_DateTo DATE DATE#2017-1-1 Date “to” for clock channel 10
datCH3_DateFrom DATE DATE#2017-1-1 Date “from” for clock channel 10
xCH3_Mode BOOL TRUE Activate/deactivate clock channel 10
sCH2_Notice STRING ‘Own Notice - click to change.’
Own notice for clock channel 10
datCH2_DateTo DATE DATE#2017-1-1 Date “to” for clock channel 10
datCH2_DateFrom DATE DATE#2017-1-1 Date “from” for clock channel 10
xCH2_Mode BOOL TRUE Activate/deactivate clock channel 10
sCH1_Notice STRING ‘Own Notice - click to change.’
Own notice for clock channel 10
datCH1_DateTo DATE DATE#2017-1-1 Date “to” for clock channel 10
datCH1_DateFrom DATE DATE#2017-1-1 Date “from” for clock channel 10
xCH1_Mode BOOL TRUE Activate/deactivate clock channel 10
Output xActive BOOL Clock channel active
datActiveFrom DATE Switch-on time set for the current day
datActiveTo DATE Switch-off time set for the current day