@ -13,9 +13,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
private static DB2107Helper _db2107Helper = new DB2107Helper ( ) ;
private DB2107Helper _db2107Helper = new DB2107Helper ( ) ;
private static void DownMetageView ( int start , MetageView view )
private void DownMetageView ( int start , MetageView view )
{
int highSpeed = start ;
int lowSpeed = start + 4 ;
@ -33,7 +33,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
PlcConnect . Instance . Write ( $"DB2107.{jobTime}.0" , Convert . ToUInt16 ( view . JogTime ) ) ;
}
static MetageView GetMetageView ( int id , WeightParaE weight )
MetageView GetMetageView ( int id , WeightParaE weight )
{
//WeightParaE
@ -50,7 +50,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down694 ( MetageView view )
private void Down694 ( MetageView view )
{
if ( null ! = view )
{
@ -73,7 +73,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
private static MetageView Up694 ( )
private MetageView Up694 ( )
{
// var basePlcHelper = GetPlcHelper;
@ -94,7 +94,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down712 ( MetageView view )
private void Down712 ( MetageView view )
{
if ( null ! = view )
{
@ -114,7 +114,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up712 ( )
private MetageView Up712 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -132,7 +132,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down730 ( MetageView view )
private void Down730 ( MetageView view )
{
if ( null ! = view )
{
@ -150,7 +150,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up730 ( )
private MetageView Up730 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -168,7 +168,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down748 ( MetageView view )
private void Down748 ( MetageView view )
{
if ( null ! = view )
{
@ -187,7 +187,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up748 ( )
private MetageView Up748 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -205,7 +205,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down766 ( MetageView view )
private void Down766 ( MetageView view )
{
if ( null ! = view )
{
@ -224,7 +224,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up766 ( )
private MetageView Up766 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -242,7 +242,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down784 ( MetageView view )
private void Down784 ( MetageView view )
{
if ( null ! = view )
{
@ -261,7 +261,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up784 ( )
private MetageView Up784 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -279,7 +279,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down802 ( MetageView view )
private void Down802 ( MetageView view )
{
if ( null ! = view )
{
@ -297,7 +297,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up802 ( )
private MetageView Up802 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -314,7 +314,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down820 ( MetageView view )
private void Down820 ( MetageView view )
{
if ( null ! = view )
{
@ -332,7 +332,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up820 ( )
private MetageView Up820 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -350,7 +350,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down838 ( MetageView view )
private void Down838 ( MetageView view )
{
if ( null ! = view )
{
@ -369,7 +369,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up838 ( )
private MetageView Up838 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -387,7 +387,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down856 ( MetageView view )
private void Down856 ( MetageView view )
{
if ( null ! = view )
{
@ -405,7 +405,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up856 ( )
private MetageView Up856 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -423,7 +423,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down874 ( MetageView view )
private void Down874 ( MetageView view )
{
if ( null ! = view )
{
@ -441,7 +441,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up874 ( )
private MetageView Up874 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -458,7 +458,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
return GetMetageView ( 11 , _db2107Helper . WeightPra . Silo [ 10 ] ) ;
}
private static void Down892 ( MetageView view )
private void Down892 ( MetageView view )
{
if ( null ! = view )
{
@ -476,7 +476,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up892 ( )
private MetageView Up892 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -494,7 +494,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down910 ( MetageView view )
private void Down910 ( MetageView view )
{
if ( null ! = view )
{
@ -512,7 +512,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up910 ( )
private MetageView Up910 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -530,7 +530,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down928 ( MetageView view )
private void Down928 ( MetageView view )
{
if ( null ! = view )
{
@ -548,7 +548,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up928 ( )
private MetageView Up928 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -566,7 +566,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down946 ( MetageView view )
private void Down946 ( MetageView view )
{
if ( null ! = view )
{
@ -585,7 +585,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up946 ( )
private MetageView Up946 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -604,7 +604,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down964 ( MetageView view )
private void Down964 ( MetageView view )
{
if ( null ! = view )
{
@ -620,7 +620,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up964 ( )
private MetageView Up964 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -638,7 +638,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down982 ( MetageView view )
private void Down982 ( MetageView view )
{
if ( null ! = view )
{
@ -653,7 +653,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up982 ( )
private MetageView Up982 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -669,7 +669,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
return GetMetageView ( 17 , _db2107Helper . WeightPra . Daybin [ 1 ] ) ;
}
private static void Down1000 ( MetageView view )
private void Down1000 ( MetageView view )
{
if ( null ! = view )
{
@ -685,7 +685,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1000 ( )
private MetageView Up1000 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -703,7 +703,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1018 ( MetageView view )
private void Down1018 ( MetageView view )
{
if ( null ! = view )
{
@ -718,7 +718,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1018 ( )
private MetageView Up1018 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -736,7 +736,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1036 ( MetageView view )
private void Down1036 ( MetageView view )
{
if ( null ! = view )
{
@ -751,7 +751,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1036 ( )
private MetageView Up1036 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -769,7 +769,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1054 ( MetageView view )
private void Down1054 ( MetageView view )
{
if ( null ! = view )
{
@ -785,7 +785,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1054 ( )
private MetageView Up1054 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -803,7 +803,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1072 ( MetageView view )
private void Down1072 ( MetageView view )
{
if ( null ! = view )
{
@ -818,7 +818,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1072 ( )
private MetageView Up1072 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -836,7 +836,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1090 ( MetageView view )
private void Down1090 ( MetageView view )
{
if ( null ! = view )
{
@ -853,7 +853,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1090 ( )
private MetageView Up1090 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -871,7 +871,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1108 ( MetageView view )
private void Down1108 ( MetageView view )
{
if ( null ! = view )
{
@ -887,7 +887,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1108 ( )
private MetageView Up1108 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -904,7 +904,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1126 ( MetageView view )
private void Down1126 ( MetageView view )
{
if ( null ! = view )
{
@ -920,7 +920,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1126 ( )
private MetageView Up1126 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -938,7 +938,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1144 ( MetageView view )
private void Down1144 ( MetageView view )
{
if ( null ! = view )
{
@ -955,7 +955,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1144 ( )
private MetageView Up1144 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -973,7 +973,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1162 ( MetageView view )
private void Down1162 ( MetageView view )
{
if ( null ! = view )
{
@ -989,7 +989,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1162 ( )
private MetageView Up1162 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -1008,7 +1008,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1180 ( MetageView view )
private void Down1180 ( MetageView view )
{
if ( null ! = view )
{
@ -1023,7 +1023,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1180 ( )
private MetageView Up1180 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -1041,7 +1041,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1198 ( MetageView view )
private void Down1198 ( MetageView view )
{
if ( null ! = view )
{
@ -1057,7 +1057,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1198 ( )
private MetageView Up1198 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -1075,7 +1075,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1216 ( MetageView view )
private void Down1216 ( MetageView view )
{
if ( null ! = view )
{
@ -1090,7 +1090,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1216 ( )
private MetageView Up1216 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -1108,7 +1108,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1234 ( MetageView view )
private void Down1234 ( MetageView view )
{
if ( null ! = view )
{
@ -1123,7 +1123,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1234 ( )
private MetageView Up1234 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -1141,7 +1141,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1252 ( MetageView view )
private void Down1252 ( MetageView view )
{
if ( null ! = view )
{
@ -1156,7 +1156,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1252 ( )
private MetageView Up1252 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -1174,7 +1174,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1270 ( MetageView view )
private void Down1270 ( MetageView view )
{
if ( null ! = view )
{
@ -1189,7 +1189,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1270 ( )
private MetageView Up1270 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -1207,7 +1207,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1288 ( MetageView view )
private void Down1288 ( MetageView view )
{
if ( null ! = view )
{
@ -1222,7 +1222,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1288 ( )
private MetageView Up1288 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -1240,7 +1240,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
private static void Down1306 ( MetageView view )
private void Down1306 ( MetageView view )
{
if ( null ! = view )
{
@ -1256,7 +1256,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
}
private static MetageView Up1306 ( )
private MetageView Up1306 ( )
{
//var basePlcHelper = GetPlcHelper;
//MetageView view = new MetageView()
@ -1276,7 +1276,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
public static MetageView UpFromPlc ( int id )
public MetageView UpFromPlc ( int id )
{
MetageView view = new MetageView ( ) ;
switch ( id )
@ -1394,7 +1394,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
return view ;
}
public static IList < MetageView > UpFromPlc ( )
public IList < MetageView > UpFromPlc ( )
{
IList < MetageView > ls = new List < MetageView > ( ) ;
ls . Add ( Up694 ( ) ) ;
@ -1436,7 +1436,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetage
}
public static void DownToPlc ( IList < MetageView > list )
public void DownToPlc ( IList < MetageView > list )
{
foreach ( var v in list )
{