using HslCommunication;
|
using Quartz;
|
using System;
|
using System.Threading.Tasks;
|
using WIDESEA_WCS.Jobs;
|
using WIDESEA_WCS.WCSClient;
|
|
namespace WIDESEA_WCS
|
{
|
/// <summary>
|
/// 负极涂布下料任务
|
/// </summary>
|
[DisallowConcurrentExecution]
|
public class F_TBSB_DownTaskJob : JobBase, IJob
|
{
|
public Task Execute(IJobExecutionContext context)
|
{
|
try
|
{
|
ExecuteJob(context, DoAction);
|
}
|
catch { }
|
return Task.FromResult(string.Empty);
|
}
|
|
|
private void DoAction(IJobExecutionContext context)
|
{
|
try
|
{
|
StackerExecutor.F_TBSB_DownTask(); //负极涂布下料任务
|
PLCClient agvplcF = WCSService.Clients.Find(v => v.PLCName == "负极AGV调度");
|
if (agvplcF != null)
|
{
|
OperateResult W_AGV_XTF = agvplcF.SiemensPLCClient.SiemensS7NetClient.Write("DB1000.306.0", true);
|
}
|
}
|
catch (Exception) { }
|
}
|
}
|
}
|