ConOpSys V2970  P004.07
ANVILEX control operating system
Function_Block_Band_Comparator_F32_1C_T2.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file Function_Block_Band_Comparator_F32_1C_T2.h
3 //! @brief Band comparator class header file.
4 //! @copyright ANVILEX GmbH
5 //! @attention No special attention requered.
6 //! $HeadURL: https://192.168.3.4:8443/svn/P004_07/ConOpSys/Blocks/Function_Block_Band_Comparator.h $
7 //! $Revision: 2913 $
8 //! $Date: 2021-12-17 14:48:25 +0500 (Пт, 17 дек 2021) $
9 //! $Author: minch $
10 //!
11 //! COPYRIGHT(C) 2016-2022 ANVILEX GmbH
12 //!
13 //! Redistribution and use in source and binary forms, with or without
14 //! modification, are permitted provided that the following conditions are met:
15 //!
16 //! 1. Redistributions of source code must retain the above copyright notice,
17 //! this list of conditions and the following disclaimer.
18 //!
19 //! 2. Redistributions in binary form must reproduce the above copyright notice,
20 //! this list of conditions and the following disclaimer in the documentation
21 //! and/or other materials provided with the distribution.
22 //!
23 //! 3. Neither the name of ANVILEX nor the names of its contributors may be
24 //! used to endorse or promote products derived from this software without
25 //! specific prior written permission.
26 //!
27 //! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
28 //! AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29 //! IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30 //! ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
31 //! LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 //! CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33 //! SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34 //! INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35 //! CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 //! ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 //! POSSIBILITY OF SUCH DAMAGE.
38 //------------------------------------------------------------------------------
39 
40 //------------------------------------------------------------------------------
41 // Protecting header files from mutual, recursive inclusion.
42 //------------------------------------------------------------------------------
43 
44 #pragma once
45 
46 //------------------------------------------------------------------------------
47 // Include standard libraries header files
48 //------------------------------------------------------------------------------
49 
50 //------------------------------------------------------------------------------
51 // Include thrid party header files
52 //------------------------------------------------------------------------------
53 
54 //------------------------------------------------------------------------------
55 // Include ConOpSys header files
56 //------------------------------------------------------------------------------
57 
58 #include "Function_Block_Base.h"
59 
60 //------------------------------------------------------------------------------
61 // Include ConOpSys application header files
62 //------------------------------------------------------------------------------
63 
64 //------------------------------------------------------------------------------
65 // Macros
66 //------------------------------------------------------------------------------
67 
68 //------------------------------------------------------------------------------
69 // Class declarations
70 //------------------------------------------------------------------------------
71 
72 //! @brief Signle channel 32 bit floating point low/high level band comparator class
73 //! @note ANVILEX: Old class name: TFunction_Block_Band_Comparator_CB
75 {
76 
77  //----------------------------------------------------------------------------
78  // Public defines, methods and variables
79  //----------------------------------------------------------------------------
80 
81  public:
82 
83  //--------------------------------------------------------------------------
84  // Public methods
85  //--------------------------------------------------------------------------
86 
87  //!-------------------------------------------------------------------------
88  //! @brief Class constructor method.
89  //! @note None
90  //! \par Override
91  //! Not allowed
92  //! @attention Don't call this method directly.
93  //--------------------------------------------------------------------------
94 
96 
97  //!-------------------------------------------------------------------------
98  //! @brief Class constructor method.
99  //! @note None
100  //! \par Override
101  //! Not allowed
102  //! @attention Don't call this method directly.
103  //--------------------------------------------------------------------------
104 
106 
107  //!-------------------------------------------------------------------------
108  //! @brief Function block initialisation method.
109  //! @note None
110  //! \par Override
111  //! Not allowed
112  //! @attention Don't call this method directly.
113  //--------------------------------------------------------------------------
114 
115  virtual VOID Init();
116 
117  //!-------------------------------------------------------------------------
118  //! @brief Function block cyclic execution method.
119  //! @note None
120  //! \par Override
121  //! Not allowed
122  //! @attention Don't call this method directly.
123  //--------------------------------------------------------------------------
124 
125  virtual VOID Execute();
126 
127  //--------------------------------------------------------------------------
128  // Public variables
129  //--------------------------------------------------------------------------
130 
131  //--------------------------------------------------------------------------
132  // Function block parameter connectors
133  //--------------------------------------------------------------------------
134 
135  //! @brief Center level parameter
137 
138  //! @brief Band around center level parameter
140 
141  //--------------------------------------------------------------------------
142  // Function block input connectors
143  //--------------------------------------------------------------------------
144 
145  //! @brief Comparator input signal
147 
148  //--------------------------------------------------------------------------
149  // Function block output connectors
150  //--------------------------------------------------------------------------
151 
152  //! @brief Comparator block in range status output signal
154 
155  //! @brief Comparator block to low status output signal
157 
158  //! @brief Comparator block to high status output signal
160 
161  //----------------------------------------------------------------------------
162  // Protected defines, methods and variables
163  //----------------------------------------------------------------------------
164 
165  protected:
166 
167  //----------------------------------------------------------------------------
168  // Private defines, methods and variables
169  //----------------------------------------------------------------------------
170 
171  private:
172 
173 };
174 
175 //------------------------------------------------------------------------------
176 // End of file
177 //------------------------------------------------------------------------------
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
Function block base class header file.
Function block input connector class.
Definition: Block_Input_Connector.h:83
Function block output connector class.
Definition: Block_Output_Connector.h:59
Signle channel 32 bit floating point low/high level band comparator class.
Definition: Function_Block_Band_Comparator_F32_1C_T2.h:75
TBlock_Output_Connector object_bool_To_High
Comparator block to high status output signal.
Definition: Function_Block_Band_Comparator_F32_1C_T2.h:159
TBlock_Input_Connector object_f32_Band
Band around center level parameter.
Definition: Function_Block_Band_Comparator_F32_1C_T2.h:139
TBlock_Output_Connector object_bool_In_Range
Comparator block in range status output signal.
Definition: Function_Block_Band_Comparator_F32_1C_T2.h:153
virtual ~TFunction_Block_Band_Comparator_F32_1C_T2()
Class constructor method.
Definition: Function_Block_Band_Comparator_F32_1C_T2.cpp:103
virtual VOID Execute()
Function block cyclic execution method.
Definition: Function_Block_Band_Comparator_F32_1C_T2.cpp:135
TFunction_Block_Band_Comparator_F32_1C_T2()
Class constructor method.
Definition: Function_Block_Band_Comparator_F32_1C_T2.cpp:73
TBlock_Input_Connector object_f32_Input
Comparator input signal.
Definition: Function_Block_Band_Comparator_F32_1C_T2.h:146
virtual VOID Init()
Function block initialisation method.
Definition: Function_Block_Band_Comparator_F32_1C_T2.cpp:111
TBlock_Input_Connector object_f32_Center_Level
Center level parameter.
Definition: Function_Block_Band_Comparator_F32_1C_T2.h:136
TBlock_Output_Connector object_bool_To_Low
Comparator block to low status output signal.
Definition: Function_Block_Band_Comparator_F32_1C_T2.h:156
Function block base class for device.
Definition: Function_Block_Base.h:96