|
|
|
@ -3,6 +3,8 @@ using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using DataBlockHelper.DBHelpers;
|
|
|
|
|
using DataBlockHelper.DbWrite;
|
|
|
|
|
using DataBlockHelper.Entity.DB2107Entity;
|
|
|
|
|
|
|
|
|
|
using DevExpress.XtraGauges.Core.Model;
|
|
|
|
|
using DevExpress.XtraRichEdit.API.Layout;
|
|
|
|
|
|
|
|
|
@ -16,31 +18,28 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
|
|
|
|
|
private static void DownDbw12(PressureSettingView view)
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
// var basePlcHelper = GetPlcHelper;
|
|
|
|
|
// basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.mainPress_V1_LowLimit, view.LowLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.mainPress_V1_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.mainPress_V1_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlcWriteUtil plcWriter = new PlcWriteUtil();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
// var basePlcHelper = GetPlcHelper;
|
|
|
|
|
|
|
|
|
|
var ss= plcWriter.Write(PlcDbEnum.Db2107,"16.0",PlcDbType.PlcFloat,view.LowLimit);
|
|
|
|
|
ss= plcWriter.Write(PlcDbEnum.Db2107,"20.0",PlcDbType.PlcFloat,view.HighLimit);
|
|
|
|
|
|
|
|
|
|
DownDbPressureSettingView(16,view);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static PlcWriteUtil plcWriter = new PlcWriteUtil();
|
|
|
|
|
|
|
|
|
|
private static void DownDbPressureSettingView(int start, PressureSettingView view)
|
|
|
|
|
{
|
|
|
|
|
int begin = start;
|
|
|
|
|
int end = begin + 4;
|
|
|
|
|
|
|
|
|
|
plcWriter.Write(PlcDbEnum.Db2107, $"{begin}.0", PlcDbType.PlcFloat, view.LowLimit);
|
|
|
|
|
plcWriter.Write(PlcDbEnum.Db2107, $"{end}.0", PlcDbType.PlcFloat, view.HighLimit);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static DB2107Helper _db2107Helper = new DB2107Helper();
|
|
|
|
|
|
|
|
|
@ -66,45 +65,51 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V1_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V1_HighLimit, view.HighLimit);
|
|
|
|
|
|
|
|
|
|
DownDbPressureSettingView(30, view);
|
|
|
|
|
|
|
|
|
|
//var basePlcHelper = GetPlcHelper;
|
|
|
|
|
//basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V1_LowLimit, view.LowLimit);
|
|
|
|
|
//basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V1_HighLimit, view.HighLimit);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw26()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
|
|
|
|
|
var v1 = _db2107Helper.Pressure.TopPressure_V1;
|
|
|
|
|
|
|
|
|
|
return GetSettingView(2, v1);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static PressureSettingView GetSettingView(int id, Pressure_HMI v1)
|
|
|
|
|
{
|
|
|
|
|
PressureSettingView view = new PressureSettingView();
|
|
|
|
|
view.Id = 2;
|
|
|
|
|
view.LowLimit = basePlcHelper.topPressure_V1_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.topPressure_V1_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.topPressure_V1_Alarm.NowValue.ToInt();
|
|
|
|
|
view.Id = id;
|
|
|
|
|
view.LowLimit = v1.LowLimit;
|
|
|
|
|
view.HighLimit = v1.HighLimit;
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static void DownDbw40(PressureSettingView view)
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePressure_V1_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePressure_V1_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.linePressure_V1_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(44, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw40()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView();
|
|
|
|
|
view.Id = 3;
|
|
|
|
|
view.LowLimit = basePlcHelper.linePressure_V1_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.linePressure_V1_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.linePressure_V1_Alarm.NowValue.ToInt();
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(3, _db2107Helper.Pressure.LinePressure_V1);
|
|
|
|
|
//view.Id = 3;
|
|
|
|
|
//view.LowLimit = basePlcHelper.linePressure_V1_LowLimit.NowValue.ToFloat();
|
|
|
|
|
//view.HighLimit = basePlcHelper.linePressure_V1_HighLimit.NowValue.ToFloat();
|
|
|
|
|
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -113,22 +118,18 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.mainPress_V2_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.mainPress_V2_HighLimit, view.HighLimit);
|
|
|
|
|
basePlcHelper.PlcWriteByDataKey(basePlcHelper.mainPress_V2_Alarm,
|
|
|
|
|
new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(58, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw54()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView();
|
|
|
|
|
view.Id = 4;
|
|
|
|
|
view.LowLimit = basePlcHelper.mainPress_V2_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.mainPress_V2_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.mainPress_V2_Alarm.NowValue.ToInt();
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(4, _db2107Helper.Pressure.MainPress_V2);
|
|
|
|
|
//view.Id = 4;
|
|
|
|
|
//view.LowLimit = basePlcHelper.mainPress_V2_LowLimit.NowValue.ToFloat();
|
|
|
|
|
//view.HighLimit = basePlcHelper.mainPress_V2_HighLimit.NowValue.ToFloat();
|
|
|
|
|
//view.Alarm = basePlcHelper.mainPress_V2_Alarm.NowValue.ToInt();
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -137,22 +138,18 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V2_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V2_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.topPressure_V2_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(72, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw68()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView();
|
|
|
|
|
view.Id = 5;
|
|
|
|
|
view.LowLimit = basePlcHelper.topPressure_V2_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.topPressure_V2_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.topPressure_V2_Alarm.NowValue.ToInt();
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(5, _db2107Helper.Pressure.TopPressure_V2);
|
|
|
|
|
//view.Id = 5;
|
|
|
|
|
//view.LowLimit = basePlcHelper.topPressure_V2_LowLimit.NowValue.ToFloat();
|
|
|
|
|
//view.HighLimit = basePlcHelper.topPressure_V2_HighLimit.NowValue.ToFloat();
|
|
|
|
|
//view.Alarm = basePlcHelper.topPressure_V2_Alarm.NowValue.ToInt();
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -161,22 +158,18 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePressure_V2_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePressure_V2_HighLimit, view.HighLimit);
|
|
|
|
|
basePlcHelper.PlcWriteByDataKey(basePlcHelper.linePressure_V2_Alarm,
|
|
|
|
|
new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(86, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw82()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView();
|
|
|
|
|
view.Id = 6;
|
|
|
|
|
view.LowLimit = basePlcHelper.linePressure_V2_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.linePressure_V2_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.linePressure_V2_Alarm.NowValue.ToInt();
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(6, _db2107Helper.Pressure.LinePressure_V2);
|
|
|
|
|
//view.Id = 6;
|
|
|
|
|
//view.LowLimit = basePlcHelper.linePressure_V2_LowLimit.NowValue.ToFloat();
|
|
|
|
|
//view.HighLimit = basePlcHelper.linePressure_V2_HighLimit.NowValue.ToFloat();
|
|
|
|
|
//view.Alarm = basePlcHelper.linePressure_V2_Alarm.NowValue.ToInt();
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -184,22 +177,18 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.mainPress_V3_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.mainPress_V3_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.mainPress_V3_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(100, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw96()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView();
|
|
|
|
|
view.Id = 7;
|
|
|
|
|
view.LowLimit = basePlcHelper.mainPress_V3_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.mainPress_V3_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.mainPress_V3_Alarm.NowValue.ToInt();
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(7, _db2107Helper.Pressure.MainPress_V3);
|
|
|
|
|
//view.Id = 7;
|
|
|
|
|
//view.LowLimit = basePlcHelper.mainPress_V3_LowLimit.NowValue.ToFloat();
|
|
|
|
|
//view.HighLimit = basePlcHelper.mainPress_V3_HighLimit.NowValue.ToFloat();
|
|
|
|
|
//view.Alarm = basePlcHelper.mainPress_V3_Alarm.NowValue.ToInt();
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -208,22 +197,18 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V3_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V3_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.topPressure_V3_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(114, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw110()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView();
|
|
|
|
|
view.Id = 8;
|
|
|
|
|
view.LowLimit = basePlcHelper.topPressure_V3_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.topPressure_V3_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.topPressure_V3_Alarm.NowValue.ToInt();
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(8, _db2107Helper.Pressure.TopPressure_V3);
|
|
|
|
|
//view.Id = 8;
|
|
|
|
|
//view.LowLimit = basePlcHelper.topPressure_V3_LowLimit.NowValue.ToFloat();
|
|
|
|
|
//view.HighLimit = basePlcHelper.topPressure_V3_HighLimit.NowValue.ToFloat();
|
|
|
|
|
//view.Alarm = basePlcHelper.topPressure_V3_Alarm.NowValue.ToInt();
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -231,24 +216,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePressure_V3_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePressure_V3_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.linePressure_V3_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(128, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw124()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 9,
|
|
|
|
|
LowLimit = basePlcHelper.linePressure_V3_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.linePressure_V3_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.linePressure_V3_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(9, _db2107Helper.Pressure.LinePressure_V3);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 9,
|
|
|
|
|
// LowLimit = basePlcHelper.linePressure_V3_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.linePressure_V3_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.linePressure_V3_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -257,23 +238,19 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.mainPress_V4_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.mainPress_V4_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.mainPress_V4_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(142, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private static PressureSettingView UpDbw138()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 10,
|
|
|
|
|
LowLimit = basePlcHelper.mainPress_V4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.mainPress_V4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.mainPress_V4_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(10, _db2107Helper.Pressure.MainPress_V4);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 10,
|
|
|
|
|
// LowLimit = basePlcHelper.mainPress_V4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.mainPress_V4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.mainPress_V4_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -282,24 +259,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V4_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V4_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.topPressure_V4_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(156, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw152()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 11,
|
|
|
|
|
LowLimit = basePlcHelper.topPressure_V4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.topPressure_V4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.topPressure_V4_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(11, _db2107Helper.Pressure.TopPressure_V4);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 11,
|
|
|
|
|
// LowLimit = basePlcHelper.topPressure_V4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.topPressure_V4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.topPressure_V4_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -307,24 +280,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePressure_V4_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePressure_V4_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.linePressure_V4_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(170, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw166()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 12,
|
|
|
|
|
LowLimit = basePlcHelper.linePressure_V4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.linePressure_V4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.linePressure_V4_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(12, _db2107Helper.Pressure.LinePressure_V4);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 12,
|
|
|
|
|
// LowLimit = basePlcHelper.linePressure_V4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.linePressure_V4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.linePressure_V4_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -333,24 +302,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.mainPress_V5_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.mainPress_V5_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.mainPress_V5_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(184, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw180()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 13,
|
|
|
|
|
LowLimit = basePlcHelper.mainPress_V5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.mainPress_V5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.mainPress_V5_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(13, _db2107Helper.Pressure.MainPress_V5);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 13,
|
|
|
|
|
// LowLimit = basePlcHelper.mainPress_V5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.mainPress_V5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.mainPress_V5_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -359,24 +324,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V5_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V5_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.topPressure_V5_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(198, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw194()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 14,
|
|
|
|
|
LowLimit = basePlcHelper.topPressure_V5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.topPressure_V5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.topPressure_V5_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(14, _db2107Helper.Pressure.TopPressure_V5);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 14,
|
|
|
|
|
// LowLimit = basePlcHelper.topPressure_V5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.topPressure_V5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.topPressure_V5_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -384,24 +345,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePressure_V5_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePressure_V5_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.linePressure_V5_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(212, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw208()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 15,
|
|
|
|
|
LowLimit = basePlcHelper.linePressure_V5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.linePressure_V5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.linePressure_V5_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(15, _db2107Helper.Pressure.LinePressure_V5);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 15,
|
|
|
|
|
// LowLimit = basePlcHelper.linePressure_V5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.linePressure_V5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.linePressure_V5_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -411,24 +368,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B1_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B1_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDaybin_B1_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(226, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw222()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 16,
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B1_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B1_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B1_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(16, _db2107Helper.Pressure.PressDaybin_B1);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 16,
|
|
|
|
|
// LowLimit = basePlcHelper.presDaybin_B1_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.presDaybin_B1_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.presDaybin_B1_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -436,24 +389,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B2_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B2_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDaybin_B2_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(240, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw236()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 17,
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B2_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B2_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B2_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(17, _db2107Helper.Pressure.PressDaybin_B2);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 17,
|
|
|
|
|
// LowLimit = basePlcHelper.presDaybin_B2_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.presDaybin_B2_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.presDaybin_B2_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -461,24 +410,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B3_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B3_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDaybin_B3_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(254, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw250()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 18,
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B3_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B3_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B3_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(18, _db2107Helper.Pressure.PressDaybin_B3);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 18,
|
|
|
|
|
// LowLimit = basePlcHelper.presDaybin_B3_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.presDaybin_B3_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.presDaybin_B3_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -486,24 +431,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B4_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B4_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDaybin_B4_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(268, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw264()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 19,
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B4_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(19, _db2107Helper.Pressure.PressDaybin_B4);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 19,
|
|
|
|
|
// LowLimit = basePlcHelper.presDaybin_B4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.presDaybin_B4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.presDaybin_B4_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -511,24 +452,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B5_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B5_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDaybin_B5_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(282, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw278()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 20,
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B5_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(20, _db2107Helper.Pressure.PressDaybin_B5);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 20,
|
|
|
|
|
// LowLimit = basePlcHelper.presDaybin_B5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.presDaybin_B5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.presDaybin_B5_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -536,23 +473,19 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B6_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B6_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDaybin_B6_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(296, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private static PressureSettingView UpDbw292()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 21,
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B6_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B6_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B6_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(21, _db2107Helper.Pressure.PressDaybin_B6);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 21,
|
|
|
|
|
// LowLimit = basePlcHelper.presDaybin_B6_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.presDaybin_B6_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.presDaybin_B6_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -560,24 +493,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B7_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B7_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDaybin_B7_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(310, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw306()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 22,
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B7_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B7_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B7_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(22, _db2107Helper.Pressure.PressDaybin_B7);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 22,
|
|
|
|
|
// LowLimit = basePlcHelper.presDaybin_B7_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.presDaybin_B7_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.presDaybin_B7_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -585,24 +514,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B8_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B8_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDaybin_B8_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(324, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw320()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 23,
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B8_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B8_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B8_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(23, _db2107Helper.Pressure.PressDaybin_B8);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 23,
|
|
|
|
|
// LowLimit = basePlcHelper.presDaybin_B8_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.presDaybin_B8_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.presDaybin_B8_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -610,24 +535,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B9_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B9_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDaybin_B9_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(338, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw334()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 24,
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B9_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B9_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B9_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(24, _db2107Helper.Pressure.PressDaybin_B9);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 24,
|
|
|
|
|
// LowLimit = basePlcHelper.presDaybin_B9_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.presDaybin_B9_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.presDaybin_B9_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -635,24 +556,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B10_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B10_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDaybin_B10_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(352, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw348()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 25,
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B10_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B10_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B10_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(25, _db2107Helper.Pressure.PressDaybin_B10);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 25,
|
|
|
|
|
// LowLimit = basePlcHelper.presDaybin_B10_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.presDaybin_B10_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.presDaybin_B10_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -660,24 +577,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B11_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B11_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDaybin_B11_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(366, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw362()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 26,
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B11_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B11_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B11_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(26, _db2107Helper.Pressure.PressDaybin_B11);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 26,
|
|
|
|
|
// LowLimit = basePlcHelper.presDaybin_B11_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.presDaybin_B11_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.presDaybin_B11_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -685,24 +598,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B12_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDaybin_B12_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDaybin_B12_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(380, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw376()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 27,
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B12_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B12_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B12_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(27, _db2107Helper.Pressure.PressDaybin_B12);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 27,
|
|
|
|
|
// LowLimit = basePlcHelper.presDaybin_B12_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.presDaybin_B12_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.presDaybin_B12_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -711,24 +620,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.PR2PCP01_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.PR2PCP01_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.PR2PCP01_B12_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(394, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw390()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 28,
|
|
|
|
|
LowLimit = basePlcHelper.PR2PCP01_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.PR2PCP01_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.PR2PCP01_B12_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(28, _db2107Helper.Pressure.PR2PCP01);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 28,
|
|
|
|
|
// LowLimit = basePlcHelper.PR2PCP01_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.PR2PCP01_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.PR2PCP01_B12_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -737,24 +642,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.PR2PCP02_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.PR2PCP02_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.PR2PCP02_B12_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(408, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw404()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 29,
|
|
|
|
|
LowLimit = basePlcHelper.PR2PCP02_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.PR2PCP02_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.PR2PCP02_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(29, _db2107Helper.Pressure.PR2PCP02);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 29,
|
|
|
|
|
// LowLimit = basePlcHelper.PR2PCP02_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.PR2PCP02_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.PR2PCP02_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -763,24 +664,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
{
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.PR2PCP03_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.PR2PCP03_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.PR2PCP03_B12_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
DownDbPressureSettingView(422, view);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static PressureSettingView UpDbw418()
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 30,
|
|
|
|
|
LowLimit = basePlcHelper.PR2PCP03_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.PR2PCP03_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.PR2PCP03_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PressureSettingView view = GetSettingView(30, _db2107Helper.Pressure.PR2PCP03);
|
|
|
|
|
//{
|
|
|
|
|
// Id = 30,
|
|
|
|
|
// LowLimit = basePlcHelper.PR2PCP03_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
// HighLimit = basePlcHelper.PR2PCP03_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
// Alarm = basePlcHelper.PR2PCP03_Alarm.NowValue.ToInt()
|
|
|
|
|
//};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|