dep_deliver
杨威 4 months ago
parent 2a7853260d
commit a4eb575313

@ -1,4 +1,5 @@
using DataBlockHelper.DBHelpers;
using DataBlockHelper;
using DataBlockHelper.DBHelpers;
@ -147,8 +148,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting
speed.TxtSpeedMB.MCValue = dB91.DM2DSM01.SetSpeed_M.ToString();
speed.TxtSpeedMC.MCValue = dB91.DM3DSM01.SetSpeed_M.ToString();
speed.SetSpeedA.MCValue=dB91.DM1GDS12.SetSpeed_A.ToString();
speed.SetSpeedM.MCValue = dB91.DM1GDS12.SetSpeed_M.ToString();
speed.SetSpeedA.MCValue = PlcConnect.Instance.ReadFloat("DB2101.218").Content;
speed.SetSpeedM.MCValue = PlcConnect.Instance.ReadFloat("DB2101.222").Content;
}
}

@ -80,7 +80,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting
Convert.ToSingle(speed.TxtSpeedMC.MCValue),
});
DB91WriterHelper.AddSpeed(Convert.ToSingle(speed.SetSpeedA.MCValue), Convert.ToSingle(speed.SetSpeedM.MCValue));
DB91WriterHelper.AddSpeed(Convert.ToSingle(speed.SetSpeedA.MCValue),
Convert.ToSingle(speed.SetSpeedM.MCValue));
MessageBox.Show("下传成功");

@ -41,8 +41,8 @@ namespace DataBlockHelper.DBHelpers
public static void AddSpeed(float a,float m)
{
var siemensS7Net = PlcConnect.Instance;
siemensS7Net.Write("DB91.78.0", a);
siemensS7Net.Write("DB91.82.0", m);
siemensS7Net.Write("DB2101.218", a);
siemensS7Net.Write("DB2101.222", m);
}
}
}

Loading…
Cancel
Save