runtime.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /* Automation Studio generated header file */
  2. /* Do not edit ! */
  3. #ifndef _RUNTIME_
  4. #define _RUNTIME_
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #include <bur/plctypes.h>
  9. #ifndef _IEC_CONST
  10. #define _IEC_CONST _WEAK const
  11. #endif
  12. /* Constants */
  13. #ifdef _REPLACE_CONST
  14. #define ERR_OK 0
  15. #define ERR_NOTIMPLEMENTED 9999
  16. #define ERR_FUB_ENABLE_FALSE 0xFFFE
  17. #define ERR_FUB_BUSY 0xFFFF
  18. /* IEC 61131-3 Datentypen */
  19. #define IEC_DATATYPE_BOOL 1
  20. #define IEC_DATATYPE_SINT 2
  21. #define IEC_DATATYPE_INT 3
  22. #define IEC_DATATYPE_DINT 4
  23. #define IEC_DATATYPE_USINT 5
  24. #define IEC_DATATYPE_UINT 6
  25. #define IEC_DATATYPE_UDINT 7
  26. #define IEC_DATATYPE_REAL 8
  27. #define IEC_DATATYPE_STRING 9
  28. #define IEC_DATATYPE_ULINT 10
  29. #define IEC_DATATYPE_DATE_AND_TIME 11
  30. #define IEC_DATATYPE_TIME 12
  31. #define IEC_DATATYPE_DATE 13
  32. #define IEC_DATATYPE_LREAL 14
  33. #define IEC_DATATYPE_TIME_OF_DAY 16
  34. #define IEC_DATATYPE_BYTE 17
  35. #define IEC_DATATYPE_WORD 18
  36. #define IEC_DATATYPE_DWORD 19
  37. #define IEC_DATATYPE_LWORD 20
  38. #define IEC_DATATYPE_WSTRING 21
  39. #define IEC_DATATYPE_LINT 23
  40. #else
  41. _IEC_CONST unsigned short ERR_OK = 0U;
  42. _IEC_CONST unsigned short ERR_NOTIMPLEMENTED = 9999U;
  43. _IEC_CONST unsigned short ERR_FUB_ENABLE_FALSE = 0xFFFEU;
  44. _IEC_CONST unsigned short ERR_FUB_BUSY = 0xFFFFU;
  45. /* IEC 61131-3 Datentypen */
  46. _IEC_CONST unsigned short IEC_DATATYPE_BOOL = 1;
  47. _IEC_CONST unsigned short IEC_DATATYPE_SINT = 2;
  48. _IEC_CONST unsigned short IEC_DATATYPE_INT = 3;
  49. _IEC_CONST unsigned short IEC_DATATYPE_DINT = 4;
  50. _IEC_CONST unsigned short IEC_DATATYPE_USINT = 5;
  51. _IEC_CONST unsigned short IEC_DATATYPE_UINT = 6;
  52. _IEC_CONST unsigned short IEC_DATATYPE_UDINT = 7;
  53. _IEC_CONST unsigned short IEC_DATATYPE_REAL = 8;
  54. _IEC_CONST unsigned short IEC_DATATYPE_STRING = 9;
  55. _IEC_CONST unsigned short IEC_DATATYPE_ULINT = 10;
  56. _IEC_CONST unsigned short IEC_DATATYPE_DATE_AND_TIME = 11;
  57. _IEC_CONST unsigned short IEC_DATATYPE_TIME = 12;
  58. _IEC_CONST unsigned short IEC_DATATYPE_DATE = 13;
  59. _IEC_CONST unsigned short IEC_DATATYPE_LREAL = 14;
  60. _IEC_CONST unsigned short IEC_DATATYPE_TIME_OF_DAY = 16;
  61. _IEC_CONST unsigned short IEC_DATATYPE_BYTE = 17;
  62. _IEC_CONST unsigned short IEC_DATATYPE_WORD = 18;
  63. _IEC_CONST unsigned short IEC_DATATYPE_DWORD = 19;
  64. _IEC_CONST unsigned short IEC_DATATYPE_LWORD = 20;
  65. _IEC_CONST unsigned short IEC_DATATYPE_WSTRING = 21;
  66. _IEC_CONST unsigned short IEC_DATATYPE_LINT = 23;
  67. #endif
  68. #ifdef __cplusplus
  69. };
  70. #endif
  71. #endif /* _RUNTIME_ */