Commit 0a6a361a 刘韬

1

1 个父辈 96780d79
...@@ -142,9 +142,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -142,9 +142,7 @@ namespace OnlineStore.DeviceLibrary
} }
bool NoPaper = IOValue(IO_Type.PasteCode_OK).Equals(IO_VALUE.HIGH); bool NoPaper = IOValue(IO_Type.PasteCode_OK).Equals(IO_VALUE.HIGH);
if (NoPaper) if (!NoPaper)
NopaperCount++;
else
NopaperCount = 0; NopaperCount = 0;
var MaxNopaperCount = ConfigAppSettings.GetIntValue("NopaperCount"); var MaxNopaperCount = ConfigAppSettings.GetIntValue("NopaperCount");
bool PrinterOnPosition=IOValue(IO_Type.PrinterOnPosition).Equals(IO_VALUE.LOW); bool PrinterOnPosition=IOValue(IO_Type.PrinterOnPosition).Equals(IO_VALUE.LOW);
...@@ -153,7 +151,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -153,7 +151,11 @@ namespace OnlineStore.DeviceLibrary
{ {
NeedAlarm = false; NeedAlarm = false;
ClearTimeoutAlarm("等待贴标模块空闲"); ClearTimeoutAlarm("等待贴标模块空闲");
WorkLog("取料: 贴标模块开始打印标签 NopaperCount:"+ NopaperCount); if (NoPaper)
NopaperCount++;
else
NopaperCount = 0;
WorkLog("取料: 贴标模块开始打印标签 NopaperCount:"+ NopaperCount+ ",MaxNopaperCount:"+ MaxNopaperCount);
//TODO //TODO
bool result = StartLabelling(MoveInfo.MoveParam); bool result = StartLabelling(MoveInfo.MoveParam);
if (result) if (result)
...@@ -977,7 +979,9 @@ namespace OnlineStore.DeviceLibrary ...@@ -977,7 +979,9 @@ namespace OnlineStore.DeviceLibrary
BatchPreDown = true; BatchPreDown = true;
int trayHeight = MoveInfo.MoveParam.PlateH; int trayHeight = 8;
if(MoveInfo.MoveParam!=null)
trayHeight = MoveInfo.MoveParam.PlateH;
//ShelfMoveInfo.NextMoveStep(StepEnum.OS_21_BatchDownH); //ShelfMoveInfo.NextMoveStep(StepEnum.OS_21_BatchDownH);
int currP = BatchAxis.GetAclPosition(); int currP = BatchAxis.GetAclPosition();
......
...@@ -90,7 +90,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -90,7 +90,8 @@ namespace OnlineStore.DeviceLibrary
mainTimer.Enabled = true; mainTimer.Enabled = true;
//ledProcessTimer.Enabled = true; //ledProcessTimer.Enabled = true;
canStart = true; canStart = true;
var MaxNopaperCount = ConfigAppSettings.GetIntValue("NopaperCount");
LogUtil.info("MaxNopaperCount:"+ MaxNopaperCount);
var loadsuccess = XrayBean.XPlateUP(); var loadsuccess = XrayBean.XPlateUP();
AgvClient.Init(); AgvClient.Init();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!