You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
885 B
C#

1 year ago
using Admin.Core.IService;
using Aucma.Core.PLc;
using log4net;
/// <summary>
///门体发泡数据采集
/// </summary>
namespace Aucma.Core.Tasks
{
public class Job_DoorFoamTask
1 year ago
{
protected readonly IBaseOrderInfoServices _baseOrderInfoServices;
private static readonly log4net.ILog log = LogManager.GetLogger(typeof(Job_DoorFoamTask));
public Job_DoorFoamTask()
1 year ago
{
}
public async Task Execute()
{
await Run();
}
#region 门体发泡数据采集
public Task Run()
{
var obj = PlcHelper.melsecList.FirstOrDefault(d => d.EquipName.Equals("DoorPlc"));
if (obj.plc.IsConnected)
{
var endSignal = obj.plc.ReadInt16("DB4.DBW0");
}
return Task.FromResult(0);
}
#endregion
}
}