MpBase.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /* Automation Studio generated header file */
  2. /* Do not edit ! */
  3. /* MpBase 5.06.0 */
  4. #ifndef _MPBASE_
  5. #define _MPBASE_
  6. #ifdef __cplusplus
  7. extern "C"
  8. {
  9. #endif
  10. #ifndef _MpBase_VERSION
  11. #define _MpBase_VERSION 5.06.0
  12. #endif
  13. #include <bur/plctypes.h>
  14. #ifndef _BUR_PUBLIC
  15. #define _BUR_PUBLIC
  16. #endif
  17. /* Constants */
  18. #ifdef _REPLACE_CONST
  19. #define mpCOM_MAIN_INT 1U
  20. #define mpCOM_STANDALONE_INT 2U
  21. /*Constant mpCOM_MAIN not declared. Initialized constants from structured datatypes cannot be used in ANSI C programs / libraries. See Automation Help for details.*/
  22. /*Constant mpCOM_STANDALONE not declared. Initialized constants from structured datatypes cannot be used in ANSI C programs / libraries. See Automation Help for details.*/
  23. #else
  24. #ifndef _GLOBAL_CONST
  25. #define _GLOBAL_CONST _WEAK const
  26. #endif
  27. _GLOBAL_CONST unsigned long mpCOM_MAIN_INT;
  28. _GLOBAL_CONST unsigned long mpCOM_STANDALONE_INT;
  29. #endif
  30. /* Datatypes and datatypes of function blocks */
  31. typedef enum MpComFacilitiesEnum
  32. { mpCOM_FAC_UNDEFINED = -1,
  33. mpCOM_FAC_ARCORE = 0,
  34. mpCOM_FAC_SAFETY1 = 1,
  35. mpCOM_FAC_SAFETY2 = 2,
  36. mpCOM_FAC_GMC1 = 96,
  37. mpCOM_FAC_GMC2 = 97,
  38. mpCOM_FAC_GMCAXIS = 98,
  39. mpCOM_FAC_GMCAXESGROUP = 99,
  40. mpCOM_FAC_GMCARNCGROUP = 103,
  41. mpCOM_FAC_TRF = 105,
  42. mpCOM_FAC_MAPP_INTERNAL = 144,
  43. mpCOM_FAC_MAPP_CORE = 145,
  44. mpCOM_FAC_MAPP_INFRASTRUCTURE = 146,
  45. mpCOM_FAC_MAPP_MECHATRONIC = 147,
  46. mpCOM_FAC_MAPP_INDUSTRY = 148
  47. } MpComFacilitiesEnum;
  48. typedef enum MpComSeveritiesEnum
  49. { mpCOM_SEV_SUCCESS = 0,
  50. mpCOM_SEV_INFORMATIONAL = 1,
  51. mpCOM_SEV_WARNING = 2,
  52. mpCOM_SEV_ERROR = 3
  53. } MpComSeveritiesEnum;
  54. typedef struct MpComIdentType
  55. { unsigned long Internal[2];
  56. } MpComIdentType;
  57. typedef struct MpComInternalDataType
  58. { unsigned long pObject;
  59. unsigned long State;
  60. } MpComInternalDataType;
  61. typedef struct MpComConfigInternalType
  62. { unsigned long pObject;
  63. signed long State;
  64. } MpComConfigInternalType;
  65. typedef struct MpComInternalIDType
  66. { signed long ID;
  67. enum MpComSeveritiesEnum Severity;
  68. enum MpComFacilitiesEnum Facility;
  69. unsigned short Code;
  70. } MpComInternalIDType;
  71. /* Prototyping of functions and function blocks */
  72. _BUR_PUBLIC unsigned long MpComHandle(void);
  73. _BUR_PUBLIC unsigned long MpComVersion(void);
  74. #ifdef __cplusplus
  75. };
  76. #endif
  77. #endif /* _MPBASE_ */