| | |
| | | //读取复称平台的重量 |
| | | //Convert.ToInt32(Completion(result[8]) + Completion(result[9]), 2).ToString() |
| | | //(decimal.Parse(tray.oneTrayWeight1) / 100).ToString("F2"); |
| | | string weight = (decimal.Parse(Convert.ToInt32(Completion(result.result[4]) + Completion(result.result[5]), 2).ToString()) / 100).ToString("F2"); |
| | | //string weight = (decimal.Parse(Convert.ToInt32(Completion(result.result[4]) + Completion(result.result[5]), 2).ToString()) / 100).ToString("F2"); |
| | | string weight = ((result.result[4] * 65536 + result.result[5]) / 100).ToString(); |
| | | |
| | | CMMLog.Debug($"SecondWeightActionOne: 读取设备{plc.location},ip:{plc.ip}通道{plc.readAddr + 4}里面数据为{result.result[4]}."); |
| | | CMMLog.Debug($"SecondWeightActionOne: 读取设备{plc.location},ip:{plc.ip}通道{plc.readAddr + 5}里面数据为{result.result[5]}."); |