master
nodyang 1 year ago
parent 485e125ed5
commit b20ef12c7e

@ -1585,5 +1585,262 @@ namespace Mesnac.Action.ChemicalWeighing
public DataKeyValue Water3_JogTime { get; set; }
public DataKeyValue SpeedD1 { get; set; }
public DataKeyValue SpeedD2 { get; set; }
public DataKeyValue SpeedD3 { get; set; }
public DataKeyValue SpeedD4 { get; set; }
public DataKeyValue SpeedG1 { get; set; }
public DataKeyValue SpeedG2 { get; set; }
public DataKeyValue SpeedG3 { get; set; }
public DataKeyValue SpeedG4 { get; set; }
public DataKeyValue SpeedG5 { get; set; }
public DataKeyValue SpeedG6 { get; set; }
public DataKeyValue SpeedG7 { get; set; }
public DataKeyValue SpeedG8 { get; set; }
public DataKeyValue SpeedH1 { get; set; }
public DataKeyValue SpeedH2 { get; set; }
public DataKeyValue SpeedH3 { get; set; }
public DataKeyValue SpeedH4 { get; set; }
public DataKeyValue SpeedS1 { get; set; }
public DataKeyValue SpeedS5 { get; set; }
public DataKeyValue SpeedS7 { get; set; }
public DataKeyValue SpeedS11 { get; set; }
public DataKeyValue SpeedS15 { get; set; }
public DataKeyValue Dryer0_mode { get; set; }
public DataKeyValue Dryer0_status { get; set; }
public DataKeyValue Dryer0_batch { get; set; }
public DataKeyValue Dryer0_step { get; set; }
public DataKeyValue Dryer0_stepCode { get; set; }
public DataKeyValue Dryer0_totalTime { get; set; }
public DataKeyValue Dryer0_stepTime { get; set; }
public DataKeyValue Dryer0_temperature { get; set; }
public DataKeyValue Dryer0_speed { get; set; }
public DataKeyValue Dryer0_currnet { get; set; }
public DataKeyValue Dryer0_pressure { get; set; }
public DataKeyValue Dryer1_mode { get; set; }
public DataKeyValue Dryer1_status { get; set; }
public DataKeyValue Dryer1_batch { get; set; }
public DataKeyValue Dryer1_step { get; set; }
public DataKeyValue Dryer1_stepCode { get; set; }
public DataKeyValue Dryer1_totalTime { get; set; }
public DataKeyValue Dryer1_stepTime { get; set; }
public DataKeyValue Dryer1_temperature { get; set; }
public DataKeyValue Dryer1_speed { get; set; }
public DataKeyValue Dryer1_currnet { get; set; }
public DataKeyValue Dryer1_pressure { get; set; }
public DataKeyValue Dryer2_mode { get; set; }
public DataKeyValue Dryer2_status { get; set; }
public DataKeyValue Dryer2_batch { get; set; }
public DataKeyValue Dryer2_step { get; set; }
public DataKeyValue Dryer2_stepCode { get; set; }
public DataKeyValue Dryer2_totalTime { get; set; }
public DataKeyValue Dryer2_stepTime { get; set; }
public DataKeyValue Dryer2_temperature { get; set; }
public DataKeyValue Dryer2_speed { get; set; }
public DataKeyValue Dryer2_currnet { get; set; }
public DataKeyValue Dryer2_pressure { get; set; }
public DataKeyValue Dryer3_mode { get; set; }
public DataKeyValue Dryer3_status { get; set; }
public DataKeyValue Dryer3_batch { get; set; }
public DataKeyValue Dryer3_step { get; set; }
public DataKeyValue Dryer3_stepCode { get; set; }
public DataKeyValue Dryer3_totalTime { get; set; }
public DataKeyValue Dryer3_stepTime { get; set; }
public DataKeyValue Dryer3_temperature { get; set; }
public DataKeyValue Dryer3_speed { get; set; }
public DataKeyValue Dryer3_currnet { get; set; }
public DataKeyValue Dryer3_pressure { get; set; }
public DataKeyValue Gelater0_mode { get; set; }
public DataKeyValue Gelater0_status { get; set; }
public DataKeyValue Gelater0_batch { get; set; }
public DataKeyValue Gelater0_step { get; set; }
public DataKeyValue Gelater0_stepCode { get; set; }
public DataKeyValue Gelater0_totalTime { get; set; }
public DataKeyValue Gelater0_stepTime { get; set; }
public DataKeyValue Gelater0_temperature { get; set; }
public DataKeyValue Gelater0_speed { get; set; }
public DataKeyValue Gelater0_currnet { get; set; }
public DataKeyValue Gelater0_pressure { get; set; }
public DataKeyValue Gelater1_mode { get; set; }
public DataKeyValue Gelater1_status { get; set; }
public DataKeyValue Gelater1_batch { get; set; }
public DataKeyValue Gelater1_step { get; set; }
public DataKeyValue Gelater1_stepCode { get; set; }
public DataKeyValue Gelater1_totalTime { get; set; }
public DataKeyValue Gelater1_stepTime { get; set; }
public DataKeyValue Gelater1_temperature { get; set; }
public DataKeyValue Gelater1_speed { get; set; }
public DataKeyValue Gelater1_currnet { get; set; }
public DataKeyValue Gelater1_pressure { get; set; }
public DataKeyValue Gelater2_mode { get; set; }
public DataKeyValue Gelater2_status { get; set; }
public DataKeyValue Gelater2_batch { get; set; }
public DataKeyValue Gelater2_step { get; set; }
public DataKeyValue Gelater2_stepCode { get; set; }
public DataKeyValue Gelater2_totalTime { get; set; }
public DataKeyValue Gelater2_stepTime { get; set; }
public DataKeyValue Gelater2_temperature { get; set; }
public DataKeyValue Gelater2_speed { get; set; }
public DataKeyValue Gelater2_currnet { get; set; }
public DataKeyValue Gelater2_pressure { get; set; }
public DataKeyValue Gelater3_mode { get; set; }
public DataKeyValue Gelater3_status { get; set; }
public DataKeyValue Gelater3_batch { get; set; }
public DataKeyValue Gelater3_step { get; set; }
public DataKeyValue Gelater3_stepCode { get; set; }
public DataKeyValue Gelater3_totalTime { get; set; }
public DataKeyValue Gelater3_stepTime { get; set; }
public DataKeyValue Gelater3_temperature { get; set; }
public DataKeyValue Gelater3_speed { get; set; }
public DataKeyValue Gelater3_currnet { get; set; }
public DataKeyValue Gelater3_pressure { get; set; }
public DataKeyValue Gelater4_mode { get; set; }
public DataKeyValue Gelater4_status { get; set; }
public DataKeyValue Gelater4_batch { get; set; }
public DataKeyValue Gelater4_step { get; set; }
public DataKeyValue Gelater4_stepCode { get; set; }
public DataKeyValue Gelater4_totalTime { get; set; }
public DataKeyValue Gelater4_stepTime { get; set; }
public DataKeyValue Gelater4_temperature { get; set; }
public DataKeyValue Gelater4_speed { get; set; }
public DataKeyValue Gelater4_currnet { get; set; }
public DataKeyValue Gelater4_pressure { get; set; }
public DataKeyValue Gelater5_mode { get; set; }
public DataKeyValue Gelater5_status { get; set; }
public DataKeyValue Gelater5_batch { get; set; }
public DataKeyValue Gelater5_step { get; set; }
public DataKeyValue Gelater5_stepCode { get; set; }
public DataKeyValue Gelater5_totalTime { get; set; }
public DataKeyValue Gelater5_stepTime { get; set; }
public DataKeyValue Gelater5_temperature { get; set; }
public DataKeyValue Gelater5_speed { get; set; }
public DataKeyValue Gelater5_currnet { get; set; }
public DataKeyValue Gelater5_pressure { get; set; }
public DataKeyValue Gelater6_mode { get; set; }
public DataKeyValue Gelater6_status { get; set; }
public DataKeyValue Gelater6_batch { get; set; }
public DataKeyValue Gelater6_step { get; set; }
public DataKeyValue Gelater6_stepCode { get; set; }
public DataKeyValue Gelater6_totalTime { get; set; }
public DataKeyValue Gelater6_stepTime { get; set; }
public DataKeyValue Gelater6_temperature { get; set; }
public DataKeyValue Gelater6_speed { get; set; }
public DataKeyValue Gelater6_currnet { get; set; }
public DataKeyValue Gelater6_pressure { get; set; }
public DataKeyValue Gelater7_mode { get; set; }
public DataKeyValue Gelater7_status { get; set; }
public DataKeyValue Gelater7_batch { get; set; }
public DataKeyValue Gelater7_step { get; set; }
public DataKeyValue Gelater7_stepCode { get; set; }
public DataKeyValue Gelater7_totalTime { get; set; }
public DataKeyValue Gelater7_stepTime { get; set; }
public DataKeyValue Gelater7_temperature { get; set; }
public DataKeyValue Gelater7_speed { get; set; }
public DataKeyValue Gelater7_currnet { get; set; }
public DataKeyValue Gelater7_pressure { get; set; }
public DataKeyValue Weter0_mode { get; set; }
public DataKeyValue Weter0_status { get; set; }
public DataKeyValue Weter0_batch { get; set; }
public DataKeyValue Weter0_step { get; set; }
public DataKeyValue Weter0_stepCode { get; set; }
public DataKeyValue Weter0_totalTime { get; set; }
public DataKeyValue Weter0_stepTime { get; set; }
public DataKeyValue Weter0_temperature { get; set; }
public DataKeyValue Weter0_speed { get; set; }
public DataKeyValue Weter0_currnet { get; set; }
public DataKeyValue Weter0_pressure { get; set; }
public DataKeyValue Weter1_mode { get; set; }
public DataKeyValue Weter1_status { get; set; }
public DataKeyValue Weter1_batch { get; set; }
public DataKeyValue Weter1_step { get; set; }
public DataKeyValue Weter1_stepCode { get; set; }
public DataKeyValue Weter1_totalTime { get; set; }
public DataKeyValue Weter1_stepTime { get; set; }
public DataKeyValue Weter1_temperature { get; set; }
public DataKeyValue Weter1_speed { get; set; }
public DataKeyValue Weter1_currnet { get; set; }
public DataKeyValue Weter1_pressure { get; set; }
public DataKeyValue Weter2_mode { get; set; }
public DataKeyValue Weter2_status { get; set; }
public DataKeyValue Weter2_batch { get; set; }
public DataKeyValue Weter2_step { get; set; }
public DataKeyValue Weter2_stepCode { get; set; }
public DataKeyValue Weter2_totalTime { get; set; }
public DataKeyValue Weter2_stepTime { get; set; }
public DataKeyValue Weter2_temperature { get; set; }
public DataKeyValue Weter2_speed { get; set; }
public DataKeyValue Weter2_currnet { get; set; }
public DataKeyValue Weter2_pressure { get; set; }
public DataKeyValue Weter3_mode { get; set; }
public DataKeyValue Weter3_status { get; set; }
public DataKeyValue Weter3_batch { get; set; }
public DataKeyValue Weter3_step { get; set; }
public DataKeyValue Weter3_stepCode { get; set; }
public DataKeyValue Weter3_totalTime { get; set; }
public DataKeyValue Weter3_stepTime { get; set; }
public DataKeyValue Weter3_temperature { get; set; }
public DataKeyValue Weter3_speed { get; set; }
public DataKeyValue Weter3_currnet { get; set; }
public DataKeyValue Weter3_pressure { get; set; }
public DataKeyValue Weter4_mode { get; set; }
public DataKeyValue Weter4_status { get; set; }
public DataKeyValue Weter4_batch { get; set; }
public DataKeyValue Weter4_step { get; set; }
public DataKeyValue Weter4_stepCode { get; set; }
public DataKeyValue Weter4_totalTime { get; set; }
public DataKeyValue Weter4_stepTime { get; set; }
public DataKeyValue Weter4_temperature { get; set; }
public DataKeyValue Weter4_speed { get; set; }
public DataKeyValue Weter4_currnet { get; set; }
public DataKeyValue Weter4_pressure { get; set; }
public DataKeyValue Weter5_mode { get; set; }
public DataKeyValue Weter5_status { get; set; }
public DataKeyValue Weter5_batch { get; set; }
public DataKeyValue Weter5_step { get; set; }
public DataKeyValue Weter5_stepCode { get; set; }
public DataKeyValue Weter5_totalTime { get; set; }
public DataKeyValue Weter5_stepTime { get; set; }
public DataKeyValue Weter5_temperature { get; set; }
public DataKeyValue Weter5_speed { get; set; }
public DataKeyValue Weter5_currnet { get; set; }
public DataKeyValue Weter5_pressure { get; set; }
public DataKeyValue Weter6_mode { get; set; }
public DataKeyValue Weter6_status { get; set; }
public DataKeyValue Weter6_batch { get; set; }
public DataKeyValue Weter6_step { get; set; }
public DataKeyValue Weter6_stepCode { get; set; }
public DataKeyValue Weter6_totalTime { get; set; }
public DataKeyValue Weter6_stepTime { get; set; }
public DataKeyValue Weter6_temperature { get; set; }
public DataKeyValue Weter6_speed { get; set; }
public DataKeyValue Weter6_currnet { get; set; }
public DataKeyValue Weter6_pressure { get; set; }
public DataKeyValue Weter7_mode { get; set; }
public DataKeyValue Weter7_status { get; set; }
public DataKeyValue Weter7_batch { get; set; }
public DataKeyValue Weter7_step { get; set; }
public DataKeyValue Weter7_stepCode { get; set; }
public DataKeyValue Weter7_totalTime { get; set; }
public DataKeyValue Weter7_stepTime { get; set; }
public DataKeyValue Weter7_temperature { get; set; }
public DataKeyValue Weter7_speed { get; set; }
public DataKeyValue Weter7_currnet { get; set; }
public DataKeyValue Weter7_pressure { get; set; }
}
}

