Commit 73023c7c LN

1

1 个父辈 eb08dc23
......@@ -413,6 +413,7 @@ namespace OnlineStore.AssemblyLine
//{
// lblWarnMsg.Text = "未扫到二维码,请重新放入料盘";
//}
lblMoveInfo.Text = LineManager.Line.GetMoveStr();
if (lblWarnMsg.Text.Equals(""))
{
lblWarnMsg.Text = TrayManager.TrayErrorMsg;
......
......@@ -487,11 +487,11 @@ namespace OnlineStore.DeviceLibrary
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : "";
if (String.IsNullOrEmpty( posId))
{
LogUtil.info(Name + msg);
LogUtil.info(Name + " " + msg);
}
else
{
LogUtil.info(Name + "[" + posId + "]" + msg);
LogUtil.info(Name + " " + "[" + posId + "]" + msg);
}
}
protected void OutStoreLog(string msg)
......@@ -499,18 +499,18 @@ namespace OnlineStore.DeviceLibrary
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : "";
if (String.IsNullOrEmpty(posId))
{
LogUtil.info(Name + msg);
LogUtil.info(Name +" "+ msg);
}
else
{
LogUtil.info(Name + "[" + posId + "]" + msg);
LogUtil.info(Name + " " + "[" + posId + "] " + msg);
}
}
public string GetMoveStr()
{
string msg = "";
int tLength = 12;
int tLength = 15;
msg += "preTrayNum:".PadRight(tLength, ' ') + preTrayNum + "\n";
msg += "currTrayNum:".PadRight(tLength, ' ') + currTrayNum + "\n";
......@@ -519,7 +519,7 @@ namespace OnlineStore.DeviceLibrary
msg += "MoveType:".PadRight(tLength, ' ') + MoveInfo.MoveType+"\n";
msg += "MoveStep:".PadRight(tLength, ' ') + MoveInfo.MoveStep + "\n";
msg += "SMoveType:".PadRight(tLength, ' ') + SecondMoveInfo.MoveType + "\n";
msg += "SMoveType:".PadRight(tLength, ' ') + SecondMoveInfo.MoveStep + "";
msg += "SMoveStep:".PadRight(tLength, ' ') + SecondMoveInfo.MoveStep + "";
return msg;
}
}
......
......@@ -917,6 +917,22 @@ namespace OnlineStore.DeviceLibrary
}
}
}
public string GetMoveStr()
{
string msg = "";
int tLength = 20;
//msg += "preTrayNum:".PadRight(tLength, ' ') + preTrayNum + "\n";
//msg += "currTrayNum:".PadRight(tLength, ' ') + currTrayNum + "\n";
msg += "runStatus: "+ runStatus + "\n";
msg += "lineStatus: "+ lineStatus + "\n";
msg += "MoveType: " + MoveInfo.MoveType + "\n";
msg += "MoveStep: " + MoveInfo.MoveStep + "\n";
msg += "SW41_Move: "+ SW41_MoveInfo.MoveType + " "+ SW41_MoveInfo.MoveStep + "\n";
msg += "SW23_Move: " + SW23_MoveInfo.MoveType + " " + SW23_MoveInfo.MoveStep + "\n";
return msg;
}
}
}
\ No newline at end of file
......@@ -33,6 +33,7 @@ namespace OnlineStore.DeviceLibrary
IOManager.IOValue(IO_Type.DriveMotor_Run3, 0).Equals(IO_VALUE.HIGH) &&
IOManager.IOValue(IO_Type.DriveMotor_Run4, 0).Equals(IO_VALUE.HIGH))
{
return true;
if (isCheckSleep)
{
if (runStatus >= LineRunStatus.Runing && IsSleep.Equals(false))
......
......@@ -15,17 +15,18 @@ namespace OnlineStore.DeviceLibrary
string msg = "";
try
{
string codeStr = "";
string codeStr = "";
List<string> list = new List<string>();
foreach (string str in codeList)
{
if (codeStr.Equals(""))
if (list.Contains(str.Trim()))
{
codeStr = str;
}
else
{
codeStr += spiltStr + str;
continue;
}
list.Add(str.Trim());
//string code = "=1+0x0-" + width + "x" + height + "=" + str.Trim();
string code = width + "x" + height + "%3D" + str.Trim();
codeStr = codeStr + code + spiltStr;
}
if (String.IsNullOrEmpty(codeStr))
{
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!