Commit bf3a978e 张东亮

添加流程日志

1 个父辈 2892c5ce
正在显示 62 个修改的文件 包含 1146 行增加461 行删除
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"ExpandedNodes": [ "ExpandedNodes": [
"" ""
], ],
"SelectedNode": "\\AGVControl-ProductionLine.sln",
"PreviewInSolutionExplorer": false "PreviewInSolutionExplorer": false
} }
\ No newline at end of file \ No newline at end of file
此文件类型无法预览
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<appSettings> <appSettings>
<add key="ITS" value="http://10.85.17.233/ESMTCommonInterface/CommonService.asmx/VMIGetBoxDestInfo?boxRFID=" /> <add key="ITS" value="http://10.85.17.233/ESMTCommonInterface/CommonService.asmx/VMIGetBoxDestInfo?boxRFID=" />
<add key="WebService" value="http://127.0.0.1/Webservice/AGVService/"/> <add key="WebService" value="http://127.0.0.1/Webservice/AGVService/"/>
<add key="FLEET" value="10.85.199.3"/> <add key="FLEET" value="10.85.199.3"/>
<!--<add key="LocalIP" value="192.168.103.12"/> <!--<add key="LocalIP" value="192.168.103.12"/>
<add key="AutoCharge" value="false"/> <add key="AutoCharge" value="false"/>
<add key="ChargeWait" value="1"/> <add key="ChargeWait" value="1"/>
...@@ -52,5 +52,8 @@ ...@@ -52,5 +52,8 @@
<add key="E16" value="false"/> <add key="E16" value="false"/>
<add key="E21" value="false"/> <add key="E21" value="false"/>
<add key="E22" value="false"/> <add key="E22" value="false"/>
<!--产线任务状态-->
<add key="nodesMission" value=""/>
<add key="nodesLevel" value=""/>
</appSettings> </appSettings>
</configuration> </configuration>
\ No newline at end of file \ No newline at end of file
...@@ -19,7 +19,7 @@ namespace AGVControl ...@@ -19,7 +19,7 @@ namespace AGVControl
/// 小车信息 /// 小车信息
/// </summary> /// </summary>
public static List<Agv_Info> agvInfo; public static List<Agv_Info> agvInfo;
public static List<string> linePlace; public static Dictionary<string,ClientLevel> linePlace;
public static BLL.AgvServer server; public static BLL.AgvServer server;
public static BLL.Control control; public static BLL.Control control;
...@@ -33,6 +33,80 @@ namespace AGVControl ...@@ -33,6 +33,80 @@ namespace AGVControl
public static System.Configuration.Configuration appConfig; public static System.Configuration.Configuration appConfig;
public static readonly string CONFIG_PATH = AppDomain.CurrentDomain.BaseDirectory + "Config\\"; public static readonly string CONFIG_PATH = AppDomain.CurrentDomain.BaseDirectory + "Config\\";
public static void ReadLinePlace()
{
string s1 = Common.appConfig.AppSettings.Settings["nodesLevel"].Value;
string s2 = Common.appConfig.AppSettings.Settings["nodesMission"].Value;
if (s1.Equals("") || s2.Equals(""))
return;
string[] nodesLevel=s1.Split(',');
string[] nodesMission = s2.Split(',');
if(nodesLevel.Length.Equals(nodesMission.Length) && nodesMission.Length.Equals(0).Equals(false))
{
log.Info("程序上一次关闭时有任务未完成:");
log.Info("节点名称:"+s2+"\n 紧急等级:"+s1);
for (int i = 0; i < nodesMission.Length; i++)
{
linePlace.Add(nodesMission[i], (ClientLevel)Enum.Parse(typeof(ClientLevel), nodesLevel[i]));
}
}
}
public static void AddLinePlace(string nodeName)
{
int idx = Common.nodeInfo.FindIndex(s => s.Name == nodeName);
if(idx>-1)
{
if(Common.linePlace.ContainsKey(nodeName))
{
log.Info("AddLinePlace 节点" + nodeName + "已存在任务队列,无需重复添加");
return;
}
Common.linePlace.Add(nodeName,Common.nodeInfo[idx].Level);
Common.appConfig.AppSettings.Settings["nodesLevel"].Value = string.Join(",",linePlace.Values);
Common.appConfig.AppSettings.Settings["nodesMission"].Value =string.Join(",",linePlace.Keys);
Common.appConfig.Save();
}
else
{
log.Error("AddLinePlace 失败 节点"+ nodeName+"不存在");
}
}
public static void RemoveLinePlace(string nodeName)
{
Common.linePlace.Remove(nodeName);
Common.appConfig.AppSettings.Settings["nodesLevel"].Value = string.Join(",", linePlace.Values);
Common.appConfig.AppSettings.Settings["nodesMission"].Value = string.Join(",", linePlace.Keys);
Common.appConfig.Save();
}
public static void CheckAGVMissionState()
{
foreach (Agv_Info agv in agvInfo)
{
Thread.Sleep(50);
bool rtn = Common.mir.Get_Register(agv, 20, out int regValue);
if (rtn)
{
agv.GetPlace(regValue);
Common.log.Info(string.Format("软件开启:{0} Get_Register PLC{1}={2} Place={3} PlaceState={4}", agv.Name, 20, regValue, agv.Place, agv.PlaceState));
if (!agv.Place.Equals(""))
{
int idx = nodeInfo.FindIndex(s => s.Name == agv.Place);
if (idx > -1)
{
nodeInfo[idx].AgvName = agv.Name;
}
agv.TaskSend = "Move" + agv.Place;
}
}
else
{
Common.log.Error("CheckAGVMissionState 获取PLC20失败");
}
}
}
} }
public static class API public static class API
...@@ -234,7 +308,7 @@ namespace AGVControl ...@@ -234,7 +308,7 @@ namespace AGVControl
/// <summary> /// <summary>
/// 地点 /// 地点
/// </summary> /// </summary>
public string Place { private set; get; } public string Place { set; get; }
/// <summary> /// <summary>
/// 地点的状态 /// 地点的状态
/// </summary> /// </summary>
...@@ -289,14 +363,20 @@ namespace AGVControl ...@@ -289,14 +363,20 @@ namespace AGVControl
IsCon = false; IsCon = false;
IsUse = isUse; IsUse = isUse;
Place = ""; Place = "";
TaskSend = "";
NextPlace = "";
} }
public void SetState(int stateID, string stateText, int battery, string missionText) public bool SetState(int stateID, string stateText, int battery, string missionText)
{ {
bool isChange=false;
if (!StateID.Equals(stateID) || !StateText.Equals(stateText) || !Battery.Equals(battery) || !MissionText.Equals(missionText))
isChange = true;
StateID = stateID; StateID = stateID;
StateText = stateText; StateText = stateText;
Battery = battery; Battery = battery;
MissionText = missionText; MissionText = missionText;
return isChange;
} }
public void GetPlace(int value) public void GetPlace(int value)
...@@ -305,12 +385,15 @@ namespace AGVControl ...@@ -305,12 +385,15 @@ namespace AGVControl
{ {
Place = ""; Place = "";
PlaceState = PlaceState.None; PlaceState = PlaceState.None;
TaskSend = "";
} }
else else
{ {
int a = value / 1000; int a = value / 1000;
int b = (value - a * 1000) / 10; int b = (value - a * 1000) / 10;
int c = value - a * 1000 - b * 10; int c = value - a * 1000 - b * 10;
if (c.Equals(1) || c.Equals(3) || c.Equals(5))
TaskSend = "";
Place = (char)(64 + a) + b.ToString(); Place = (char)(64 + a) + b.ToString();
PlaceState = (PlaceState)c; PlaceState = (PlaceState)c;
} }
...@@ -319,24 +402,28 @@ namespace AGVControl ...@@ -319,24 +402,28 @@ namespace AGVControl
public string[] ToRow() public string[] ToRow()
{ {
//AGV名称,IP,AGV状态,任务状态,地点,后续任务,在线,电量,调用,清除缓存 //AGV名称,IP,AGV状态,任务状态,地点,后续任务,在线,电量,调用,清除缓存
string[] s = new string[10]; List<string> s = new List<string>();
s[0] = Name; s.Add(Name);
s[1] = IP; s.Add(IP);
if (IsCon) if (IsCon)
{ {
s[2] = StateText; s.Add(StateText);
s[3] = MissionText; s.Add(MissionText);
s[4] = Place; s.Add(Place);
s[5] = NextPlace; s.Add(NextPlace);
}
else
{
s.AddRange(new List<string> { "" ,"","",""});
} }
s[6] = IsCon.ToString(); s.Add(IsCon.ToString());
s[7] = Battery + "%"; s.Add(Battery + "%");
s[8] = IsUse.ToString(); s.Add(IsUse.ToString());
s[9] = "Clear"; s.Add("Clear");
return s; return s.ToArray();
} }
} }
......
...@@ -57,27 +57,25 @@ namespace BLL ...@@ -57,27 +57,25 @@ namespace BLL
//获取AGV状态 //获取AGV状态
rtn = Common.mir.Get_State(Common.agvInfo[i], out int stateID, out string stateText, out int battery, out string mission_text); rtn = Common.mir.Get_State(Common.agvInfo[i], out int stateID, out string stateText, out int battery, out string mission_text);
Common.log.Info(string.Format("{0} Get_State StateID={1}, StateText={2}, Battery={3}, Mission_text={4}", Common.agvInfo[i].Name, stateID, stateText, battery, mission_text)); bool change = false;
if (rtn) Common.agvInfo[i].SetState(stateID, stateText, battery, mission_text); if (rtn) change = Common.agvInfo[i].SetState(stateID, stateText, battery, mission_text);
//获取地点任务状态 //获取地点任务状态
Thread.Sleep(50); Thread.Sleep(50);
rtn = Common.mir.Get_Register(Common.agvInfo[i], REG_STATUS, out int regValue); rtn = Common.mir.Get_Register(Common.agvInfo[i], REG_STATUS, out int regValue);
Common.log.Info(string.Format("{0} Get_Register PLC{1}={2}", Common.agvInfo[i].Name, REG_STATUS, regValue));
if (rtn) Common.agvInfo[i].GetPlace(regValue); if (rtn) Common.agvInfo[i].GetPlace(regValue);
if (change)
{
Common.log.Info(string.Format("{0} Get_State StateID={1}, StateText={2}, Battery={3}, Mission_text={4}", Common.agvInfo[i].Name, stateID, stateText, battery, mission_text));
}
//执行任务更新状态 //执行任务更新状态
if (stateID == 5) if (stateID == 5 || change)
{ {
Common.log.Info(string.Format("{0} Get_Register PLC{1}={2}", Common.agvInfo[i].Name, REG_STATUS, regValue));
AgvChanged?.Invoke(i); AgvChanged?.Invoke(i);
} }
//获取任务队列 //获取任务队列
//rtn = Common.mir.Get_Mission_Queue(Common.agvInfo[i], out List<string> mission); //rtn = Common.mir.Get_Mission_Queue(Common.agvInfo[i], out List<string> mission);
//if (rtn) //if (rtn)
...@@ -173,14 +171,19 @@ namespace BLL ...@@ -173,14 +171,19 @@ namespace BLL
return rtn; return rtn;
} }
/// <summary>
/// agv空闲
/// </summary>
/// <param name="idx"></param>
private void StateNone(int idx) private void StateNone(int idx)
{ {
bool rtn; bool rtn;
int index; int index;
string RFID = "";
Agv_Info agv = Common.agvInfo[idx]; Agv_Info agv = Common.agvInfo[idx];
if (agv.TaskSend != "") return; if (agv.TaskSend != "") return;
//出满料 //A6出满料
rtn = FindA6Leave(out string nextNode); rtn = FindA6Leave(out string nextNode);
if (rtn) if (rtn)
{ {
...@@ -190,17 +193,28 @@ namespace BLL ...@@ -190,17 +193,28 @@ namespace BLL
agv.NextPlace = nextNode; agv.NextPlace = nextNode;
index = FindNode("A6"); index = FindNode("A6");
Common.nodeInfo[index].AgvName = Common.agvInfo[idx].Name; Common.nodeInfo[index].AgvName = Common.agvInfo[idx].Name;
RFID = Common.nodeInfo[index].RFID;
index = FindNode(nextNode); index = FindNode(nextNode);
Common.nodeInfo[index].AgvName = Common.agvInfo[idx].Name; Common.nodeInfo[index].AgvName = Common.agvInfo[idx].Name;
} }
Common.log.Info(string.Format("A6有满料架[{0}]要出,目的地为{1}", RFID, nextNode));
agv.TaskSend = rtn ? "MoveA6" : ""; agv.TaskSend = rtn ? "MoveA6" : "";
return; return;
} }
if (Common.linePlace.Count == 0)
{
Common.log.Info("Common.linePlace.Count == 0 无空料架要出");
return;
}
ClientLevel clientLevel = Common.linePlace.Values.Max<ClientLevel>();
//出空料架 //出空料架
for (int i = 0; i < Common.linePlace.Count; i++) foreach (var item in Common.linePlace)
{ {
string name = Common.linePlace[i]; if (!clientLevel.Equals(item.Value))
continue;
string name = item.Key;
index = Common.nodeInfo.FindIndex(s => s.Name.Equals(name) && s.Action == ClientAction.NeedLeave && s.IsUse); index = Common.nodeInfo.FindIndex(s => s.Name.Equals(name) && s.Action == ClientAction.NeedLeave && s.IsUse);
if (index > -1) if (index > -1)
{ {
...@@ -208,18 +222,47 @@ namespace BLL ...@@ -208,18 +222,47 @@ namespace BLL
if (rtn) if (rtn)
{ {
Common.nodeInfo[index].AgvName = Common.agvInfo[idx].Name; Common.nodeInfo[index].AgvName = Common.agvInfo[idx].Name;
Common.linePlace.RemoveAt(i); Common.linePlace.Remove(name);
} }
agv.TaskSend = rtn ? "Move" + name : ""; agv.TaskSend = rtn ? "Move" + name : "";
} }
Common.log.Info(string.Format("[{0}-{1}] 出空料架.", name, item.Value));
if (Common.linePlace.Count.Equals(0).Equals(false))
Common.log.Info("剩余需要出空料架的节点:" + string.Join(",", Common.linePlace.Keys.ToArray())
+ ";对应紧急程度:" + string.Join(",", Common.linePlace.Values.ToArray()));
if (rtn) break; if (rtn) break;
} }
}
//for (int i = 0; i < Common.linePlace.Count; i++)
//{
// string name = Common.linePlace.Keys[i];
// index = Common.nodeInfo.FindIndex(s => s.Name.Equals(name) && s.Action == ClientAction.NeedLeave && s.IsUse);
// if (index > -1)
// {
// rtn = Common.mir.Add_Mission(agv, Common.agvMission["Move" + name]);
// if (rtn)
// {
// Common.nodeInfo[index].AgvName = Common.agvInfo[idx].Name;
// Common.linePlace.RemoveAt(i);
// }
// agv.TaskSend = rtn ? "Move" + name : "";
// }
// if (rtn) break;
//}
}
/// <summary>
/// agv正在运动
/// </summary>
/// <param name="idx"></param>
private void StateMove(int idx) private void StateMove(int idx)
{ {
} }
/// <summary>
/// agv运动完成
/// </summary>
/// <param name="idx"></param>
private void StateMoveFinish(int idx) private void StateMoveFinish(int idx)
{ {
bool rtn; bool rtn;
...@@ -236,11 +279,14 @@ namespace BLL ...@@ -236,11 +279,14 @@ namespace BLL
if (agv.TaskSend == "Leave") return; if (agv.TaskSend == "Leave") return;
rtn = Common.mir.Add_Mission(agv, Common.agvMission["Leave"]); rtn = Common.mir.Add_Mission(agv, Common.agvMission["Leave"]);
agv.TaskSend = rtn ? "Leave" : ""; agv.TaskSend = rtn ? "Leave" : "";
if (rtn)
Common.log.Info(string.Format("{0}到达{1},可以进入料架", agv.Name, agv.Place));
} }
else else
{ {
rtn = Common.server.ReadyEnter(agv.Place); rtn = Common.server.ReadyEnter(agv.Place);
if (!rtn) return; if (!rtn) return;
Common.log.Info(string.Format("{0}到达{1},服务器发送ReadyEnter信号", agv.Name, agv.Place));
} }
break; break;
case "A6": case "A6":
...@@ -249,22 +295,28 @@ namespace BLL ...@@ -249,22 +295,28 @@ namespace BLL
if (agv.TaskSend == "Leave") return; if (agv.TaskSend == "Leave") return;
rtn = Common.mir.Add_Mission(agv, Common.agvMission["Leave"]); rtn = Common.mir.Add_Mission(agv, Common.agvMission["Leave"]);
agv.TaskSend = rtn ? "Leave" : ""; agv.TaskSend = rtn ? "Leave" : "";
if (rtn)
Common.log.Info(string.Format("{0}到达{1},可以进入料架", agv.Name, agv.Place));
} }
else if (node.Action == ClientAction.MayLeave) else if (node.Action == ClientAction.MayLeave)
{ {
if (agv.TaskSend == "Leave") return; if (agv.TaskSend == "Leave") return;
rtn = Common.mir.Add_Mission(agv, Common.agvMission["Leave"]); rtn = Common.mir.Add_Mission(agv, Common.agvMission["Leave"]);
agv.TaskSend = rtn ? "Leave" : ""; agv.TaskSend = rtn ? "Leave" : "";
if (rtn)
Common.log.Info(string.Format("{0}到达{1},可以出去料架", agv.Name, agv.Place));
} }
else if (node.Action == ClientAction.NeedEnter) else if (node.Action == ClientAction.NeedEnter)
{ {
rtn = Common.server.ReadyEnter(agv.Place); rtn = Common.server.ReadyEnter(agv.Place);
if (!rtn) return; if (!rtn) return;
Common.log.Info(string.Format("{0}到达{1},服务器发送ReadyEnter信号", agv.Name, agv.Place));
} }
else if (node.Action == ClientAction.NeedLeave) else if (node.Action == ClientAction.NeedLeave)
{ {
rtn = Common.server.ReadyLeave(agv.Place); rtn = Common.server.ReadyLeave(agv.Place);
if (!rtn) return; if (!rtn) return;
Common.log.Info(string.Format("{0}到达{1},服务器发送ReadyLeave信号", agv.Name, agv.Place));
} }
else if (node.Action == ClientAction.NeedEnterLeave) else if (node.Action == ClientAction.NeedEnterLeave)
{ {
...@@ -289,32 +341,46 @@ namespace BLL ...@@ -289,32 +341,46 @@ namespace BLL
if (agv.TaskSend == "Leave") return; if (agv.TaskSend == "Leave") return;
rtn = Common.mir.Add_Mission(agv, Common.agvMission["Leave"]); rtn = Common.mir.Add_Mission(agv, Common.agvMission["Leave"]);
agv.TaskSend = rtn ? "Leave" : ""; agv.TaskSend = rtn ? "Leave" : "";
if (rtn)
Common.log.Info(string.Format("{0}到达{1},可以进入料架", agv.Name, agv.Place));
} }
else if (node.Action == ClientAction.MayLeave) else if (node.Action == ClientAction.MayLeave)
{ {
if (agv.TaskSend == "Leave") return; if (agv.TaskSend == "Leave") return;
rtn = Common.mir.Add_Mission(agv, Common.agvMission["Leave"]); rtn = Common.mir.Add_Mission(agv, Common.agvMission["Leave"]);
agv.TaskSend = rtn ? "Leave" : ""; agv.TaskSend = rtn ? "Leave" : "";
if (rtn)
Common.log.Info(string.Format("{0}到达{1},可以出去料架", agv.Name, agv.Place));
} }
else if (node.Action == ClientAction.NeedEnter) else if (node.Action == ClientAction.NeedEnter)
{ {
rtn = Common.server.ReadyEnter(agv.Place); rtn = Common.server.ReadyEnter(agv.Place);
if (!rtn) return; if (!rtn) return;
Common.log.Info(string.Format("{0}到达{1},服务器发送ReadyEnter信号", agv.Name, agv.Place));
} }
else if (node.Action == ClientAction.NeedLeave) else if (node.Action == ClientAction.NeedLeave)
{ {
rtn = Common.server.ReadyLeave(agv.Place); rtn = Common.server.ReadyLeave(agv.Place);
if (!rtn) return; if (!rtn) return;
Common.log.Info(string.Format("{0}到达{1},服务器发送ReadyLeave信号", agv.Name, agv.Place));
} }
break; break;
} }
} }
/// <summary>
/// agv正在进入
/// </summary>
/// <param name="idx"></param>
private void StateEnter(int idx) private void StateEnter(int idx)
{ {
} }
/// <summary>
/// agv进入完成
/// </summary>
/// <param name="idx"></param>
private void StateEnterFinish(int idx) private void StateEnterFinish(int idx)
{ {
bool rtn; bool rtn;
...@@ -329,16 +395,33 @@ namespace BLL ...@@ -329,16 +395,33 @@ namespace BLL
case "A6": case "A6":
if (node.Action == ClientAction.FinishLeave) if (node.Action == ClientAction.FinishLeave)
{ {
string nextPlace = agv.NextPlace;
rtn = Common.mir.Add_Mission(agv, Common.agvMission["Move" + nextPlace]);
if (rtn)
{
agv.NextPlace = "";
}
node.AgvName = "";
agv.TaskSend = rtn ? "Move" + nextPlace : "";
if (rtn)
Common.log.Info(string.Format("{0}完成出满料架,准备运往{1}","A6",nextPlace));
} }
break; break;
} }
} }
/// <summary>
/// agv正在离开
/// </summary>
/// <param name="idx"></param>
private void StateLeave(int idx) private void StateLeave(int idx)
{ {
}
}
/// <summary>
/// agv离开完成
/// </summary>
/// <param name="idx"></param>
private void StateLeaveFinish(int idx) private void StateLeaveFinish(int idx)
{ {
bool rtn; bool rtn;
...@@ -352,11 +435,13 @@ namespace BLL ...@@ -352,11 +435,13 @@ namespace BLL
case "A5": case "A5":
if (node.Action == ClientAction.FinishEnter) if (node.Action == ClientAction.FinishEnter)
{ {
Common.log.Info(string.Format("{0}在{1}完成进入料架", agv.Name, agv.Place));
} }
break; break;
case "A6": case "A6":
if (node.Action == ClientAction.FinishEnter) if (node.Action == ClientAction.FinishEnter)
{ {
Common.log.Info(string.Format("{0}在{1}完成进入料架", agv.Name, agv.Place));
} }
break; break;
} }
...@@ -364,6 +449,8 @@ namespace BLL ...@@ -364,6 +449,8 @@ namespace BLL
private void StateError(int idx) private void StateError(int idx)
{ {
Agv_Info agv = Common.agvInfo[idx];
Common.log.Info(string.Format("{0}在执行任务[{1}]出现错误:{2}",agv.Name,agv.TaskSend,agv.MissionText));
} }
private int FindNode(string nodeName) private int FindNode(string nodeName)
...@@ -378,7 +465,8 @@ namespace BLL ...@@ -378,7 +465,8 @@ namespace BLL
int idx = Common.nodeInfo.FindIndex(s => s.Name.Equals("A6") && (s.Action == ClientAction.NeedLeave || s.Action == ClientAction.NeedEnterLeave) && s.IsUse); int idx = Common.nodeInfo.FindIndex(s => s.Name.Equals("A6") && (s.Action == ClientAction.NeedLeave || s.Action == ClientAction.NeedEnterLeave) && s.IsUse);
if (idx == -1) return false; if (idx == -1) return false;
bool rtn = FindA6Destination(Common.nodeInfo[idx].RFID, out string dest); bool rtn = true;//FindA6Destination(Common.nodeInfo[idx].RFID, out string dest);
string dest = "E1";
if (!rtn) return false; if (!rtn) return false;
idx = Common.nodeInfo.FindIndex(s => s.Name.Equals(dest) && s.Action == ClientAction.NeedEnter && s.IsUse); idx = Common.nodeInfo.FindIndex(s => s.Name.Equals(dest) && s.Action == ClientAction.NeedEnter && s.IsUse);
...@@ -408,7 +496,7 @@ namespace BLL ...@@ -408,7 +496,7 @@ namespace BLL
json = json.Replace("\r", ""); json = json.Replace("\r", "");
json = json.Replace("\n", ""); json = json.Replace("\n", "");
json = json.Replace(" ", ""); json = json.Replace(" ", "");
Common.log.Info("URL: " + url + "\r\nReturn: " + json); Common.log.Info("ITS URL: " + url + " Return: " + json);
if (string.IsNullOrWhiteSpace(json)) return false; if (string.IsNullOrWhiteSpace(json)) return false;
JavaScriptSerializer serializer = new JavaScriptSerializer(); JavaScriptSerializer serializer = new JavaScriptSerializer();
......
...@@ -510,7 +510,7 @@ namespace BLL ...@@ -510,7 +510,7 @@ namespace BLL
string s = response.Content; string s = response.Content;
s = s.Replace("\n", ""); s = s.Replace("\n", "");
s = s.Replace(" ", ""); s = s.Replace(" ", "");
Common.log.Debug("HttpGet URL: " + url + "\r\nReturn: " + s); Common.log.Debug("HttpGet URL: " + url + " Return: " + s);
return s; return s;
} }
...@@ -529,7 +529,7 @@ namespace BLL ...@@ -529,7 +529,7 @@ namespace BLL
string s = response.Content; string s = response.Content;
s = s.Replace("\n", ""); s = s.Replace("\n", "");
s = s.Replace(" ", ""); s = s.Replace(" ", "");
Common.log.Debug(string.Format("HttpPost URL: {0}; Body: {1}\r\nReturn: {2}", url, body, s)); Common.log.Debug(string.Format("HttpPost URL: {0}; Body: {1} Return: {2}", url, body, s));
return s; return s;
} }
...@@ -548,7 +548,7 @@ namespace BLL ...@@ -548,7 +548,7 @@ namespace BLL
string s = response.Content; string s = response.Content;
s = s.Replace("\n", ""); s = s.Replace("\n", "");
s = s.Replace(" ", ""); s = s.Replace(" ", "");
Common.log.Debug(string.Format("HttpPut URL: {0}; Body: {1}\r\nReturn: {2}", url, body, s)); Common.log.Debug(string.Format("HttpPut URL: {0}; Body: {1} Return: {2}", url, body, s));
return s; return s;
} }
......
...@@ -48,7 +48,15 @@ namespace BLL ...@@ -48,7 +48,15 @@ namespace BLL
AGVControl.Common.log.Info("WebService Response OK"); AGVControl.Common.log.Info("WebService Response OK");
//加到任务 //加到任务
AGVControl.Common.linePlace.Add(value); int idx = AGVControl.Common.nodeInfo.FindIndex(s => s.Name == value);
if(idx>-1)
{
AGVControl.Common.linePlace.Add(value, AGVControl.Common.nodeInfo[idx].Level);
}
else
{
AGVControl.Common.log.Error("CreateEmptyRecycleTask " + value + "不存在");
}
} }
else else
{ {
......
...@@ -52,6 +52,12 @@ ...@@ -52,6 +52,12 @@
this.Column16 = new System.Windows.Forms.DataGridViewButtonColumn(); this.Column16 = new System.Windows.Forms.DataGridViewButtonColumn();
this.Column15 = new System.Windows.Forms.DataGridViewButtonColumn(); this.Column15 = new System.Windows.Forms.DataGridViewButtonColumn();
this.tabPage3 = new System.Windows.Forms.TabPage(); this.tabPage3 = new System.Windows.Forms.TabPage();
this.btnReadlinePlace = new System.Windows.Forms.Button();
this.dgvLinePlace = new System.Windows.Forms.DataGridView();
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btnDeletelinePlace = new System.Windows.Forms.Button();
this.btnAddlinePlace = new System.Windows.Forms.Button();
this.BtnAddPlace = new System.Windows.Forms.Button(); this.BtnAddPlace = new System.Windows.Forms.Button();
this.TxtPlace = new System.Windows.Forms.TextBox(); this.TxtPlace = new System.Windows.Forms.TextBox();
this.CloseDoor = new System.Windows.Forms.Button(); this.CloseDoor = new System.Windows.Forms.Button();
...@@ -74,17 +80,14 @@ ...@@ -74,17 +80,14 @@
this.tabPage2 = new System.Windows.Forms.TabPage(); this.tabPage2 = new System.Windows.Forms.TabPage();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.TxtLog = new System.Windows.Forms.TextBox(); this.TxtLog = new System.Windows.Forms.TextBox();
this.dgvMission = new System.Windows.Forms.DataGridView();
this.Column20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column21 = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.DgvAgv)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.DgvAgv)).BeginInit();
this.tabControl1.SuspendLayout(); this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout(); this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.DgvNode)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.DgvNode)).BeginInit();
this.tabPage3.SuspendLayout(); this.tabPage3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvLinePlace)).BeginInit();
this.tabPage2.SuspendLayout(); this.tabPage2.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvMission)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// DgvAgv // DgvAgv
...@@ -107,12 +110,14 @@ ...@@ -107,12 +110,14 @@
this.Column19, this.Column19,
this.Column11, this.Column11,
this.Column17}); this.Column17});
this.DgvAgv.Location = new System.Drawing.Point(12, 12); this.DgvAgv.Location = new System.Drawing.Point(16, 15);
this.DgvAgv.Margin = new System.Windows.Forms.Padding(4);
this.DgvAgv.Name = "DgvAgv"; this.DgvAgv.Name = "DgvAgv";
this.DgvAgv.ReadOnly = true; this.DgvAgv.ReadOnly = true;
this.DgvAgv.RowHeadersVisible = false;
this.DgvAgv.RowHeadersWidth = 51; this.DgvAgv.RowHeadersWidth = 51;
this.DgvAgv.RowTemplate.Height = 23; this.DgvAgv.RowTemplate.Height = 23;
this.DgvAgv.Size = new System.Drawing.Size(932, 126); this.DgvAgv.Size = new System.Drawing.Size(1224, 158);
this.DgvAgv.TabIndex = 3; this.DgvAgv.TabIndex = 3;
this.DgvAgv.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DgvAgv_CellClick); this.DgvAgv.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DgvAgv_CellClick);
// //
...@@ -211,19 +216,21 @@ ...@@ -211,19 +216,21 @@
this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage3); this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage2); this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Location = new System.Drawing.Point(12, 144); this.tabControl1.Location = new System.Drawing.Point(16, 180);
this.tabControl1.Margin = new System.Windows.Forms.Padding(4);
this.tabControl1.Name = "tabControl1"; this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0; this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(932, 547); this.tabControl1.Size = new System.Drawing.Size(1224, 579);
this.tabControl1.TabIndex = 6; this.tabControl1.TabIndex = 6;
// //
// tabPage1 // tabPage1
// //
this.tabPage1.Controls.Add(this.DgvNode); this.tabPage1.Controls.Add(this.DgvNode);
this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Location = new System.Drawing.Point(4, 25);
this.tabPage1.Margin = new System.Windows.Forms.Padding(4);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Padding = new System.Windows.Forms.Padding(4);
this.tabPage1.Size = new System.Drawing.Size(924, 521); this.tabPage1.Size = new System.Drawing.Size(1216, 550);
this.tabPage1.TabIndex = 0; this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "节点"; this.tabPage1.Text = "节点";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;
...@@ -247,12 +254,14 @@ ...@@ -247,12 +254,14 @@
this.Column5, this.Column5,
this.Column16, this.Column16,
this.Column15}); this.Column15});
this.DgvNode.Location = new System.Drawing.Point(6, 6); this.DgvNode.Location = new System.Drawing.Point(8, 8);
this.DgvNode.Margin = new System.Windows.Forms.Padding(4);
this.DgvNode.Name = "DgvNode"; this.DgvNode.Name = "DgvNode";
this.DgvNode.ReadOnly = true; this.DgvNode.ReadOnly = true;
this.DgvNode.RowHeadersVisible = false;
this.DgvNode.RowHeadersWidth = 50; this.DgvNode.RowHeadersWidth = 50;
this.DgvNode.RowTemplate.Height = 23; this.DgvNode.RowTemplate.Height = 23;
this.DgvNode.Size = new System.Drawing.Size(912, 509); this.DgvNode.Size = new System.Drawing.Size(1197, 531);
this.DgvNode.TabIndex = 1; this.DgvNode.TabIndex = 1;
this.DgvNode.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DgvNode_CellClick); this.DgvNode.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DgvNode_CellClick);
// //
...@@ -328,6 +337,10 @@ ...@@ -328,6 +337,10 @@
// //
// tabPage3 // tabPage3
// //
this.tabPage3.Controls.Add(this.btnReadlinePlace);
this.tabPage3.Controls.Add(this.dgvLinePlace);
this.tabPage3.Controls.Add(this.btnDeletelinePlace);
this.tabPage3.Controls.Add(this.btnAddlinePlace);
this.tabPage3.Controls.Add(this.BtnAddPlace); this.tabPage3.Controls.Add(this.BtnAddPlace);
this.tabPage3.Controls.Add(this.TxtPlace); this.tabPage3.Controls.Add(this.TxtPlace);
this.tabPage3.Controls.Add(this.CloseDoor); this.tabPage3.Controls.Add(this.CloseDoor);
...@@ -347,62 +360,131 @@ ...@@ -347,62 +360,131 @@
this.tabPage3.Controls.Add(this.BtnMissionPause); this.tabPage3.Controls.Add(this.BtnMissionPause);
this.tabPage3.Controls.Add(this.BtnMissionReady); this.tabPage3.Controls.Add(this.BtnMissionReady);
this.tabPage3.Controls.Add(this.LstAgvPlace); this.tabPage3.Controls.Add(this.LstAgvPlace);
this.tabPage3.Location = new System.Drawing.Point(4, 22); this.tabPage3.Location = new System.Drawing.Point(4, 25);
this.tabPage3.Margin = new System.Windows.Forms.Padding(4);
this.tabPage3.Name = "tabPage3"; this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3); this.tabPage3.Padding = new System.Windows.Forms.Padding(4);
this.tabPage3.Size = new System.Drawing.Size(924, 521); this.tabPage3.Size = new System.Drawing.Size(1216, 550);
this.tabPage3.TabIndex = 2; this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "任务"; this.tabPage3.Text = "任务";
this.tabPage3.UseVisualStyleBackColor = true; this.tabPage3.UseVisualStyleBackColor = true;
// //
// btnReadlinePlace
//
this.btnReadlinePlace.Location = new System.Drawing.Point(555, 298);
this.btnReadlinePlace.Margin = new System.Windows.Forms.Padding(4);
this.btnReadlinePlace.Name = "btnReadlinePlace";
this.btnReadlinePlace.Size = new System.Drawing.Size(148, 38);
this.btnReadlinePlace.TabIndex = 29;
this.btnReadlinePlace.Text = "读取linePlacce";
this.btnReadlinePlace.UseVisualStyleBackColor = true;
this.btnReadlinePlace.Click += new System.EventHandler(this.btnReadlinePlace_Click);
//
// dgvLinePlace
//
this.dgvLinePlace.AllowUserToAddRows = false;
this.dgvLinePlace.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvLinePlace.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column8,
this.Column20});
this.dgvLinePlace.Location = new System.Drawing.Point(216, 264);
this.dgvLinePlace.Name = "dgvLinePlace";
this.dgvLinePlace.RowHeadersVisible = false;
this.dgvLinePlace.RowHeadersWidth = 51;
this.dgvLinePlace.RowTemplate.Height = 27;
this.dgvLinePlace.Size = new System.Drawing.Size(311, 150);
this.dgvLinePlace.TabIndex = 28;
//
// Column8
//
this.Column8.HeaderText = "ITS任务节点";
this.Column8.MinimumWidth = 6;
this.Column8.Name = "Column8";
this.Column8.Width = 125;
//
// Column20
//
this.Column20.HeaderText = "任务等级";
this.Column20.MinimumWidth = 6;
this.Column20.Name = "Column20";
this.Column20.Width = 125;
//
// btnDeletelinePlace
//
this.btnDeletelinePlace.Location = new System.Drawing.Point(555, 388);
this.btnDeletelinePlace.Margin = new System.Windows.Forms.Padding(4);
this.btnDeletelinePlace.Name = "btnDeletelinePlace";
this.btnDeletelinePlace.Size = new System.Drawing.Size(149, 38);
this.btnDeletelinePlace.TabIndex = 27;
this.btnDeletelinePlace.Text = "删除linePlacce";
this.btnDeletelinePlace.UseVisualStyleBackColor = true;
this.btnDeletelinePlace.Click += new System.EventHandler(this.btnDeletelinePlace_Click);
//
// btnAddlinePlace
//
this.btnAddlinePlace.Location = new System.Drawing.Point(555, 342);
this.btnAddlinePlace.Margin = new System.Windows.Forms.Padding(4);
this.btnAddlinePlace.Name = "btnAddlinePlace";
this.btnAddlinePlace.Size = new System.Drawing.Size(148, 38);
this.btnAddlinePlace.TabIndex = 26;
this.btnAddlinePlace.Text = "添加linePlacce";
this.btnAddlinePlace.UseVisualStyleBackColor = true;
this.btnAddlinePlace.Click += new System.EventHandler(this.btnAddlinePlace_Click);
//
// BtnAddPlace // BtnAddPlace
// //
this.BtnAddPlace.Location = new System.Drawing.Point(390, 445); this.BtnAddPlace.Location = new System.Drawing.Point(840, 183);
this.BtnAddPlace.Margin = new System.Windows.Forms.Padding(4);
this.BtnAddPlace.Name = "BtnAddPlace"; this.BtnAddPlace.Name = "BtnAddPlace";
this.BtnAddPlace.Size = new System.Drawing.Size(96, 30); this.BtnAddPlace.Size = new System.Drawing.Size(128, 38);
this.BtnAddPlace.TabIndex = 25; this.BtnAddPlace.TabIndex = 25;
this.BtnAddPlace.Text = "目标地点"; this.BtnAddPlace.Text = "目标地点";
this.BtnAddPlace.UseVisualStyleBackColor = true; this.BtnAddPlace.UseVisualStyleBackColor = true;
// //
// TxtPlace // TxtPlace
// //
this.TxtPlace.Location = new System.Drawing.Point(390, 418); this.TxtPlace.Location = new System.Drawing.Point(556, 265);
this.TxtPlace.Margin = new System.Windows.Forms.Padding(4);
this.TxtPlace.Name = "TxtPlace"; this.TxtPlace.Name = "TxtPlace";
this.TxtPlace.Size = new System.Drawing.Size(96, 21); this.TxtPlace.Size = new System.Drawing.Size(148, 25);
this.TxtPlace.TabIndex = 24; this.TxtPlace.TabIndex = 24;
// //
// CloseDoor // CloseDoor
// //
this.CloseDoor.Location = new System.Drawing.Point(390, 382); this.CloseDoor.Location = new System.Drawing.Point(840, 105);
this.CloseDoor.Margin = new System.Windows.Forms.Padding(4);
this.CloseDoor.Name = "CloseDoor"; this.CloseDoor.Name = "CloseDoor";
this.CloseDoor.Size = new System.Drawing.Size(96, 30); this.CloseDoor.Size = new System.Drawing.Size(128, 38);
this.CloseDoor.TabIndex = 22; this.CloseDoor.TabIndex = 22;
this.CloseDoor.Text = "CloseDoor"; this.CloseDoor.Text = "CloseDoor";
this.CloseDoor.UseVisualStyleBackColor = true; this.CloseDoor.UseVisualStyleBackColor = true;
// //
// BtnReady // BtnReady
// //
this.BtnReady.Location = new System.Drawing.Point(390, 346); this.BtnReady.Location = new System.Drawing.Point(840, 59);
this.BtnReady.Margin = new System.Windows.Forms.Padding(4);
this.BtnReady.Name = "BtnReady"; this.BtnReady.Name = "BtnReady";
this.BtnReady.Size = new System.Drawing.Size(96, 30); this.BtnReady.Size = new System.Drawing.Size(128, 38);
this.BtnReady.TabIndex = 21; this.BtnReady.TabIndex = 21;
this.BtnReady.Text = "Ready"; this.BtnReady.Text = "Ready";
this.BtnReady.UseVisualStyleBackColor = true; this.BtnReady.UseVisualStyleBackColor = true;
// //
// BtnArrive // BtnArrive
// //
this.BtnArrive.Location = new System.Drawing.Point(390, 310); this.BtnArrive.Location = new System.Drawing.Point(840, 15);
this.BtnArrive.Margin = new System.Windows.Forms.Padding(4);
this.BtnArrive.Name = "BtnArrive"; this.BtnArrive.Name = "BtnArrive";
this.BtnArrive.Size = new System.Drawing.Size(96, 30); this.BtnArrive.Size = new System.Drawing.Size(128, 38);
this.BtnArrive.TabIndex = 20; this.BtnArrive.TabIndex = 20;
this.BtnArrive.Text = "Arrive"; this.BtnArrive.Text = "Arrive";
this.BtnArrive.UseVisualStyleBackColor = true; this.BtnArrive.UseVisualStyleBackColor = true;
// //
// BtnClearError // BtnClearError
// //
this.BtnClearError.Location = new System.Drawing.Point(162, 114); this.BtnClearError.Location = new System.Drawing.Point(216, 142);
this.BtnClearError.Margin = new System.Windows.Forms.Padding(4);
this.BtnClearError.Name = "BtnClearError"; this.BtnClearError.Name = "BtnClearError";
this.BtnClearError.Size = new System.Drawing.Size(96, 30); this.BtnClearError.Size = new System.Drawing.Size(128, 38);
this.BtnClearError.TabIndex = 19; this.BtnClearError.TabIndex = 19;
this.BtnClearError.Text = "清除错误"; this.BtnClearError.Text = "清除错误";
this.BtnClearError.UseVisualStyleBackColor = true; this.BtnClearError.UseVisualStyleBackColor = true;
...@@ -411,86 +493,96 @@ ...@@ -411,86 +493,96 @@
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(592, 120); this.label2.Location = new System.Drawing.Point(643, 10);
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(47, 12); this.label2.Size = new System.Drawing.Size(60, 15);
this.label2.TabIndex = 18; this.label2.TabIndex = 18;
this.label2.Text = "充电桩2"; this.label2.Text = "充电桩2";
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(490, 120); this.label1.Location = new System.Drawing.Point(507, 10);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(47, 12); this.label1.Size = new System.Drawing.Size(60, 15);
this.label1.TabIndex = 17; this.label1.TabIndex = 17;
this.label1.Text = "充电桩1"; this.label1.Text = "充电桩1";
// //
// BtnWriteCharge2 // BtnWriteCharge2
// //
this.BtnWriteCharge2.Location = new System.Drawing.Point(589, 198); this.BtnWriteCharge2.Location = new System.Drawing.Point(639, 108);
this.BtnWriteCharge2.Margin = new System.Windows.Forms.Padding(4);
this.BtnWriteCharge2.Name = "BtnWriteCharge2"; this.BtnWriteCharge2.Name = "BtnWriteCharge2";
this.BtnWriteCharge2.Size = new System.Drawing.Size(96, 30); this.BtnWriteCharge2.Size = new System.Drawing.Size(128, 38);
this.BtnWriteCharge2.TabIndex = 16; this.BtnWriteCharge2.TabIndex = 16;
this.BtnWriteCharge2.Text = "写"; this.BtnWriteCharge2.Text = "写";
this.BtnWriteCharge2.UseVisualStyleBackColor = true; this.BtnWriteCharge2.UseVisualStyleBackColor = true;
// //
// BtnReadCharge2 // BtnReadCharge2
// //
this.BtnReadCharge2.Location = new System.Drawing.Point(589, 162); this.BtnReadCharge2.Location = new System.Drawing.Point(639, 62);
this.BtnReadCharge2.Margin = new System.Windows.Forms.Padding(4);
this.BtnReadCharge2.Name = "BtnReadCharge2"; this.BtnReadCharge2.Name = "BtnReadCharge2";
this.BtnReadCharge2.Size = new System.Drawing.Size(96, 30); this.BtnReadCharge2.Size = new System.Drawing.Size(128, 38);
this.BtnReadCharge2.TabIndex = 15; this.BtnReadCharge2.TabIndex = 15;
this.BtnReadCharge2.Text = "读"; this.BtnReadCharge2.Text = "读";
this.BtnReadCharge2.UseVisualStyleBackColor = true; this.BtnReadCharge2.UseVisualStyleBackColor = true;
// //
// TxtCharge2 // TxtCharge2
// //
this.TxtCharge2.Location = new System.Drawing.Point(589, 135); this.TxtCharge2.Location = new System.Drawing.Point(639, 29);
this.TxtCharge2.Margin = new System.Windows.Forms.Padding(4);
this.TxtCharge2.Name = "TxtCharge2"; this.TxtCharge2.Name = "TxtCharge2";
this.TxtCharge2.Size = new System.Drawing.Size(96, 21); this.TxtCharge2.Size = new System.Drawing.Size(127, 25);
this.TxtCharge2.TabIndex = 14; this.TxtCharge2.TabIndex = 14;
// //
// BtnWriteCharge1 // BtnWriteCharge1
// //
this.BtnWriteCharge1.Location = new System.Drawing.Point(487, 198); this.BtnWriteCharge1.Location = new System.Drawing.Point(503, 108);
this.BtnWriteCharge1.Margin = new System.Windows.Forms.Padding(4);
this.BtnWriteCharge1.Name = "BtnWriteCharge1"; this.BtnWriteCharge1.Name = "BtnWriteCharge1";
this.BtnWriteCharge1.Size = new System.Drawing.Size(96, 30); this.BtnWriteCharge1.Size = new System.Drawing.Size(128, 38);
this.BtnWriteCharge1.TabIndex = 13; this.BtnWriteCharge1.TabIndex = 13;
this.BtnWriteCharge1.Text = "写"; this.BtnWriteCharge1.Text = "写";
this.BtnWriteCharge1.UseVisualStyleBackColor = true; this.BtnWriteCharge1.UseVisualStyleBackColor = true;
// //
// BtnReadCharge1 // BtnReadCharge1
// //
this.BtnReadCharge1.Location = new System.Drawing.Point(487, 162); this.BtnReadCharge1.Location = new System.Drawing.Point(503, 62);
this.BtnReadCharge1.Margin = new System.Windows.Forms.Padding(4);
this.BtnReadCharge1.Name = "BtnReadCharge1"; this.BtnReadCharge1.Name = "BtnReadCharge1";
this.BtnReadCharge1.Size = new System.Drawing.Size(96, 30); this.BtnReadCharge1.Size = new System.Drawing.Size(128, 38);
this.BtnReadCharge1.TabIndex = 12; this.BtnReadCharge1.TabIndex = 12;
this.BtnReadCharge1.Text = "读"; this.BtnReadCharge1.Text = "读";
this.BtnReadCharge1.UseVisualStyleBackColor = true; this.BtnReadCharge1.UseVisualStyleBackColor = true;
// //
// TxtCharge1 // TxtCharge1
// //
this.TxtCharge1.Location = new System.Drawing.Point(487, 135); this.TxtCharge1.Location = new System.Drawing.Point(503, 29);
this.TxtCharge1.Margin = new System.Windows.Forms.Padding(4);
this.TxtCharge1.Name = "TxtCharge1"; this.TxtCharge1.Name = "TxtCharge1";
this.TxtCharge1.Size = new System.Drawing.Size(96, 21); this.TxtCharge1.Size = new System.Drawing.Size(127, 25);
this.TxtCharge1.TabIndex = 11; this.TxtCharge1.TabIndex = 11;
// //
// ChkAutoCharge // ChkAutoCharge
// //
this.ChkAutoCharge.AutoSize = true; this.ChkAutoCharge.AutoSize = true;
this.ChkAutoCharge.Location = new System.Drawing.Point(385, 135); this.ChkAutoCharge.Location = new System.Drawing.Point(367, 29);
this.ChkAutoCharge.Margin = new System.Windows.Forms.Padding(4);
this.ChkAutoCharge.Name = "ChkAutoCharge"; this.ChkAutoCharge.Name = "ChkAutoCharge";
this.ChkAutoCharge.Size = new System.Drawing.Size(72, 16); this.ChkAutoCharge.Size = new System.Drawing.Size(89, 19);
this.ChkAutoCharge.TabIndex = 10; this.ChkAutoCharge.TabIndex = 10;
this.ChkAutoCharge.Text = "自动充电"; this.ChkAutoCharge.Text = "自动充电";
this.ChkAutoCharge.UseVisualStyleBackColor = true; this.ChkAutoCharge.UseVisualStyleBackColor = true;
// //
// BtnMissionAdd // BtnMissionAdd
// //
this.BtnMissionAdd.Location = new System.Drawing.Point(162, 78); this.BtnMissionAdd.Location = new System.Drawing.Point(216, 98);
this.BtnMissionAdd.Margin = new System.Windows.Forms.Padding(4);
this.BtnMissionAdd.Name = "BtnMissionAdd"; this.BtnMissionAdd.Name = "BtnMissionAdd";
this.BtnMissionAdd.Size = new System.Drawing.Size(96, 30); this.BtnMissionAdd.Size = new System.Drawing.Size(128, 38);
this.BtnMissionAdd.TabIndex = 3; this.BtnMissionAdd.TabIndex = 3;
this.BtnMissionAdd.Text = "添加任务"; this.BtnMissionAdd.Text = "添加任务";
this.BtnMissionAdd.UseVisualStyleBackColor = true; this.BtnMissionAdd.UseVisualStyleBackColor = true;
...@@ -498,9 +590,10 @@ ...@@ -498,9 +590,10 @@
// //
// BtnMissionPause // BtnMissionPause
// //
this.BtnMissionPause.Location = new System.Drawing.Point(162, 42); this.BtnMissionPause.Location = new System.Drawing.Point(216, 52);
this.BtnMissionPause.Margin = new System.Windows.Forms.Padding(4);
this.BtnMissionPause.Name = "BtnMissionPause"; this.BtnMissionPause.Name = "BtnMissionPause";
this.BtnMissionPause.Size = new System.Drawing.Size(96, 30); this.BtnMissionPause.Size = new System.Drawing.Size(128, 38);
this.BtnMissionPause.TabIndex = 2; this.BtnMissionPause.TabIndex = 2;
this.BtnMissionPause.Text = "暂停"; this.BtnMissionPause.Text = "暂停";
this.BtnMissionPause.UseVisualStyleBackColor = true; this.BtnMissionPause.UseVisualStyleBackColor = true;
...@@ -508,9 +601,10 @@ ...@@ -508,9 +601,10 @@
// //
// BtnMissionReady // BtnMissionReady
// //
this.BtnMissionReady.Location = new System.Drawing.Point(162, 6); this.BtnMissionReady.Location = new System.Drawing.Point(216, 8);
this.BtnMissionReady.Margin = new System.Windows.Forms.Padding(4);
this.BtnMissionReady.Name = "BtnMissionReady"; this.BtnMissionReady.Name = "BtnMissionReady";
this.BtnMissionReady.Size = new System.Drawing.Size(96, 30); this.BtnMissionReady.Size = new System.Drawing.Size(128, 38);
this.BtnMissionReady.TabIndex = 1; this.BtnMissionReady.TabIndex = 1;
this.BtnMissionReady.Text = "运行"; this.BtnMissionReady.Text = "运行";
this.BtnMissionReady.UseVisualStyleBackColor = true; this.BtnMissionReady.UseVisualStyleBackColor = true;
...@@ -522,19 +616,21 @@ ...@@ -522,19 +616,21 @@
| System.Windows.Forms.AnchorStyles.Left))); | System.Windows.Forms.AnchorStyles.Left)));
this.LstAgvPlace.FormattingEnabled = true; this.LstAgvPlace.FormattingEnabled = true;
this.LstAgvPlace.IntegralHeight = false; this.LstAgvPlace.IntegralHeight = false;
this.LstAgvPlace.ItemHeight = 12; this.LstAgvPlace.ItemHeight = 15;
this.LstAgvPlace.Location = new System.Drawing.Point(6, 6); this.LstAgvPlace.Location = new System.Drawing.Point(8, 8);
this.LstAgvPlace.Margin = new System.Windows.Forms.Padding(4);
this.LstAgvPlace.Name = "LstAgvPlace"; this.LstAgvPlace.Name = "LstAgvPlace";
this.LstAgvPlace.Size = new System.Drawing.Size(150, 509); this.LstAgvPlace.Size = new System.Drawing.Size(199, 530);
this.LstAgvPlace.TabIndex = 0; this.LstAgvPlace.TabIndex = 0;
// //
// tabPage2 // tabPage2
// //
this.tabPage2.Controls.Add(this.tableLayoutPanel1); this.tabPage2.Controls.Add(this.tableLayoutPanel1);
this.tabPage2.Location = new System.Drawing.Point(4, 22); this.tabPage2.Location = new System.Drawing.Point(4, 25);
this.tabPage2.Margin = new System.Windows.Forms.Padding(4);
this.tabPage2.Name = "tabPage2"; this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3); this.tabPage2.Padding = new System.Windows.Forms.Padding(4);
this.tabPage2.Size = new System.Drawing.Size(924, 521); this.tabPage2.Size = new System.Drawing.Size(1216, 550);
this.tabPage2.TabIndex = 3; this.tabPage2.TabIndex = 3;
this.tabPage2.Text = "日志"; this.tabPage2.Text = "日志";
this.tabPage2.UseVisualStyleBackColor = true; this.tabPage2.UseVisualStyleBackColor = true;
...@@ -545,13 +641,13 @@ ...@@ -545,13 +641,13 @@
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 35.06064F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 35.06064F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 64.93936F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 64.93936F));
this.tableLayoutPanel1.Controls.Add(this.TxtLog, 0, 0); this.tableLayoutPanel1.Controls.Add(this.TxtLog, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.dgvMission, 1, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 3); this.tableLayoutPanel1.Location = new System.Drawing.Point(4, 4);
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(4);
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 1; this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(918, 515); this.tableLayoutPanel1.Size = new System.Drawing.Size(1208, 542);
this.tableLayoutPanel1.TabIndex = 5; this.tableLayoutPanel1.TabIndex = 5;
// //
// TxtLog // TxtLog
...@@ -559,50 +655,23 @@ ...@@ -559,50 +655,23 @@
this.TxtLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.TxtLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.TxtLog.Location = new System.Drawing.Point(3, 3); this.TxtLog.Location = new System.Drawing.Point(4, 4);
this.TxtLog.Margin = new System.Windows.Forms.Padding(4);
this.TxtLog.Multiline = true; this.TxtLog.Multiline = true;
this.TxtLog.Name = "TxtLog"; this.TxtLog.Name = "TxtLog";
this.TxtLog.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.TxtLog.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.TxtLog.Size = new System.Drawing.Size(315, 509); this.TxtLog.Size = new System.Drawing.Size(415, 534);
this.TxtLog.TabIndex = 4; this.TxtLog.TabIndex = 4;
// //
// dgvMission
//
this.dgvMission.AllowUserToAddRows = false;
this.dgvMission.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvMission.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column20,
this.Column21});
this.dgvMission.Dock = System.Windows.Forms.DockStyle.Top;
this.dgvMission.Location = new System.Drawing.Point(324, 3);
this.dgvMission.Name = "dgvMission";
this.dgvMission.RowHeadersVisible = false;
this.dgvMission.RowHeadersWidth = 51;
this.dgvMission.RowTemplate.Height = 27;
this.dgvMission.Size = new System.Drawing.Size(591, 186);
this.dgvMission.TabIndex = 5;
//
// Column20
//
this.Column20.HeaderText = "AGV名称";
this.Column20.MinimumWidth = 6;
this.Column20.Name = "Column20";
//
// Column21
//
this.Column21.HeaderText = "任务";
this.Column21.MinimumWidth = 6;
this.Column21.Name = "Column21";
this.Column21.Width = 450;
//
// FrmMain // FrmMain
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(956, 703); this.ClientSize = new System.Drawing.Size(1256, 774);
this.Controls.Add(this.tabControl1); this.Controls.Add(this.tabControl1);
this.Controls.Add(this.DgvAgv); this.Controls.Add(this.DgvAgv);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "FrmMain"; this.Name = "FrmMain";
this.Text = "Form1"; this.Text = "Form1";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmMain_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmMain_FormClosing);
...@@ -613,10 +682,10 @@ ...@@ -613,10 +682,10 @@
((System.ComponentModel.ISupportInitialize)(this.DgvNode)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.DgvNode)).EndInit();
this.tabPage3.ResumeLayout(false); this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout(); this.tabPage3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvLinePlace)).EndInit();
this.tabPage2.ResumeLayout(false); this.tabPage2.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout(); this.tableLayoutPanel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvMission)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
...@@ -667,9 +736,12 @@ ...@@ -667,9 +736,12 @@
private System.Windows.Forms.TabPage tabPage2; private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.TextBox TxtLog; private System.Windows.Forms.TextBox TxtLog;
private System.Windows.Forms.DataGridView dgvMission; private System.Windows.Forms.Button btnAddlinePlace;
private System.Windows.Forms.DataGridView dgvLinePlace;
private System.Windows.Forms.Button btnDeletelinePlace;
private System.Windows.Forms.Button btnReadlinePlace;
private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
private System.Windows.Forms.DataGridViewTextBoxColumn Column20; private System.Windows.Forms.DataGridViewTextBoxColumn Column20;
private System.Windows.Forms.DataGridViewTextBoxColumn Column21;
} }
} }
...@@ -61,16 +61,15 @@ namespace AGVControl ...@@ -61,16 +61,15 @@ namespace AGVControl
private void Control_AgvChanged(int agvIndex) private void Control_AgvChanged(int agvIndex)
{ {
//Invoke(new Action(() => Invoke(new Action(() =>
//{ {
// DgvAgv.Rows[agvIndex].SetValues(Common.agvInfo[agvIndex].ToRow()); DgvAgv.Rows[agvIndex].SetValues(Common.agvInfo[agvIndex].ToRow());
// dgvMission.Rows[agvIndex].SetValues(Common.agvInfo[agvIndex].ToMission()); }));
//}));
} }
private void Control_AgvOnline(int agvIndex) private void Control_AgvOnline(int agvIndex)
{ {
//Invoke(new Action(() => { DgvAgv.Rows[agvIndex].DefaultCellStyle.ForeColor = Common.agvInfo[agvIndex].IsCon ? Color.Black : Color.Red; })); Invoke(new Action(() => { DgvAgv.Rows[agvIndex].DefaultCellStyle.ForeColor = Common.agvInfo[agvIndex].IsCon ? Color.Black : Color.Red; }));
} }
private void ItemShow_Click(object sender, EventArgs e) private void ItemShow_Click(object sender, EventArgs e)
...@@ -110,9 +109,8 @@ namespace AGVControl ...@@ -110,9 +109,8 @@ namespace AGVControl
notify.MouseDoubleClick += Notify_MouseDoubleClick; notify.MouseDoubleClick += Notify_MouseDoubleClick;
ShowConfig(); ShowConfig();
Common.control.AgvChanged += Control_AgvChanged;
//Common.control.AgvChanged += Control_AgvChanged; Common.control.AgvOnline += Control_AgvOnline;
//Common.control.AgvOnline += Control_AgvOnline;
Common.server.NodeChanged += Server_NodeChanged; Common.server.NodeChanged += Server_NodeChanged;
Common.server.NodeOnline += Server_NodeOnline; Common.server.NodeOnline += Server_NodeOnline;
} }
...@@ -140,13 +138,13 @@ namespace AGVControl ...@@ -140,13 +138,13 @@ namespace AGVControl
else if (e.ColumnIndex == 9) //清除缓存 else if (e.ColumnIndex == 9) //清除缓存
{ {
//清除小车缓存 //清除小车缓存
//Common.log.OutInfo(string.Format("手动清除缓存,{0} {1}", Common.agvInfo[e.RowIndex].Name, Common.agvInfo[e.RowIndex].Place)); Common.log.Info(string.Format("手动清除缓存,{0} {1}", Common.agvInfo[e.RowIndex].Name, Common.agvInfo[e.RowIndex].Place));
//string place = Common.agvInfo[e.RowIndex].Place; string place = Common.agvInfo[e.RowIndex].Place;
//Common.agvInfo[e.RowIndex].Mark = ""; Common.agvInfo[e.RowIndex].Place = "";
//Common.agvInfo[e.RowIndex].Place = ""; Common.agvInfo[e.RowIndex].RFID = "";
//Common.agvInfo[e.RowIndex].RFID = ""; Common.agvInfo[e.RowIndex].NextPlace = "";
//Common.agvInfo[e.RowIndex].NextMission = ""; Common.agvInfo[e.RowIndex].TaskSend = "";
//DgvAgv.Rows[e.RowIndex].SetValues(Common.agvInfo[e.RowIndex].ToRow()); DgvAgv.Rows[e.RowIndex].SetValues(Common.agvInfo[e.RowIndex].ToRow());
//清除节点缓存 //清除节点缓存
//int idx = Common.nodeInfo.FindIndex(s => s.Name == place); //int idx = Common.nodeInfo.FindIndex(s => s.Name == place);
...@@ -158,7 +156,9 @@ namespace AGVControl ...@@ -158,7 +156,9 @@ namespace AGVControl
////添加Init任务 ////添加Init任务
//Common.mir.Add_Mission_Fleet(Common.agvInfo[e.RowIndex], Common.agvMission["Init"]); //Common.mir.Add_Mission_Fleet(Common.agvInfo[e.RowIndex], Common.agvMission["Init"]);
//Common.mir.State_Ready(Common.agvInfo[e.RowIndex]); Common.mir.Add_Mission(Common.agvInfo[e.RowIndex], Common.agvMission["Init"]);
Common.mir.State_Ready(Common.agvInfo[e.RowIndex]);
} }
} }
...@@ -176,10 +176,10 @@ namespace AGVControl ...@@ -176,10 +176,10 @@ namespace AGVControl
else if (e.ColumnIndex == 7) //清除缓存 else if (e.ColumnIndex == 7) //清除缓存
{ {
//清除节点缓存 //清除节点缓存
//Common.log.OutInfo(string.Format("手动清除缓存,{0} {1}", Common.nodeInfo[e.RowIndex].AgvName, Common.nodeInfo[e.RowIndex].Name)); Common.log.Info(string.Format("手动清除缓存,{0} {1}", Common.nodeInfo[e.RowIndex].AgvName, Common.nodeInfo[e.RowIndex].Name));
//string name = Common.nodeInfo[e.RowIndex].AgvName; string name = Common.nodeInfo[e.RowIndex].AgvName;
//Common.nodeInfo[e.RowIndex].AgvName = ""; Common.nodeInfo[e.RowIndex].AgvName = "";
//DgvNode.Rows[e.RowIndex].Cells[5].Value = ""; DgvNode.Rows[e.RowIndex].Cells[4].Value = "";
//清除小车缓存 //清除小车缓存
//int idx = Common.agvInfo.FindIndex(s => s.Name == name); //int idx = Common.agvInfo.FindIndex(s => s.Name == name);
...@@ -235,8 +235,43 @@ namespace AGVControl ...@@ -235,8 +235,43 @@ namespace AGVControl
Common.mir.Clear_Error(Common.agvInfo[idx]); Common.mir.Clear_Error(Common.agvInfo[idx]);
} }
private void btnAddlinePlace_Click(object sender, EventArgs e)
{
if (TxtPlace.Text == "")
{
MessageBox.Show("请输入节点名");
return;
}
Common.AddLinePlace(TxtPlace.Text.ToUpper());
dgvLinePlace.Rows.Clear();
foreach (var item in Common.linePlace)
{
dgvLinePlace.Rows.Add(item.Key, item.Value);
}
}
private void btnDeletelinePlace_Click(object sender, EventArgs e)
{
if (TxtPlace.Text == "")
{
MessageBox.Show("请输入节点名");
return;
}
Common.RemoveLinePlace(TxtPlace.Text.ToUpper());
dgvLinePlace.Rows.Clear();
foreach (var item in Common.linePlace)
{
dgvLinePlace.Rows.Add(item.Key, item.Value);
}
}
private void btnReadlinePlace_Click(object sender, EventArgs e)
} {
dgvLinePlace.Rows.Clear();
foreach (var item in Common.linePlace)
{
dgvLinePlace.Rows.Add(item.Key, item.Value);
}
}
}
} }
...@@ -171,10 +171,10 @@ ...@@ -171,10 +171,10 @@
<metadata name="Column15.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="Column15.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="Column20.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="Column8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="Column21.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="Column20.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
......
...@@ -43,9 +43,12 @@ namespace AGVControl ...@@ -43,9 +43,12 @@ namespace AGVControl
Common.log.Info("=====程序开始====="); Common.log.Info("=====程序开始=====");
ReadConfig(); ReadConfig();
Common.linePlace = new List<string>(); Common.linePlace =new Dictionary<string, ClientLevel>();
Common.ReadLinePlace();
Common.mir = new MiR_API(); Common.mir = new MiR_API();
Common.control = new BLL.Control(); Common.control = new BLL.Control();
//软件开启时检查小车当前的任务状态
Common.CheckAGVMissionState();
Common.control.Start(); Common.control.Start();
Common.server = new AgvServer(); Common.server = new AgvServer();
Common.server.Start(); Common.server.Start();
......
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<configuration> <configuration>
<configSections> <configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
...@@ -23,34 +23,32 @@ ...@@ -23,34 +23,32 @@
</root> </root>
</log4net> </log4net>
<appSettings> <appSettings>
<add key="ITS" value="http://10.85.17.233/ESMTCommonInterface/CommonService.asmx/VMIGetBoxDestInfo?boxRFID=" /> <add key="ITS" value="http://10.85.17.233/ESMTCommonInterface/CommonService.asmx/VMIGetBoxDestInfo?boxRFID=" />
<add key="WebService" value="http://127.0.0.1/Webservice/AGVService/"/> <add key="WebService" value="http://127.0.0.1/Webservice/AGVService/" />
<add key="FLEET" value="10.85.199.3"/> <add key="FLEET" value="10.85.199.3" />
<!--<add key="LocalIP" value="192.168.103.12"/> <add key="MiR_R1763" value="False" />
<add key="AutoCharge" value="false"/> <add key="MiR_R1764" value="false" />
<add key="ChargeWait" value="1"/> <add key="MiR_R1767" value="false" />
<add key="ChargeThreshold" value="20,70"/>--> <add key="MiR_R1768" value="false" />
<add key="MiR_R1763" value="false"/> <add key="A5" value="True" />
<add key="MiR_R1764" value="false"/> <add key="A6" value="True" />
<add key="MiR_R1767" value="false"/> <add key="E1" value="False" />
<add key="MiR_R1768" value="false"/> <add key="E2" value="false" />
<add key="A5" value="false"/> <add key="E3" value="false" />
<add key="A6" value="false"/> <add key="E4" value="false" />
<add key="E1" value="false"/> <add key="E5" value="false" />
<add key="E2" value="false"/> <add key="E6" value="false" />
<add key="E3" value="false"/> <add key="E8" value="false" />
<add key="E4" value="false"/> <add key="E9" value="false" />
<add key="E5" value="false"/> <add key="E10" value="false" />
<add key="E6" value="false"/> <add key="E11" value="false" />
<add key="E8" value="false"/> <add key="E12" value="false" />
<add key="E9" value="false"/> <add key="E14" value="false" />
<add key="E10" value="false"/> <add key="E15" value="false" />
<add key="E11" value="false"/> <add key="E16" value="false" />
<add key="E12" value="false"/> <add key="E21" value="false" />
<add key="E14" value="false"/> <add key="E22" value="false" />
<add key="E15" value="false"/> <add key="nodesMission" value="" />
<add key="E16" value="false"/> <add key="nodesLevel" value="" />
<add key="E21" value="false"/> </appSettings>
<add key="E22" value="false"/>
</appSettings>
</configuration> </configuration>
\ No newline at end of file \ No newline at end of file
MoveA5, MoveA5,679f2ca1-b520-11ea-b6ad-00012998f5a0
MoveA6, MoveA6,7e5e9dc2-b521-11ea-b6ad-00012998f5a0
MoveE1, MoveE1,73bcddb3-b513-11ea-b6ad-00012998f5a0
MoveE2, MoveE2,9bacf16b-b515-11ea-b6ad-00012998f5a0
MoveE3, MoveE3,f84313b5-b515-11ea-b6ad-00012998f5a0
MoveE4, MoveE4,5683db0e-b516-11ea-b6ad-00012998f5a0
MoveE5, MoveE5,9c04b71b-b516-11ea-b6ad-00012998f5a0
MoveE6, MoveE6,f46be62a-b516-11ea-b6ad-00012998f5a0
MoveE7, MoveE7,
MoveE8, MoveE8,41dccfcf-b517-11ea-b6ad-00012998f5a0
MoveE9, MoveE9,7fc3ec2f-b517-11ea-b6ad-00012998f5a0
MoveE10, MoveE10,e7c0ad9c-b517-11ea-b6ad-00012998f5a0
MoveE11, MoveE11,2e23a510-b518-11ea-b6ad-00012998f5a0
MoveE12, MoveE12,6efb37bc-b519-11ea-b6ad-00012998f5a0
MoveE13, MoveE13,
MoveE14,
MoveE15,
MoveE16,
MoveE21,
MoveE22,
\ No newline at end of file \ No newline at end of file
MoveE14,b03043fd-b519-11ea-b6ad-00012998f5a0
MoveE15,f3f9a668-b519-11ea-b6ad-00012998f5a0
MoveE16,5ec0f64a-b51a-11ea-b6ad-00012998f5a0
MoveE21,37401585-b51b-11ea-b6ad-00012998f5a0
MoveE22,a4846723-b51b-11ea-b6ad-00012998f5a0
Init,adcb7a04-b525-11ea-b6ad-00012998f5a0
7,MiR_R1763,10.85.199.55,Basic ZGlzdHJpYnV0b3I6NjJmMmYwZjFlZmYxMGQzMTUyYzk1ZjZmMDU5NjU3NmU0ODJiYjhlNDQ4MDY0MzNmNGNmOTI5NzkyODM0YjAxNA== 7,MiR_R1763,192.168.12.20,Basic ZGlzdHJpYnV0b3I6NjJmMmYwZjFlZmYxMGQzMTUyYzk1ZjZmMDU5NjU3NmU0ODJiYjhlNDQ4MDY0MzNmNGNmOTI5NzkyODM0YjAxNA==
8,MiR_R1764,10.85.199.56,Basic ZGlzdHJpYnV0b3I6NjJmMmYwZjFlZmYxMGQzMTUyYzk1ZjZmMDU5NjU3NmU0ODJiYjhlNDQ4MDY0MzNmNGNmOTI5NzkyODM0YjAxNA== 8,MiR_R1764,10.85.199.56,Basic ZGlzdHJpYnV0b3I6NjJmMmYwZjFlZmYxMGQzMTUyYzk1ZjZmMDU5NjU3NmU0ODJiYjhlNDQ4MDY0MzNmNGNmOTI5NzkyODM0YjAxNA==
9,MiR_R1767,10.85.199.57,Basic ZGlzdHJpYnV0b3I6NjJmMmYwZjFlZmYxMGQzMTUyYzk1ZjZmMDU5NjU3NmU0ODJiYjhlNDQ4MDY0MzNmNGNmOTI5NzkyODM0YjAxNA== 9,MiR_R1767,10.85.199.57,Basic ZGlzdHJpYnV0b3I6NjJmMmYwZjFlZmYxMGQzMTUyYzk1ZjZmMDU5NjU3NmU0ODJiYjhlNDQ4MDY0MzNmNGNmOTI5NzkyODM0YjAxNA==
10,MiR_R1768,10.85.199.58,Basic ZGlzdHJpYnV0b3I6NjJmMmYwZjFlZmYxMGQzMTUyYzk1ZjZmMDU5NjU3NmU0ODJiYjhlNDQ4MDY0MzNmNGNmOTI5NzkyODM0YjAxNA==
\ No newline at end of file \ No newline at end of file
10,MiR_R1768,10.85.199.58,Basic ZGlzdHJpYnV0b3I6NjJmMmYwZjFlZmYxMGQzMTUyYzk1ZjZmMDU5NjU3NmU0ODJiYjhlNDQ4MDY0MzNmNGNmOTI5NzkyODM0YjAxNA==

