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.
lj_plc/DataBlockHelper/DBHelpers/DB2107Helper.cs

90 lines
2.0 KiB
C#

using DataBlockHelper.Entity.DB2107Entity;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
1 year ago
using HslCommunication;
namespace DataBlockHelper.DBHelpers
{
public class DB2107Helper
{
1 year ago
// public OperateResult<byte[]> GetAll=>PlcConnect.Instance.Read("DB2107.0.0", 2057);
public NormalStatusEntity NormalStatus => NormalS();
private NormalStatusEntity NormalS()
{
return new NormalStatusEntity();
}
public ControlSignEntity ControlSign => ControlS();
private ControlSignEntity ControlS()
{
return new ControlSignEntity();
}
public PressureEntity Pressure => Press();
private PressureEntity Press()
{
return new PressureEntity();
}
public PIDEntity PID => Pid();
private PIDEntity Pid()
{
return new PIDEntity();
}
public WeightEntity Weight => Weigh();
private WeightEntity Weigh()
{
return new WeightEntity();
}
public WeightPraEntity WeightPra => WeightP();
private WeightPraEntity WeightP()
{
return new WeightPraEntity();
}
public SpeedEntity Speed => Spee();
private SpeedEntity Spee()
{
return new SpeedEntity();
}
public List<UntiStatusHMIArrayEntity> Dryer => new UntiStatusHMIArrayManager(4, 1408, 32).GetList();
public List<UntiStatusHMIArrayEntity> Gelater => new UntiStatusHMIArrayManager(8, 1536, 32).GetList();
public List<UntiStatusHMIArrayEntity> Weter => new UntiStatusHMIArrayManager(8, 1792, 32).GetList();
public ValveEntity Valve => Val();
private ValveEntity Val()
{
return new ValveEntity();
}
public LevelEntity Level => Lev();
private LevelEntity Lev()
{
return new LevelEntity();
}
}
}