称重,注塑定点配送修改
This commit is contained in:
@@ -70,7 +70,7 @@ namespace Tnb.ProductionMgr
|
||||
{
|
||||
["DevName"] = device,
|
||||
["token"] = _eleCtlCfg.token,
|
||||
["TagName"] = eqpDaq1.label_point,
|
||||
["TagName"] = eqpDaq1.label_name,
|
||||
["Value"] = "true",
|
||||
};
|
||||
Log.Information($"确认称重参数:{JsonConvert.SerializeObject(dicCommand)}");
|
||||
@@ -82,12 +82,12 @@ namespace Tnb.ProductionMgr
|
||||
throw Oops.Bah("未在数据采集中设置当前重量标签点");
|
||||
}
|
||||
|
||||
bool flag = await _redisData.HashExist(device, eqpDaq2.label_point);
|
||||
bool flag = await _redisData.HashExist(device, eqpDaq2.label_name);
|
||||
if (!flag)
|
||||
{
|
||||
throw Oops.Bah("没有找到" + device + "----" + eqpDaq2.label_point + "的数据");
|
||||
throw Oops.Bah("没有找到" + device + "----" + eqpDaq2.label_name + "的数据");
|
||||
}
|
||||
string data = await _redisData.GetHash(device, eqpDaq2.label_point);
|
||||
string data = await _redisData.GetHash(device, eqpDaq2.label_name);
|
||||
JObject? res = JsonConvert.DeserializeObject<JObject>(data);
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ namespace Tnb.ProductionMgr
|
||||
{
|
||||
["DevName"] = device,
|
||||
["token"] = _eleCtlCfg.token,
|
||||
["TagName"] = eqpDaq3.label_point,
|
||||
["TagName"] = eqpDaq3.label_name,
|
||||
["Value"] = "true",
|
||||
};
|
||||
Log.Information($"称重完成参数:{JsonConvert.SerializeObject(dicCommand2)}");
|
||||
|
||||
Reference in New Issue
Block a user