1
This commit is contained in:
parent
126db6bf91
commit
d881dc6ec0
@ -55,10 +55,11 @@ namespace DH.Devices.PLC
|
|||||||
if (ret.IsSuccess)
|
if (ret.IsSuccess)
|
||||||
{
|
{
|
||||||
Connected = true;
|
Connected = true;
|
||||||
|
CountToZero();
|
||||||
|
TcpNet.Write("M122", true);
|
||||||
MonitorPieces();
|
MonitorPieces();
|
||||||
|
TurntableStop();
|
||||||
TurntableOpen(Convert.ToInt32(itemSpeed.Value) , true);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -453,7 +453,7 @@ namespace DHSoftware
|
|||||||
cam.CameraIP = cameraBase.CameraIP;
|
cam.CameraIP = cameraBase.CameraIP;
|
||||||
cam.IsEnabled = cameraBase.IsEnabled;
|
cam.IsEnabled = cameraBase.IsEnabled;
|
||||||
Cameras.Add(cam);
|
Cameras.Add(cam);
|
||||||
//cam.CameraConnect();
|
cam.CameraConnect();
|
||||||
cam.OnHImageOutput += OnCameraHImageOutput;
|
cam.OnHImageOutput += OnCameraHImageOutput;
|
||||||
}
|
}
|
||||||
else if(cameraBase.CamType == EnumCamType.海康hik)
|
else if(cameraBase.CamType == EnumCamType.海康hik)
|
||||||
@ -540,7 +540,7 @@ namespace DHSoftware
|
|||||||
CtrlVisionRunBase ctrlVisionRun = new CtrlVisionRunBase(_visionEngine);
|
CtrlVisionRunBase ctrlVisionRun = new CtrlVisionRunBase(_visionEngine);
|
||||||
tabImgDisplay.Controls.Add(ctrlVisionRun);
|
tabImgDisplay.Controls.Add(ctrlVisionRun);
|
||||||
|
|
||||||
|
StartProcess();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -658,9 +658,15 @@ namespace DHSoftware
|
|||||||
|
|
||||||
|
|
||||||
// 转盘操作
|
// 转盘操作
|
||||||
// if (_PLC?.IIConfig?.IsEnabled == true)
|
// if (_PLC?.IIConfig?.IsEnabled == true)
|
||||||
|
|
||||||
// _PLC.TurntableOpen(XKRSPLCConfig.TurnSpeed, XKRSPLCConfig.TurnDirection);
|
// _PLC.TurntableOpen(XKRSPLCConfig.TurnSpeed, XKRSPLCConfig.TurnDirection);
|
||||||
|
PLCItem itemSpeed = PLC.PLCItemList.FirstOrDefault(u => u.Name == "转盘速度");
|
||||||
|
if (itemSpeed != null)
|
||||||
|
{
|
||||||
|
PLC.TurntableOpen(Convert.ToInt32(itemSpeed.Value), true);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Thread.Sleep(500);
|
Thread.Sleep(500);
|
||||||
|
|
||||||
@ -1407,7 +1413,7 @@ namespace DHSoftware
|
|||||||
Cameras.Clear();
|
Cameras.Clear();
|
||||||
Dectection.Clear();
|
Dectection.Clear();
|
||||||
// Add the code for the "停止" button click here
|
// Add the code for the "停止" button click here
|
||||||
// PLC.TurntableStop();
|
PLC.TurntableStop();
|
||||||
CurrentMachine = true;
|
CurrentMachine = true;
|
||||||
sLDMotion.Stop();
|
sLDMotion.Stop();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user