ConOpSys V2970  P004.07
ANVILEX control operating system
System_Resource_Defines.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file System_Resource_Defines.h
3 //! @brief System resource definition 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/Engine/Application/System_Resource_Defines.h $
7 //! $Revision: 2952 $
8 //! $Date: 2022-02-27 19:31:14 +0500 (So, 27 Feb 2022) $
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 #pragma once
41 
42 //------------------------------------------------------------------------------
43 // Include files
44 //------------------------------------------------------------------------------
45 
46 //------------------------------------------------------------------------------
47 // Operating system related defines
48 //------------------------------------------------------------------------------
49 
50 #define OPERATING_SYSTEM_NAME ( (C8*)"ANVILEX ConOpSys" )
51 
52 //------------------------------------------------------------------------------
53 // Copyright related defines
54 //------------------------------------------------------------------------------
55 
56 #define COPYRIGHT_COMPANY ( (C8*)"ANVILEX LLC" )
57 #define COPYRIGHT_YEAR ( (C8*)"2020" )
58 
59 //------------------------------------------------------------------------------
60 // Contact related defines
61 //------------------------------------------------------------------------------
62 
63 #define CONTACT_COMPANY_NAME ( (C8*)"ANVILEX LLC" )
64 #define CONTACT_COMPANY_ADDRESS ( (C8*)"Soni Krivoj 83" )
65 #define CONTACT_COMPANY_AREA_CODE ( (C8*)"454080" )
66 #define CONTACT_COMPANY_CITY ( (C8*)"Cheljabinsk" )
67 #define CONTACT_COMPANY_COUNTRY ( (C8*)"Russia" )
68 #define CONTACT_COMPANY_INTERNET ( (C8*)"http://www.anvilex.com" )
69 #define CONTACT_COMPANY_EMAIL ( (C8*)"information@anvilex.com" )
70 
71 //-------------------------------------------------------------------------------
72 // Hardware platform defines
73 //-------------------------------------------------------------------------------
74 
75 //! @brief VDC platform
76 #define RUNTIME_ENGINE_VDC 0
77 
78 //! @brief KG2 platform
79 #define RUNTIME_ENGINE_P014_49 1
80 
81 //! @brief CCS platform
82 #define RUNTIME_ENGINE_P014_51 2
83 
84 //! @brief P015.27 platform same as CCS / P014.51 platform
85 //! @todo ANVILEX KM: Deprecated ==> To remove
86 #define RUNTIME_ENGINE_P015_27 2
87 
88 //! @brief KG3 MECO platform
89 #define RUNTIME_ENGINE_P015_09 3
90 
91 //! @brief KG3 platform
92 #define RUNTIME_ENGINE_P017_39 4
93 
94 //! @brief PUC2 platform
95 #define RUNTIME_ENGINE_P016_05 5
96 
97 //-------------------------------------------------------------------------------
98 // USART based communication link operation mode defines
99 //-------------------------------------------------------------------------------
100 
101 //! @brief No communication protocol mounted on communication link
102 #define USART_COMMUNICATION_MODE_NONE 0
103 
104 //! @brief ANVILEX slave protocol mounted on communication link
105 #define USART_COMMUNICATION_MODE_ANVILEX 1
106 
107 //! @brief ANVILEX slave protocol mounted on communication link
108 #define USART_COMMUNICATION_MODE_ANVILEX_V2 6
109 
110 //! @brief ANVILEX master protocol mounted on communication link
111 #define USART_COMMUNICATION_MODE_ANVILEX_MASTER 5
112 
113 //! @brief MODBUS RTU slave protocol mounted on communication link
114 #define USART_COMMUNICATION_MODE_MODBUS_RTU 2
115 
116 //! @brief MODBUS ASCII slave protocol mounted on communication link
117 #define USART_COMMUNICATION_MODE_MODBUS_ASCII 3
118 
119 //! @brief SIMCOM slave protocol mounted on communication link
120 #define USART_COMMUNICATION_MODE_SIMCOM 4
121 
122 //-------------------------------------------------------------------------------
123 // System terminal communication link defines
124 //-------------------------------------------------------------------------------
125 
126 //! @brief System terminal unused in system
127 #define SYSTEM_TERMINAL_NONE 0
128 
129 //! @brief Communication link COM1 used as system terminal
130 #define SYSTEM_TERMINAL_COM1 1
131 
132 //! @brief Communication link COM2 used as system terminal
133 #define SYSTEM_TERMINAL_COM2 2
134 
135 //-------------------------------------------------------------------------------
136 // ETH based communication link operation mode defines
137 //-------------------------------------------------------------------------------
138 
139 #define ETH_COMMUNICATION_MODE_NONE 0
140 #define ETH_COMMUNICATION_MODE_ANVILEX 1
141 #define ETH_COMMUNICATION_MODE_LWIP 2
142 
143 //-------------------------------------------------------------------------------
144 // ANYBUS based communication link operation mode defines
145 //-------------------------------------------------------------------------------
146 
147 #define NONE 0
148 #define PB_DPV_1 1
149 #define SIMCOM800 2
150 
151 //-------------------------------------------------------------------------------
152 // Clock source mode defines
153 //-------------------------------------------------------------------------------
154 
155 #define HSI 0
156 #define HSE 1
157 
158 //-------------------------------------------------------------------------------
159 // Event manager related defines
160 // This defines are reqquered only for old application
161 //-------------------------------------------------------------------------------
162 
163 // ANVILEX KM: Depricated ==> Remove
164 //#define EVENT_DESCRIPTOR_DATABASE_HASH ( (U32)0x00000001 ) // ANVILEX - IED
165 //#define EVENT_DESCRIPTOR_DATABASE_HASH ( (U32)0x00000002 ) // MECO
166 //#define EVENT_DESCRIPTOR_DATABASE_HASH ( (U32)0x00000005 ) // KVTEK VIETNAM
167 //#define EVENT_DESCRIPTOR_DATABASE_HASH ( (U32)0x00000006 ) // BRIZ - CED - Inverter
168 //#define EVENT_DESCRIPTOR_DATABASE_HASH ( (U32)0x00000007 ) // BRIZ - CED - Cooling
169 //#define EVENT_DESCRIPTOR_DATABASE_HASH ( (U32)0x00000008 ) // ANVILEX - BED
170 //#define EVENT_DESCRIPTOR_DATABASE_HASH ( (U32)0x00000009 ) // ANVILEX - DEBUG
171 //#define EVENT_DESCRIPTOR_DATABASE_HASH ( (U32)0x0000000A ) // ANVILEX - SFC - Inverter
172 //#define EVENT_DESCRIPTOR_DATABASE_HASH ( (U32)0x0000000B ) // KVTEK - 6MW GSR
173 //#define EVENT_DESCRIPTOR_DATABASE_HASH ( (U32)0x0000000C ) // KVTEK - 6MW LCS
174 //#define EVENT_DESCRIPTOR_DATABASE_HASH ( (U32)0x0000000D ) // RALF - Electronic load
175 //#define EVENT_DESCRIPTOR_DATABASE_HASH ( (U32)0x0000000E ) // ANVILEX - BED
176 
177 //------------------------------------------------------------------------------
178 // Application control task activation source defines
179 //------------------------------------------------------------------------------
180 
181 //! @brief Spplication trigger source FPGA interrupt
182 //! @note Control task triggered by FPGA inperrupt
183 #define APPLICATION_CONTROL_TASK_SOURCE_FPGA 1
184 
185 //! @brief Spplication trigger source TIMER3
186 //! @note Control task triggered by TIMER3
187 #define APPLICATION_CONTROL_TASK_SOURCE_TIMER3 2
188 
189 //! @brief Spplication trigger source system timer
190 //! @note Control task triggered by SYSTEM TIMER
191 #define APPLICATION_CONTROL_TASK_SOURCE_SYSTEM_TIMER 3
192 
193 //------------------------------------------------------------------------------
194 // ANVILEX plates
195 //------------------------------------------------------------------------------
196 
197 
198 #define KG3_DUMMY_T1 0x0000
199 
200 //------------------------------------------------------------------------------
201 
202 #define KG3_AI_T1 0x0001
203 #define KG3_AI_T2 0x000C
204 
205 //------------------------------------------------------------------------------
206 
207 #define KG3_GIO_T1 0x0002
208 
209 //------------------------------------------------------------------------------
210 
211 #define KG3_FAN_T1 0x0003
212 
213 //------------------------------------------------------------------------------
214 
215 #define KG3_RTD_T1 0x0004
216 
217 //------------------------------------------------------------------------------
218 
219 #define KG3_RTD2_T1 0x000F
220 
221 //------------------------------------------------------------------------------
222 
223 #define KG3_FOTR_T1 0x0005
224 #define KG3_FOTR_T2 0x0017
225 
226 //------------------------------------------------------------------------------
227 
228 #define KG3_CI_T1 0x0006
229 
230 //------------------------------------------------------------------------------
231 
232 #define KG3_DIO_T1 0x0007
233 #define KG3_DIO_T2 0x0016
234 #define KG3_DIO_T2E 0x001F
235 
236 //------------------------------------------------------------------------------
237 
238 #define KG3_BLCP_T1 0x0008
239 
240 //------------------------------------------------------------------------------
241 
242 #define KG3_DCBIO_T1 0x0009
243 #define KG3_DCBIO_T2 0x000A
244 
245 #define KG3_DCBIO2_T1 0x0021
246 #define KG3_DCBIO2_T2 0x0022
247 
248 //------------------------------------------------------------------------------
249 
250 #define KG3_AO_T1 0x000B
251 #define KG3_AO_T2 0x0018
252 #define KG3_AO_T3 0x0019
253 #define KG3_AO_T4 0x001A
254 
255 //------------------------------------------------------------------------------
256 
257 #define KG3_PLC_T0 0x001B
258 #define KG3_PLC_T1 0x001C
259 
260 //------------------------------------------------------------------------------
261 
262 #define KG3_BLA_T1 0x000D
263 
264 //------------------------------------------------------------------------------
265 
266 #define KG3_TSA_T1 0x000E
267 
268 //------------------------------------------------------------------------------
269 
270 #define KG3_FC_T1 0x0010
271 
272 //------------------------------------------------------------------------------
273 
274 #define KG3_MOD_T1 0x0011
275 
276 //------------------------------------------------------------------------------
277 
278 #define KG3_GRTD_T1 0x0012
279 
280 //------------------------------------------------------------------------------
281 
282 #define KG3_DIO2_T1 0x0013
283 
284 //------------------------------------------------------------------------------
285 
286 #define KG3_PTE_T1 0x0014
287 
288 //------------------------------------------------------------------------------
289 
290 #define KG3_ENC_T1 0x0015
291 
292 //------------------------------------------------------------------------------
293 
294 #define KG3_LCSI_T1 0x001D
295 #define KG3_LCSI_T1E 0x0020
296 
297 //------------------------------------------------------------------------------
298 
299 #define KG3_CAB_T1 0x001E
300 
301 //------------------------------------------------------------------------------
302 
303 #define KG3_DFGI_T1E 0x0023
304 
305 //------------------------------------------------------------------------------
306 
307 #define KG3_EXT_VI_T1 0x8001
308 
309 //------------------------------------------------------------------------------
310 //-- P015.09 target
311 //------------------------------------------------------------------------------
312 
313 #define P015_09_AI_T2 0x7FFF
314 
315 #define P015_09_FOTR_T2 0x7FFF
316 
317 #define P015_09_DCBIO_T2 0x7FFF
318 
319 #define P015_09_RTD_T1 0x7FFF
320 
321 #define P015_09_CRIO_T1 0x7FFF
322 #define P015_09_CRIO_T2 0x7FFF
323 
324 #define P015_09_DIO_T1 0x7FFF
325 #define P015_09_DIO_T2 0x7FFF
326 
327 #define P015_09_ENC_T1 0x7FFF
328 #define P015_09_ENC_T2 0x7FFF
329 
330 //------------------------------------------------------------------------------
331 
332 #define KG3_UNDEFINE 0xFFFF
333 
334 //------------------------------------------------------------------------------
335 // End of file
336 //------------------------------------------------------------------------------