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_GFSB_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_GFSB_DownTask();//负极辊分下料任务
|
PLCClient agvplc = WCSService.Clients.Find(v => v.PLCName == "组装AGV调度");
|
if (agvplc != null)
|
{
|
OperateResult W_AGV_XTZZ = agvplc.SiemensPLCClient.SiemensS7NetClient.Write("DB1000.306.0", true);
|
}
|
|
}
|
catch (Exception) { }
|
}
|
}
|
}
|