MpBase.typ 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. TYPE
  2. MpComFacilitiesEnum :
  3. (
  4. mpCOM_FAC_UNDEFINED := -1, (*No active error*)
  5. mpCOM_FAC_ARCORE := 0, (*Facility for legacy error code from AR libraries in UINT format*)
  6. mpCOM_FAC_SAFETY1 := 1, (*Safety facility*)
  7. mpCOM_FAC_SAFETY2 := 2, (*Safety facility*)
  8. mpCOM_FAC_GMC1 := 96, (*GMC facility*)
  9. mpCOM_FAC_GMC2 := 97, (*GMC facility*)
  10. mpCOM_FAC_GMCAXIS := 98, (*GMC Axis facility*)
  11. mpCOM_FAC_GMCAXESGROUP := 99, (*GMC Axes group facility*)
  12. mpCOM_FAC_GMCARNCGROUP := 103, (*GMC Arnc group facility*)
  13. mpCOM_FAC_TRF := 105, (*TRF facility*)
  14. mpCOM_FAC_MAPP_INTERNAL := 144, (*mapp Internal Facility*)
  15. mpCOM_FAC_MAPP_CORE := 145, (*mapp Core Facility*)
  16. mpCOM_FAC_MAPP_INFRASTRUCTURE := 146, (*mapp Infrastructure Facility*)
  17. mpCOM_FAC_MAPP_MECHATRONIC := 147, (*mapp Mechatronics Facility*)
  18. mpCOM_FAC_MAPP_INDUSTRY := 148 (*mapp Industry Facility*)
  19. );
  20. MpComSeveritiesEnum :
  21. (
  22. mpCOM_SEV_SUCCESS := 0, (*Success - no error*)
  23. mpCOM_SEV_INFORMATIONAL := 1, (*Severity: Informational*)
  24. mpCOM_SEV_WARNING := 2, (*Severity: Warning*)
  25. mpCOM_SEV_ERROR := 3 (*Severity: Error*)
  26. );
  27. MpComIdentType : STRUCT
  28. Internal : ARRAY[0..1]OF UDINT; (*For internal use only*)
  29. END_STRUCT;
  30. MpComInternalDataType : STRUCT
  31. pObject : UDINT;
  32. State : UDINT;
  33. END_STRUCT;
  34. MpComConfigInternalType : STRUCT
  35. pObject : UDINT;
  36. State : DINT;
  37. END_STRUCT;
  38. MpComInternalIDType : STRUCT
  39. ID : DINT; (*Status ID*)
  40. Severity : MpComSeveritiesEnum; (*Status severity*)
  41. Facility : MpComFacilitiesEnum; (*Status facility*)
  42. Code : UINT; (*Status / Error code*)
  43. END_STRUCT;
  44. END_TYPE