\ No newline at end of file \ No newline at end of file
[2020-06-29 09:22:53,292][1]INFO =====程序开始=====
[2020-06-29 09:22:58,623][1]DEBUG HttpGet URL: http://192.168.12.20/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-29 09:22:58,623][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-29 09:23:03,693][1]DEBUG HttpGet URL: http://10.85.199.56/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-29 09:23:03,693][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-29 09:23:08,763][1]DEBUG HttpGet URL: http://10.85.199.57/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-29 09:23:08,764][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-29 09:23:13,832][1]DEBUG HttpGet URL: http://10.85.199.58/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-29 09:23:13,833][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-29 09:23:13,837][1]INFO Server Start
[2020-06-29 09:23:14,590][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 81
[2020-06-29 09:23:16,415][7]INFO Ping 192.168.12.20 请求没有响应
[2020-06-29 09:23:18,415][7]INFO Ping 10.85.199.56 请求没有响应
[2020-06-29 09:23:20,415][7]INFO Ping 10.85.199.57 请求没有响应
[2020-06-29 09:23:22,415][7]INFO Ping 10.85.199.58 请求没有响应
[2020-06-29 09:23:25,415][7]INFO Ping 192.168.12.20 请求没有响应
[2020-06-29 09:23:27,415][7]INFO Ping 10.85.199.56 请求没有响应
[2020-06-29 09:23:29,415][7]INFO Ping 10.85.199.57 请求没有响应
[2020-06-29 09:23:31,415][7]INFO Ping 10.85.199.58 请求没有响应
[2020-06-29 09:23:34,414][7]INFO Ping 192.168.12.20 请求没有响应
[2020-06-29 09:23:36,414][7]INFO Ping 10.85.199.56 请求没有响应
[2020-06-29 09:23:38,415][7]INFO Ping 10.85.199.57 请求没有响应
[2020-06-29 09:23:40,415][7]INFO Ping 10.85.199.58 请求没有响应
[2020-06-29 09:23:43,415][7]INFO Ping 192.168.12.20 请求没有响应
[2020-06-29 09:23:45,415][7]INFO Ping 10.85.199.56 请求没有响应
[2020-06-29 09:23:47,414][7]INFO Ping 10.85.199.57 请求没有响应
[2020-06-29 09:23:49,414][7]INFO Ping 10.85.199.58 请求没有响应
[2020-06-29 09:23:52,415][7]INFO Ping 192.168.12.20 请求没有响应
[2020-06-29 09:23:54,415][7]INFO Ping 10.85.199.56 请求没有响应
[2020-06-29 09:23:56,415][7]INFO Ping 10.85.199.57 请求没有响应
[2020-06-29 09:23:58,414][7]INFO Ping 10.85.199.58 请求没有响应
[2020-06-29 09:24:01,415][7]INFO Ping 192.168.12.20 请求没有响应
[2020-06-29 09:24:03,415][7]INFO Ping 10.85.199.56 请求没有响应
[2020-06-29 09:24:05,414][7]INFO Ping 10.85.199.57 请求没有响应
[2020-06-29 09:24:07,415][7]INFO Ping 10.85.199.58 请求没有响应
[2020-06-29 09:24:10,414][7]INFO Ping 192.168.12.20 请求没有响应
[2020-06-29 09:24:12,416][7]INFO Ping 10.85.199.56 请求没有响应
[2020-06-29 09:24:14,415][7]INFO Ping 10.85.199.57 请求没有响应
[2020-06-29 09:24:16,415][7]INFO Ping 10.85.199.58 请求没有响应
[2020-06-29 11:04:47,487][1]INFO =====程序开始=====
[2020-06-29 11:04:52,904][1]DEBUG HttpGet URL: http://192.168.12.20/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-29 11:04:52,904][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-29 11:04:57,976][1]DEBUG HttpGet URL: http://10.85.199.56/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-29 11:04:57,976][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-29 11:05:03,051][1]DEBUG HttpGet URL: http://10.85.199.57/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-29 11:05:03,051][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-29 11:05:08,121][1]DEBUG HttpGet URL: http://10.85.199.58/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-29 11:05:08,121][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-29 11:05:08,136][1]INFO Server Start
[2020-06-29 11:05:09,876][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 81
[2020-06-29 11:05:10,915][7]INFO Ping 192.168.12.20 请求没有响应
[2020-06-29 11:05:12,915][7]INFO Ping 10.85.199.56 请求没有响应
[2020-06-29 11:05:14,915][7]INFO Ping 10.85.199.57 请求没有响应
[2020-06-29 11:05:16,915][7]INFO Ping 10.85.199.58 请求没有响应
[2020-06-29 11:05:19,915][7]INFO Ping 192.168.12.20 请求没有响应
[2020-06-29 11:05:21,916][7]INFO Ping 10.85.199.56 请求没有响应
[2020-06-29 11:05:23,916][7]INFO Ping 10.85.199.57 请求没有响应
[2020-06-29 11:05:25,916][7]INFO Ping 10.85.199.58 请求没有响应
[2020-06-29 11:05:28,915][7]INFO Ping 192.168.12.20 请求没有响应
[2020-06-29 11:05:30,915][7]INFO Ping 10.85.199.56 请求没有响应
[2020-06-29 11:05:32,916][7]INFO Ping 10.85.199.57 请求没有响应
[2020-06-29 11:05:34,916][7]INFO Ping 10.85.199.58 请求没有响应
[2020-06-17 17:01:26,538][1]INFO =====程序开始=====
[2020-06-17 17:01:26,570][1]INFO Server Start
[2020-06-17 17:01:35,111][5]INFO 服务端关闭连接,退出阻塞Accept
[2020-06-17 17:01:35,156][1]INFO Server Stop
[2020-06-17 17:01:35,156][1]INFO =====程序结束=====
[2020-06-17 17:07:39,662][1]INFO =====程序开始=====
[2020-06-17 17:07:39,697][1]INFO Server Start
[2020-06-17 17:07:55,781][5]INFO 服务端关闭连接,退出阻塞Accept
[2020-06-17 17:07:55,827][1]INFO Server Stop
[2020-06-17 17:07:57,276][1]INFO =====程序结束=====
[2020-06-18 09:07:35,336][1]INFO =====程序开始=====
[2020-06-18 09:07:35,413][1]INFO Server Start
[2020-06-18 09:07:37,717][3]INFO Ping 192.168.0.1 请求没有响应
[2020-06-18 09:07:40,207][3]INFO Ping 192.168.0.2 请求没有响应
[2020-06-18 09:07:42,707][3]INFO Ping 192.168.0.3 请求没有响应
[2020-06-18 09:07:45,207][3]INFO Ping 192.168.0.4 请求没有响应
[2020-06-18 09:07:47,707][3]INFO Ping 192.168.0.1 请求没有响应
[2020-06-18 09:07:50,207][3]INFO Ping 192.168.0.2 请求没有响应
[2020-06-18 09:07:51,531][5]INFO 服务端关闭连接,退出阻塞Accept
[2020-06-18 09:07:51,535][1]INFO Server Stop
[2020-06-18 09:07:51,535][1]INFO =====程序结束=====
[2020-06-18 09:07:52,707][3]INFO Ping 192.168.0.3 请求没有响应
[2020-06-18 09:07:55,207][3]INFO Ping 192.168.0.4 请求没有响应
[2020-06-18 10:29:57,766][1]INFO =====程序开始=====
[2020-06-18 10:29:57,828][1]INFO Server Start
[2020-06-18 10:30:00,709][3]INFO Ping 192.168.0.1 请求没有响应
[2020-06-18 10:30:02,916][3]INFO Ping 192.168.0.2 请求没有响应
[2020-06-18 10:30:06,291][3]INFO Ping 192.168.0.3 请求没有响应
[2020-06-18 10:30:09,399][3]INFO Ping 192.168.0.4 请求没有响应
[2020-06-18 10:30:13,717][3]INFO Ping 192.168.0.1 请求没有响应
[2020-06-18 10:30:16,233][3]INFO Ping 192.168.0.2 请求没有响应
[2020-06-18 10:30:21,614][3]INFO Ping 192.168.0.3 请求没有响应
[2020-06-18 10:30:23,206][3]INFO Ping 192.168.0.4 请求没有响应
[2020-06-18 10:30:26,207][3]INFO Ping 192.168.0.1 请求没有响应
[2020-06-18 10:30:28,207][3]INFO Ping 192.168.0.2 请求没有响应
[2020-06-18 10:30:30,207][3]INFO Ping 192.168.0.3 请求没有响应
[2020-06-18 10:30:32,207][3]INFO Ping 192.168.0.4 请求没有响应
[2020-06-18 10:30:35,207][3]INFO Ping 192.168.0.1 请求没有响应
[2020-06-18 10:30:37,207][3]INFO Ping 192.168.0.2 请求没有响应
[2020-06-18 10:30:39,206][3]INFO Ping 192.168.0.3 请求没有响应
[2020-06-18 10:30:40,757][5]INFO 服务端关闭连接,退出阻塞Accept
[2020-06-18 10:30:40,801][1]INFO Server Stop
[2020-06-18 10:30:40,801][1]INFO =====程序结束=====
[2020-06-18 10:30:41,206][3]INFO Ping 192.168.0.4 请求没有响应
[2020-06-18 10:31:10,817][1]INFO =====程序开始=====
[2020-06-18 10:31:10,870][1]INFO Server Start
[2020-06-18 10:31:14,115][3]INFO Ping 192.168.0.1 请求没有响应
[2020-06-18 10:31:15,868][3]INFO Ping 192.168.0.2 请求没有响应
[2020-06-18 10:31:21,686][3]INFO Ping 192.168.0.3 请求没有响应
[2020-06-18 10:31:27,474][3]INFO Ping 192.168.0.4 请求没有响应
[2020-06-18 10:31:30,207][3]INFO Ping 192.168.0.1 请求没有响应
[2020-06-18 10:31:32,207][3]INFO Ping 192.168.0.2 请求没有响应
[2020-06-18 10:31:34,206][3]INFO Ping 192.168.0.3 请求没有响应
[2020-06-18 10:31:35,717][5]INFO 服务端关闭连接,退出阻塞Accept
[2020-06-18 10:31:35,761][1]INFO Server Stop
[2020-06-18 10:31:35,761][1]INFO =====程序结束=====
[2020-06-18 10:31:36,207][3]INFO Ping 192.168.0.4 请求没有响应
[2020-06-24 15:50:36,271][1]INFO =====程序开始=====
[2020-06-24 15:50:41,870][1]DEBUG HttpGet URL: http://192.168.12.20/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-24 15:50:41,871][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-24 15:50:46,943][1]DEBUG HttpGet URL: http://10.85.199.56/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-24 15:50:46,943][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-24 15:50:52,015][1]DEBUG HttpGet URL: http://10.85.199.57/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-24 15:50:52,015][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-24 15:50:57,088][1]DEBUG HttpGet URL: http://10.85.199.58/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-24 15:50:57,088][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-24 15:50:57,102][1]INFO Server Start
[2020-06-24 15:50:58,155][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 81
[2020-06-24 15:51:00,061][7]INFO Ping 192.168.12.20 请求没有响应
[2020-06-24 15:51:02,062][7]INFO Ping 10.85.199.56 请求没有响应
[2020-06-24 15:51:04,061][7]INFO Ping 10.85.199.57 请求没有响应
[2020-06-24 15:51:06,062][7]INFO Ping 10.85.199.58 请求没有响应
...@@ -21,3 +21,15 @@ D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine ...@@ -21,3 +21,15 @@ D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine
D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Debug\AGVControl-ProductionLine.exe D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Debug\AGVControl-ProductionLine.exe
D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Debug\AGVControl-ProductionLine.pdb D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Debug\AGVControl-ProductionLine.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Debug\AGVControl-ProductionLine.csprojAssemblyReference.cache D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Debug\AGVControl-ProductionLine.csprojAssemblyReference.cache
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\bin\Debug\AGVControl-ProductionLine.exe.config
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\bin\Debug\AGVControl-ProductionLine.exe
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\bin\Debug\AGVControl-ProductionLine.pdb
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\bin\Debug\RestSharp.dll
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\bin\Debug\RestSharp.xml
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Debug\AGVControl-ProductionLine.csprojAssemblyReference.cache
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Debug\AGVControl.FrmMain.resources
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Debug\AGVControl.Properties.Resources.resources
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Debug\AGVControl-ProductionLine.csproj.GenerateResource.cache
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Debug\AGVControl-ProductionLine.csproj.CopyComplete
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Debug\AGVControl-ProductionLine.exe
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Debug\AGVControl-ProductionLine.pdb
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Release\AGVControl-ProductionLine.csprojAssemblyReference.cache
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Release\AGVControl.FrmMain.resources
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Release\AGVControl.Properties.Resources.resources
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\obj\Release\AGVControl-ProductionLine.csproj.GenerateResource.cache
...@@ -13,3 +13,9 @@ D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine ...@@ -13,3 +13,9 @@ D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine
D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\bin\Debug\AsaPL.AgvClient.pdb D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\bin\Debug\AsaPL.AgvClient.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\obj\Debug\AsaPL.AgvClient.dll D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\obj\Debug\AsaPL.AgvClient.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\obj\Debug\AsaPL.AgvClient.pdb D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\obj\Debug\AsaPL.AgvClient.pdb
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\bin\Debug\AsaPL.AgvClient.dll
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\bin\Debug\AsaPL.AgvClient.pdb
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\obj\Debug\AgvClient.csprojAssemblyReference.cache
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\obj\Debug\AgvClient.csproj.CopyComplete
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\obj\Debug\AsaPL.AgvClient.dll
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\obj\Debug\AsaPL.AgvClient.pdb
文件属性发生变化
...@@ -29,46 +29,164 @@ ...@@ -29,46 +29,164 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.comboBox1 = new System.Windows.Forms.ComboBox(); this.comboBox1 = new System.Windows.Forms.ComboBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// button1 // button1
// //
this.button1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.button1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(189, 12); this.button1.Location = new System.Drawing.Point(316, 54);
this.button1.Margin = new System.Windows.Forms.Padding(4);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(86, 27); this.button1.Size = new System.Drawing.Size(115, 72);
this.button1.TabIndex = 0; this.button1.TabIndex = 0;
this.button1.Text = "button1"; this.button1.Text = "改变状态";
this.button1.UseVisualStyleBackColor = true; this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click); this.button1.Click += new System.EventHandler(this.button1_Click);
// //
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(240, 91);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(100, 21);
this.textBox1.TabIndex = 1;
//
// comboBox1 // comboBox1
// //
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.comboBox1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.comboBox1.FormattingEnabled = true; this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(12, 12); this.comboBox1.Location = new System.Drawing.Point(81, 94);
this.comboBox1.Margin = new System.Windows.Forms.Padding(4);
this.comboBox1.Name = "comboBox1"; this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(171, 27); this.comboBox1.Size = new System.Drawing.Size(227, 32);
this.comboBox1.TabIndex = 2; this.comboBox1.TabIndex = 2;
// //
// comboBox2
//
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"A1",
"A2",
"A3",
"A4",
"A5",
"A6",
"B1",
"B2",
"B3",
"B4",
"B5",
"B6",
"C1",
"C2",
"C3",
"C4",
"C5",
"C6",
"C7",
"C8",
"D1",
"D2",
"D3",
"D4",
"E1",
"E2",
"E3",
"E4",
"E5",
"E6",
"E7",
"E8",
"E9",
"E10",
"E11",
"E12",
"E13",
"E14",
"E15",
"E16",
"E21",
"E22",
"F1",
"F2",
"F3",
"F4",
"G1",
"G2",
"G3",
"G4",
"G5",
"G6",
"G7",
"G8",
"G9",
"G10",
"G11",
"G12",
"G13",
"G14",
"G15",
"G16",
"G21",
"G22",
"H1",
"H2",
"H3",
"H4"});
this.comboBox2.Location = new System.Drawing.Point(81, 54);
this.comboBox2.Margin = new System.Windows.Forms.Padding(4);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(227, 32);
this.comboBox2.TabIndex = 3;
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(208, 22);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(100, 25);
this.textBox1.TabIndex = 4;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(143, 22);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(39, 15);
this.label1.TabIndex = 5;
this.label1.Text = "RFID";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(8, 65);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(37, 15);
this.label2.TabIndex = 6;
this.label2.Text = "节点";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(8, 111);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(37, 15);
this.label3.TabIndex = 7;
this.label3.Text = "状态";
//
// Form1 // Form1
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450); this.ClientSize = new System.Drawing.Size(470, 172);
this.Controls.Add(this.comboBox1); this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox1); this.Controls.Add(this.textBox1);
this.Controls.Add(this.comboBox2);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.button1); this.Controls.Add(this.button1);
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "Form1"; this.Name = "Form1";
this.Text = "Form1"; this.Text = "Form1";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
...@@ -81,8 +199,12 @@ ...@@ -81,8 +199,12 @@
#endregion #endregion
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.ComboBox comboBox1; private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
} }
} }
...@@ -24,7 +24,7 @@ namespace AgvClientTest ...@@ -24,7 +24,7 @@ namespace AgvClientTest
for (int i = 0; i < 12; i++) for (int i = 0; i < 12; i++)
comboBox1.Items.Add((AsaPL.ClientAction)i); comboBox1.Items.Add((AsaPL.ClientAction)i);
comboBox1.SelectedIndex = 0; comboBox1.SelectedIndex = 0;
comboBox2.SelectedIndex = 0;
client = new AsaPL.AgvClient("127.0.0.1"); client = new AsaPL.AgvClient("127.0.0.1");
client.SetStatus("E1", "C6", AsaPL.ClientAction.None); client.SetStatus("E1", "C6", AsaPL.ClientAction.None);
client.Connect(); client.Connect();
...@@ -37,7 +37,7 @@ namespace AgvClientTest ...@@ -37,7 +37,7 @@ namespace AgvClientTest
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
{ {
client.SetStatus("E1", "C6", (AsaPL.ClientAction)comboBox1.SelectedIndex); client.SetStatus(comboBox2.SelectedItem.ToString(), textBox1.Text, (AsaPL.ClientAction)comboBox1.SelectedIndex);
} }
} }
} }
[2020-06-17 14:18:25,695][1]INFO SetStatus Name=E1, Action=NeedC, Level=Low [2020-06-29 15:11:32,684][1]INFO SetStatus Name=E1, Action=None, Level=Low
[2020-06-17 14:18:25,726][1]INFO Connect [2020-06-29 15:11:32,695][1]INFO Connect
[2020-06-17 14:18:27,766][3]INFO 127.0.0.1:12001 服务器没有响应 [2020-06-29 15:11:32,696][3]INFO Connect 127.0.0.1:12001
[2020-06-17 14:18:27,766][3]INFO Server connection failed 1 times [2020-06-29 15:11:34,722][3]ERROR Open()
[2020-06-17 14:18:30,785][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:30,785][3]INFO Server connection failed 2 times
[2020-06-17 14:18:33,797][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:33,797][3]INFO Server connection failed 3 times
[2020-06-17 14:18:36,808][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:36,808][3]INFO Server connection failed 4 times
[2020-06-17 14:18:39,819][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:39,820][3]INFO Server connection failed 5 times
[2020-06-17 14:18:42,831][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:42,831][3]INFO Server connection failed 6 times
[2020-06-17 14:18:45,844][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:45,844][3]INFO Server connection failed 7 times
[2020-06-17 14:18:48,857][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:48,857][3]INFO Server connection failed 8 times
[2020-06-17 14:18:51,870][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:51,870][3]INFO Server connection failed 9 times
[2020-06-17 14:18:54,886][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:54,886][3]INFO Server connection failed 10 times
[2020-06-17 14:18:57,898][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:57,898][3]INFO Server connection failed 11 times
[2020-06-17 14:19:00,908][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:00,908][3]INFO Server connection failed 12 times
[2020-06-17 14:19:03,919][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:03,919][3]INFO Server connection failed 13 times
[2020-06-17 14:19:06,930][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:06,930][3]INFO Server connection failed 14 times
[2020-06-17 14:19:09,941][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:09,941][3]INFO Server connection failed 15 times
[2020-06-17 14:19:12,953][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:12,953][3]INFO Server connection failed 16 times
[2020-06-17 14:19:15,965][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:15,965][3]INFO Server connection failed 17 times
[2020-06-17 14:19:18,977][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:18,977][3]INFO Server connection failed 18 times
[2020-06-17 14:19:21,989][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:21,989][3]INFO Server connection failed 19 times
[2020-06-17 14:19:25,002][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:25,002][3]INFO Server connection failed 20 times
[2020-06-17 14:19:28,013][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:28,013][3]INFO Server connection failed 21 times
[2020-06-17 14:19:31,026][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:31,026][3]INFO Server connection failed 22 times
[2020-06-17 14:19:34,035][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:34,035][3]INFO Server connection failed 23 times
[2020-06-17 14:19:37,041][3]INFO Server connection successful
[2020-06-17 14:19:37,850][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:40,952][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:44,054][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:47,156][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:50,258][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:53,360][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:56,462][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:59,564][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:02,666][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:05,768][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:08,869][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:11,971][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:15,073][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:18,175][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:21,277][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:24,389][5]ERROR Send()
System.Net.Sockets.SocketException (0x80004005): 你的主机中的软件中止了一个已建立的连接。
在 System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
在 System.Net.Sockets.Socket.Send(Byte[] buffer)
在 Asa.AgvClient.Send(Byte[] buff) 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 335
[2020-06-17 14:20:27,095][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:27,095][3]INFO Server connection failed 1 times
[2020-06-17 14:20:30,106][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:30,106][3]INFO Server connection failed 2 times
[2020-06-17 14:20:33,117][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:33,117][3]INFO Server connection failed 3 times
[2020-06-17 14:20:36,128][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:36,128][3]INFO Server connection failed 4 times
[2020-06-17 14:20:39,139][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:39,139][3]INFO Server connection failed 5 times
[2020-06-17 14:20:42,152][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:42,152][3]INFO Server connection failed 6 times
[2020-06-17 14:20:45,163][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:45,163][3]INFO Server connection failed 7 times
[2020-06-17 14:20:48,174][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:48,174][3]INFO Server connection failed 8 times
[2020-06-17 14:20:51,185][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:51,185][3]INFO Server connection failed 9 times
[2020-06-17 14:20:54,198][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:54,198][3]INFO Server connection failed 10 times
[2020-06-17 14:20:57,207][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:57,207][3]INFO Server connection failed 11 times
[2020-06-17 14:21:00,216][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:21:00,216][3]INFO Server connection failed 12 times
[2020-06-17 14:21:01,045][1]INFO Close
[2020-06-17 14:27:26,246][1]INFO SetStatus Name=E1, Action=NeedC, Level=Low
[2020-06-17 14:29:48,177][1]INFO SetStatus Name=E1, Action=None, Level=Low
[2020-06-17 14:30:09,516][1]INFO SetStatus Name=E1, Action=None, Level=Low
[2020-06-17 14:30:09,526][1]INFO Connect
[2020-06-17 14:30:09,550][3]INFO Connect 127.0.0.1:12001
[2020-06-17 14:30:09,567][3]INFO Connect OK
[2020-06-17 14:30:09,567][3]INFO Server connection successful
[2020-06-17 14:30:12,655][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:30:15,758][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:30:18,860][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:30:21,962][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:30:22,266][1]INFO SetStatus Name=E1, Action=NeedD, Level=Low
[2020-06-17 14:30:25,064][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:30:28,165][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:30:31,267][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:30:34,369][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:30:37,471][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:30:39,929][1]INFO SetStatus Name=E1, Action=NeedEnter, Level=Low
[2020-06-17 14:30:40,573][5]DEBUG Send: AD 45 01 43 06 03 00 00 00 00 00 DA
[2020-06-17 14:30:43,675][5]DEBUG Send: AD 45 01 43 06 03 00 00 00 00 00 DA
[2020-06-17 14:30:44,739][1]INFO SetStatus Name=E1, Action=FinishEnter, Level=Low
[2020-06-17 14:30:46,777][5]DEBUG Send: AD 45 01 43 06 08 00 00 00 00 00 DA
[2020-06-17 14:30:49,879][5]DEBUG Send: AD 45 01 43 06 08 00 00 00 00 00 DA
[2020-06-17 14:30:52,981][5]DEBUG Send: AD 45 01 43 06 08 00 00 00 00 00 DA
[2020-06-17 14:30:53,437][1]INFO SetStatus Name=E1, Action=NeedC, Level=Low
[2020-06-17 14:30:56,082][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:30:59,184][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:30:59,499][1]INFO Close
[2020-06-17 14:48:12,949][1]INFO SetStatus Name=E1, Action=None, Level=Low
[2020-06-17 14:48:12,961][3]INFO Connect 127.0.0.1:12001
[2020-06-17 14:48:12,961][1]INFO Connect
[2020-06-17 14:48:14,995][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001 System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP) 在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port) 在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 Asa.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212 在 AsaPL.AgvClient.Open() 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-17 14:48:15,017][3]INFO Server connection failed 1 times [2020-06-29 15:11:34,749][3]INFO Server connection failed 1 times
[2020-06-17 14:48:16,018][3]INFO Connect 127.0.0.1:12001 [2020-06-29 15:11:35,750][3]INFO Connect 127.0.0.1:12001
[2020-06-17 14:48:18,033][3]ERROR Open() [2020-06-29 15:11:37,797][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001 System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP) 在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port) 在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 Asa.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212 在 AsaPL.AgvClient.Open() 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-17 14:48:18,034][3]INFO Server connection failed 2 times [2020-06-29 15:11:37,797][3]INFO Server connection failed 2 times
[2020-06-17 14:48:19,035][3]INFO Connect 127.0.0.1:12001 [2020-06-29 15:11:38,798][3]INFO Connect 127.0.0.1:12001
[2020-06-17 14:48:21,047][3]ERROR Open() [2020-06-29 15:11:40,831][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001 System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP) 在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port) 在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 Asa.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212 在 AsaPL.AgvClient.Open() 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-17 14:48:21,048][3]INFO Server connection failed 3 times [2020-06-29 15:11:40,831][3]INFO Server connection failed 3 times
[2020-06-17 14:48:22,049][3]INFO Connect 127.0.0.1:12001 [2020-06-29 15:11:41,832][3]INFO Connect 127.0.0.1:12001
[2020-06-17 14:48:22,050][3]INFO Connect OK [2020-06-29 15:11:43,837][3]ERROR Open()
[2020-06-17 14:48:22,050][3]INFO Server connection successful
[2020-06-17 14:48:24,153][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:48:26,256][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:48:28,358][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:48:30,460][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:48:31,502][1]INFO SetStatus Name=E1, Action=NeedD, Level=Low
[2020-06-17 14:48:32,562][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:48:34,664][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:48:35,227][1]INFO SetStatus Name=E1, Action=ReadyEnter, Level=Low
[2020-06-17 14:48:36,766][5]DEBUG Send: AD 45 01 43 06 06 00 00 00 00 00 DA
[2020-06-17 14:48:38,868][5]DEBUG Send: AD 45 01 43 06 06 00 00 00 00 00 DA
[2020-06-17 14:48:38,994][1]INFO SetStatus Name=E1, Action=None, Level=Low
[2020-06-17 14:48:40,969][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:48:42,098][1]INFO Close
[2020-06-17 15:48:08,449][1]INFO SetStatus Name=E1, Action=None, Level=Low
[2020-06-17 15:48:08,460][1]INFO Connect
[2020-06-17 15:48:08,466][3]INFO Connect 127.0.0.1:12001
[2020-06-17 15:48:10,521][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001 System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP) 在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port) 在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 Asa.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212 在 AsaPL.AgvClient.Open() 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-17 15:48:10,585][3]INFO Server connection failed 1 times [2020-06-29 15:11:43,837][3]INFO Server connection failed 4 times
[2020-06-17 15:48:11,586][3]INFO Connect 127.0.0.1:12001 [2020-06-29 15:11:44,838][3]INFO Connect 127.0.0.1:12001
[2020-06-17 15:48:13,594][3]ERROR Open() [2020-06-29 15:11:46,842][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001 System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP) 在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port) 在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 Asa.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212 在 AsaPL.AgvClient.Open() 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-17 15:48:13,594][3]INFO Server connection failed 2 times [2020-06-29 15:11:46,842][3]INFO Server connection failed 5 times
[2020-06-17 15:48:14,429][1]INFO Close [2020-06-29 15:11:47,843][3]INFO Connect 127.0.0.1:12001
[2020-06-29 15:11:49,847][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-29 15:11:49,847][3]INFO Server connection failed 6 times
[2020-06-29 15:11:50,848][3]INFO Connect 127.0.0.1:12001
[2020-06-29 15:11:52,853][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-29 15:11:52,853][3]INFO Server connection failed 7 times
[2020-06-29 15:11:53,854][3]INFO Connect 127.0.0.1:12001
[2020-06-29 15:11:55,858][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-29 15:11:55,858][3]INFO Server connection failed 8 times
[2020-06-29 15:11:56,859][3]INFO Connect 127.0.0.1:12001
[2020-06-29 15:11:58,863][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-29 15:11:58,863][3]INFO Server connection failed 9 times
[2020-06-29 15:11:59,864][3]INFO Connect 127.0.0.1:12001
[2020-06-29 15:12:01,744][1]INFO Close
[2020-06-29 15:12:01,745][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 在一个非套接字上尝试了一个操作。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-29 15:12:01,745][3]INFO Server connection failed 10 times
[2020-06-17 14:18:25,695][1]INFO SetStatus Name=E1, Action=NeedC, Level=Low
[2020-06-17 14:18:25,726][1]INFO Connect
[2020-06-17 14:18:27,766][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:27,766][3]INFO Server connection failed 1 times
[2020-06-17 14:18:30,785][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:30,785][3]INFO Server connection failed 2 times
[2020-06-17 14:18:33,797][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:33,797][3]INFO Server connection failed 3 times
[2020-06-17 14:18:36,808][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:36,808][3]INFO Server connection failed 4 times
[2020-06-17 14:18:39,819][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:39,820][3]INFO Server connection failed 5 times
[2020-06-17 14:18:42,831][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:42,831][3]INFO Server connection failed 6 times
[2020-06-17 14:18:45,844][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:45,844][3]INFO Server connection failed 7 times
[2020-06-17 14:18:48,857][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:48,857][3]INFO Server connection failed 8 times
[2020-06-17 14:18:51,870][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:51,870][3]INFO Server connection failed 9 times
[2020-06-17 14:18:54,886][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:54,886][3]INFO Server connection failed 10 times
[2020-06-17 14:18:57,898][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:18:57,898][3]INFO Server connection failed 11 times
[2020-06-17 14:19:00,908][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:00,908][3]INFO Server connection failed 12 times
[2020-06-17 14:19:03,919][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:03,919][3]INFO Server connection failed 13 times
[2020-06-17 14:19:06,930][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:06,930][3]INFO Server connection failed 14 times
[2020-06-17 14:19:09,941][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:09,941][3]INFO Server connection failed 15 times
[2020-06-17 14:19:12,953][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:12,953][3]INFO Server connection failed 16 times
[2020-06-17 14:19:15,965][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:15,965][3]INFO Server connection failed 17 times
[2020-06-17 14:19:18,977][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:18,977][3]INFO Server connection failed 18 times
[2020-06-17 14:19:21,989][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:21,989][3]INFO Server connection failed 19 times
[2020-06-17 14:19:25,002][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:25,002][3]INFO Server connection failed 20 times
[2020-06-17 14:19:28,013][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:28,013][3]INFO Server connection failed 21 times
[2020-06-17 14:19:31,026][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:31,026][3]INFO Server connection failed 22 times
[2020-06-17 14:19:34,035][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:19:34,035][3]INFO Server connection failed 23 times
[2020-06-17 14:19:37,041][3]INFO Server connection successful
[2020-06-17 14:19:37,850][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:40,952][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:44,054][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:47,156][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:50,258][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:53,360][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:56,462][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:19:59,564][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:02,666][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:05,768][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:08,869][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:11,971][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:15,073][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:18,175][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:21,277][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:20:24,389][5]ERROR Send()
System.Net.Sockets.SocketException (0x80004005): 你的主机中的软件中止了一个已建立的连接。
在 System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
在 System.Net.Sockets.Socket.Send(Byte[] buffer)
在 Asa.AgvClient.Send(Byte[] buff) 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 335
[2020-06-17 14:20:27,095][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:27,095][3]INFO Server connection failed 1 times
[2020-06-17 14:20:30,106][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:30,106][3]INFO Server connection failed 2 times
[2020-06-17 14:20:33,117][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:33,117][3]INFO Server connection failed 3 times
[2020-06-17 14:20:36,128][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:36,128][3]INFO Server connection failed 4 times
[2020-06-17 14:20:39,139][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:39,139][3]INFO Server connection failed 5 times
[2020-06-17 14:20:42,152][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:42,152][3]INFO Server connection failed 6 times
[2020-06-17 14:20:45,163][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:45,163][3]INFO Server connection failed 7 times
[2020-06-17 14:20:48,174][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:48,174][3]INFO Server connection failed 8 times
[2020-06-17 14:20:51,185][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:51,185][3]INFO Server connection failed 9 times
[2020-06-17 14:20:54,198][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:54,198][3]INFO Server connection failed 10 times
[2020-06-17 14:20:57,207][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:20:57,207][3]INFO Server connection failed 11 times
[2020-06-17 14:21:00,216][3]INFO 127.0.0.1:12001 服务器没有响应
[2020-06-17 14:21:00,216][3]INFO Server connection failed 12 times
[2020-06-17 14:21:01,045][1]INFO Close
[2020-06-17 14:27:26,246][1]INFO SetStatus Name=E1, Action=NeedC, Level=Low
[2020-06-17 14:29:48,177][1]INFO SetStatus Name=E1, Action=None, Level=Low
[2020-06-17 14:30:09,516][1]INFO SetStatus Name=E1, Action=None, Level=Low
[2020-06-17 14:30:09,526][1]INFO Connect
[2020-06-17 14:30:09,550][3]INFO Connect 127.0.0.1:12001
[2020-06-17 14:30:09,567][3]INFO Connect OK
[2020-06-17 14:30:09,567][3]INFO Server connection successful
[2020-06-17 14:30:12,655][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:30:15,758][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:30:18,860][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:30:21,962][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:30:22,266][1]INFO SetStatus Name=E1, Action=NeedD, Level=Low
[2020-06-17 14:30:25,064][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:30:28,165][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:30:31,267][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:30:34,369][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:30:37,471][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:30:39,929][1]INFO SetStatus Name=E1, Action=NeedEnter, Level=Low
[2020-06-17 14:30:40,573][5]DEBUG Send: AD 45 01 43 06 03 00 00 00 00 00 DA
[2020-06-17 14:30:43,675][5]DEBUG Send: AD 45 01 43 06 03 00 00 00 00 00 DA
[2020-06-17 14:30:44,739][1]INFO SetStatus Name=E1, Action=FinishEnter, Level=Low
[2020-06-17 14:30:46,777][5]DEBUG Send: AD 45 01 43 06 08 00 00 00 00 00 DA
[2020-06-17 14:30:49,879][5]DEBUG Send: AD 45 01 43 06 08 00 00 00 00 00 DA
[2020-06-17 14:30:52,981][5]DEBUG Send: AD 45 01 43 06 08 00 00 00 00 00 DA
[2020-06-17 14:30:53,437][1]INFO SetStatus Name=E1, Action=NeedC, Level=Low
[2020-06-17 14:30:56,082][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:30:59,184][5]DEBUG Send: AD 45 01 43 06 02 00 00 00 00 00 DA
[2020-06-17 14:30:59,499][1]INFO Close
[2020-06-17 14:48:12,949][1]INFO SetStatus Name=E1, Action=None, Level=Low
[2020-06-17 14:48:12,961][3]INFO Connect 127.0.0.1:12001
[2020-06-17 14:48:12,961][1]INFO Connect
[2020-06-17 14:48:14,995][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 Asa.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-17 14:48:15,017][3]INFO Server connection failed 1 times
[2020-06-17 14:48:16,018][3]INFO Connect 127.0.0.1:12001
[2020-06-17 14:48:18,033][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 Asa.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-17 14:48:18,034][3]INFO Server connection failed 2 times
[2020-06-17 14:48:19,035][3]INFO Connect 127.0.0.1:12001
[2020-06-17 14:48:21,047][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 Asa.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-17 14:48:21,048][3]INFO Server connection failed 3 times
[2020-06-17 14:48:22,049][3]INFO Connect 127.0.0.1:12001
[2020-06-17 14:48:22,050][3]INFO Connect OK
[2020-06-17 14:48:22,050][3]INFO Server connection successful
[2020-06-17 14:48:24,153][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:48:26,256][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:48:28,358][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:48:30,460][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:48:31,502][1]INFO SetStatus Name=E1, Action=NeedD, Level=Low
[2020-06-17 14:48:32,562][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:48:34,664][5]DEBUG Send: AD 45 01 43 06 01 00 00 00 00 00 DA
[2020-06-17 14:48:35,227][1]INFO SetStatus Name=E1, Action=ReadyEnter, Level=Low
[2020-06-17 14:48:36,766][5]DEBUG Send: AD 45 01 43 06 06 00 00 00 00 00 DA
[2020-06-17 14:48:38,868][5]DEBUG Send: AD 45 01 43 06 06 00 00 00 00 00 DA
[2020-06-17 14:48:38,994][1]INFO SetStatus Name=E1, Action=None, Level=Low
[2020-06-17 14:48:40,969][5]DEBUG Send: AD 45 01 43 06 00 00 00 00 00 00 DA
[2020-06-17 14:48:42,098][1]INFO Close
[2020-06-17 15:48:08,449][1]INFO SetStatus Name=E1, Action=None, Level=Low
[2020-06-17 15:48:08,460][1]INFO Connect
[2020-06-17 15:48:08,466][3]INFO Connect 127.0.0.1:12001
[2020-06-17 15:48:10,521][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 Asa.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-17 15:48:10,585][3]INFO Server connection failed 1 times
[2020-06-17 15:48:11,586][3]INFO Connect 127.0.0.1:12001
[2020-06-17 15:48:13,594][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 Asa.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-17 15:48:13,594][3]INFO Server connection failed 2 times
[2020-06-17 15:48:14,429][1]INFO Close
[2020-06-22 14:27:41,663][1]INFO SetStatus Name=E1, Action=None, Level=Low
[2020-06-22 14:27:41,672][1]INFO Connect
[2020-06-22 14:27:41,678][3]INFO Connect 127.0.0.1:12001
[2020-06-22 14:27:43,742][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-22 14:27:43,767][3]INFO Server connection failed 1 times
[2020-06-22 14:27:44,767][3]INFO Connect 127.0.0.1:12001
[2020-06-22 14:27:46,779][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-22 14:27:46,779][3]INFO Server connection failed 2 times
[2020-06-22 14:27:47,780][3]INFO Connect 127.0.0.1:12001
[2020-06-22 14:27:49,833][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-22 14:27:49,834][3]INFO Server connection failed 3 times
[2020-06-22 14:27:50,835][3]INFO Connect 127.0.0.1:12001
[2020-06-22 14:27:52,845][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-22 14:27:52,846][3]INFO Server connection failed 4 times
[2020-06-22 14:27:53,846][3]INFO Connect 127.0.0.1:12001
[2020-06-22 14:27:55,876][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-22 14:27:55,876][3]INFO Server connection failed 5 times
[2020-06-22 14:27:56,878][3]INFO Connect 127.0.0.1:12001
[2020-06-22 14:27:58,895][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-22 14:27:58,895][3]INFO Server connection failed 6 times
[2020-06-22 14:27:59,897][3]INFO Connect 127.0.0.1:12001
[2020-06-22 14:28:01,905][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-22 14:28:01,905][3]INFO Server connection failed 7 times
[2020-06-22 14:28:02,907][3]INFO Connect 127.0.0.1:12001
[2020-06-22 14:28:04,758][1]INFO Close
[2020-06-22 14:28:04,765][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 在一个非套接字上尝试了一个操作。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-22 14:28:04,765][3]INFO Server connection failed 8 times
[2020-06-22 14:47:45,843][1]INFO SetStatus Name=E1, Action=None, Level=Low
[2020-06-22 14:47:45,851][1]INFO Connect
[2020-06-22 14:47:45,874][3]INFO Connect 127.0.0.1:12001
[2020-06-22 14:47:47,948][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-22 14:47:47,985][3]INFO Server connection failed 1 times
[2020-06-22 14:47:48,985][3]INFO Connect 127.0.0.1:12001
[2020-06-22 14:47:51,045][3]ERROR Open()
System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。 127.0.0.1:12001
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
在 System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
在 AsaPL.AgvClient.Open() 位置 D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClient\AgvClient.cs:行号 212
[2020-06-22 14:47:51,045][3]INFO Server connection failed 2 times
此文件的差异太大,无法显示。
...@@ -12,3 +12,15 @@ D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine ...@@ -12,3 +12,15 @@ D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine
D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClientTest\obj\Debug\AgvClientTest.pdb D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClientTest\obj\Debug\AgvClientTest.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClientTest\bin\Debug\AsaPL.AgvClient.dll D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClientTest\bin\Debug\AsaPL.AgvClient.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClientTest\bin\Debug\AsaPL.AgvClient.pdb D:\OneDrive - 上海挚锦科技有限公司\SMD\AGVControl-Qisda-ProductionLine\AgvClientTest\bin\Debug\AsaPL.AgvClient.pdb
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClientTest\bin\Debug\AgvClientTest.exe.config
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClientTest\bin\Debug\AgvClientTest.exe
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClientTest\bin\Debug\AgvClientTest.pdb
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClientTest\bin\Debug\AsaPL.AgvClient.dll
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClientTest\bin\Debug\AsaPL.AgvClient.pdb
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClientTest\obj\Debug\AgvClientTest.csprojAssemblyReference.cache
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClientTest\obj\Debug\AgvClientTest.Form1.resources
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClientTest\obj\Debug\AgvClientTest.Properties.Resources.resources
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClientTest\obj\Debug\AgvClientTest.csproj.GenerateResource.cache
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClientTest\obj\Debug\AgvClientTest.csproj.CopyComplete
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClientTest\obj\Debug\AgvClientTest.exe
C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AgvClientTest\obj\Debug\AgvClientTest.pdb
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!