|
|
|
|
@ -739,14 +739,22 @@ namespace Khd.Core.Wcs.Wcs
|
|
|
|
|
StaticData.PlcDic[2].WriteToPoint(Ylc.Address, cardStatus.PosY.ToString(), Ylc.type);
|
|
|
|
|
|
|
|
|
|
#region 经过走廊区域报警
|
|
|
|
|
if (int.Parse(cardStatus.PosX) >= 53040 && int.Parse(cardStatus.PosX) <= 58090 && (int.Parse(cardStatus.PosY) >= 53520 && int.Parse(cardStatus.PosY) <= 64590))
|
|
|
|
|
var Agv3FLED = StaticData.BasePlcpointList.First(t => t.id == 76);
|
|
|
|
|
if(Agv3FLED != null)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("=======>3F走廊区域预警");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
// Console.WriteLine("3F走廊区域正常");
|
|
|
|
|
if (int.Parse(cardStatus.PosX) >= 53040 && int.Parse(cardStatus.PosX) <= 58090 && (int.Parse(cardStatus.PosY) >= 53520 && int.Parse(cardStatus.PosY) <= 64590))
|
|
|
|
|
{
|
|
|
|
|
// Console.WriteLine("=======>3F走廊区域预警");
|
|
|
|
|
|
|
|
|
|
StaticData.PlcDic[0].WriteToPoint(Agv3FLED.plcpointAddress, true, Agv3FLED.plcpointLength.ToString());
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
// Console.WriteLine("3F走廊区域正常");
|
|
|
|
|
StaticData.PlcDic[0].WriteToPoint(Agv3FLED.plcpointAddress, false, Agv3FLED.plcpointLength.ToString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -789,14 +797,22 @@ namespace Khd.Core.Wcs.Wcs
|
|
|
|
|
StaticData.PlcDic[2].WriteToPoint(Ylc.Address, cardStatus.PosY.ToString(), Ylc.type);
|
|
|
|
|
|
|
|
|
|
#region 经过走廊区域报警
|
|
|
|
|
if (int.Parse(cardStatus.PosX) >= 119000 && int.Parse(cardStatus.PosX) <= 122800 && (int.Parse(cardStatus.PosY) >= 124100 && int.Parse(cardStatus.PosY) <= 134435))
|
|
|
|
|
var Agv2FLED = StaticData.BasePlcpointList.First(t => t.id == 75);
|
|
|
|
|
if (Agv2FLED != null)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("=======>2F走廊区域预警");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
// Console.WriteLine("2F走廊区域正常");
|
|
|
|
|
if (int.Parse(cardStatus.PosX) >= 119000 && int.Parse(cardStatus.PosX) <= 122800 && (int.Parse(cardStatus.PosY) >= 124100 && int.Parse(cardStatus.PosY) <= 134435))
|
|
|
|
|
{
|
|
|
|
|
// Console.WriteLine("=======>2F走廊区域预警");
|
|
|
|
|
|
|
|
|
|
StaticData.PlcDic[0].WriteToPoint(Agv2FLED.plcpointAddress, true, Agv2FLED.plcpointLength.ToString());
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
// Console.WriteLine("2F走廊区域正常");
|
|
|
|
|
StaticData.PlcDic[0].WriteToPoint(Agv2FLED.plcpointAddress, false, Agv2FLED.plcpointLength.ToString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|