提交
This commit is contained in:
commit
33c2994455
@ -55,10 +55,11 @@ namespace DH.Devices.PLC
|
||||
if (ret.IsSuccess)
|
||||
{
|
||||
Connected = true;
|
||||
CountToZero();
|
||||
TcpNet.Write("M122", true);
|
||||
MonitorPieces();
|
||||
|
||||
TurntableOpen(Convert.ToInt32(itemSpeed.Value) , true);
|
||||
|
||||
TurntableStop();
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
@ -696,9 +696,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);
|
||||
|
||||
@ -1445,7 +1451,7 @@ namespace DHSoftware
|
||||
Cameras.Clear();
|
||||
Dectection.Clear();
|
||||
// Add the code for the "停止" button click here
|
||||
// PLC.TurntableStop();
|
||||
PLC.TurntableStop();
|
||||
CurrentMachine = true;
|
||||
sLDMotion.Stop();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user