ConOpSys V2970  P004.07
ANVILEX control operating system
P017_48_KG3_COM_PB.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file P017_48_KG3_COM_PB.h
3 //! @brief KG3 Profibus DPV1 communication board P017.48 hardware driver header file.
4 //! @attention No special attention requered.
5 //! @copyright (C) 2015-2020 ANVILEX LLC
6 //! $HeadURL: https://192.168.3.4:8443/svn/P004_07/ConOpSys/Hardware/P017_48_KG3_COM_PB/P017_48_KG3_COM_PB.h $
7 //! $Revision: 2457 $
8 //! $Date: 2021-03-11 11:54:01 +0500 (Do, 11 Mrz 2021) $
9 //! $Author: minch $
10 //------------------------------------------------------------------------------
11 //
12 // Redistribution and use in source and binary forms, with or without
13 // modification, are permitted provided that the following conditions are met:
14 //
15 // 1. Redistributions of source code must retain the above copyright notice,
16 // this list of conditions and the following disclaimer.
17 //
18 // 2. Redistributions in binary form must reproduce the above copyright notice,
19 // this list of conditions and the following disclaimer in the documentation
20 // and/or other materials provided with the distribution.
21 //
22 // 3. Neither the name of ANVILEX nor the names of its contributors may be
23 // used to endorse or promote products derived from this software without
24 // specific prior written permission.
25 //
26 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
30 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 // POSSIBILITY OF SUCH DAMAGE.
37 //
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 //! @brief Profibus communication P017.48 board class
70 //------------------------------------------------------------------------------
71 
73 {
74 
75  //----------------------------------------------------------------------------
76  // Public methods and variables
77  //----------------------------------------------------------------------------
78 
79  public:
80 
81  //--------------------------------------------------------------------------
82  // Public methods
83  //--------------------------------------------------------------------------
84 
85  // Constructor and destructor
86  TP017_48_KG3_COM_PB(); //!< Constructor method
87  virtual ~TP017_48_KG3_COM_PB(); //!< Destructor method
88 
89 // VOID Map( TP017_52_KG3_CI_Registers *struct_Registers_Base_Address ); //!< Hardware map method
90  virtual VOID Init(); //!< Block initialisation method
91  virtual VOID Execute(); //!< Block execution method
92  virtual VOID Send_Information( TProtocol_Base *object_Protocol ); //!< Send information method
93 
94  //--------------------------------------------------------------------------
95  // Block parameters
96  //--------------------------------------------------------------------------
97 
98  //--------------------------------------------------------------------------
99  // Block inputs
100  //--------------------------------------------------------------------------
101 
134 
135  //--------------------------------------------------------------------------
136  // Block outputs
137  //--------------------------------------------------------------------------
138 
171 
172 // U16 u16_Analog_Input_Status; //!< Analog input status
173 // I16 i16_Analog_Input_Data_1; //!< Analog input channel 1 block output as I16
174 // I16 i16_Analog_Input_Data_2; //!< Analog input channel 2 block output as I16
175 // I16 i16_Analog_Input_Data_3; //!< Analog input channel 3 block output as I16
176 // I16 i16_Analog_Input_Data_4; //!< Analog input channel 4 block output as I16
177 
179 
180  //----------------------------------------------------------------------------
181  // Protected methods and variables
182  //----------------------------------------------------------------------------
183 
184  protected:
185 
186  //----------------------------------------------------------------------------
187  // Private methods and variables
188  //----------------------------------------------------------------------------
189 
190  private:
191 
192 };
193 
194 //------------------------------------------------------------------------------
195 // End Of File
196 //------------------------------------------------------------------------------
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
Function block base class for device.
Definition: Function_Block_Base.h:96
Profibus communication P017.48 board class.
Definition: P017_48_KG3_COM_PB.h:73
TBlock_Output_Connector object_u16_Output_Word_30
Definition: P017_48_KG3_COM_PB.h:168
TBlock_Input_Connector object_u16_Input_Word_26
Definition: P017_48_KG3_COM_PB.h:127
virtual VOID Send_Information(TProtocol_Base *object_Protocol)
Send information method.
Definition: P017_48_KG3_COM_PB.cpp:138
TBlock_Input_Connector object_u16_Input_Word_18
Definition: P017_48_KG3_COM_PB.h:119
TBlock_Input_Connector object_u16_Input_Word_22
Definition: P017_48_KG3_COM_PB.h:123
TBlock_Output_Connector object_u16_Output_Word_17
Definition: P017_48_KG3_COM_PB.h:155
TBlock_Output_Connector object_u16_Output_Word_25
Definition: P017_48_KG3_COM_PB.h:163
TBlock_Output_Connector object_u16_Output_Word_26
Definition: P017_48_KG3_COM_PB.h:164
TBlock_Input_Connector object_u16_Input_Word_4
Definition: P017_48_KG3_COM_PB.h:105
TBlock_Input_Connector object_u16_Input_Word_13
Definition: P017_48_KG3_COM_PB.h:114
TBlock_Input_Connector object_u16_Input_Word_16
Definition: P017_48_KG3_COM_PB.h:117
TBlock_Input_Connector object_u16_Input_Word_17
Definition: P017_48_KG3_COM_PB.h:118
TBlock_Output_Connector object_u16_Output_Word_18
Definition: P017_48_KG3_COM_PB.h:156
TBlock_Output_Connector object_u16_Output_Word_10
Definition: P017_48_KG3_COM_PB.h:148
TBlock_Input_Connector object_u16_Input_Word_9
Definition: P017_48_KG3_COM_PB.h:110
TBlock_Output_Connector object_u16_Output_Word_15
Definition: P017_48_KG3_COM_PB.h:153
TBlock_Output_Connector object_u16_Output_Word_8
Definition: P017_48_KG3_COM_PB.h:146
TBlock_Input_Connector object_u16_Input_Word_20
Definition: P017_48_KG3_COM_PB.h:121
TBlock_Input_Connector object_u16_Input_Word_24
Definition: P017_48_KG3_COM_PB.h:125
TBlock_Output_Connector object_u16_Analog_Input_Status
Analog input status.
Definition: P017_48_KG3_COM_PB.h:178
TBlock_Output_Connector object_u16_Output_Word_5
Definition: P017_48_KG3_COM_PB.h:143
TBlock_Input_Connector object_u16_Input_Word_5
Definition: P017_48_KG3_COM_PB.h:106
TBlock_Output_Connector object_u16_Output_Word_6
Definition: P017_48_KG3_COM_PB.h:144
TBlock_Output_Connector object_u16_Output_Word_27
Definition: P017_48_KG3_COM_PB.h:165
TBlock_Output_Connector object_u16_Output_Word_32
Definition: P017_48_KG3_COM_PB.h:170
TBlock_Input_Connector object_u16_Input_Word_31
Definition: P017_48_KG3_COM_PB.h:132
TBlock_Input_Connector object_u16_Input_Word_11
Definition: P017_48_KG3_COM_PB.h:112
TBlock_Input_Connector object_u16_Input_Word_8
Definition: P017_48_KG3_COM_PB.h:109
TBlock_Input_Connector object_u16_Input_Word_32
Definition: P017_48_KG3_COM_PB.h:133
TBlock_Output_Connector object_u16_Output_Word_22
Definition: P017_48_KG3_COM_PB.h:160
virtual VOID Init()
Block initialisation method.
Definition: P017_48_KG3_COM_PB.cpp:113
TBlock_Input_Connector object_u16_Input_Word_25
Definition: P017_48_KG3_COM_PB.h:126
TBlock_Input_Connector object_u16_Input_Word_2
Definition: P017_48_KG3_COM_PB.h:103
TBlock_Output_Connector object_u16_Output_Word_29
Definition: P017_48_KG3_COM_PB.h:167
TBlock_Input_Connector object_u16_Input_Word_30
Definition: P017_48_KG3_COM_PB.h:131
virtual VOID Execute()
Block execution method.
Definition: P017_48_KG3_COM_PB.cpp:123
TBlock_Input_Connector object_u16_Input_Word_21
Definition: P017_48_KG3_COM_PB.h:122
TBlock_Output_Connector object_u16_Output_Word_23
Definition: P017_48_KG3_COM_PB.h:161
TBlock_Output_Connector object_u16_Output_Word_12
Definition: P017_48_KG3_COM_PB.h:150
TBlock_Input_Connector object_u16_Input_Word_29
Definition: P017_48_KG3_COM_PB.h:130
TBlock_Output_Connector object_u16_Output_Word_9
Definition: P017_48_KG3_COM_PB.h:147
TBlock_Output_Connector object_u16_Output_Word_4
Definition: P017_48_KG3_COM_PB.h:142
TBlock_Input_Connector object_u16_Input_Word_3
Definition: P017_48_KG3_COM_PB.h:104
TBlock_Output_Connector object_u16_Output_Word_21
Definition: P017_48_KG3_COM_PB.h:159
TBlock_Output_Connector object_u16_Output_Word_1
Definition: P017_48_KG3_COM_PB.h:139
TBlock_Output_Connector object_u16_Output_Word_13
Definition: P017_48_KG3_COM_PB.h:151
TBlock_Input_Connector object_u16_Input_Word_27
Definition: P017_48_KG3_COM_PB.h:128
TBlock_Output_Connector object_u16_Output_Word_24
Definition: P017_48_KG3_COM_PB.h:162
TBlock_Output_Connector object_u16_Output_Word_2
Definition: P017_48_KG3_COM_PB.h:140
TBlock_Input_Connector object_u16_Input_Word_1
Definition: P017_48_KG3_COM_PB.h:102
TBlock_Output_Connector object_u16_Output_Word_20
Definition: P017_48_KG3_COM_PB.h:158
TBlock_Input_Connector object_u16_Input_Word_10
Definition: P017_48_KG3_COM_PB.h:111
TBlock_Output_Connector object_u16_Output_Word_19
Definition: P017_48_KG3_COM_PB.h:157
TBlock_Input_Connector object_u16_Input_Word_15
Definition: P017_48_KG3_COM_PB.h:116
TBlock_Input_Connector object_u16_Input_Word_12
Definition: P017_48_KG3_COM_PB.h:113
TBlock_Output_Connector object_u16_Output_Word_3
Definition: P017_48_KG3_COM_PB.h:141
TP017_48_KG3_COM_PB()
Constructor method.
Definition: P017_48_KG3_COM_PB.cpp:70
TBlock_Input_Connector object_u16_Input_Word_14
Definition: P017_48_KG3_COM_PB.h:115
TBlock_Output_Connector object_u16_Output_Word_14
Definition: P017_48_KG3_COM_PB.h:152
TBlock_Output_Connector object_u16_Output_Word_11
Definition: P017_48_KG3_COM_PB.h:149
TBlock_Input_Connector object_u16_Input_Word_7
Definition: P017_48_KG3_COM_PB.h:108
virtual ~TP017_48_KG3_COM_PB()
Destructor method.
Definition: P017_48_KG3_COM_PB.cpp:103
TBlock_Input_Connector object_u16_Input_Word_23
Definition: P017_48_KG3_COM_PB.h:124
TBlock_Input_Connector object_u16_Input_Word_6
Definition: P017_48_KG3_COM_PB.h:107
TBlock_Output_Connector object_u16_Output_Word_16
Definition: P017_48_KG3_COM_PB.h:154
TBlock_Input_Connector object_u16_Input_Word_19
Definition: P017_48_KG3_COM_PB.h:120
TBlock_Output_Connector object_u16_Output_Word_7
Definition: P017_48_KG3_COM_PB.h:145
TBlock_Output_Connector object_u16_Output_Word_31
Definition: P017_48_KG3_COM_PB.h:169
TBlock_Input_Connector object_u16_Input_Word_28
Definition: P017_48_KG3_COM_PB.h:129
TBlock_Output_Connector object_u16_Output_Word_28
Definition: P017_48_KG3_COM_PB.h:166
Definition: Protocol_Base.h:57