change - 大仓料位显示纠正

dep_deliver
wangsr 11 months ago
parent 73d21ea81a
commit 09ec22f10d

@ -37,6 +37,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
DB90Helper DB90 = new DB90Helper();
DB91Helper DB91 = new DB91Helper();
DB137Helper DB137 = new DB137Helper();
DB120Helper DB120 = new DB120Helper();
byte[] b1;
byte[] b90; //db1/90的byte数组
@ -189,21 +190,6 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
PlcTemp.PR3DBT03_Set = DB1.PR3DBT03.ACT_VALUE;
PlcTemp.PR3DBT04_Set = DB1.PR3DBT04.ACT_VALUE;
PlcTemp.Bottle1_Set = DB1.LS1ASI01.ACT_VALUE;
PlcTemp.Bottle2_Set = DB1.LS1BSI01.ACT_VALUE;
PlcTemp.Bottle3_Set = DB1.LS1CSI01.ACT_VALUE;
PlcTemp.Bottle4_Set = DB1.LS1DSI01.ACT_VALUE;
PlcTemp.Bottle5_Set = DB1.LS1ESI01.ACT_VALUE;
PlcTemp.Bottle6_Set = DB1.LS1FSI01.ACT_VALUE;
PlcTemp.Bottle7_Set = DB1.LS1GSI01.ACT_VALUE;
PlcTemp.Bottle8_Set = DB1.LS1HSI01.ACT_VALUE;
PlcTemp.Bottle9_Set = DB1.LS1ISI01.ACT_VALUE;
PlcTemp.Bottle10_Set = DB1.LS1JSI01.ACT_VALUE;
PlcTemp.Bottle11_Set = DB1.LS1KSI01.ACT_VALUE;
PlcTemp.Bottle12_Set = DB1.LS1LSI01.ACT_VALUE;
PlcTemp.Bottle13_Set = DB1.LS1MSI01.ACT_VALUE;
PlcTemp.Bottle14_Set = DB1.LS1NSI01.ACT_VALUE;
PlcTemp.Bottle15_Set = DB1.LS1OSI01.ACT_VALUE;
}
private void DB90GetData()
@ -444,6 +430,23 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
PlcTemp.Atank4_Set = MReadHelp.Read()[3];
PlcTemp.Atank5_Set = MReadHelp.Read()[4];
PlcTemp.Atank6_Set = MReadHelp.Read()[5];
PlcTemp.Bottle1_Set = DB120.SiloA;
PlcTemp.Bottle2_Set = DB120.SiloB;
PlcTemp.Bottle3_Set = DB120.SiloC;
PlcTemp.Bottle4_Set = DB120.SiloD;
PlcTemp.Bottle5_Set = DB120.SiloE;
PlcTemp.Bottle6_Set = DB120.SiloF;
PlcTemp.Bottle7_Set = DB120.SiloG;
PlcTemp.Bottle8_Set = DB120.SiloH;
PlcTemp.Bottle9_Set = DB120.SiloI;
PlcTemp.Bottle10_Set = DB120.SiloJ;
PlcTemp.Bottle11_Set = DB120.SiloK;
PlcTemp.Bottle12_Set = DB120.SiloL;
PlcTemp.Bottle13_Set = DB120.SiloM;
PlcTemp.Bottle14_Set = DB120.SiloN;
PlcTemp.Bottle15_Set = DB120.SiloO;
}

@ -85,7 +85,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting
private void SetValue()
{
DB120Help dB120Help = new DB120Help();
DB120Helper dB120Help = new DB120Helper();
var hd = dB120Help.GetUhd;
slioEntity.TxtA.MCValue = hd.A.ToString();
slioEntity.TxtB.MCValue = hd.B.ToString();

@ -80,10 +80,10 @@ namespace Mesnac.Action.ChemicalWeighing.Test
private void MCButton_Click(object sender, EventArgs e)
{
var s= new DB120Help().SiloO;
var s= new DB120Helper().SiloO;
s = new DB120Help().SiloJ;
s = new DB120Helper().SiloJ;
DB120WriteHelp.AddABCDEF(new Uhd()
{
@ -108,7 +108,7 @@ namespace Mesnac.Action.ChemicalWeighing.Test
});
DB120Help help1 = new DB120Help();
DB120Helper help1 = new DB120Helper();
var user = help1.GetUhd;

@ -8,10 +8,10 @@ using System.Threading.Tasks;
namespace DataBlockHelper.DBHelpers
{
public class DB120Help: DBHelper
public class DB120Helper: DBHelper
{
public DB120Help() {
public DB120Helper() {
OperateResult<byte[]> db120 = PlcConnect.Instance.Read("DB120.0.0", 154);
bytes = db120.Content;

@ -50,7 +50,7 @@
<Compile Include="Class1.cs" />
<Compile Include="DBHelpers\DB112Helper.cs" />
<Compile Include="DBHelpers\DB112WriterHelper.cs" />
<Compile Include="DBHelpers\DB120Help.cs" />
<Compile Include="DBHelpers\DB120Helper.cs" />
<Compile Include="DBHelpers\DB120WriteHelp.cs" />
<Compile Include="DBHelpers\DB137Helper.cs" />
<Compile Include="DBHelpers\DB137WriterHelper.cs" />

Loading…
Cancel
Save