|
|
@@ -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); |
|
|
|
//设置下料重量 |
|
|
|