提交源码

master
CaesarBao 3 weeks ago
parent 50fbf67d3e
commit d267f84c1a

@ -429,7 +429,7 @@ namespace MaterialTraceability.Business.Impl
} }
downRecord.eaValue = (int)float.Parse(upMaterialEaValue); downRecord.eaValue = (int)float.Parse(upMaterialEaValue);
LogRefreshEvent?.Invoke(LogType.RfidLog, "收卷位物料EA" + upMaterialEaValue); LogRefreshEvent?.Invoke(LogType.RfidLog, "收卷位物料EA" + upMaterialEaValue);
if (!SpiltAccount(position, shaftInfo, downRecord.eaValue, shaftInfo.bindSfc, new ProUpRecord(), downRecord).Result) if (!SpiltAccount(position, shaftInfo, upMaterialEaValue, shaftInfo.bindSfc, new ProUpRecord(), downRecord).Result)
{ {
LogHelper.Info(logStr + "完工MES账目数量异常"); LogHelper.Info(logStr + "完工MES账目数量异常");
@ -599,7 +599,7 @@ namespace MaterialTraceability.Business.Impl
/// <param name="shaftInfos"></param> /// <param name="shaftInfos"></param>
/// <param name="eaValue"></param> /// <param name="eaValue"></param>
/// <param name="upMaterialSfc"></param> /// <param name="upMaterialSfc"></param>
private async Task<bool> SpiltAccount(int position, ProShaftInfo shaftInfos, int eaValue, string upMaterialSfc, ProUpRecord upRecord, ProDownRecord downRecord) private async Task<bool> SpiltAccount(int position, ProShaftInfo shaftInfos, string eaValue, string upMaterialSfc, ProUpRecord upRecord, ProDownRecord downRecord)
{ {
LogHelper.Info("自动完工MES账目数量"); LogHelper.Info("自动完工MES账目数量");
LogRefreshEvent?.Invoke(LogType.MesLog, "自动完工MES账目数量" + eaValue); LogRefreshEvent?.Invoke(LogType.MesLog, "自动完工MES账目数量" + eaValue);

@ -215,13 +215,10 @@ namespace MaterialTraceability.Business
//收卷结束信号-1A气胀轴 //收卷结束信号-1A气胀轴
if (plcInstance.readInt32ByAddress(appConfig.AbAddress.) == 1) if (plcInstance.readInt32ByAddress(appConfig.AbAddress.) == 1)
{ {
lock (string.Empty) if (isReadFlag(ref AB_lastReadTime_SJEndSinal))
{ {
if (isReadFlag(ref AB_lastReadTime_SJEndSinal)) plcInstance.writeInt32ByAddress(appConfig.AbAddress., 0);
{ SignalRefreshEvent?.Invoke(4, 1);
plcInstance.writeInt32ByAddress(appConfig.AbAddress., 0);
SignalRefreshEvent?.Invoke(4, 1);
}
} }
} }

Loading…
Cancel
Save