Commit 8967469f 刘韬

1

1 个父辈 f85b3f70
......@@ -314,7 +314,8 @@ namespace DeviceLibrary
if (!calledagv && IOValue(IO_T1_Type.Empty_LineIn_Check).Equals(IO_VALUE.LOW)&& IOValue(IO_T1_Type.EmptyString_In_Check).Equals(IO_VALUE.LOW))
{
calledagv = true;
RobotManage.wistonAgvClient.NeedEnter();
if (!ConfigHelper.Config.Get("wiston_disable_agv_NeedEnter", false))
RobotManage.wistonAgvClient.NeedEnter();
}
else if (IOValue(IO_T1_Type.Empty_LineIn_Check).Equals(IO_VALUE.HIGH) || IOValue(IO_T1_Type.EmptyString_In_Check).Equals(IO_VALUE.HIGH))
{
......
......@@ -66,7 +66,7 @@ namespace DeviceLibrary
MoveInfo.NextMoveStep(MoveStep.XRay_05_GetImage);
RobotManage.XRay.Start();
MoveInfo.log($"打开X光");
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
var pps = MoveInfo.ReelParam.PN.Split('-');
var pn = pps[0];
......@@ -75,6 +75,7 @@ namespace DeviceLibrary
MoveInfo.log($"判断为需要多次拍照的料盘,PN:{pn}");
countlist.Clear();
}
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(ConfigHelper.Config.Get("xray_light_delay", 1000)));
break;
case MoveStep.XRay_05_GetImage:
if (GrabImage())
......
......@@ -37,7 +37,7 @@ namespace DeviceLibrary
public bool Init(out string msg)
{
ConfigHelper.Config.Get("xray_light_delay", 1000);
msg = "";
try
{
......
......@@ -24,6 +24,7 @@ namespace DeviceLibrary
List<(DateTime, string)> InCommandHistroy;
public WistonAgvClient()
{
ConfigHelper.Config.Get("wiston_disable_agv_NeedEnter", false);
commandLoad();
//端口及IP
ipe = new IPEndPoint(IPAddress.Parse(ConfigHelper.Config.Get("WistonAgvServerIP")), ConfigHelper.Config.Get<int>("WistonAgvServerPort"));
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!