123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- /* Automation Studio generated header file */
- /* Do not edit ! */
- #ifndef STANDARD_H_
- #define STANDARD_H_
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #include <bur/plctypes.h>
- #ifndef _BUR_PUBLIC
- #define _BUR_PUBLIC
- #endif
- #define TP_10mstyp TP_10ms_typ
- #define TOF_10mstyp TOF_10ms_typ
- #define TON_10mstyp TON_10ms_typ
- #define TPtyp TP_typ
- #define TOFtyp TOF_typ
- #define TONtyp TON_typ
- #define SEMAtyp SEMA_typ
- #define RStyp RS_typ
- #define SRtyp SR_typ
- #define R_TRIGtyp R_TRIG_typ
- #define F_TRIGtyp F_TRIG_typ
- #define CTUtyp CTU_typ
- #define CTDtyp CTD_typ
- #define CTUDtyp CTUD_typ
- #define RF_TRIGtyp RF_TRIG_typ
- /* Constants */
- /* Datatypes */
- /* Datatypes of function blocks */
- typedef struct TP_10ms
- {
- /* VAR_INPUT (analogous) */
- unsigned long PT;
- /* VAR_OUTPUT (analogous) */
- unsigned long ET;
- /* VAR (analogous) */
- unsigned long StartTime;
- /* VAR_INPUT (digital) */
- plcbit IN;
- /* VAR_OUTPUT (digital) */
- plcbit Q;
- } TP_10ms_typ;
- typedef struct TOF_10ms
- {
- /* VAR_INPUT (analogous) */
- unsigned long PT;
- /* VAR_OUTPUT (analogous) */
- unsigned long ET;
- /* VAR (analogous) */
- unsigned long StartTime;
- /* VAR_INPUT (digital) */
- plcbit IN;
- /* VAR_OUTPUT (digital) */
- plcbit Q;
- /* VAR (digital) */
- plcbit M;
- } TOF_10ms_typ;
- typedef struct TON_10ms
- {
- /* VAR_INPUT (analogous) */
- unsigned long PT;
- /* VAR_OUTPUT (analogous) */
- unsigned long ET;
- /* VAR (analogous) */
- unsigned long StartTime;
- /* VAR_INPUT (digital) */
- plcbit IN;
- /* VAR_OUTPUT (digital) */
- plcbit Q;
- /* VAR (digital) */
- plcbit M;
- } TON_10ms_typ;
- typedef struct TP
- {
- /* VAR_INPUT (analogous) */
- plctime PT;
- /* VAR_OUTPUT (analogous) */
- plctime ET;
- /* VAR (analogous) */
- plctime StartTime;
- unsigned long Restart;
- /* VAR_INPUT (digital) */
- plcbit IN;
- /* VAR_OUTPUT (digital) */
- plcbit Q;
- } TP_typ;
- typedef struct TOF
- {
- /* VAR_INPUT (analogous) */
- plctime PT;
- /* VAR_OUTPUT (analogous) */
- plctime ET;
- /* VAR (analogous) */
- plctime StartTime;
- unsigned long Restart;
- /* VAR_INPUT (digital) */
- plcbit IN;
- /* VAR_OUTPUT (digital) */
- plcbit Q;
- /* VAR (digital) */
- plcbit M;
- } TOF_typ;
- typedef struct TON
- {
- /* VAR_INPUT (analogous) */
- plctime PT;
- /* VAR_OUTPUT (analogous) */
- plctime ET;
- /* VAR (analogous) */
- plctime StartTime;
- unsigned long Restart;
- /* VAR_INPUT (digital) */
- plcbit IN;
- /* VAR_OUTPUT (digital) */
- plcbit Q;
- /* VAR (digital) */
- plcbit M;
- } TON_typ;
- typedef struct SEMA
- {
- /* VAR_INPUT (digital) */
- plcbit CLAIM;
- plcbit RELEASE;
- /* VAR_OUTPUT (digital) */
- plcbit BUSY;
- /* VAR (digital) */
- plcbit X;
- } SEMA_typ;
- typedef struct RS
- {
- /* VAR_INPUT (digital) */
- plcbit SET;
- plcbit RESET1;
- /* VAR_OUTPUT (digital) */
- plcbit Q1;
- } RS_typ;
- typedef struct SR
- {
- /* VAR_INPUT (digital) */
- plcbit SET1;
- plcbit RESET;
- /* VAR_OUTPUT (digital) */
- plcbit Q1;
- } SR_typ;
- typedef struct R_TRIG
- {
- /* VAR_INPUT (digital) */
- plcbit CLK;
- /* VAR_OUTPUT (digital) */
- plcbit Q;
- /* VAR (digital) */
- plcbit M;
- } R_TRIG_typ;
- typedef struct F_TRIG
- {
- /* VAR_INPUT (digital) */
- plcbit CLK;
- /* VAR_OUTPUT (digital) */
- plcbit Q;
- /* VAR (digital) */
- plcbit M;
- } F_TRIG_typ;
- typedef struct CTU
- {
- /* VAR_INPUT (analogous) */
- unsigned short PV;
- /* VAR_OUTPUT (analogous) */
- unsigned short CV;
- /* VAR_INPUT (digital) */
- plcbit CU;
- plcbit RESET;
- /* VAR_OUTPUT (digital) */
- plcbit Q;
- /* VAR (digital) */
- plcbit M;
- } CTU_typ;
- typedef struct CTD
- {
- /* VAR_INPUT (analogous) */
- unsigned short PV;
- /* VAR_OUTPUT (analogous) */
- unsigned short CV;
- /* VAR_INPUT (digital) */
- plcbit CD;
- plcbit LOAD;
- /* VAR_OUTPUT (digital) */
- plcbit Q;
- /* VAR (digital) */
- plcbit M;
- } CTD_typ;
- typedef struct CTUD
- {
- /* VAR_INPUT (analogous) */
- signed short PV;
- /* VAR_OUTPUT (analogous) */
- signed short CV;
- /* VAR_INPUT (digital) */
- plcbit CU;
- plcbit CD;
- plcbit RESET;
- plcbit LOAD;
- /* VAR_OUTPUT (digital) */
- plcbit QU;
- plcbit QD;
- /* VAR (digital) */
- plcbit MU;
- plcbit MD;
- } CTUD_typ;
- typedef struct RF_TRIG
- {
- /* VAR_INPUT (digital) */
- plcbit CLK;
- /* VAR_OUTPUT (digital) */
- plcbit Q;
- /* VAR (digital) */
- plcbit M;
- } RF_TRIG_typ;
- /* Prototyping of functions and function blocks */
- _BUR_PUBLIC void TP_10ms(TP_10ms_typ* inst);
- _BUR_PUBLIC void TOF_10ms(TOF_10ms_typ* inst);
- _BUR_PUBLIC void TON_10ms(TON_10ms_typ* inst);
- _BUR_PUBLIC void TP(TP_typ* inst);
- _BUR_PUBLIC void TOF(TOF_typ* inst);
- _BUR_PUBLIC void TON(TON_typ* inst);
- _BUR_PUBLIC void SEMA(SEMA_typ* inst);
- _BUR_PUBLIC void RS(RS_typ* inst);
- _BUR_PUBLIC void SR(SR_typ* inst);
- _BUR_PUBLIC void R_TRIG(R_TRIG_typ* inst);
- _BUR_PUBLIC void F_TRIG(F_TRIG_typ* inst);
- _BUR_PUBLIC void CTU(CTU_typ* inst);
- _BUR_PUBLIC void CTD(CTD_typ* inst);
- _BUR_PUBLIC void CTUD(CTUD_typ* inst);
- _BUR_PUBLIC void RF_TRIG(RF_TRIG_typ* inst);
- #ifdef __cplusplus
- };
- #endif
- #endif /* STANDARD_H_ */
|