Commit 3b4dc4a9 LN

离线模式不操作相机

1 个父辈 9cc48e7e
......@@ -81,7 +81,7 @@ namespace TSA_V.Common
public static MyConfig<bool> Device_IsCycleDebug =false;
[MyConfigComment("侧挡气缸是否先移动")]
public static MyConfig<bool> Device_SideCylinderMoveFirst =true;
[MyConfigComment("是否自动进入过板模式")]
[MyConfigComment("离线编程模式,自动进入过板模式")]
public static MyConfig<bool> Device_AutoGuoBan = false ;
......
......@@ -163,11 +163,18 @@ namespace TSA_V
try
{
if (Setting_NInit.Device_AutoGuoBan)
{
LogUtil.info("离线编程模式:不加载相机" );
}
else
{
AccAOI.camera.CameraManager.LoadCamera();
LogUtil.info("加载到相机:" + string.Join(";", AccAOI.camera.CameraManager.hikNameList.ToArray()));
this.Focus();
SetMouseAtCenterScreen();
}
}
catch (Exception ex)
{
LogUtil.error("加载相机出错:" + ex.ToString());
......@@ -268,13 +275,17 @@ namespace TSA_V
}
if (IOManager.ISConnection())
{
if (!Setting_NInit.Device_AutoGuoBan)
{
IOBase.instance.CloseAllConnection();
}
}
if (TSAVBean.IsNeedAOI)
{
CameraHDevelop.CloseAllCamera();
}
//MetcalManager.ColseAllPort();
AccAOI.camera.CameraManager.CloseCamera();
TSAVBean.serverCommunication.StopConnectServer();
......
......@@ -329,6 +329,11 @@ namespace TSA_V
{
return;
}
if (Setting_NInit.Device_AutoGuoBan)
{
LogUtil.info(" 离线编程模式,不进入AOI");
return;
}
isShowAOI = true;
try
{
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!