AsSafety.var 5.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. VAR CONSTANT
  2. safeVERSION_R107 : UINT := 16#107; (*safety release version - 1.7*)
  3. safeVERSION_R110 : UINT := 16#110; (*safety release version - 1.10*)
  4. safeDATA_TYPE_MAOP : UINT := 16#100; (*download type for machine options *)
  5. safeDATA_TYPE_EXTMAOP : UINT := 16#200; (*download type for extended machine options *)
  6. safeDATA_TYPE_TABLE : UINT := 16#300; (*download type for table objects *)
  7. safeDATA_TYPE_ADDPARA : UINT := 16#400; (*download type for additional parameter*)
  8. safeDATA_TYPE_APPLICATION : UINT := 16#1200; (*type for restore*)
  9. safeINFO_TYPE_PWD_INFO : UINT := 1; (*SL info type for password info*)
  10. safeINFO_TYPE_PWD_CHK : UINT := 2; (*SL info type for password check*)
  11. safeTABLE_FILE_TYPE : UINT := 16#0000; (*reference to table file*)
  12. safeTABLE_DATA_TYPE : UINT := 16#0001; (*pointer to table data*)
  13. safeSRC_TYPE_UPLOAD_FILE : UINT := 0; (*file upload from SafeLOGIC*)
  14. safeSRC_TYPE_LOCAL_DATA : UINT := 1; (*local data from memory buffer*)
  15. safeSRC_TYPE_LOCAL_FILE : UINT := 2; (*local data from file*)
  16. safeCMD_ENTER : UINT := 16#100; (*enter command*)
  17. safeCMD_STATUS : UINT := 16#200; (*status command*)
  18. safeCMD_STATUS_SL : UINT := 16#0000; (*read back status*)
  19. safeCMD_N_UDID_ACKN : UINT := 16#20; (*acknowledge N modules*)
  20. safeCMD_4_UDID_ACKN : UINT := 16#30; (*acknowledge 4 modules*)
  21. safeCMD_3_UDID_ACKN : UINT := 16#40; (*acknowledge 3 modules*)
  22. safeCMD_2_UDID_ACKN : UINT := 16#50; (*acknowledge 2 modules*)
  23. safeCMD_1_UDID_ACKN : UINT := 16#60; (*acknowledge 1 module*)
  24. safeCMD_FW_ACKN : UINT := 16#100; (*acknowledge firmware*)
  25. safeCMD_SK_XCHG : UINT := 16#200; (*acknowledge SafeKEY*)
  26. safeCMD_TEST : UINT := 16#1000; (*LED test*)
  27. safeCMD_SCAN : UINT := 16#2000; (*scan*)
  28. safeCMD_SK_PW : UINT := 16#5000; (*change password*)
  29. safeCMD_SK_FORMAT : UINT := 16#6000; (*format SafeKEY*)
  30. safeCMD_RESET : UINT := 16#7000; (*reset SafeLOGIC*)
  31. safeCMD_CLEAR_DATA : UINT := 16#8000; (*clear additonal downloaded data*)
  32. safeCMD_SETUP_MODE_ACT : UINT := 16#9000; (*activate setup mode*)
  33. safeCMD_SETUP_MODE_DEACT : UINT := 16#9100; (*deactivate setup mode*)
  34. safeCMD_VERSION_INFO : UINT := 16#F000; (*remote version info*)
  35. safeRET_NO_TIMESTAMP : UDINT := 16#FFFFFFFF; (*no timestamp available*)
  36. safeERR_VERSION : UINT := 36100; (*error wrong version for command structure*)
  37. safeERR_PW_LENGTH : UINT := 36101; (*error wrong password length*)
  38. safeERR_UDID : UINT := 36102; (*error no UDID*)
  39. safeERR_ALLOC_MEM : UINT := 36103; (*error allocating memory*)
  40. safeERR_INTERNAL_ERROR : UINT := 36104; (*internal error*)
  41. safeERR_TIMEOUT : UINT := 36105; (*error connection timeout*)
  42. safeERR_RC_CMD : UINT := 36106; (*error wrong command*)
  43. safeERR_RC_ENTER_DATA : UINT := 36107; (*error wrong data for ENTER command*)
  44. safeERR_RC_ENTER_PW : UINT := 36108; (*error no password for command*)
  45. safeERR_RC_ENTER_SK_PW : UINT := 36109; (*error no new password for command*)
  46. safeERR_RC_STATUS_DATA : UINT := 36110; (*error wrong data for STATUS command*)
  47. safeERR_RC_DATA_LENGTH : UINT := 36111; (*error worng length for status data*)
  48. safeERR_DL_NO_PASSWORD : UINT := 36112; (*error no password for download*)
  49. safeERR_DL_PROTOCOL : UINT := 36113; (*error protocol version for download*)
  50. safeERR_DL_FILE_OPEN : UINT := 36114; (*error file open*)
  51. safeERR_DL_FILE_INVALID : UINT := 36115; (*error file invalid*)
  52. safeERR_DL_FILE_TOO_BIG : UINT := 36116; (*error file too big*)
  53. safeERR_DL_WRITE : UINT := 36117; (*error write*)
  54. safeERR_DL_STREAM : UINT := 36118; (*error stream*)
  55. safeERR_DL_CHECKSUM : UINT := 36119; (*error checksum*)
  56. safeERR_DL_UDID : UINT := 36120; (*error UDID doesn't match*)
  57. safeERR_DL_WRONG_FILE_SIZE : UINT := 36121; (*error wrong file size*)
  58. safeERR_DL_NO_RIGHTS_TO_WRITE : UINT := 36122; (*error wrong password*)
  59. safeERR_DL_UNLOCK_FILE_INFO : UINT := 36123; (*error file info*)
  60. safeERR_DL_UNLOCK_READ : UINT := 36124; (*error unlock read*)
  61. safeERR_DL_UNLOCK_WRITE : UINT := 36125; (*error unlock write*)
  62. safeERR_DL_STATIC_UNLOCK : UINT := 36126; (*error static unlock*)
  63. safeERR_DL_COMPARE_FAILED : UINT := 36127; (*error data compare failed*)
  64. safeERR_DLDATA_TYPE_ERR : UINT := 36128; (*error data type for download*)
  65. safeERR_DLDATA_ERR_DATA : UINT := 36129; (*error data for download*)
  66. safeERR_COT_TYPE_ERR : UINT := 36130; (*error data type for upload*)
  67. safeERR_COT_READING_FILE : UINT := 36131; (*error reading file*)
  68. safeERR_BUFFER_NULL : UINT := 36132; (*required input buffer is NULL*)
  69. safeERR_BUFFER_TOO_SMALL : UINT := 36133; (*required input buffer is too small*)
  70. safeERR_FILE_EMPTY : UINT := 36134; (*file is empty or does not exist on SL/SLX*)
  71. safeERR_FI_TYPE_ERR : UINT := 36135; (*error data type for getting file info*)
  72. safeERR_SLINFO_TYPE_ERR : UINT := 36136; (*error data type for SL info*)
  73. safeERR_SLINFO_RET_ERR : UINT := 36137; (*remote command returns error*)
  74. safeERR_COT_PWD_ERR : UINT := 36138; (*wrong password for configuration on target command*)
  75. safeERR_TC_INV_TABTYPE : UINT := 36180; (*invalid table type*)
  76. safeERR_TC_INV_INST : UINT := 36181; (*invalid table instance*)
  77. safeERR_TC_INV_INPUT_PTR : UINT := 36182; (*invalid input pointer*)
  78. safeERR_TC_INV_TAB_LEN : UINT := 36183; (*invalid table length*)
  79. safeERR_TC_INV_USER : UINT := 36184; (*invalid user name*)
  80. safeERR_TC_TYPE_CPY_FCT : UINT := 36185; (*no copy function for table type*)
  81. safeWRN_TC_WAIT_FOR_ACK : UINT := 36191; (*wait for acknowledge of tables*)
  82. safeERR_TC_CHECK_FAILED : UINT := 36186; (*table check failed*)
  83. safeERR_TC_EXTRACT_FAILED : UINT := 36187; (*extraction of output table data failed*)
  84. safeERR_TC_LOCK_FAILED : UINT := 36188; (*table lock failed*)
  85. safeERR_TC_ACK_SET : UINT := 36189; (*AckData is already set*)
  86. safeERR_TC_INVALID_STEP : UINT := 36190; (*invalid step in table check*)
  87. END_VAR