@ -0,0 +1,21 @@
namespace Mesnac.Action.ChemicalWeighing.LjDry
{
public class DrySettingView
{
public int Id { get; set; }
public string Name { get; set; }
public bool Model { get; set; }
public bool Status { get; set; }
public int Batch { get; set; }
public int Step { get; set; }
public int StepCode { get; set; }
public int TotalTime { get; set; }
public int StepTime { get; set; }
public float Temperature { get; set; }
public float Speed { get; set; }
public float Currnet { get; set; }
public float Pressure { get; set; }
}
}

@ -0,0 +1,628 @@
using System.Collections;
using System.Collections.Generic;
namespace Mesnac.Action.ChemicalWeighing.LjElectrical
{
public class ElectricalPlc
{
private static BasePlcHelper GetPlcHelper => BasePlcHelper.Instance;
private static void Down1324(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedD1,
view.Speed);
}
}
private static ElectricalView Up1324()
{
ElectricalView view = new ElectricalView();
view.Id = 1;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedD1.NowValue.ToFloat();
return view;
}
//
//
//
//
private static ElectricalView Up1328()
{
ElectricalView view = new ElectricalView();
view.Id = 2;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedD2.NowValue.ToFloat();
return view;
}
private static void Down1328(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedD2,
view.Speed);
}
}
private static ElectricalView Up1332()
{
ElectricalView view = new ElectricalView();
view.Id = 3;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedD3.NowValue.ToFloat();
return view;
}
private static void Down1332(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedD4,
view.Speed);
}
}
private static ElectricalView Up1336()
{
ElectricalView view = new ElectricalView();
view.Id = 4;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedD3.NowValue.ToFloat();
return view;
}
private static void Down1336(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedD4,
view.Speed);
}
}
private static ElectricalView Up1340()
{
ElectricalView view = new ElectricalView();
view.Id = 5;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedG1.NowValue.ToFloat();
return view;
}
private static void Down1340(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedG1,
view.Speed);
}
}
private static ElectricalView Up1344()
{
ElectricalView view = new ElectricalView();
view.Id = 6;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedG2.NowValue.ToFloat();
return view;
}
private static void Down1344(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedG2,
view.Speed);
}
}
private static ElectricalView Up1348()
{
ElectricalView view = new ElectricalView();
view.Id = 7;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedG3.NowValue.ToFloat();
return view;
}
private static void Down1348(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedG3,
view.Speed);
}
}
private static ElectricalView Up1352()
{
ElectricalView view = new ElectricalView();
view.Id = 8;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedG4.NowValue.ToFloat();
return view;
}
private static void Down1352(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedG4,
view.Speed);
}
}
private static ElectricalView Up1356()
{
ElectricalView view = new ElectricalView();
view.Id = 9;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedG5.NowValue.ToFloat();
return view;
}
private static void Down1356(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedG5,
view.Speed);
}
}
private static ElectricalView Up1360()
{
ElectricalView view = new ElectricalView();
view.Id = 10;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedG6.NowValue.ToFloat();
return view;
}
private static void Down1360(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedG6,
view.Speed);
}
}
private static ElectricalView Up1364()
{
ElectricalView view = new ElectricalView();
view.Id = 11;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedG7.NowValue.ToFloat();
return view;
}
private static void Down1364(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedG7,
view.Speed);
}
}
private static ElectricalView Up1368()
{
ElectricalView view = new ElectricalView();
view.Id = 12;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedG8.NowValue.ToFloat();
return view;
}
private static void Down1368(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedG8,
view.Speed);
}
}
private static ElectricalView Up1372()
{
ElectricalView view = new ElectricalView();
view.Id = 13;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedH1.NowValue.ToFloat();
return view;
}
private static void Down1372(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedH1,
view.Speed);
}
}
private static ElectricalView Up1376()
{
ElectricalView view = new ElectricalView();
view.Id = 14;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedH2.NowValue.ToFloat();
return view;
}
private static void Down1376(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedH2,
view.Speed);
}
}
private static ElectricalView Up1380()
{
ElectricalView view = new ElectricalView();
view.Id = 15;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedH3.NowValue.ToFloat();
return view;
}
private static void Down1380(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedH3,
view.Speed);
}
}
private static ElectricalView Up1384()
{
ElectricalView view = new ElectricalView();
view.Id = 16;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedH4.NowValue.ToFloat();
return view;
}
private static void Down1384(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedH4,
view.Speed);
}
}
private static ElectricalView Up1388()
{
ElectricalView view = new ElectricalView();
view.Id = 17;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedS1.NowValue.ToFloat();
return view;
}
private static void Down1388(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedS1,
view.Speed);
}
}
private static ElectricalView Up1392()
{
ElectricalView view = new ElectricalView();
view.Id = 18;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedS5.NowValue.ToFloat();
return view;
}
private static void Down1392(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedS5,
view.Speed);
}
}
private static ElectricalView Up1396()
{
ElectricalView view = new ElectricalView();
view.Id = 19;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedS7.NowValue.ToFloat();
return view;
}
private static void Down1396(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedS7,
view.Speed);
}
}
private static ElectricalView Up1400()
{
ElectricalView view = new ElectricalView();
view.Id = 20;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedS11.NowValue.ToFloat();
return view;
}
private static void Down1400(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedS11,
view.Speed);
}
}
private static ElectricalView Up1404()
{
ElectricalView view = new ElectricalView();
view.Id = 21;
var basePlcHelper = GetPlcHelper;
view.Speed = basePlcHelper.SpeedS15.NowValue.ToFloat();
return view;
}
private static void Down1404(ElectricalView view)
{
if (null != view)
{
var basePlcHelper = GetPlcHelper;
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.SpeedS15,
view.Speed);
}
}
public static IList<ElectricalView> UpFromPlc()
{
IList<ElectricalView> ls = new List<ElectricalView>();
ls.Add(Up1324());
ls.Add(Up1328());
ls.Add(Up1332());
ls.Add(Up1336());
ls.Add(Up1340());
ls.Add(Up1344());
ls.Add(Up1348());
ls.Add(Up1352());
ls.Add(Up1356());
ls.Add(Up1360());
ls.Add(Up1364());
ls.Add(Up1368());
ls.Add(Up1372());
ls.Add(Up1376());
ls.Add(Up1380());
ls.Add(Up1384());
ls.Add(Up1388());
ls.Add(Up1392());
ls.Add(Up1396());
ls.Add(Up1400());
ls.Add(Up1404());
return ls;
}
public static ElectricalView UpFromPlc(int id)
{
ElectricalView view = new ElectricalView();
switch (id)
{
case 1:
view = Up1324();
break;
case 2:
view = Up1328();
break;
case 3:
view = Up1332();
break;
case 4:
view = Up1336();
break;
case 5:
view = Up1340();
break;
case 6:
view = Up1344();
break;
case 7:
view = Up1348();
break;
case 8:
view = Up1352();
break;
case 9:
view = Up1356();
break;
case 10:
view = Up1360();
break;
case 11:
view = Up1364();
break;
case 12:
view = Up1368();
break;
case 13:
view = Up1372();
break;
case 14:
view = Up1376();
break;
case 15:
view = Up1380();
break;
case 16:
view = Up1384();
break;
case 17:
view = Up1388();
break;
case 18:
view = Up1392();
break;
case 19:
view = Up1396();
break;
case 20:
view = Up1400();
break;
case 21:
view = Up1404();
break;
}
return view;
}
public static void DownToPlc(List<ElectricalView> views)
{
foreach (var view in views)
{
switch (view.Id)
{
case 1:
Down1324(view);
break;
case 2:
Down1328(view);
break;
case 3:
Down1332(view);
break;
case 4:
Down1336(view);
break;
case 5:
Down1340(view);
break;
case 6:
Down1344(view);
break;
case 7:
Down1348(view);
break;
case 8:
Down1352(view);
break;
case 9:
Down1356(view);
break;
case 10:
Down1360(view);
break;
case 11:
Down1364(view);
break;
case 12:
Down1368(view);
break;
case 13:
Down1372(view);
break;
case 14:
Down1376(view);
break;
case 15:
Down1380(view);
break;
case 16:
Down1384(view);
break;
case 17:
Down1388(view);
break;
case 18:
Down1392(view);
break;
case 19:
Down1396(view);
break;
case 20:
Down1400(view);
break;
case 21:
Down1404(view);
break;
}
}
}
}
}

