ConOpSys V2970  P004.07
ANVILEX control operating system
Function_Block_Defines.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file Function_Block_Defines.h
3 //! @URL $HeadURL: https://192.168.3.4:8443/svn/P004_07/ConOpSys/Blocks/Function_Block_Defines.h $
4 //! @author $Author: minch $ (ANVILEX GmbH)
5 //! @version $Revision: 2245 $
6 //! @date $Date: 2020-11-28 22:59:31 +0500 (Sa, 28 Nov 2020) $
7 //! @brief Function block defines header file.
8 //! @attention
9 //!
10 //! COPYRIGHT(C) 2015-2019 ANVILEX GmbH
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 // Protecting header files from mutual, recursive inclusion.
41 //------------------------------------------------------------------------------
42 
43 #pragma once
44 
45 //------------------------------------------------------------------------------
46 // Function block group definitions
47 //------------------------------------------------------------------------------
48 
49 #define FBGID_INTERNAL_BLOCKS 0
50 #define FBGID_ANNOTATION_BLOCKS 1
51 #define FBGID_NUMERIC_BLOCKS 2
52 
53 #define FBGID_USER_BLOCKS 4
54 
55 //------------------------------------------------------------------------------
56 // Internal function clock identifiers
57 //------------------------------------------------------------------------------
58 
59 #define FBID_UNASSIGNED 0 // Unassigned Function block
60 #define FBID_UNKNOWN 1 // Unknown Function block
61 #define FBID_END 1000 // Last used ID
62 
63 //------------------------------------------------------------------------------
64 // Annotation blocks
65 //------------------------------------------------------------------------------
66 
67 #define FBID_LABEL 2
68 
69 //------------------------------------------------------------------------------
70 // Numeric blocks
71 //------------------------------------------------------------------------------
72 
73 #define FBID_F32_ABS 3
74 #define FBID_F64_ABS 4
75 #define FBID_F32_SQRT 5
76 #define FBID_F32_LN 6
77 #define FBID_F32_LOG 7
78 #define FBID_F32_EXP 8
79 #define FBID_F32_SIN 9
80 #define FBID_F32_COS 10
81 #define FBID_F32_TAN 11
82 
83 #define FBID_F32_ASIN 12
84 #define FBID_F32_ACOS 13
85 #define FBID_F32_ATAN 14
86 
87 #define FBID_F32_POW 15
88 
89 typedef struct
90 {
94 
95 //------------------------------------------------------------------------------
96 // End Of File
97 //------------------------------------------------------------------------------
unsigned char U8
Binary 8-Bit unsigned integer datatype defenition.
Definition: Defines.h:183
Definition: Function_Block_Defines.h:90
U8 u8_Input_Count
Definition: Function_Block_Defines.h:91
U8 u8_Output_Count
Definition: Function_Block_Defines.h:92