AsIecCon.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* Automation Studio Generated Header File, Format Version 1.00 */
  2. /* do not change */
  3. #ifndef ASIECCON_H_
  4. #define ASIECCON_H_
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #include <bur/plc.h>
  9. /* Constants */
  10. /* Datatypes */
  11. /* Datatypes of function blocks */
  12. /* Prototyping of functions and function blocks */
  13. signed short H_TO_NINT(signed short IN);
  14. unsigned short H_TO_NUINT(unsigned short IN);
  15. signed long H_TO_NDINT(signed long IN);
  16. unsigned long H_TO_NUDINT(unsigned long IN);
  17. float H_TO_NREAL(float IN);
  18. plctime H_TO_NTIME(plctime IN);
  19. DATE_AND_TIME H_TO_NDT(DATE_AND_TIME IN);
  20. DATE H_TO_NDATE(DATE IN);
  21. TOD H_TO_NTOD(TOD IN);
  22. signed short N_TO_HINT(signed short IN);
  23. unsigned short N_TO_HUINT(unsigned short IN);
  24. signed long N_TO_HDINT(signed long IN);
  25. unsigned long N_TO_HUDINT(unsigned long IN);
  26. float N_TO_HREAL(float IN);
  27. plctime N_TO_HTIME(plctime IN);
  28. DATE_AND_TIME N_TO_HDT(DATE_AND_TIME IN);
  29. DATE N_TO_HDATE(DATE IN);
  30. TOD N_TO_HTOD(TOD IN);
  31. signed short swapINT(signed short IN);
  32. unsigned short swapUINT(unsigned short IN);
  33. WORD swapWORD(WORD IN);
  34. signed long swapDINT(signed long IN);
  35. unsigned long swapUDINT(unsigned long IN);
  36. DWORD swapDWORD(DWORD IN);
  37. TIME swapTIME(TIME IN);
  38. DATE_AND_TIME swapDT(DATE_AND_TIME IN);
  39. DATE swapDATE(DATE IN);
  40. TOD swapTOD(TOD IN);
  41. float swapREAL(float IN);
  42. /* The interface declarations of the AsIecCon functions are not included here
  43. * because they are inline in IEC languages. The x_TO_STRING and the
  44. * STRING_TO_x functions are not available for C programms. */
  45. #ifdef __cplusplus
  46. };
  47. #endif
  48. #endif /* ASIECCON_H_ */