|
|
|
@ -43,9 +43,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPres_V1_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPres_V1_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.topPres_V1_Alarm,
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V1_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPressure_V1_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.topPressure_V1_Alarm,
|
|
|
|
|
// new object[] { Convert.ToBoolean(view.Alarm) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -55,9 +55,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView();
|
|
|
|
|
view.Id = 2;
|
|
|
|
|
view.LowLimit = basePlcHelper.topPres_V1_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.topPres_V1_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.topPres_V1_Alarm.NowValue.ToInt();
|
|
|
|
|
view.LowLimit = basePlcHelper.topPressure_V1_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.topPressure_V1_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.topPressure_V1_Alarm.NowValue.ToInt();
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -67,9 +67,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePres_V1_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePres_V1_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.linePres_V1_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -79,9 +79,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView();
|
|
|
|
|
view.Id = 3;
|
|
|
|
|
view.LowLimit = basePlcHelper.linePres_V1_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.linePres_V1_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.linePres_V1_Alarm.NowValue.ToInt();
|
|
|
|
|
view.LowLimit = basePlcHelper.linePressure_V1_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.linePressure_V1_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.linePressure_V1_Alarm.NowValue.ToInt();
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -115,9 +115,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPres_V2_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPres_V2_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.topPres_V2_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -127,9 +127,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView();
|
|
|
|
|
view.Id = 5;
|
|
|
|
|
view.LowLimit = basePlcHelper.topPres_V2_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.topPres_V2_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.topPres_V2_Alarm.NowValue.ToInt();
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -139,9 +139,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePres_V2_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePres_V2_HighLimit, view.HighLimit);
|
|
|
|
|
basePlcHelper.PlcWriteByDataKey(basePlcHelper.linePres_V2_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -151,9 +151,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView();
|
|
|
|
|
view.Id = 6;
|
|
|
|
|
view.LowLimit = basePlcHelper.linePres_V2_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.linePres_V2_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.linePres_V2_Alarm.NowValue.ToInt();
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -186,9 +186,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPres_V3_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPres_V3_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.topPres_V3_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -198,9 +198,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
PressureSettingView view = new PressureSettingView();
|
|
|
|
|
view.Id = 8;
|
|
|
|
|
view.LowLimit = basePlcHelper.topPres_V3_LowLimit.NowValue.ToFloat();
|
|
|
|
|
view.HighLimit = basePlcHelper.topPres_V3_HighLimit.NowValue.ToFloat();
|
|
|
|
|
view.Alarm = basePlcHelper.topPres_V3_Alarm.NowValue.ToInt();
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -209,9 +209,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePres_V3_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePres_V3_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.linePres_V3_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -222,9 +222,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 9,
|
|
|
|
|
LowLimit = basePlcHelper.linePres_V3_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.linePres_V3_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.linePres_V3_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.linePressure_V3_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.linePressure_V3_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.linePressure_V3_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -260,9 +260,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPres_V4_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPres_V4_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.topPres_V4_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -273,9 +273,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 11,
|
|
|
|
|
LowLimit = basePlcHelper.topPres_V4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.topPres_V4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.topPres_V4_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.topPressure_V4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.topPressure_V4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.topPressure_V4_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -285,9 +285,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePres_V4_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePres_V4_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.linePres_V4_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -298,9 +298,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 12,
|
|
|
|
|
LowLimit = basePlcHelper.linePres_V4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.linePres_V4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.linePres_V4_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.linePressure_V4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.linePressure_V4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.linePressure_V4_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -337,9 +337,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPres_V5_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.topPres_V5_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.topPres_V5_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -350,9 +350,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 14,
|
|
|
|
|
LowLimit = basePlcHelper.topPres_V5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.topPres_V5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.topPres_V5_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.topPressure_V5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.topPressure_V5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.topPressure_V5_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -362,9 +362,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePres_V5_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.linePres_V5_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.linePres_V5_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -375,9 +375,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 15,
|
|
|
|
|
LowLimit = basePlcHelper.linePres_V5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.linePres_V5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.linePres_V5_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.linePressure_V5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.linePressure_V5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.linePressure_V5_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -389,9 +389,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B1_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B1_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDay_B1_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -402,9 +402,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 16,
|
|
|
|
|
LowLimit = basePlcHelper.presDay_B1_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDay_B1_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDay_B1_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B1_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B1_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B1_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -414,9 +414,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B2_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B2_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDay_B2_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -427,9 +427,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 17,
|
|
|
|
|
LowLimit = basePlcHelper.presDay_B2_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDay_B2_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDay_B2_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B2_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B2_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B2_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -439,9 +439,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B3_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B3_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDay_B3_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -452,9 +452,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 18,
|
|
|
|
|
LowLimit = basePlcHelper.presDay_B3_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDay_B3_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDay_B3_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B3_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B3_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B3_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -464,9 +464,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B4_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B4_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDay_B4_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -477,9 +477,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 19,
|
|
|
|
|
LowLimit = basePlcHelper.presDay_B4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDay_B4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDay_B4_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B4_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B4_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B4_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -489,9 +489,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B5_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B5_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDay_B5_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -502,9 +502,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 20,
|
|
|
|
|
LowLimit = basePlcHelper.presDay_B5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDay_B5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDay_B5_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B5_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B5_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B5_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -514,9 +514,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B6_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B6_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDay_B6_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -526,9 +526,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 21,
|
|
|
|
|
LowLimit = basePlcHelper.presDay_B6_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDay_B6_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDay_B6_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B6_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B6_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B6_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -538,9 +538,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B7_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B7_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDay_B7_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -551,9 +551,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 22,
|
|
|
|
|
LowLimit = basePlcHelper.presDay_B7_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDay_B7_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDay_B7_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B7_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B7_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B7_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -563,9 +563,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B8_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B8_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDay_B8_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -576,9 +576,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 23,
|
|
|
|
|
LowLimit = basePlcHelper.presDay_B8_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDay_B8_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDay_B8_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B8_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B8_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B8_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -588,9 +588,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B9_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B9_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDay_B9_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -601,9 +601,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 24,
|
|
|
|
|
LowLimit = basePlcHelper.presDay_B9_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDay_B9_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDay_B9_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B9_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B9_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B9_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -613,9 +613,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B10_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B10_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDay_B10_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -626,9 +626,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 25,
|
|
|
|
|
LowLimit = basePlcHelper.presDay_B10_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDay_B10_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDay_B10_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B10_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B10_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B10_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -638,9 +638,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B11_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B11_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDay_B11_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -651,9 +651,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 26,
|
|
|
|
|
LowLimit = basePlcHelper.presDay_B11_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDay_B11_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDay_B11_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B11_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B11_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B11_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -663,9 +663,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B12_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.presDay_B12_HighLimit, view.HighLimit);
|
|
|
|
|
// basePlcHelper.PlcWriteByDataKey(basePlcHelper.presDay_B12_Alarm,
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -676,9 +676,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 27,
|
|
|
|
|
LowLimit = basePlcHelper.presDay_B12_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDay_B12_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDay_B12_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.presDaybin_B12_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.presDaybin_B12_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.presDaybin_B12_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -689,8 +689,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.PR2PCP01_B12_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.PR2PCP01_B12_HighLimit, view.HighLimit);
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
@ -702,8 +702,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 28,
|
|
|
|
|
LowLimit = basePlcHelper.PR2PCP01_B12_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.PR2PCP01_B12_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
LowLimit = basePlcHelper.PR2PCP01_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.PR2PCP01_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.PR2PCP01_B12_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
@ -715,8 +715,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.PR2PCP02_B12_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.PR2PCP02_B12_HighLimit, view.HighLimit);
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
@ -728,9 +728,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 29,
|
|
|
|
|
LowLimit = basePlcHelper.PR2PCP02_B12_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.PR2PCP02_B12_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.PR2PCP02_B12_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.PR2PCP02_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.PR2PCP02_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.PR2PCP02_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -741,8 +741,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
if (view != null)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = GetPlcHelper;
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.PR2PCP03_B12_LowLimit, view.LowLimit);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.PR2PCP03_B12_HighLimit, view.HighLimit);
|
|
|
|
|
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) });
|
|
|
|
|
}
|
|
|
|
@ -754,9 +754,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPressure
|
|
|
|
|
PressureSettingView view = new PressureSettingView
|
|
|
|
|
{
|
|
|
|
|
Id = 30,
|
|
|
|
|
LowLimit = basePlcHelper.PR2PCP03_B12_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.PR2PCP03_B12_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.PR2PCP03_B12_Alarm.NowValue.ToInt()
|
|
|
|
|
LowLimit = basePlcHelper.PR2PCP03_LowLimit.NowValue.ToFloat(),
|
|
|
|
|
HighLimit = basePlcHelper.PR2PCP03_HighLimit.NowValue.ToFloat(),
|
|
|
|
|
Alarm = basePlcHelper.PR2PCP03_Alarm.NowValue.ToInt()
|
|
|
|
|
};
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
|