浏览代码

11

一拖四味魔方配料系统
ZhaoGang 1年前
父节点
当前提交
315048d7ee
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      DosingSystem/ExcuteControl .cs

+ 2
- 1
DosingSystem/ExcuteControl .cs 查看文件

@@ -1507,7 +1507,8 @@ namespace BPASmartClient.DosingSystem
DeviceParModel deviceSet = Json<DevicePar>.Data.deviceParModels?.ToList().Find(a => a.MaterialName == DeviceInquire.GetInstance.devices[i].DeviceName);
if (deviceSet != null && DeviceInquire.GetInstance.DeviceLists[DeviceInquire.GetInstance.devices[i].IpAddress].IsConnected == true)
{

var deviceModbus = DeviceInquire.GetInstance.DeviceLists[DeviceInquire.GetInstance.devices[i].IpAddress].modbusTcp;
MessageNotify.GetInstance.ShowRunLog($"下发配料信息{Recipes.ElementAt(doCount).RecipeName}到设备{DeviceInquire.GetInstance.devices[i].DeviceName}");
//传送带停止
deviceModbus.Write<ushort>(DeviceAddress.TranspportSwitch.ToAdd(), 0);
//设置下料重量


正在加载...
取消
保存