|
|
@ -1266,6 +1266,11 @@ namespace MaterialTraceability.Business.Impl
|
|
|
|
LogHelper.Info("收卷轴异常下料信号触发,下发下料信号");
|
|
|
|
LogHelper.Info("收卷轴异常下料信号触发,下发下料信号");
|
|
|
|
plcBusiness.writePlc(appConfig.AbAddress.收卷控制下料, 0);
|
|
|
|
plcBusiness.writePlc(appConfig.AbAddress.收卷控制下料, 0);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0:
|
|
|
|
|
|
|
|
LogRefreshEvent?.Invoke(LogType.PlcLog, "放卷轴异常下料信号触发,下发下料信号");
|
|
|
|
|
|
|
|
LogHelper.Info("放卷轴异常下料信号触发,下发下料信号");
|
|
|
|
|
|
|
|
plcBusiness.writePlc(appConfig.AbAddress.放卷控制下料, 0);
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1369,9 +1374,9 @@ namespace MaterialTraceability.Business.Impl
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bool result = false;
|
|
|
|
bool result = false;
|
|
|
|
//通过MES获取RFID绑定的SFC并判断是否结束,凹版来料RFID绑定为凹版膜卷号,暂不使用SFC判断,使用RFID判断
|
|
|
|
//通过MES获取RFID绑定的SFC并判断是否结束,凹版来料RFID绑定为凹版膜卷号,暂不使用SFC判断,使用RFID判断
|
|
|
|
string sfcStr = GetSfcByRfid(rfidStr);
|
|
|
|
// string sfcStr = GetSfcByRfid(rfidStr);
|
|
|
|
|
|
|
|
|
|
|
|
LogRefreshEvent?.Invoke(LogType.RfidLog, String.Format("当前RFID:{0}绑定的SFC为:{1}", rfidStr, sfcStr));
|
|
|
|
//LogRefreshEvent?.Invoke(LogType.RfidLog, String.Format("当前RFID:{0}绑定的SFC为:{1}", rfidStr, sfcStr));
|
|
|
|
//通过SFC判断该卷物料是否已经生产结束,如果已生产返回true,未生产返回false
|
|
|
|
//通过SFC判断该卷物料是否已经生产结束,如果已生产返回true,未生产返回false
|
|
|
|
//upRecordServices
|
|
|
|
//upRecordServices
|
|
|
|
Expression<Func<ProUpRecord, bool>> exp = s1 => true;
|
|
|
|
Expression<Func<ProUpRecord, bool>> exp = s1 => true;
|
|
|
@ -1382,12 +1387,12 @@ namespace MaterialTraceability.Business.Impl
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (StringExtension.IsBlank(upRecord.endTime))
|
|
|
|
if (StringExtension.IsBlank(upRecord.endTime))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
LogRefreshEvent?.Invoke(LogType.RfidLog, String.Format("当前SFC:{0}放卷结束时间为空,生产未结束", sfcStr));
|
|
|
|
LogRefreshEvent?.Invoke(LogType.RfidLog, String.Format("当前SFC:{0}放卷结束时间为空,生产未结束", rfidStr));
|
|
|
|
result = false;
|
|
|
|
result = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
LogRefreshEvent?.Invoke(LogType.RfidLog, String.Format("当前SFC:{0}放卷结束时间为:{1}", sfcStr, upRecord.endTime));
|
|
|
|
LogRefreshEvent?.Invoke(LogType.RfidLog, String.Format("当前SFC:{0}放卷结束时间为:{1}", rfidStr, upRecord.endTime));
|
|
|
|
result = true;
|
|
|
|
result = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|