|
|
|
@ -196,8 +196,6 @@ namespace Aucma.Core.BoxFoam.Business
|
|
|
|
|
if (taskInfo != null)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
logHelper.Info($"下发泡前入库任务:{taskInfo.TaskCode};仓库{taskInfo.StoreCode};货道:{taskInfo.SpaceCode}");
|
|
|
|
|
LogDelegateEvent?.Invoke($"下发泡前入库任务:{taskInfo.TaskCode};仓库{taskInfo.StoreCode};货道:{taskInfo.SpaceCode},等待plc反馈");
|
|
|
|
|
if (SendFoamTask_InStore(taskInfo))
|
|
|
|
|
{
|
|
|
|
|
logHelper.Info($"泡前入库任务:{taskInfo.TaskCode};下发成功,等待PLC执行反馈");
|
|
|
|
@ -471,7 +469,9 @@ namespace Aucma.Core.BoxFoam.Business
|
|
|
|
|
var obj = PlcHelper.siemensList.FirstOrDefault(d => d.EquipName.Equals("泡前库Plc"));
|
|
|
|
|
if (obj != null && obj.plc.IsConnected)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
logHelper.Info($"下发泡前入库任务:{taskInfo.TaskCode};仓库{taskInfo.StoreCode};货道:{taskInfo.SpaceCode}");
|
|
|
|
|
LogDelegateEvent?.Invoke($"下发泡前入库任务:{taskInfo.TaskCode};仓库{taskInfo.StoreCode};货道:{taskInfo.SpaceCode},等待plc反馈");
|
|
|
|
|
|
|
|
|
|
//写入应答字
|
|
|
|
|
obj.plc.WriteInt16("DB200.2", "1");
|
|
|
|
|
//写入货道物料类型
|
|
|
|
|