diff --git a/BPASmartClient.AGV/AGVHelper.cs b/BPASmartClient.AGV/AGVHelper.cs
index cf6204c5..acb342e1 100644
--- a/BPASmartClient.AGV/AGVHelper.cs
+++ b/BPASmartClient.AGV/AGVHelper.cs
@@ -76,46 +76,46 @@ namespace BPASmartClient.AGV
///
public string AgvToLineOneLoadRoller(string robotJobId)
{
- string url = AGVRequestUrl.GetInstance.TaskSendUrl;
- //请求报文头
- HttpRequestHeaderModel.GetInstance.appKey = "";
- HttpRequestHeaderModel.GetInstance.appSecret = "";
- HttpRequestHeaderModel.GetInstance.requestId = "";
- HttpRequestHeaderModel.GetInstance.timestamp = "";
- HttpRequestHeaderModel.GetInstance.version = "2.8";
- string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
- //请求报文体
- AGVModel.GetInstance.robotJobId =robotJobId ;//上游提供
- AGVModel.GetInstance.warehouseId = 123; //仓库编号
- AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
- AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
- AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
- //详细任务数据
- //点到点
- AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
- AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
- AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
- AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
- AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
- string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- // string newBody = String.Join(",\r\n", bodyData.Split(','));//格式处理,看需求
- //货位到货位
- //AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
- //AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
- //AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- //AGV_SlotRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
- //AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- //AGV_SlotRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
- //AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ //string url = AGVRequestUrl.GetInstance.TaskSendUrl;
+ ////请求报文头
+ //HttpRequestHeaderModel.GetInstance.appKey = "";
+ //HttpRequestHeaderModel.GetInstance.appSecret = "";
+ //HttpRequestHeaderModel.GetInstance.requestId = "";
+ //HttpRequestHeaderModel.GetInstance.timestamp = "";
+ //HttpRequestHeaderModel.GetInstance.version = "2.8";
+ //string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
+ ////请求报文体
+ //AGVModel.GetInstance.robotJobId =robotJobId ;//上游提供
+ //AGVModel.GetInstance.warehouseId = 123; //仓库编号
+ //AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
+ //AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
+ //AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
+ ////详细任务数据
+ ////点到点
+ //AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
+ //AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
+ //AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ //AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
+ //AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ //AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
+ //AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
//string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- string data = HttpRequest(url, head, body);
- object objData = JsonConvert.DeserializeObject(data);
- if (objData != null && objData is HttpResponseModel response)
- {
- return response.Body?.code;
- }
+ //// string newBody = String.Join(",\r\n", bodyData.Split(','));//格式处理,看需求
+ ////货位到货位
+ ////AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
+ ////AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
+ ////AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ ////string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
+ //string data = HttpRequest(url, head, body);
+ //object objData = JsonConvert.DeserializeObject(data);
+ //if (objData != null && objData is HttpResponseModel response)
+ //{
+ // return response.Body?.code;
+ //}
return "Analysis Error";
}
///
@@ -124,45 +124,45 @@ namespace BPASmartClient.AGV
///
public string AgvToLineTwoLoadRoller(string robotJobId)
{
- string url = AGVRequestUrl.GetInstance.TaskSendUrl;
- //请求报文头
- HttpRequestHeaderModel.GetInstance.appKey = "";
- HttpRequestHeaderModel.GetInstance.appSecret = "";
- HttpRequestHeaderModel.GetInstance.requestId = "";
- HttpRequestHeaderModel.GetInstance.timestamp = "";
- HttpRequestHeaderModel.GetInstance.version = "2.8";
- string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
- //请求报文体
- AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
- AGVModel.GetInstance.warehouseId = 123; //仓库编号
- AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
- AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
- AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
- //详细任务数据
- //点到点
- AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
- AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
- AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
- AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
- AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
- string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- //货位到货位
- //AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
- //AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
- //AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- //AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
- //AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- //AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
- //AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ //string url = AGVRequestUrl.GetInstance.TaskSendUrl;
+ ////请求报文头
+ //HttpRequestHeaderModel.GetInstance.appKey = "";
+ //HttpRequestHeaderModel.GetInstance.appSecret = "";
+ //HttpRequestHeaderModel.GetInstance.requestId = "";
+ //HttpRequestHeaderModel.GetInstance.timestamp = "";
+ //HttpRequestHeaderModel.GetInstance.version = "2.8";
+ //string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
+ ////请求报文体
+ //AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
+ //AGVModel.GetInstance.warehouseId = 123; //仓库编号
+ //AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
+ //AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
+ //AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
+ ////详细任务数据
+ ////点到点
+ //AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
+ //AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
+ //AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ //AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
+ //AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ //AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
+ //AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
//string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- string data= HttpRequest(url, head, body);
- object objData= JsonConvert.DeserializeObject(data);
- if (objData != null && objData is HttpResponseModel response)
- {
- return response.Body?.code;
- }
+ ////货位到货位
+ ////AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
+ ////AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
+ ////AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ ////string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
+ //string data= HttpRequest(url, head, body);
+ //object objData= JsonConvert.DeserializeObject(data);
+ //if (objData != null && objData is HttpResponseModel response)
+ //{
+ // return response.Body?.code;
+ //}
return "Analysis Error";
}
///
@@ -171,45 +171,45 @@ namespace BPASmartClient.AGV
///
public string AgvToLineThreeLoadRoller(string robotJobId)
{
- string url = AGVRequestUrl.GetInstance.TaskSendUrl;
- //请求报文头
- HttpRequestHeaderModel.GetInstance.appKey = "";
- HttpRequestHeaderModel.GetInstance.appSecret = "";
- HttpRequestHeaderModel.GetInstance.requestId = "";
- HttpRequestHeaderModel.GetInstance.timestamp = "";
- HttpRequestHeaderModel.GetInstance.version = "2.8";
- string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
- //请求报文体
- AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
- AGVModel.GetInstance.warehouseId = 123; //仓库编号
- AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
- AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
- AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
- //详细任务数据
- //点到点
- AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
- AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
- AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
- AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
- AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
- string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- //货位到货位
- //AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
- //AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
- //AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- //AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
- //AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- //AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
- //AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ //string url = AGVRequestUrl.GetInstance.TaskSendUrl;
+ ////请求报文头
+ //HttpRequestHeaderModel.GetInstance.appKey = "";
+ //HttpRequestHeaderModel.GetInstance.appSecret = "";
+ //HttpRequestHeaderModel.GetInstance.requestId = "";
+ //HttpRequestHeaderModel.GetInstance.timestamp = "";
+ //HttpRequestHeaderModel.GetInstance.version = "2.8";
+ //string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
+ ////请求报文体
+ //AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
+ //AGVModel.GetInstance.warehouseId = 123; //仓库编号
+ //AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
+ //AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
+ //AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
+ ////详细任务数据
+ ////点到点
+ //AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
+ //AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
+ //AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ //AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
+ //AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ //AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
+ //AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
//string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- string data = HttpRequest(url, head, body);
- object objData = JsonConvert.DeserializeObject(data);
- if (objData != null && objData is HttpResponseModel response)
- {
- return response.Body?.code;
- }
+ ////货位到货位
+ ////AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
+ ////AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
+ ////AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ ////string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
+ //string data = HttpRequest(url, head, body);
+ //object objData = JsonConvert.DeserializeObject(data);
+ //if (objData != null && objData is HttpResponseModel response)
+ //{
+ // return response.Body?.code;
+ //}
return "Analysis Error";
}
///
@@ -218,45 +218,45 @@ namespace BPASmartClient.AGV
///
public string AgvLeaveFryPotOne(string robotJobId)
{
- string url = AGVRequestUrl.GetInstance.TaskSendUrl;
- //请求报文头
- HttpRequestHeaderModel.GetInstance.appKey = "";
- HttpRequestHeaderModel.GetInstance.appSecret = "";
- HttpRequestHeaderModel.GetInstance.requestId = "";
- HttpRequestHeaderModel.GetInstance.timestamp = "";
- HttpRequestHeaderModel.GetInstance.version = "2.8";
- string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
- //请求报文体
- AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
- AGVModel.GetInstance.warehouseId = 123; //仓库编号
- AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
- AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
- AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
- //详细任务数据
- //点到点
- AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
- AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
- AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
- AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
- AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
- string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- //货位到货位
- //AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
- //AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
- //AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- //AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
- //AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- //AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
- //AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ //string url = AGVRequestUrl.GetInstance.TaskSendUrl;
+ ////请求报文头
+ //HttpRequestHeaderModel.GetInstance.appKey = "";
+ //HttpRequestHeaderModel.GetInstance.appSecret = "";
+ //HttpRequestHeaderModel.GetInstance.requestId = "";
+ //HttpRequestHeaderModel.GetInstance.timestamp = "";
+ //HttpRequestHeaderModel.GetInstance.version = "2.8";
+ //string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
+ ////请求报文体
+ //AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
+ //AGVModel.GetInstance.warehouseId = 123; //仓库编号
+ //AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
+ //AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
+ //AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
+ ////详细任务数据
+ ////点到点
+ //AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
+ //AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
+ //AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ //AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
+ //AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ //AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
+ //AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
//string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- string data = HttpRequest(url, head, body);
- object objData = JsonConvert.DeserializeObject(data);
- if (objData != null && objData is HttpResponseModel response)
- {
- return response.Body?.code;
- }
+ ////货位到货位
+ ////AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
+ ////AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
+ ////AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ ////string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
+ //string data = HttpRequest(url, head, body);
+ //object objData = JsonConvert.DeserializeObject(data);
+ //if (objData != null && objData is HttpResponseModel response)
+ //{
+ // return response.Body?.code;
+ //}
return "Analysis Error";
}
///
@@ -265,45 +265,45 @@ namespace BPASmartClient.AGV
///
public string AgvLeaveFryPotTwo(string robotJobId)
{
- string url = AGVRequestUrl.GetInstance.TaskSendUrl;
- //请求报文头
- HttpRequestHeaderModel.GetInstance.appKey = "";
- HttpRequestHeaderModel.GetInstance.appSecret = "";
- HttpRequestHeaderModel.GetInstance.requestId = "";
- HttpRequestHeaderModel.GetInstance.timestamp = "";
- HttpRequestHeaderModel.GetInstance.version = "2.8";
- string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
- //请求报文体
- AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
- AGVModel.GetInstance.warehouseId = 123; //仓库编号
- AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
- AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
- AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
- //详细任务数据
- //点到点
- AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
- AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
- AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
- AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
- AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
- string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- //货位到货位
- //AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
- //AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
- //AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- //AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
- //AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- //AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
- //AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ //string url = AGVRequestUrl.GetInstance.TaskSendUrl;
+ ////请求报文头
+ //HttpRequestHeaderModel.GetInstance.appKey = "";
+ //HttpRequestHeaderModel.GetInstance.appSecret = "";
+ //HttpRequestHeaderModel.GetInstance.requestId = "";
+ //HttpRequestHeaderModel.GetInstance.timestamp = "";
+ //HttpRequestHeaderModel.GetInstance.version = "2.8";
+ //string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
+ ////请求报文体
+ //AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
+ //AGVModel.GetInstance.warehouseId = 123; //仓库编号
+ //AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
+ //AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
+ //AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
+ ////详细任务数据
+ ////点到点
+ //AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
+ //AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
+ //AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ //AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
+ //AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ //AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
+ //AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
//string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- string data = HttpRequest(url, head, body);
- object objData = JsonConvert.DeserializeObject(data);
- if (objData != null && objData is HttpResponseModel response)
- {
- return response.Body?.code;
- }
+ ////货位到货位
+ ////AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
+ ////AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
+ ////AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ ////string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
+ //string data = HttpRequest(url, head, body);
+ //object objData = JsonConvert.DeserializeObject(data);
+ //if (objData != null && objData is HttpResponseModel response)
+ //{
+ // return response.Body?.code;
+ //}
return "Analysis Error";
}
///
@@ -312,45 +312,45 @@ namespace BPASmartClient.AGV
///
public string AgvLeaveFryPotThree(string robotJobId)
{
- string url = AGVRequestUrl.GetInstance.TaskSendUrl;
- //请求报文头
- HttpRequestHeaderModel.GetInstance.appKey = "";
- HttpRequestHeaderModel.GetInstance.appSecret = "";
- HttpRequestHeaderModel.GetInstance.requestId = "";
- HttpRequestHeaderModel.GetInstance.timestamp = "";
- HttpRequestHeaderModel.GetInstance.version = "2.8";
- string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
- //请求报文体
- AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
- AGVModel.GetInstance.warehouseId = 123; //仓库编号
- AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
- AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
- AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
- //详细任务数据
- //点到点
- AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
- AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
- AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
- AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
- AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
- string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- //货位到货位
- //AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
- //AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
- //AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- //AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
- //AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- //AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
- //AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ //string url = AGVRequestUrl.GetInstance.TaskSendUrl;
+ ////请求报文头
+ //HttpRequestHeaderModel.GetInstance.appKey = "";
+ //HttpRequestHeaderModel.GetInstance.appSecret = "";
+ //HttpRequestHeaderModel.GetInstance.requestId = "";
+ //HttpRequestHeaderModel.GetInstance.timestamp = "";
+ //HttpRequestHeaderModel.GetInstance.version = "2.8";
+ //string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
+ ////请求报文体
+ //AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
+ //AGVModel.GetInstance.warehouseId = 123; //仓库编号
+ //AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
+ //AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
+ //AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
+ ////详细任务数据
+ ////点到点
+ //AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
+ //AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
+ //AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ //AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
+ //AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ //AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
+ //AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
//string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- string data = HttpRequest(url, head, body);
- object objData = JsonConvert.DeserializeObject(data);
- if (objData != null && objData is HttpResponseModel response)
- {
- return response.Body?.code;
- }
+ ////货位到货位
+ ////AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
+ ////AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
+ ////AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ ////string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
+ //string data = HttpRequest(url, head, body);
+ //object objData = JsonConvert.DeserializeObject(data);
+ //if (objData != null && objData is HttpResponseModel response)
+ //{
+ // return response.Body?.code;
+ //}
return "Analysis Error";
}
///
@@ -359,45 +359,45 @@ namespace BPASmartClient.AGV
///
public string AgvLeaveFryPotFour(string robotJobId)
{
- string url = AGVRequestUrl.GetInstance.TaskSendUrl;
- //请求报文头
- HttpRequestHeaderModel.GetInstance.appKey = "";
- HttpRequestHeaderModel.GetInstance.appSecret = "";
- HttpRequestHeaderModel.GetInstance.requestId = "";
- HttpRequestHeaderModel.GetInstance.timestamp = "";
- HttpRequestHeaderModel.GetInstance.version = "2.8";
- string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
- //请求报文体
- AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
- AGVModel.GetInstance.warehouseId = 123; //仓库编号
- AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
- AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
- AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
- //详细任务数据
- //点到点
- AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
- AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
- AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
- AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
- AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
- string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- //货位到货位
- //AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
- //AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
- //AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- //AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
- //AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- //AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
- //AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ //string url = AGVRequestUrl.GetInstance.TaskSendUrl;
+ ////请求报文头
+ //HttpRequestHeaderModel.GetInstance.appKey = "";
+ //HttpRequestHeaderModel.GetInstance.appSecret = "";
+ //HttpRequestHeaderModel.GetInstance.requestId = "";
+ //HttpRequestHeaderModel.GetInstance.timestamp = "";
+ //HttpRequestHeaderModel.GetInstance.version = "2.8";
+ //string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
+ ////请求报文体
+ //AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
+ //AGVModel.GetInstance.warehouseId = 123; //仓库编号
+ //AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
+ //AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
+ //AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
+ ////详细任务数据
+ ////点到点
+ //AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
+ //AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
+ //AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ //AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
+ //AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ //AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
+ //AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
//string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- string data = HttpRequest(url, head, body);
- object objData = JsonConvert.DeserializeObject(data);
- if (objData != null && objData is HttpResponseModel response)
- {
- return response.Body?.code;
- }
+ ////货位到货位
+ ////AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
+ ////AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
+ ////AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ ////string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
+ //string data = HttpRequest(url, head, body);
+ //object objData = JsonConvert.DeserializeObject(data);
+ //if (objData != null && objData is HttpResponseModel response)
+ //{
+ // return response.Body?.code;
+ //}
return "Analysis Error";
}
///
@@ -406,45 +406,45 @@ namespace BPASmartClient.AGV
///
public string AgvLeaveFryPotFive(string robotJobId)
{
- string url = AGVRequestUrl.GetInstance.TaskSendUrl;
- //请求报文头
- HttpRequestHeaderModel.GetInstance.appKey = "";
- HttpRequestHeaderModel.GetInstance.appSecret = "";
- HttpRequestHeaderModel.GetInstance.requestId = "";
- HttpRequestHeaderModel.GetInstance.timestamp = "";
- HttpRequestHeaderModel.GetInstance.version = "2.8";
- string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
- //请求报文体
- AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
- AGVModel.GetInstance.warehouseId = 123; //仓库编号
- AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
- AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
- AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
- //详细任务数据
- //点到点
- AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
- AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
- AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
- AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
- AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
- string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- //货位到货位
- //AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
- //AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
- //AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
- //AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
- //AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
- //AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
- //AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ //string url = AGVRequestUrl.GetInstance.TaskSendUrl;
+ ////请求报文头
+ //HttpRequestHeaderModel.GetInstance.appKey = "";
+ //HttpRequestHeaderModel.GetInstance.appSecret = "";
+ //HttpRequestHeaderModel.GetInstance.requestId = "";
+ //HttpRequestHeaderModel.GetInstance.timestamp = "";
+ //HttpRequestHeaderModel.GetInstance.version = "2.8";
+ //string head = JsonConvert.SerializeObject(HttpRequestHeaderModel.GetInstance);
+ ////请求报文体
+ //AGVModel.GetInstance.robotJobId = robotJobId;//上游提供
+ //AGVModel.GetInstance.warehouseId = 123; //仓库编号
+ //AGVModel.GetInstance.jobPriority = 1;//任务执行的优先级
+ //AGVModel.GetInstance.jobPriorityType = 1;//0:根据优先级来执行,1:强制执行
+ //AGVModel.GetInstance.jobType = "POINT_ROLLER_MOVE"; //SLOT_ROLLER_MOVE / POINT_ROLLER_MOVE
+ ////详细任务数据
+ ////点到点
+ //AGV_PointRollerJobData.GetInstance.startPoint = "";//起点点位
+ //AGV_PointRollerJobData.GetInstance.endPoint = "";//目的点位
+ //AGV_PointRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ //AGV_PointRollerJobData.GetInstance.enableIOLoad = true;//上料交互方式 false:接口交互 true:光电交互
+ //AGV_PointRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ //AGV_PointRollerJobData.GetInstance.enableIOUnload = true;//下料交互方式 false:接口交互 true:光电交互
+ //AGVModel.GetInstance.jobData = AGV_PointRollerJobData.GetInstance;
//string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
- string data = HttpRequest(url, head, body);
- object objData = JsonConvert.DeserializeObject(data);
- if (objData != null && objData is HttpResponseModel response)
- {
- return response.Body?.code;
- }
+ ////货位到货位
+ ////AGV_SlotRollerJobData.GetInstance.startSlotCode = "";//起点槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.endSlotCode = "";//目的槽位编号
+ ////AGV_SlotRollerJobData.GetInstance.autoLoad = true;//是否自动上料 true:自动上料 false:人工上料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOLoad=true;//上料交互方式 false:接口交互 true:光电交互
+ ////AGV_SlotRollerJobData.GetInstance.autoUnload = true;//是否自动下料 true:自动下料 false:人工下料
+ ////AGV_SlotRollerJobData.GetInstance.enableIOUnload=true;//下料交互方式 false:接口交互 true:光电交互
+ ////AGVModel.GetInstance.jobData = AGV_SlotRollerJobData.GetInstance;
+ ////string body = JsonConvert.SerializeObject(AGVModel.GetInstance);
+ //string data = HttpRequest(url, head, body);
+ //object objData = JsonConvert.DeserializeObject(data);
+ //if (objData != null && objData is HttpResponseModel response)
+ //{
+ // return response.Body?.code;
+ //}
return "Analysis Error";
}
///
diff --git a/BPASmartClient.AgvApi/.config/dotnet-tools.json b/BPASmartClient.AgvApi/.config/dotnet-tools.json
new file mode 100644
index 00000000..c9b7f4ff
--- /dev/null
+++ b/BPASmartClient.AgvApi/.config/dotnet-tools.json
@@ -0,0 +1,12 @@
+{
+ "version": 1,
+ "isRoot": true,
+ "tools": {
+ "dotnet-ef": {
+ "version": "6.0.6",
+ "commands": [
+ "dotnet-ef"
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs b/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs
index f24df307..c7080c4c 100644
--- a/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs
+++ b/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs
@@ -4,12 +4,10 @@ using BPASmartClient.Model;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
+using System.Collections.ObjectModel;
using System.Linq;
using System.Reflection;
-using System.Text;
using System.Threading;
-using System.Threading.Tasks;
-using System.Collections.ObjectModel;
using System.Windows;
namespace BPASmartClient.CustomResource.Pages.Model
@@ -39,7 +37,7 @@ namespace BPASmartClient.CustomResource.Pages.Model
{
bool value = Convert.ToBoolean(Alarm.GetType().GetProperty(item.Name)?.GetValue(Alarm));
EdgeAlarm(value, AlarmModel.AlarmInfo, 1, AlarmModel.AlarmLevel, AlarmModel.AlarmType);
- }
+ }
}
}
Thread.Sleep(100);
@@ -59,7 +57,7 @@ namespace BPASmartClient.CustomResource.Pages.Model
if (!delays.ContainsKey(text)) delays.TryAdd(text, Delay.GetInstance(text));
if (edgeType == AlarmTriggerType.Rising ? delays[text].Start(Trigger, delay) : delays[text].Start(!Trigger, delay))
{
- if (edgeType == AlarmTriggerType.Rising ? !flagbit[text] : flagbit[text])
+ if (edgeType == AlarmTriggerType.Rising ? !flagbit[text] :flagbit[text])
{
AddAlarm(Trigger, text, alarmLevel);
flagbit[text] = edgeType == AlarmTriggerType.Rising ? true : false;
diff --git a/BPASmartClient.CustomResource/Pages/Model/AlarmInfo.cs b/BPASmartClient.CustomResource/Pages/Model/AlarmInfo.cs
new file mode 100644
index 00000000..253b09dd
--- /dev/null
+++ b/BPASmartClient.CustomResource/Pages/Model/AlarmInfo.cs
@@ -0,0 +1,56 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BPASmartClient.CustomResource.Pages.Model
+{
+ public class AlarmInfo
+ {
+ public AlarmInfo()
+ {
+
+ }
+ ///
+ /// 1 号滚筒线故障
+ ///
+ [Alarm("【1】号滚筒线运行故障", AlarmTriggerType.Rising, AlarmLevel.一般报警)]
+ public ushort LOneRollerTrouble { get; set; }
+ ///
+ /// 2 号滚筒线故障
+ ///
+ [Alarm("【2】号滚筒线运行故障", AlarmTriggerType.Rising, AlarmLevel.一般报警)]
+ public ushort LTwoRollerTrouble { get; set; }
+ ///
+ /// 3 号滚筒线故障
+ ///
+ [Alarm("【3】号滚筒线运行故障", AlarmTriggerType.Rising, AlarmLevel.一般报警)]
+ public ushort LThreeRollerTrouble { get; set; }
+ ///
+ /// 1 号炒锅滚筒运行故障
+ ///
+ [Alarm("【1】号炒锅滚筒运行故障", AlarmTriggerType.Rising, AlarmLevel.一般报警)]
+ public ushort FryPotOneRollerTrouble { get; set; }
+ ///
+ /// 2 号炒锅滚筒运行故障
+ ///
+ [Alarm("【2】号炒锅滚筒运行故障", AlarmTriggerType.Rising, AlarmLevel.一般报警)]
+ public ushort FryPotTwoRollerTrouble { get; set; }
+ ///
+ /// 3 号炒锅滚筒运行故障
+ ///
+ [Alarm("【3】号炒锅滚筒运行故障", AlarmTriggerType.Rising, AlarmLevel.一般报警)]
+ public ushort FryPotThreeRollerTrouble { get; set; }
+ ///
+ /// 4 号炒锅滚筒运行故障
+ ///
+ [Alarm("【4】号炒锅滚筒运行故障", AlarmTriggerType.Rising, AlarmLevel.一般报警)]
+ public ushort FryPotFourRollerTrouble { get; set; }
+ ///
+ /// 5 号炒锅滚筒运行故障
+ ///
+ [Alarm("【5】号炒锅滚筒运行故障", AlarmTriggerType.Rising, AlarmLevel.一般报警)]
+ public ushort FryPotFiveRollerTrouble { get; set; }
+ }
+}
diff --git a/BPASmartClient.CustomResource/Pages/Model/MessageLog.cs b/BPASmartClient.CustomResource/Pages/Model/MessageLog.cs
index db603c1c..da1d1e0e 100644
--- a/BPASmartClient.CustomResource/Pages/Model/MessageLog.cs
+++ b/BPASmartClient.CustomResource/Pages/Model/MessageLog.cs
@@ -12,7 +12,10 @@ namespace BPASmartClient.CustomResource.Pages.Model
public class MessageLog
{
private volatile static MessageLog _Instance;
- public static MessageLog GetInstance => _Instance ?? (_Instance = new MessageLog());
+ public static MessageLog GetInstance => _Instance ??= new MessageLog();
+
+ public static readonly object runLock = new object();
+ public static readonly object userlock = new object();
private MessageLog() { }
public Action UserLog { get; set; }
@@ -37,30 +40,36 @@ namespace BPASmartClient.CustomResource.Pages.Model
public void ShowUserLog(string info)
{
- UserLog userLog = new UserLog()
+ lock (userlock)
{
- Date = DateTime.Now.ToString("yyyy-MM-dd"),
- Time = DateTime.Now.ToString("HH:mm:ss"),
- Permission = Global.userInfo.permission.ToString(),
- UserName = Global.userInfo.UserName,
- LogInfo = info
- };
- Sqlite.GetInstance.Base.Add(userLog);
- Application.Current.Dispatcher.Invoke(new Action(() => { userLogs.Insert(0, userLog); }));
- UserLog?.Invoke(info);
+ UserLog userLog = new UserLog()
+ {
+ Date = DateTime.Now.ToString("yyyy-MM-dd"),
+ Time = DateTime.Now.ToString("HH:mm:ss"),
+ Permission = Global.userInfo.permission.ToString(),
+ UserName = Global.userInfo.UserName,
+ LogInfo = info
+ };
+ Sqlite.GetInstance.Base.Add(userLog);
+ Application.Current.Dispatcher.Invoke(new Action(() => { userLogs.Insert(0, userLog); }));
+ UserLog?.Invoke(info);
+ }
}
public void ShowRunLog(string info)
{
- RunLog runLog = new RunLog()
+ lock (runLock)
{
- Date = DateTime.Now.ToString("yyyy-MM-dd"),
- Time = DateTime.Now.ToString("HH:mm:ss"),
- RunLogInfo = info
- };
- Sqlite.GetInstance.Base.Add(runLog);
- Application.Current.Dispatcher.Invoke(new Action(() => { runLogs.Insert(0, runLog); }));
- RunLog?.Invoke(info);
+ RunLog runLog = new RunLog()
+ {
+ Date = DateTime.Now.ToString("yyyy-MM-dd"),
+ Time = DateTime.Now.ToString("HH:mm:ss"),
+ RunLogInfo = info
+ };
+ Sqlite.GetInstance.Base.Add(runLog);
+ Application.Current.Dispatcher.Invoke(new Action(() => { runLogs.Insert(0, runLog); }));
+ RunLog?.Invoke(info);
+ }
}
diff --git a/BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs b/BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs
index 1238f0c0..3213c65a 100644
--- a/BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs
+++ b/BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs
@@ -9,8 +9,8 @@ using System.Collections.ObjectModel;
using System.Windows;
using BPASmartClient.Helper;
using Microsoft.Toolkit.Mvvm.Input;
-using BPASmartClient.Model;
using BPASmartClient.CustomResource.Pages.Model;
+using BPASmartClient.Model;
namespace BPASmartClient.CustomResource.Pages.ViewModel
{
@@ -26,7 +26,7 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel
}
if (ControlButText == "开始查询")
{
- var lists = Sqlite.GetInstance.GetData();
+ var lists = Sqlite.GetInstance.GetData();
var res = lists.Where(p => Convert.ToDateTime(p.Date) >= StartDateTime && Convert.ToDateTime(p.Date) <= EndDateTime).ToList();
if (res != null)
{
@@ -64,13 +64,13 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel
}
});
- //AlarmInfos = AlarmHelper.Alarms;
- //AlarmHelper.Init();
+ AlarmInfos = AlarmHelper.Alarms;
+
}
private void GetHistoryAlarm()
{
- var data = Sqlite.GetInstance.GetData();
+ var data = Sqlite.GetInstance.GetData();
if (data != null)
{
HistoryAlarm.Clear();
@@ -131,7 +131,6 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel
public ObservableCollection AlarmInfos { get; set; }
-
public ObservableCollection HistoryAlarm { get; set; } = new ObservableCollection();
diff --git a/BPASmartClient.CustomResource/Themes/MyStyle.xaml b/BPASmartClient.CustomResource/Themes/MyStyle.xaml
index 4cf9e73a..535552ab 100644
--- a/BPASmartClient.CustomResource/Themes/MyStyle.xaml
+++ b/BPASmartClient.CustomResource/Themes/MyStyle.xaml
@@ -451,7 +451,7 @@
+
+
+
+
-
-
-
+
+
+
+
+
+
+
-
+
-
+
@@ -266,44 +1127,41 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
-
+
@@ -314,41 +1172,83 @@
-
-
+
-
-
- 炒锅(1)号
+
+
+
+
+
+
+
+
+
+
+ 炒锅(1)号
-
- 炒锅(2)号
+
+ 炒锅(2)号
-
- 炒锅(3)号
+
+ 炒锅(3)号
-
- 炒锅(4)号
+
+ 炒锅(4)号
-
- 炒锅(5)号
+
+ 炒锅(5)号
-
+
-
-
- 满料桶滚筒线
-
-
-
-
- 空桶滚筒线
+
+
+ 满料桶滚筒线
+
+ (1)号
+
+ (2)号
+
+ (3)号
+
+ 空桶滚筒线
@@ -374,21 +1274,12 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/FryPot_DosingSystem/View/AgvView.xaml.cs b/FryPot_DosingSystem/View/AgvView.xaml.cs
index 5792930a..de598ba4 100644
--- a/FryPot_DosingSystem/View/AgvView.xaml.cs
+++ b/FryPot_DosingSystem/View/AgvView.xaml.cs
@@ -1,4 +1,5 @@
-using FryPot_DosingSystem.ViewModel;
+using FryPot_DosingSystem.AGV;
+using FryPot_DosingSystem.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -30,38 +31,42 @@ namespace FryPot_DosingSystem.View
private void Button_Click(object sender, RoutedEventArgs e)
{
- AnimationByPath(yunshuche,qc_1);
+ // AgvViewModel.GetInstance().cartModel_1.cartMotionTrajectory = CartMotionTrajectory.Stop;
+ AgvViewModel.GetInstance().ParkingPileModel_1.isBool = IsBool.No;
+ AgvViewModel.GetInstance().cartModel_1.isBool=IsBool.No;
+ AgvViewModel.GetInstance().cartModel_1.cartMotionTrajectory = CartMotionTrajectory.qc_1;
+
+
}
- ///
- /// 路径动画
- ///
- /// 画板
- /// 路径
- /// 动画对象
- /// 时间
- private void AnimationByPath(TextBox target, Path path, int duration = 5)
+ private void Button_Click_1(object sender, RoutedEventArgs e)
{
- target.RenderTransformOrigin = new Point(0.5, 0.5);
+ AgvViewModel.GetInstance().RollerLines_1.isRun = IsRun.Start;
+ }
- MatrixTransform matrix = new MatrixTransform();
- TransformGroup groups = new TransformGroup();
- groups.Children.Add(matrix);
- target.RenderTransform = groups;
- string registname = "matrix" + Guid.NewGuid().ToString().Replace("-", "");
- this.RegisterName(registname, matrix);
- MatrixAnimationUsingPath matrixAnimation = new MatrixAnimationUsingPath();
- matrixAnimation.PathGeometry = PathGeometry.CreateFromGeometry(Geometry.Parse(path.Data.ToString()));
- matrixAnimation.Duration = new Duration(TimeSpan.FromSeconds(duration));
- matrixAnimation.DoesRotateWithTangent = true;//跟随路径旋转
- matrixAnimation.RepeatBehavior = RepeatBehavior.Forever;//循环
- Storyboard story = new Storyboard();
- story.Children.Add(matrixAnimation);
- Storyboard.SetTargetName(matrixAnimation, registname);
- Storyboard.SetTargetProperty(matrixAnimation, new PropertyPath(MatrixTransform.MatrixProperty));
+ private void StopButton_Click(object sender, RoutedEventArgs e)
+ {
+ AgvViewModel.GetInstance().RollerLines_1.isRun = IsRun.Stop;
+ AgvViewModel.GetInstance().cartModel_1.isBool = IsBool.Yes;
+ AgvViewModel.GetInstance().cartModel_1.cartMotionTrajectory = CartMotionTrajectory.yc_1_1;
+ }
+
+ private void Button_Click_2(object sender, RoutedEventArgs e)
+ {
+ AgvViewModel.GetInstance().cartModel_1.isBool = IsBool.No;
+ AgvViewModel.GetInstance().cartModel_1.cartMotionTrajectory = CartMotionTrajectory.hs_1;
+ }
- story.FillBehavior = FillBehavior.Stop;
- story.Begin(target, true);
- }
+ private void Button_Click_3(object sender, RoutedEventArgs e)
+ {
+ AgvViewModel.GetInstance().cartModel_1.cartMotionTrajectory = CartMotionTrajectory.hj;
+ AgvViewModel.GetInstance().ParkingPileModel_1.isBool = IsBool.Yes;
+ }
+
+ private void Button_Click_4(object sender, RoutedEventArgs e)
+ {
+ AgvViewModel.GetInstance().cartModel_1.cartMotionTrajectory = CartMotionTrajectory.Stop;
+
+ }
}
}
diff --git a/FryPot_DosingSystem/View/DebugView.xaml b/FryPot_DosingSystem/View/DebugView.xaml
new file mode 100644
index 00000000..24afcb6c
--- /dev/null
+++ b/FryPot_DosingSystem/View/DebugView.xaml
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/FryPot_DosingSystem/View/DebugView.xaml.cs b/FryPot_DosingSystem/View/DebugView.xaml.cs
new file mode 100644
index 00000000..d739abbc
--- /dev/null
+++ b/FryPot_DosingSystem/View/DebugView.xaml.cs
@@ -0,0 +1,62 @@
+using BPASmartClient.Helper;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace FryPot_DosingSystem.View
+{
+ ///
+ /// DebugView.xaml 的交互逻辑
+ ///
+ public partial class DebugView : UserControl
+ {
+ public DebugView()
+ {
+ InitializeComponent();
+ }
+
+ private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ if (sender is ComboBox cbo)
+ {
+ if (cbo.SelectedValue != null)
+ {
+ ActionManage.GetInstance.Send("EightWorkLoc",cbo.SelectedValue);
+ }
+ }
+ }
+
+ private void ComboBox_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
+ {
+ if (sender is ComboBox cbo)
+ {
+ if (cbo.SelectedValue != null)
+ {
+ ActionManage.GetInstance.Send("TwoEightWorkLoc", cbo.SelectedValue);
+ }
+ }
+ }
+
+ private void ComboBox_SelectionChanged_2(object sender, SelectionChangedEventArgs e)
+ {
+ if (sender is ComboBox cbo)
+ {
+ if (cbo.SelectedValue != null)
+ {
+ ActionManage.GetInstance.Send("ThreeEightWorkLoc", cbo.SelectedValue);
+ }
+ }
+ }
+ }
+}
diff --git a/FryPot_DosingSystem/View/DeviceListVIew.xaml b/FryPot_DosingSystem/View/DeviceListVIew.xaml
index 7652df36..acfa4837 100644
--- a/FryPot_DosingSystem/View/DeviceListVIew.xaml
+++ b/FryPot_DosingSystem/View/DeviceListVIew.xaml
@@ -18,20 +18,20 @@
-
+
-
-
+
+
-
-
+
+
-
+
-
+
diff --git a/FryPot_DosingSystem/View/NewRecipeView.xaml b/FryPot_DosingSystem/View/NewRecipeView.xaml
index 155b8795..891894a2 100644
--- a/FryPot_DosingSystem/View/NewRecipeView.xaml
+++ b/FryPot_DosingSystem/View/NewRecipeView.xaml
@@ -190,17 +190,26 @@
-
+
+
-
+
-
-
-
+
+
+
+
+
+
+
+
@@ -208,7 +217,22 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -228,8 +252,8 @@
-
-
+
+