123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- /* Automation Studio generated header file */
- /* Do not edit ! */
- #ifndef _RUNTIME_
- #define _RUNTIME_
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include <bur/plctypes.h>
- #ifndef _IEC_CONST
- #define _IEC_CONST _WEAK const
- #endif
- /* Constants */
- #ifdef _REPLACE_CONST
- #define ERR_OK 0
- #define ERR_NOTIMPLEMENTED 9999
- #define ERR_FUB_ENABLE_FALSE 0xFFFE
- #define ERR_FUB_BUSY 0xFFFF
- /* IEC 61131-3 Datentypen */
- #define IEC_DATATYPE_BOOL 1
- #define IEC_DATATYPE_SINT 2
- #define IEC_DATATYPE_INT 3
- #define IEC_DATATYPE_DINT 4
- #define IEC_DATATYPE_USINT 5
- #define IEC_DATATYPE_UINT 6
- #define IEC_DATATYPE_UDINT 7
- #define IEC_DATATYPE_REAL 8
- #define IEC_DATATYPE_STRING 9
- #define IEC_DATATYPE_ULINT 10
- #define IEC_DATATYPE_DATE_AND_TIME 11
- #define IEC_DATATYPE_TIME 12
- #define IEC_DATATYPE_DATE 13
- #define IEC_DATATYPE_LREAL 14
- #define IEC_DATATYPE_TIME_OF_DAY 16
- #define IEC_DATATYPE_BYTE 17
- #define IEC_DATATYPE_WORD 18
- #define IEC_DATATYPE_DWORD 19
- #define IEC_DATATYPE_LWORD 20
- #define IEC_DATATYPE_WSTRING 21
- #define IEC_DATATYPE_LINT 23
- #else
- _IEC_CONST unsigned short ERR_OK = 0U;
- _IEC_CONST unsigned short ERR_NOTIMPLEMENTED = 9999U;
- _IEC_CONST unsigned short ERR_FUB_ENABLE_FALSE = 0xFFFEU;
- _IEC_CONST unsigned short ERR_FUB_BUSY = 0xFFFFU;
-
- /* IEC 61131-3 Datentypen */
- _IEC_CONST unsigned short IEC_DATATYPE_BOOL = 1;
- _IEC_CONST unsigned short IEC_DATATYPE_SINT = 2;
- _IEC_CONST unsigned short IEC_DATATYPE_INT = 3;
- _IEC_CONST unsigned short IEC_DATATYPE_DINT = 4;
- _IEC_CONST unsigned short IEC_DATATYPE_USINT = 5;
- _IEC_CONST unsigned short IEC_DATATYPE_UINT = 6;
- _IEC_CONST unsigned short IEC_DATATYPE_UDINT = 7;
- _IEC_CONST unsigned short IEC_DATATYPE_REAL = 8;
- _IEC_CONST unsigned short IEC_DATATYPE_STRING = 9;
- _IEC_CONST unsigned short IEC_DATATYPE_ULINT = 10;
- _IEC_CONST unsigned short IEC_DATATYPE_DATE_AND_TIME = 11;
- _IEC_CONST unsigned short IEC_DATATYPE_TIME = 12;
- _IEC_CONST unsigned short IEC_DATATYPE_DATE = 13;
- _IEC_CONST unsigned short IEC_DATATYPE_LREAL = 14;
- _IEC_CONST unsigned short IEC_DATATYPE_TIME_OF_DAY = 16;
- _IEC_CONST unsigned short IEC_DATATYPE_BYTE = 17;
- _IEC_CONST unsigned short IEC_DATATYPE_WORD = 18;
- _IEC_CONST unsigned short IEC_DATATYPE_DWORD = 19;
- _IEC_CONST unsigned short IEC_DATATYPE_LWORD = 20;
- _IEC_CONST unsigned short IEC_DATATYPE_WSTRING = 21;
- _IEC_CONST unsigned short IEC_DATATYPE_LINT = 23;
- #endif
- #ifdef __cplusplus
- };
- #endif
- #endif /* _RUNTIME_ */
|