mrDarker
2025-06-23 bfc9e3dec34e108e2b4c3d0bfe19c5c16914fdff
SourceCode/Bond/Servo/ServoCommo.h
@@ -1,5 +1,6 @@
#pragma once
#include <string>
#include <vector>
namespace SERVO {
#define BLOCK_BUFFER_MAX         1024
@@ -117,10 +118,12 @@
      Ready = 0,
      Running,
      Picking,
      Picked,
      Placing,
      Restoring,
      Error,
      Abort,
      Restored,
      Completed
   };
@@ -163,6 +166,22 @@
      Error
   };
   /* Port Status */
   struct SlotConfig {
      int nSlotID = 0;
      bool isEnabled = false;
   };
   struct PortConfig {
      int nMaterialType;            // 物料类型,1: G1, 2: G2, 3: G1+G2
      std::string strPortName;       // 例如 "Port 1"
      std::string strRecipe;         // 例如 "P1001"
      std::string strLotID;
      std::string strProductID;
      std::string strOperationID;
      std::vector<SlotConfig> vecSlot;
   };
   /* EQ Data changed code */
#define EDCC_FETCHOUT_JOB            1000   /* ȡƬ */
#define EDCC_STORED_JOB               1001   /* 放片 */