浏览代码

调试

一拖四味魔方配料系统
ZhaoGang 11 个月前
父节点
当前提交
8c3adfcdc2
共有 2 个文件被更改,包括 3 次插入24 次删除
  1. +0
    -21
      DosingSystem/ExcuteControl .cs
  2. +3
    -3
      DosingSystem/Model/DeviceInquire.cs

+ 0
- 21
DosingSystem/ExcuteControl .cs 查看文件

@@ -376,27 +376,6 @@ namespace BPASmartClient.DosingSystem

}


/// <summary>
/// 关闭上位机需要做的处理。
/// </summary>
public void ShutDown()
{

SimensSend.GetInstance.SendSimens.Write("M0.0", false);
SimensSend.GetInstance.SendSimens.Write("M0.1", false);
foreach (var item in DeviceInquire.GetInstance.DeviceLists.Values)
{
item.modbusTcp.Write<ushort>(DeviceAddress.TranspportSwitch.ToAdd(), 0);
}
TaskManage.GetInstance.StopTask("设备下发配方");
TaskManage.GetInstance.StopTask("下发设备参数", () =>
{
});
TaskManage.GetInstance.StopTask("控制传送带");
}

public ConcurrentDictionary<string, int> doDeviceCount = new ConcurrentDictionary<string, int>();

int dd = 0;


+ 3
- 3
DosingSystem/Model/DeviceInquire.cs 查看文件

@@ -366,9 +366,9 @@ namespace BPASmartClient.DosingSystem
if (IsConnected)
{
#region 2023-11-20-17新增:在软件重启时,自动清零设备上的配方执行数量等数据。
//modbusTcp.Write<ushort>(DeviceAddress.ZeroRecipeCount, 1);
//Thread.Sleep(500);
//modbusTcp.Write<ushort>(DeviceAddress.ZeroRecipeCount, 0);
modbusTcp.Write<ushort>(DeviceAddress.ZeroRecipeCount.ToAdd(), 1);
Thread.Sleep(500);
modbusTcp.Write<ushort>(DeviceAddress.ZeroRecipeCount.ToAdd(), 0);
#endregion




正在加载...
取消
保存