standard.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. /* Automation Studio generated header file */
  2. /* Do not edit ! */
  3. #ifndef STANDARD_H_
  4. #define STANDARD_H_
  5. #ifdef __cplusplus
  6. extern "C"
  7. {
  8. #endif
  9. #include <bur/plctypes.h>
  10. #ifndef _BUR_PUBLIC
  11. #define _BUR_PUBLIC
  12. #endif
  13. #define TP_10mstyp TP_10ms_typ
  14. #define TOF_10mstyp TOF_10ms_typ
  15. #define TON_10mstyp TON_10ms_typ
  16. #define TPtyp TP_typ
  17. #define TOFtyp TOF_typ
  18. #define TONtyp TON_typ
  19. #define SEMAtyp SEMA_typ
  20. #define RStyp RS_typ
  21. #define SRtyp SR_typ
  22. #define R_TRIGtyp R_TRIG_typ
  23. #define F_TRIGtyp F_TRIG_typ
  24. #define CTUtyp CTU_typ
  25. #define CTDtyp CTD_typ
  26. #define CTUDtyp CTUD_typ
  27. #define RF_TRIGtyp RF_TRIG_typ
  28. /* Constants */
  29. /* Datatypes */
  30. /* Datatypes of function blocks */
  31. typedef struct TP_10ms
  32. {
  33. /* VAR_INPUT (analogous) */
  34. unsigned long PT;
  35. /* VAR_OUTPUT (analogous) */
  36. unsigned long ET;
  37. /* VAR (analogous) */
  38. unsigned long StartTime;
  39. /* VAR_INPUT (digital) */
  40. plcbit IN;
  41. /* VAR_OUTPUT (digital) */
  42. plcbit Q;
  43. } TP_10ms_typ;
  44. typedef struct TOF_10ms
  45. {
  46. /* VAR_INPUT (analogous) */
  47. unsigned long PT;
  48. /* VAR_OUTPUT (analogous) */
  49. unsigned long ET;
  50. /* VAR (analogous) */
  51. unsigned long StartTime;
  52. /* VAR_INPUT (digital) */
  53. plcbit IN;
  54. /* VAR_OUTPUT (digital) */
  55. plcbit Q;
  56. /* VAR (digital) */
  57. plcbit M;
  58. } TOF_10ms_typ;
  59. typedef struct TON_10ms
  60. {
  61. /* VAR_INPUT (analogous) */
  62. unsigned long PT;
  63. /* VAR_OUTPUT (analogous) */
  64. unsigned long ET;
  65. /* VAR (analogous) */
  66. unsigned long StartTime;
  67. /* VAR_INPUT (digital) */
  68. plcbit IN;
  69. /* VAR_OUTPUT (digital) */
  70. plcbit Q;
  71. /* VAR (digital) */
  72. plcbit M;
  73. } TON_10ms_typ;
  74. typedef struct TP
  75. {
  76. /* VAR_INPUT (analogous) */
  77. plctime PT;
  78. /* VAR_OUTPUT (analogous) */
  79. plctime ET;
  80. /* VAR (analogous) */
  81. plctime StartTime;
  82. unsigned long Restart;
  83. /* VAR_INPUT (digital) */
  84. plcbit IN;
  85. /* VAR_OUTPUT (digital) */
  86. plcbit Q;
  87. } TP_typ;
  88. typedef struct TOF
  89. {
  90. /* VAR_INPUT (analogous) */
  91. plctime PT;
  92. /* VAR_OUTPUT (analogous) */
  93. plctime ET;
  94. /* VAR (analogous) */
  95. plctime StartTime;
  96. unsigned long Restart;
  97. /* VAR_INPUT (digital) */
  98. plcbit IN;
  99. /* VAR_OUTPUT (digital) */
  100. plcbit Q;
  101. /* VAR (digital) */
  102. plcbit M;
  103. } TOF_typ;
  104. typedef struct TON
  105. {
  106. /* VAR_INPUT (analogous) */
  107. plctime PT;
  108. /* VAR_OUTPUT (analogous) */
  109. plctime ET;
  110. /* VAR (analogous) */
  111. plctime StartTime;
  112. unsigned long Restart;
  113. /* VAR_INPUT (digital) */
  114. plcbit IN;
  115. /* VAR_OUTPUT (digital) */
  116. plcbit Q;
  117. /* VAR (digital) */
  118. plcbit M;
  119. } TON_typ;
  120. typedef struct SEMA
  121. {
  122. /* VAR_INPUT (digital) */
  123. plcbit CLAIM;
  124. plcbit RELEASE;
  125. /* VAR_OUTPUT (digital) */
  126. plcbit BUSY;
  127. /* VAR (digital) */
  128. plcbit X;
  129. } SEMA_typ;
  130. typedef struct RS
  131. {
  132. /* VAR_INPUT (digital) */
  133. plcbit SET;
  134. plcbit RESET1;
  135. /* VAR_OUTPUT (digital) */
  136. plcbit Q1;
  137. } RS_typ;
  138. typedef struct SR
  139. {
  140. /* VAR_INPUT (digital) */
  141. plcbit SET1;
  142. plcbit RESET;
  143. /* VAR_OUTPUT (digital) */
  144. plcbit Q1;
  145. } SR_typ;
  146. typedef struct R_TRIG
  147. {
  148. /* VAR_INPUT (digital) */
  149. plcbit CLK;
  150. /* VAR_OUTPUT (digital) */
  151. plcbit Q;
  152. /* VAR (digital) */
  153. plcbit M;
  154. } R_TRIG_typ;
  155. typedef struct F_TRIG
  156. {
  157. /* VAR_INPUT (digital) */
  158. plcbit CLK;
  159. /* VAR_OUTPUT (digital) */
  160. plcbit Q;
  161. /* VAR (digital) */
  162. plcbit M;
  163. } F_TRIG_typ;
  164. typedef struct CTU
  165. {
  166. /* VAR_INPUT (analogous) */
  167. unsigned short PV;
  168. /* VAR_OUTPUT (analogous) */
  169. unsigned short CV;
  170. /* VAR_INPUT (digital) */
  171. plcbit CU;
  172. plcbit RESET;
  173. /* VAR_OUTPUT (digital) */
  174. plcbit Q;
  175. /* VAR (digital) */
  176. plcbit M;
  177. } CTU_typ;
  178. typedef struct CTD
  179. {
  180. /* VAR_INPUT (analogous) */
  181. unsigned short PV;
  182. /* VAR_OUTPUT (analogous) */
  183. unsigned short CV;
  184. /* VAR_INPUT (digital) */
  185. plcbit CD;
  186. plcbit LOAD;
  187. /* VAR_OUTPUT (digital) */
  188. plcbit Q;
  189. /* VAR (digital) */
  190. plcbit M;
  191. } CTD_typ;
  192. typedef struct CTUD
  193. {
  194. /* VAR_INPUT (analogous) */
  195. signed short PV;
  196. /* VAR_OUTPUT (analogous) */
  197. signed short CV;
  198. /* VAR_INPUT (digital) */
  199. plcbit CU;
  200. plcbit CD;
  201. plcbit RESET;
  202. plcbit LOAD;
  203. /* VAR_OUTPUT (digital) */
  204. plcbit QU;
  205. plcbit QD;
  206. /* VAR (digital) */
  207. plcbit MU;
  208. plcbit MD;
  209. } CTUD_typ;
  210. typedef struct RF_TRIG
  211. {
  212. /* VAR_INPUT (digital) */
  213. plcbit CLK;
  214. /* VAR_OUTPUT (digital) */
  215. plcbit Q;
  216. /* VAR (digital) */
  217. plcbit M;
  218. } RF_TRIG_typ;
  219. /* Prototyping of functions and function blocks */
  220. _BUR_PUBLIC void TP_10ms(TP_10ms_typ* inst);
  221. _BUR_PUBLIC void TOF_10ms(TOF_10ms_typ* inst);
  222. _BUR_PUBLIC void TON_10ms(TON_10ms_typ* inst);
  223. _BUR_PUBLIC void TP(TP_typ* inst);
  224. _BUR_PUBLIC void TOF(TOF_typ* inst);
  225. _BUR_PUBLIC void TON(TON_typ* inst);
  226. _BUR_PUBLIC void SEMA(SEMA_typ* inst);
  227. _BUR_PUBLIC void RS(RS_typ* inst);
  228. _BUR_PUBLIC void SR(SR_typ* inst);
  229. _BUR_PUBLIC void R_TRIG(R_TRIG_typ* inst);
  230. _BUR_PUBLIC void F_TRIG(F_TRIG_typ* inst);
  231. _BUR_PUBLIC void CTU(CTU_typ* inst);
  232. _BUR_PUBLIC void CTD(CTD_typ* inst);
  233. _BUR_PUBLIC void CTUD(CTUD_typ* inst);
  234. _BUR_PUBLIC void RF_TRIG(RF_TRIG_typ* inst);
  235. #ifdef __cplusplus
  236. };
  237. #endif
  238. #endif /* STANDARD_H_ */