|
|
|
|
using DataBlockHelper.Entity.DB2107Entity;
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using HslCommunication;
|
|
|
|
|
|
|
|
|
|
namespace DataBlockHelper.DBHelpers
|
|
|
|
|
{
|
|
|
|
|
public class DB2107Helper
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|