|
|
|
@ -5,6 +5,7 @@ using DevExpress.Utils.FormShadow;
|
|
|
|
|
using Mesnac.Action.Base;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.LjDeliver.Entity;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.LjMaterial;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.Util;
|
|
|
|
|
using Mesnac.Controls.Base;
|
|
|
|
|
using Mesnac.Controls.ChemicalWeighing;
|
|
|
|
|
using Mesnac.Controls.Default;
|
|
|
|
@ -35,6 +36,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
|
|
|
|
|
DB1Helper DB1 = new DB1Helper();
|
|
|
|
|
DB90Helper DB90 = new DB90Helper();
|
|
|
|
|
DB91Helper DB91 = new DB91Helper();
|
|
|
|
|
DB137Helper DB137 = new DB137Helper();
|
|
|
|
|
|
|
|
|
|
byte[] b1;
|
|
|
|
|
byte[] b90; //db1/90的byte数组
|
|
|
|
@ -56,7 +58,6 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
|
|
|
|
|
ThreeWayValveEntity ThreeWayValveE = new ThreeWayValveEntity();
|
|
|
|
|
LjSwitchEntity LjSwitchE = new LjSwitchEntity();
|
|
|
|
|
MCLabelEntity LabelE = new MCLabelEntity();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 报警滚动条
|
|
|
|
|
/// </summary>
|
|
|
|
@ -119,6 +120,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
|
|
|
|
|
DB1 = new DB1Helper();
|
|
|
|
|
DB90 = new DB90Helper();
|
|
|
|
|
DB91 = new DB91Helper();
|
|
|
|
|
DB137 = new DB137Helper();
|
|
|
|
|
|
|
|
|
|
DB1GetData();
|
|
|
|
|
DB90GetData();
|
|
|
|
@ -424,9 +426,28 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
|
|
|
|
|
|
|
|
|
|
private void DBOtherGetData()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
PlcTemp.HighLevel1 = DB137.HighLevel01;
|
|
|
|
|
PlcTemp.HighLevel2 = DB137.HighLevel02;
|
|
|
|
|
PlcTemp.HighLevel3 = DB137.HighLevel03;
|
|
|
|
|
|
|
|
|
|
PlcTemp.Excitation1 = DB137.Excitation01;
|
|
|
|
|
PlcTemp.Excitation2 = DB137.Excitation02;
|
|
|
|
|
PlcTemp.Excitation3 = DB137.Excitation03;
|
|
|
|
|
|
|
|
|
|
PlcTemp.SideBlowing1 = DB137.SideBlowing01;
|
|
|
|
|
PlcTemp.SideBlowing2 = DB137.SideBlowing02;
|
|
|
|
|
PlcTemp.SideBlowing3 = DB137.SideBlowing03;
|
|
|
|
|
|
|
|
|
|
PlcTemp.Atank1_Set = MReadHelp.Read()[0];
|
|
|
|
|
PlcTemp.Atank2_Set = MReadHelp.Read()[1];
|
|
|
|
|
PlcTemp.Atank3_Set = MReadHelp.Read()[2];
|
|
|
|
|
PlcTemp.Atank4_Set = MReadHelp.Read()[3];
|
|
|
|
|
PlcTemp.Atank5_Set = MReadHelp.Read()[4];
|
|
|
|
|
PlcTemp.Atank6_Set = MReadHelp.Read()[5];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void DB1SetData()
|
|
|
|
|
{
|
|
|
|
|
ControlsHelper.SetMCLabel(LabelE.PR1ASI01, (float)Math.Round(PlcTemp.PR1ASI01_Set, 2));
|
|
|
|
@ -587,7 +608,23 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
|
|
|
|
|
|
|
|
|
|
private void DBOtherSetData()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ControlsImprot.SetJzf(JzfE.Excitation1, PlcTemp.Excitation1);
|
|
|
|
|
ControlsImprot.SetJzf(JzfE.Excitation2, PlcTemp.Excitation2);
|
|
|
|
|
ControlsImprot.SetJzf(JzfE.Excitation3, PlcTemp.Excitation3);
|
|
|
|
|
ControlsImprot.SetJzf(JzfE.SideBlowing1, PlcTemp.SideBlowing1);
|
|
|
|
|
ControlsImprot.SetJzf(JzfE.SideBlowing2, PlcTemp.SideBlowing2);
|
|
|
|
|
ControlsImprot.SetJzf(JzfE.SideBlowing3, PlcTemp.SideBlowing3);
|
|
|
|
|
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.Atank1, PlcTemp.Atank1_Set);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.Atank2, PlcTemp.Atank2_Set);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.Atank3, PlcTemp.Atank3_Set);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.Atank4, PlcTemp.Atank4_Set);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.Atank5, PlcTemp.Atank5_Set);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.Atank6, PlcTemp.Atank6_Set);
|
|
|
|
|
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HighLevel1, PlcTemp.HighLevel1);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HighLevel2, PlcTemp.HighLevel2);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HighLevel3, PlcTemp.HighLevel3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|