Commit 5001dcf3 LN

Merge branch 'RC1252-AutoInOutStore-NScan' of http://106.15.194.121:8083/sunke/R…

…C30-AutoInOutStore into RC1252-AutoInOutStore-NScan
2 个父辈 a388f654 b444f6fa
......@@ -237,6 +237,7 @@
<Content Include="image\us\pPoint.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="resources\en-US.txt" />
<Content Include="resources\resources.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
......
......@@ -72,7 +72,7 @@ namespace OnlineStore.AutoInOutStore
{
if (CurrLanguage.Equals(ResourceCulture.CurrLanguage))
{
return;
//return;
}
string className = this.ClassName;
CurrLanguage = ResourceCulture.CurrLanguage;
......
......@@ -49,10 +49,13 @@ namespace OnlineStore.AutoInOutStore
this.tableLayoutPanel1.RowCount = boxBean.Config.DILIst.Count;
foreach (ConfigIO ioValue in boxBean.Config.DILIst.Values)
{
if (ioValue.ProVale == "11")//屏蔽DI12的显示, DI12没用了
continue;
this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 26));
IOTextControl control = new IOTextControl(ioValue.ElectricalDefinition + "_" + ResourceCulture.GetString(ioValue.ElectricalDefinition, ioValue.Explain), ioValue.ProName,355);
this.tableLayoutPanel1.Controls.Add(control, 0, roleindex);
roleindex++;
DIControlList.Add(ioValue.ProName, control);
}
......
......@@ -453,6 +453,7 @@
this.groupBox6.Controls.Add(this.btnClearBuzzer);
this.groupBox6.Controls.Add(this.btnSingleTrayIn);
this.groupBox6.Controls.Add(this.lblBatchMsg);
this.groupBox6.Controls.Add(this.lblWarnMsg);
this.groupBox6.Controls.Add(this.btnOpenDoor);
this.groupBox6.Controls.Add(this.lblWaitTragGo);
this.groupBox6.Controls.Add(this.btnWaitTrgGo);
......@@ -688,7 +689,6 @@
this.groupBox3.Controls.Add(this.chbDebug);
this.groupBox3.Controls.Add(this.lblThisSta);
this.groupBox3.Controls.Add(this.chbAuto);
this.groupBox3.Controls.Add(this.lblWarnMsg);
this.groupBox3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox3.Location = new System.Drawing.Point(8, 7);
this.groupBox3.Name = "groupBox3";
......@@ -738,7 +738,7 @@
| System.Windows.Forms.AnchorStyles.Right)));
this.lblWarnMsg.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblWarnMsg.ForeColor = System.Drawing.Color.Red;
this.lblWarnMsg.Location = new System.Drawing.Point(6, 58);
this.lblWarnMsg.Location = new System.Drawing.Point(7, -16);
this.lblWarnMsg.Name = "lblWarnMsg";
this.lblWarnMsg.Size = new System.Drawing.Size(1218, 40);
this.lblWarnMsg.TabIndex = 224;
......@@ -2017,6 +2017,7 @@
// uc_boxdebug1
//
this.uc_boxdebug1.Location = new System.Drawing.Point(6, 6);
this.uc_boxdebug1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.uc_boxdebug1.Name = "uc_boxdebug1";
this.uc_boxdebug1.Size = new System.Drawing.Size(1076, 596);
this.uc_boxdebug1.TabIndex = 0;
......
......@@ -1282,6 +1282,7 @@ namespace OnlineStore.AutoInOutStore
}
CodeLibrary.FrmCodeDecode frm = new FrmCodeDecode();
frm.chbZxing.Checked = false;
frm.LanguageProcess();
frm.ShowDialog();
IOManager.IOMove(IO_Type.CameraLight_Power, IO_VALUE.LOW);
}
......@@ -1707,6 +1708,8 @@ namespace OnlineStore.AutoInOutStore
}
打开日志ToolStripMenuItem.Text = openLog;
}
Application.DoEvents();
LanguageProcess();
}
private void chbDebug_CheckedChanged(object sender, EventArgs e)
......
......@@ -1218,4 +1218,10 @@
<data name="FrmStoreBox_tabPage6_Text1" xml:space="preserve">
<value>Storage location</value>
</data>
<data name="BatchOutFail_DoorNotLock" xml:space="preserve">
<value>Batch delivery failed, the door lock is not closed</value>
</data>
<data name="BatchFull" xml:space="preserve">
<value>The material tray is full, please take out the material</value>
</data>
</root>
\ No newline at end of file
......@@ -1218,4 +1218,10 @@
<data name="FrmStoreBox_tabPage6_Text" xml:space="preserve">
<value>ロケーションデバッグ</value>
</data>
<data name="BatchOutFail_DoorNotLock" xml:space="preserve">
<value>バッチ配信に失敗しました。ドアロックが閉じていません。</value>
</data>
<data name="BatchFull" xml:space="preserve">
<value>トレイがいっぱいになっていますので、材料を取り出してください</value>
</data>
</root>
\ No newline at end of file
......@@ -256,7 +256,9 @@
<value> 关闭设备照明 </value>
</data>
<data name="FrmIOStatus_btnCloseDoor_Text" xml:space="preserve">
<value> 关闭单料门 </value>
<value> 关闭
门 </value>
</data>
<data name="FrmIOStatus_btnCloseLed_Text" xml:space="preserve">
<value> 关闭相机辅助光源 </value>
......@@ -1218,4 +1220,7 @@
<data name="FrmStoreBox_tabPage6_Text" xml:space="preserve">
<value>库位调试</value>
</data>
<data name="BatchOutFail_DoorNotLock" xml:space="preserve">
<value>批量出库失败,门锁未关闭</value>
</data>
</root>
\ No newline at end of file
......@@ -89,7 +89,7 @@ namespace OnlineStore.Common
}
catch (Exception e)
{
LogUtil.error("PostJson【" + paramData + "】 ERROR:" + e.StackTrace, 1);
LogUtil.error("PostJson["+ url + "]【" + paramData + "】 ERROR:" + e.ToString(), 1);
}
if (isLog == 1)
......
......@@ -36,8 +36,9 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Asa.Camera.VisionLib">
<HintPath>..\..\..\camera\Asa.Camera.VisionLib.dll</HintPath>
<Reference Include="Asa.Camera.VisionLib, Version=1.3.7927.28975, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Camera\CameraVisionLib\bin\Debug\Asa.Camera.VisionLib.dll</HintPath>
</Reference>
<Reference Include="Asa.IOModule.AIOBOX, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
......@@ -113,9 +114,7 @@
<Content Include="libdmtx.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="MvCameraControl.Net.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="MvCameraControl.Net.dll" />
<Content Include="MvCameraControl.Net.XML">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
......
......@@ -175,9 +175,9 @@ namespace OnlineStore.DeviceLibrary
public static void InitSlvAddr(string portName, int slvAddr,int targetSpeed,int addSpeed,int delSpeed )
//public static void InitSlvAddr(string portName, int slvAddr,int targetSpeed,int addSpeed,int delSpeed,int homeHighSpeed,int homeLowSpeed,int homeAddSpeed)
{
LogUtil.info("开始初始化伺服【" + portName + "】【" + slvAddr + "】");
LogUtil.info($"开始初始化伺服【{portName}】【{slvAddr}】targetSpeed:{targetSpeed},addSpeed:{addSpeed},delSpeed:{delSpeed}");
//写入block
int sleep = 20;
int sleep = 50;
string slvAddrStr = string.Format(strFromat, slvAddr);
//block0=原点返回,正方向
string str0 = slvAddrStr + "104800 000408 00000420 00000000 ffff";
......
......@@ -355,5 +355,13 @@ namespace OnlineStore.DeviceLibrary
/// 批量轴已满,请取出料盘
/// </summary>
public static string OutFull = "OutFull";
/// <summary>
/// 批量出库失败,门锁未关闭
/// </summary>
public static string BatchOutFail_DoorNotLock= "BatchOutFail_DoorNotLock";
/// <summary>
/// 批量轴已放满
/// </summary>
public static string BatchFull= "BatchFull";
}
}
......@@ -171,13 +171,13 @@ PRO,(轴五)上料轴P3点(上料目标位置),BatchAxis_P3,1724717,,,,,,,
PRO,(轴二)升降轴单盘入库抬升料盘的高度,UpdownAxis_UpPosition,10000,,,,,,,
PRO,(轴五)上料轴出库上升最大高度,BatchAxis_OutMaxValue,1491390,,,,,,,
,,,,,,,,,,
PRO,(轴四)压紧轴目标速度,CompAxis_TargetSpeed,200,,,,,,,
PRO,(轴四)压紧轴目标速度,CompAxis_TargetSpeed,2000,,,,,,,
PRO,(轴四)压紧轴加速度,CompAxis_AddSpeed,2000,,,,,,,
PRO,(轴四)压紧轴减速度,CompAxis_DelSpeed,2000,,,,,,,
PRO,(轴四)压紧轴原点低速,CompAxis_HomeLowSpeed,200,,,,,,,
PRO,(轴四)压紧轴原点高速,CompAxis_HomeHighSpeed,200,,,,,,,
PRO,(轴四)压紧轴原点加速度,CompAxis_HomeAddSpeed,2000,,,,,,,
PRO,(轴四)压紧轴P1速度,CompAxis_P1_Speed,1100,,,,,,,
PRO,(轴四)压紧轴P2速度,CompAxis_P2_Speed,1100,,,,,,,
PRO,(轴四)压紧轴P2速度,CompAxis_P2_Speed,2000,,,,,,,
PRO,(轴四)压紧轴P3速度,CompAxis_P3_Speed,1100,,,,,,,
PRO,特殊二维码尺寸配置,CodeSizeConfig,T;PartNum;1=330x81,,,,,,,
......@@ -972,7 +972,7 @@ namespace OnlineStore.DeviceLibrary
{
// 机器状态 顶灯显示
// 绿 黄 红
//机器复位中 闪 灭
//机器复位中 闪 闪
//机器待机中 亮 灭 灭
//机器出入库中 闪 闪 灭
//温湿度超限报警中 亮 闪 灭
......@@ -1036,15 +1036,17 @@ namespace OnlineStore.DeviceLibrary
if ((isBusy || isReset) && IOManager.IOValue(IO_Type.AutoRun_HddLed).Equals(IO_VALUE.HIGH))
{
IOManager.IOMove(IO_Type.AutoRun_HddLed, IO_VALUE.LOW);
//IOManager.IOMove(IO_Type.RunSign_HddLed, IO_VALUE.LOW);
}
else
{
//绿灯亮
IOManager.IOMove(IO_Type.AutoRun_HddLed, IO_VALUE.HIGH);
//IOManager.IOMove(IO_Type.RunSign_HddLed, IO_VALUE.HIGH);
}
//黄灯 复位待机时灭,出入库或温湿度报警时闪烁
if (isBusy || TempOrHumidityIsAlarm || isTemp30M)
if (isBusy || TempOrHumidityIsAlarm || isTemp30M || isReset)
{
if (IOManager.IOValue(IO_Type.RunSign_HddLed).Equals(IO_VALUE.HIGH))
{
......
......@@ -169,7 +169,7 @@ namespace OnlineStore.DeviceLibrary
int timeOutMs = Config.IOSingle_TimerOut;
if (StoreMove.MoveStep == StoreMoveStep.SO_14_WaitTake)
{
timeOutMs = 650000;
timeOutMs = 100000;
}
TimeSpan rwSpan = DateTime.Now - preRWTime;
......@@ -300,6 +300,8 @@ namespace OnlineStore.DeviceLibrary
if (!AutomaticBaiting.DoorCloseOK())
{
UpdateInOutMsg(logMsg + "失败,门锁未关闭");
//SetWarnMsg(ResourceControl.BatchOutFail_DoorNotLock);
//WarnMsg = Msg;
return false;
}
if (IsBatchWork && (!SupportBatch(posId)))
......@@ -351,13 +353,13 @@ namespace OnlineStore.DeviceLibrary
}
private void SI_03_AxisToP1(LineMoveP moveP)
{
InStoreLog("入库:SI_03 所有轴回待机点,轴2、轴1 到P1, 轴4到P3,吸盘在上升端");
InStoreLog("入库:SI_03 所有轴回待机点,轴2、轴1 到P1, 轴4到P1,吸盘在上升端");
StoreMove.NextMoveStep(StoreMoveStep.SI_03_ReturnHome);
bool needMove = false;
if (!ACServerManager.isInPosition(Config.Comp_Axis, moveP.ComPress_P3))
if (!ACServerManager.isInPosition(Config.Comp_Axis, moveP.ComPress_P1))
{
needMove = true;
ComMoveToPosition(moveP.ComPress_P3, Config.CompAxis_P3_Speed);
ComMoveToPosition(moveP.ComPress_P1, Config.CompAxis_P1_Speed);
}
if (!ACServerManager.isInPosition(Config.UpDown_Axis, moveP.UpDown_P1))
{
......@@ -558,8 +560,9 @@ namespace OnlineStore.DeviceLibrary
StoreMove.NextMoveStep(StoreMoveStep.SI_12_PutWareToBag);
ComMoveToPosition(moveP.ComPress_P3, Config.CompAxis_P3_Speed);
ACAxisMove(Config.UpDown_Axis, moveP.UpDown_P4, Config.UpDownAxis_P4_Speed);
Thread.Sleep(100);
ACAxisMove(Config.UpDown_Axis, moveP.UpDown_P4, Config.UpDownAxis_P4_Speed);
Thread.Sleep(500);
}
else if (StoreMove.MoveStep == StoreMoveStep.SI_12_PutWareToBag)
{
......@@ -806,6 +809,7 @@ namespace OnlineStore.DeviceLibrary
if (!AutomaticBaiting.DoorCloseOK())
{
UpdateInOutMsg(logMsg + "失败,门锁未关闭");
SetWarnMsg(ResourceControl.BatchOutFail_DoorNotLock);
//LogUtil.error(LOGGER, StoreName + logMsg + " 出错,门锁未关闭");
return false;
}
......@@ -867,6 +871,8 @@ namespace OnlineStore.DeviceLibrary
OutStoreLog("出库:SO_01 定位气缸下降");
//LocationDownAndWait();
}
upfix1 = false;
upfix2 = false;
CodeOrInoutMsg = "";
return true;
}
......@@ -900,18 +906,22 @@ namespace OnlineStore.DeviceLibrary
int outDownPosition = StoreMove.MoveParam.MoveP.BatchAxis_DownValue;
if (StoreMove.IsBatchInOutStore)
{ //如果料盘检测信号不亮,不需要下降这么多
{
//如果料盘检测信号不亮,不需要下降这么多
//判断是否在P1点
int acPosition = ACServerManager.GetActualtPosition(Config.Batch_Axis);
bool isIn = Math.Abs(acPosition - Config.BatchAxis_P1) < Config.Batch_Axis.CanErrorCountMax;
OutStoreLog($"出库:acPosition:{acPosition}, needup:{needup}, TrayCheck_LoadMaterial:{IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial)}, outDownPosition:{outDownPosition}, BatchAxis_OutDownPosition:{Config.BatchAxis_OutDownPosition}, isIn:{isIn}");
if (IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial).Equals(IO_VALUE.LOW) && outDownPosition > Config.BatchAxis_OutDownPosition && isIn)
{
outDownPosition = outDownPosition - Config.BatchAxis_OutDownPosition;
OutStoreLog($"出库:在p1位置 outDownPosition:{outDownPosition}");
}
//如果检测信号亮,需要多下降
if (IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial).Equals(IO_VALUE.HIGH))
if (needup || IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial).Equals(IO_VALUE.HIGH))
{
outDownPosition = outDownPosition + Config.BatchAxis_DownPosition2;
OutStoreLog($"出库:对射亮,需要多下降 outDownPosition:{outDownPosition}");
}
//上下料机构下降的距离=料盘最低高度+默认的高度
targetValue = GetBatchTargetValue(outDownPosition);
......@@ -931,6 +941,7 @@ namespace OnlineStore.DeviceLibrary
StoreMove.EndMove();
storeRunStatus = StoreRunStatus.Runing;
InOutEndProcess(posId,StoreMoveType.OutStore);
SetWarnMsg(ResourceControl.BatchFull);
return;
}
}
......@@ -1101,6 +1112,10 @@ namespace OnlineStore.DeviceLibrary
LogUtil.error(LOGGER, StoreName + " 出库 moveStatus=" + StoreMove.MoveStep + ",没有对应的处理!");
}
}
bool upfix1 = false;
bool upfix2 = false;
bool needup = false;
private void SO_02_DeviceBack()
{
StoreMove.NextMoveStep(StoreMoveStep.SO_02_DeviceBack);
......@@ -1108,15 +1123,30 @@ namespace OnlineStore.DeviceLibrary
InOutBackToP1(StoreMove.MoveParam.MoveP.InOut_P1);
if (StoreMove.IsBatchInOutStore)
{
needup = false;
//如果可以直接下降,则不需要匀速上升
int targetValue = GetBatchTargetValue(StoreMove.MoveParam.MoveP.BatchAxis_DownValue);
if (targetValue >= 300000)
if (targetValue < (Config.BatchAxis_P3 - Config.BatchAxis_P2) * 0.1)
{
OutStoreLog("出库:SO_02 批量上下料轴直接下降后目标位置【" + targetValue + "】不需要匀速上升 ");
if (!upfix2)
{
OutStoreLog($"出库:SO_02 2 targetValue:{targetValue}<{(Config.BatchAxis_P3 - Config.BatchAxis_P2) * 0.1} 需要匀速上升 ");
upfix2 = true;
needup = true;
}
}
else if (targetValue < (Config.BatchAxis_P3 - Config.BatchAxis_P2) * 0.5)
{
if (!upfix1)
{
OutStoreLog($"出库:SO_02 1 targetValue:{targetValue}<{(Config.BatchAxis_P3 - Config.BatchAxis_P2) * 0.5} 需要匀速上升 ");
upfix1 = true;
needup = true;
}
}
//如果批量能未检测到料盘,需要把批量轴走到能检测到料盘的位置
else if (IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial).Equals(IO_VALUE.LOW))
if (needup && IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial).Equals(IO_VALUE.LOW))
{
StoreMove.TimeOutSeconds = 120;
//ACAxisMove(Config.Batch_Axis, Config.BatchAxis_P1, Config.BatchAxis_P1_Speed);
......
......@@ -372,6 +372,12 @@ namespace OnlineStore.DeviceLibrary
}
else if (StoreMove.MoveStep.Equals(StoreMoveStep.AUTO_I02_MoveToUp))
{
if (IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial) == IO_VALUE.LOW)
{
StoreMove.NextMoveStep(StoreMoveStep.AUTO_I02_MoveReUp);
InStoreLog(" 轴重新上升后没有检测到料盘,重新上升");
return;
}
IsNeedScanCode();
}
else if (StoreMove.MoveStep.Equals(StoreMoveStep.AUTO_I03_ScanCode))
......@@ -419,9 +425,9 @@ namespace OnlineStore.DeviceLibrary
bool needCheck = StoreManager.Config.DILIst.ContainsKey(IO_Type.Clamping_Check);
if (IOManager.IOValue(IO_Type.Clamping_Work).Equals(IO_VALUE.HIGH) && IOManager.IOValue(IO_Type.Clamping_Relax).Equals(IO_VALUE.LOW))
// if (IOManager.IOValue(IO_Type.SuckingDisc_Air).Equals(IO_VALUE.HIGH))
// if (IOManager.IOValue(IO_Type.SuckingDisc_Air).Equals(IO_VALUE.HIGH))(IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial) == IO_VALUE.LOW)
{
if ((!needCheck) || IOManager.IOValue(IO_Type.Clamping_Check).Equals(IO_VALUE.HIGH))
if ((!needCheck) || IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial).Equals(IO_VALUE.LOW))
{
StoreMove.NextMoveStep(StoreMoveStep.AUTO_I07_BatchAxisUp);
InStoreLog(" 批量轴匀速上升【" + StoreManager.Config.BatchAxis_SlowSpeed + "】");
......@@ -638,7 +644,7 @@ namespace OnlineStore.DeviceLibrary
SuckingDisc_WorkCount++;
InStoreLog(" 吸盘开始第" + SuckingDisc_WorkCount + "次工作");
// IOManager.IOMove(IO_Type.SuckingDisc_Work, IO_VALUE.HIGH);
// StoreMove.WaitList.Add(WaitResultInfo.WaitTime(500));
StoreMove.WaitList.Add(WaitResultInfo.WaitTime(1500));
// StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SuckingDisc_Air, IO_VALUE.HIGH));
CylinderMove(IO_Type.Clamping_Relax, IO_Type.Clamping_Work, StoreMove);
......@@ -748,9 +754,10 @@ namespace OnlineStore.DeviceLibrary
//若X12亮,先匀速下降到X12不亮,再开门。
if (StoreMove.MoveStep.Equals(StoreMoveStep.AUTO_O00_Wait))
{
if (IOManager.IOValue(IO_Type.OutCheck).Equals(IO_VALUE.LOW) && IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial).Equals(IO_VALUE.LOW))
//if (IOManager.IOValue(IO_Type.OutCheck).Equals(IO_VALUE.LOW) && IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial).Equals(IO_VALUE.LOW))
if (IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial).Equals(IO_VALUE.LOW))
{
OutStoreLog("OutCheck=LOW ,直接打开门锁 ");
OutStoreLog("TrayCheck_LoadMaterial=LOW ,直接打开门锁 ");
StoreMove.NextMoveStep(StoreMoveStep.AUTO_O02_WaitDoorOpen);
BatchDoorOpen(true);
StoreMove.WaitList.Add(WaitResultInfo.WaitTime(2000));
......
......@@ -132,7 +132,7 @@ namespace OnlineStore.DeviceLibrary
// }
//}
TimeSpan rwSpan = DateTime.Now - preRWTime;
if (wait.IsEnd.Equals(false) && rwSpan.TotalSeconds > 5 && span.TotalSeconds > 6 && span.TotalSeconds < 30 && StoreManager.Store.Config.DOList.ContainsKey(wait.IoType))
if (wait.IsEnd.Equals(false) && rwSpan.TotalSeconds > 9 && span.TotalSeconds > 10 && span.TotalSeconds < 30 && StoreManager.Store.Config.DOList.ContainsKey(wait.IoType))
{
preRWTime = DateTime.Now;
string msg = " [" + StoreMove.MoveType + "][" + StoreMove.MoveStep + "] " + NotOkMsg + "已等待 " + Math.Round(span.TotalSeconds, 1) + "秒,重写DO:";
......@@ -557,11 +557,11 @@ namespace OnlineStore.DeviceLibrary
string singleOut = data[ParamDefine.singleOut];
//bool isSingleOut = singleOut.ToLower().Equals("true");
string[] posArray = posId.Split('#');
if (!(posArray.Length == 2))
{
SetWarnMsgAndLog(ResourceControl.InStoreError, message, posId);
return null;
}
//if (!(posArray.Length == 2))
//{
// SetWarnMsgAndLog(ResourceControl.InStoreError, message, posId);
// return null;
//}
int storeId = int.Parse(posArray[0]);
//根据发送的posId获取位置列表
......
......@@ -123,7 +123,7 @@ namespace OnlineStore.DeviceLibrary
serverConnectTimer = new System.Timers.Timer();
serverConnectTimer.Interval = 1000;
serverConnectTimer.AutoReset = true;
serverConnectTimer.Enabled = false;
serverConnectTimer.Enabled = true;
//serverConnectTimer.Elapsed += server_connect_timer_Tick;
IoCheckTimer = new System.Timers.Timer();
IoCheckTimer.Interval = 200;
......
......@@ -40,7 +40,7 @@ namespace OnlineStore
}
var m = Regex.Match(configtxt, "name\".*?\"(.+)\"", RegexOptions.IgnoreCase);
DeviceName = m.Groups[1].Value;
camera = new VisionLib(path, "HIK.IPCamera");
camera = new VisionLib(path, true,"HIK.IPCamera");
}
catch (Exception e)
{
......
......@@ -984,7 +984,7 @@ namespace OnlineStore.LoadCSVLibrary
MustHaveDIList.Add(IO_Type.WidthCheck1);
MustHaveDIList.Add(IO_Type.WidthCheck2);
MustHaveDIList.Add(IO_Type.TrayCheck_LoadMaterial);
MustHaveDIList.Add(IO_Type.OutCheck);
//MustHaveDIList.Add(IO_Type.OutCheck);
MustHaveDIList.Add(IO_Type.BatchDoor_Open);
MustHaveDIList.Add(IO_Type.BatchDoor_Close);
MustHaveDIList.Add(IO_Type.TrayCheck_Fixture);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!