/* Automation Studio generated header file */ /* Do not edit ! */ #ifndef _ASIOACC_ #define _ASIOACC_ #ifdef __cplusplus extern "C" { #endif #include #include #ifndef _BUR_PUBLIC #define _BUR_PUBLIC #endif /* Constants */ #ifdef _REPLACE_CONST #define ioacERR_ACCESS 30196U #define ioacERR_PARAMETER 30195U #define ioacERR_NOTSUPPORTED 30194U #define ioacERR_TIMEOUT 30193U #define ioacERR_CHANNEL 30192U #define ioacERR_DEVICE 30191U #define ioacERR_INTERNAL 30190U #else #ifndef _GLOBAL_CONST #define _GLOBAL_CONST _WEAK const #endif _GLOBAL_CONST unsigned short ioacERR_ACCESS; _GLOBAL_CONST unsigned short ioacERR_PARAMETER; _GLOBAL_CONST unsigned short ioacERR_NOTSUPPORTED; _GLOBAL_CONST unsigned short ioacERR_TIMEOUT; _GLOBAL_CONST unsigned short ioacERR_CHANNEL; _GLOBAL_CONST unsigned short ioacERR_DEVICE; _GLOBAL_CONST unsigned short ioacERR_INTERNAL; #endif /* Datatypes and datatypes of function blocks */ typedef struct IOAC_I_TYPE { unsigned short StateMan; unsigned short ErrMan; unsigned long Init; unsigned long Taskhandle; unsigned long Semaphore; unsigned long Requestsize; unsigned long Answersize; unsigned long pAccessObj; unsigned long Offset; unsigned long flags; } IOAC_I_TYPE; typedef struct AsIOAccRead { /* VAR_INPUT (analog) */ unsigned long pDeviceName; unsigned long pChannelName; /* VAR_OUTPUT (analog) */ unsigned short status; unsigned long value; /* VAR (analog) */ struct IOAC_I_TYPE intern; /* VAR_INPUT (digital) */ plcbit enable; } AsIOAccRead_typ; typedef struct AsIOAccWrite { /* VAR_INPUT (analog) */ unsigned long pDeviceName; unsigned long pChannelName; unsigned long value; /* VAR_OUTPUT (analog) */ unsigned short status; /* VAR (analog) */ struct IOAC_I_TYPE intern; /* VAR_INPUT (digital) */ plcbit enable; } AsIOAccWrite_typ; typedef struct AsIOAccReadReg { /* VAR_INPUT (analog) */ unsigned char nodeNr; unsigned short registerNr; unsigned char size; /* VAR_OUTPUT (analog) */ unsigned short status; unsigned long value; /* VAR (analog) */ unsigned short i_state; unsigned short i_result; unsigned long i_tmp; /* VAR_INPUT (digital) */ plcbit enable; } AsIOAccReadReg_typ; typedef struct AsIOAccWriteReg { /* VAR_INPUT (analog) */ unsigned char nodeNr; unsigned short registerNr; unsigned char size; unsigned long value; /* VAR_OUTPUT (analog) */ unsigned short status; /* VAR (analog) */ unsigned short i_state; unsigned short i_result; unsigned long i_tmp; /* VAR_INPUT (digital) */ plcbit enable; } AsIOAccWriteReg_typ; /* Prototyping of functions and function blocks */ _BUR_PUBLIC void AsIOAccRead(struct AsIOAccRead* inst); _BUR_PUBLIC void AsIOAccWrite(struct AsIOAccWrite* inst); _BUR_PUBLIC void AsIOAccReadReg(struct AsIOAccReadReg* inst); _BUR_PUBLIC void AsIOAccWriteReg(struct AsIOAccWriteReg* inst); #ifdef __cplusplus }; #endif #endif /* _ASIOACC_ */