change - 添加发泡机状态读取

dev
wenjy 1 year ago
parent 5bc97e504c
commit 2baf1d56dc

@ -254,12 +254,30 @@ namespace Aucma.Core.OldBoxFoam.Business
var temp3 = byteToFloat(tempInfo.Skip(20).Take(4).ToArray()).ToString("0.00");
var temp4 = byteToFloat(tempInfo.Skip(24).Take(4).ToArray()).ToString("0.00");
bool statusFlag_1 = obj.plc.ReadBool("Q.1");
bool statusFlag_2 = obj.plc.ReadBool("Q.2");
bool statusFlag_3 = obj.plc.ReadBool("Q.3");
int statusFlag = 0;
if (statusFlag_1)
{
statusFlag = 3;
}else if(statusFlag_2)
{
statusFlag = 1;
}else if(statusFlag_3)
{
statusFlag = 2;
}
//Console.WriteLine($"{systemCode}#状态:{statusFlag}");
var shotRecord = new BoxLastShotRecord()
{
ProductLineCode = "CX_01",
StationNumber = "1105",
System = systemCode,
SystemStatus = 1,
SystemStatus = statusFlag,
PourNu = station.ToString(),
GunCode = gunCode,
SetWeight = setWeight,

Loading…
Cancel
Save