|
|
@ -254,12 +254,30 @@ namespace Aucma.Core.OldBoxFoam.Business
|
|
|
|
var temp3 = byteToFloat(tempInfo.Skip(20).Take(4).ToArray()).ToString("0.00");
|
|
|
|
var temp3 = byteToFloat(tempInfo.Skip(20).Take(4).ToArray()).ToString("0.00");
|
|
|
|
var temp4 = byteToFloat(tempInfo.Skip(24).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()
|
|
|
|
var shotRecord = new BoxLastShotRecord()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ProductLineCode = "CX_01",
|
|
|
|
ProductLineCode = "CX_01",
|
|
|
|
StationNumber = "1105",
|
|
|
|
StationNumber = "1105",
|
|
|
|
System = systemCode,
|
|
|
|
System = systemCode,
|
|
|
|
SystemStatus = 1,
|
|
|
|
SystemStatus = statusFlag,
|
|
|
|
PourNu = station.ToString(),
|
|
|
|
PourNu = station.ToString(),
|
|
|
|
GunCode = gunCode,
|
|
|
|
GunCode = gunCode,
|
|
|
|
SetWeight = setWeight,
|
|
|
|
SetWeight = setWeight,
|
|
|
|