using Admin.Core.IService; using Aucma.Core.PLc; using log4net; /// ///门体发泡数据采集 /// namespace Aucma.Core.Tasks { public class Job_DoorFoamTask { protected readonly IBaseOrderInfoServices _baseOrderInfoServices; private static readonly log4net.ILog log = LogManager.GetLogger(typeof(Job_DoorFoamTask)); public Job_DoorFoamTask() { } 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 } }