@ -0,0 +1,9 @@
namespace Mesnac.Action.ChemicalWeighing.LjElectrical
{
public class ElectricalView
{
public int Id { get; set; }
public string Name { get; set; }
public float Speed { get; set; }
}
}

@ -225,6 +225,10 @@
</Compile>
<Compile Include="LjDevice\InitDbAction.cs" />
<Compile Include="LjDevice\UpdateAction.cs" />
<Compile Include="LjDry\DryPlc.cs" />
<Compile Include="LjDry\DrySettingView.cs" />
<Compile Include="LjElectrical\ElectricalPlc.cs" />
<Compile Include="LjElectrical\ElectricalView.cs" />
<Compile Include="LjMaterial\DelAction.cs" />
<Compile Include="LjMaterial\FrmMaterial.cs">
<SubType>Form</SubType>

@ -352,6 +352,8 @@
<Data name="weightPraSilo14_WeightSlow" runname="weightPraSilo14_WeightSlow" start="477" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="快慢值值值" />
<Data name="weightPraSilo14_Precut" runname="weightPraSilo14_Precut" start="479" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="提前值" />
<Data name="weightPraSilo14_JogTime" runname="weightPraSilo14_JogTime" start="481" len="1" method="Default_ShortDiv()" max="" issave="False" subtractor="" remark="点动动动" />
<Data name="Daybin0_HighSpeed" runname="Daybin0_HighSpeed" start="482" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="高速频率" />
<Data name="Daybin0_LowSpeed" runname="Daybin0_LowSpeed" start="484" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="低速频率" />
<Data name="Daybin0_WeightSlow" runname="Daybin0_WeightSlow" start="486" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="快慢值值值" />
@ -493,7 +495,7 @@
<Data name="Dryer1_stepCode" runname="Dryer1_stepCode" start="723" len="1" method="Default_ShortDiv()" max="" issave="False" subtractor="" remark="步序动作" />
<Data name="Dryer1_totalTime" runname="Dryer1_totalTime" start="724" len="2" method="Default_Int32()" max="" issave="False" subtractor="" remark="总时间" />
<Data name="Dryer1_stepTime" runname="Dryer1_stepTime" start="726" len="2" method="Default_Int32()" max="" issave="False" subtractor="" remark="当前步时间" />
<Data name="Dryer1_tempera-ture" runname="Dryer1_tempera-ture" start="728" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="温度" />
<Data name="Dryer1_temperature" runname="Dryer1_temperature" start="728" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="温度" />
<Data name="Dryer1_speed" runname="Dryer1_speed" start="730" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="速度" />
<Data name="Dryer1_currnet" runname="Dryer1_currnet" start="732" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="电流" />
<Data name="Dryer1_pressure" runname="Dryer1_pressure" start="734" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="压力" />
@ -504,7 +506,7 @@
<Data name="Dryer2_stepCode" runname="Dryer2_stepCode" start="739" len="1" method="Default_ShortDiv()" max="" issave="False" subtractor="" remark="步序动作" />
<Data name="Dryer2_totalTime" runname="Dryer2_totalTime" start="740" len="2" method="Default_Int32()" max="" issave="False" subtractor="" remark="总时间" />
<Data name="Dryer2_stepTime" runname="Dryer2_stepTime" start="742" len="2" method="Default_Int32()" max="" issave="False" subtractor="" remark="当前步时间" />
<Data name="Dryer2_tempera-ture" runname="Dryer2_tempera-ture" start="744" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="温度" />
<Data name="Dryer2_temperature" runname="Dryer2_temperature" start="744" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="温度" />
<Data name="Dryer2_speed" runname="Dryer2_speed" start="746" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="速度" />
<Data name="Dryer2_currnet" runname="Dryer2_currnet" start="748" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="电流" />
<Data name="Dryer2_pressure" runname="Dryer2_pressure" start="750" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="压力" />
@ -515,7 +517,7 @@
<Data name="Dryer3_stepCode" runname="Dryer3_stepCode" start="755" len="1" method="Default_ShortDiv()" max="" issave="False" subtractor="" remark="步序动作" />
<Data name="Dryer3_totalTime" runname="Dryer3_totalTime" start="756" len="2" method="Default_Int32()" max="" issave="False" subtractor="" remark="总时间" />
<Data name="Dryer3_stepTime" runname="Dryer3_stepTime" start="758" len="2" method="Default_Int32()" max="" issave="False" subtractor="" remark="当前步时间" />
<Data name="Dryer3_tempera-ture" runname="Dryer3_tempera-ture" start="760" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="温度" />
<Data name="Dryer3_temperature" runname="Dryer3_temperature" start="760" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="温度" />
<Data name="Dryer3_speed" runname="Dryer3_speed" start="762" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="速度" />
<Data name="Dryer3_currnet" runname="Dryer3_currnet" start="764" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="电流" />
<Data name="Dryer3_pressure" runname="Dryer3_pressure" start="766" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="压力" />
@ -603,7 +605,7 @@
<Data name="Gelater7_stepCode" runname="Gelater7_stepCode" start="883" len="1" method="Default_ShortDiv()" max="" issave="False" subtractor="" remark="步序动作" />
<Data name="Gelater7_totalTime" runname="Gelater7_totalTime" start="884" len="2" method="Default_Int32()" max="" issave="False" subtractor="" remark="总时间" />
<Data name="Gelater7_stepTime" runname="Gelater7_stepTime" start="886" len="2" method="Default_Int32()" max="" issave="False" subtractor="" remark="当前步时间" />
<Data name="Gelater7_tempera-ture" runname="Gelater7_tempera-ture" start="888" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="温度" />
<Data name="Gelater7_temperature" runname="Gelater7_temperature" start="888" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="温度" />
<Data name="Gelater7_speed" runname="Gelater7_speed" start="890" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="速度" />
<Data name="Gelater7_currnet" runname="Gelater7_currnet" start="892" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="电流" />
<Data name="Gelater7_pressure" runname="Gelater7_pressure" start="894" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="压力" />
@ -658,7 +660,7 @@
<Data name="Weter4_stepCode" runname="Weter4_stepCode" start="963" len="1" method="Default_ShortDiv()" max="" issave="False" subtractor="" remark="步序动作" />
<Data name="Weter4_totalTime" runname="Weter4_totalTime" start="964" len="2" method="Default_Int32()" max="" issave="False" subtractor="" remark="总时间" />
<Data name="Weter4_stepTime" runname="Weter4_stepTime" start="966" len="2" method="Default_Int32()" max="" issave="False" subtractor="" remark="当前步时间" />
<Data name="Weter4_tempera-ture" runname="Weter4_tempera-ture" start="968" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="温度" />
<Data name="Weter4_temperature" runname="Weter4_temperature" start="968" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="温度" />
<Data name="Weter4_speed" runname="Weter4_speed" start="970" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="速度" />
<Data name="Weter4_currnet" runname="Weter4_currnet" start="972" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="电流" />
<Data name="Weter4_pressure" runname="Weter4_pressure" start="974" len="2" method="Default_Float()" max="" issave="False" subtractor="" remark="压力" />

Loading…
Cancel
Save