|
|
@ -23,11 +23,7 @@ using System.Reflection;
|
|
|
|
using DataBlockHelper;
|
|
|
|
using DataBlockHelper;
|
|
|
|
using System.Drawing;
|
|
|
|
using System.Drawing;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.MinAn;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.MinAn;
|
|
|
|
using HslCommunication.Core;
|
|
|
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.FreeDb;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.FreeDb;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.ManualControl;
|
|
|
|
|
|
|
|
using DevExpress.Pdf.Native;
|
|
|
|
|
|
|
|
using DevExpress.Utils.Drawing.Helpers;
|
|
|
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.InterfaceDocking;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.InterfaceDocking;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.Report;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.Report;
|
|
|
|
|
|
|
|
|
|
|
@ -1069,7 +1065,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
|
|
|
|
|
|
|
|
if (DB2103.DM2ASF01.Running)
|
|
|
|
if (DB2103.DM2ASF01.Running)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (DB2119.Spiral_A.Polarty)
|
|
|
|
if (DB2103.DM2ASF01.Polarity)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PlcReadTemp.DM2ASF01L_Set = true;
|
|
|
|
PlcReadTemp.DM2ASF01L_Set = true;
|
|
|
|
PlcReadTemp.DM2ASF01R_Set = false;
|
|
|
|
PlcReadTemp.DM2ASF01R_Set = false;
|
|
|
@ -1088,9 +1084,11 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
PlcReadTemp.DM2ASF01R_Set = false;
|
|
|
|
PlcReadTemp.DM2ASF01R_Set = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (DB2103.DM2BSF01.Running)
|
|
|
|
if (DB2103.DM2BSF01.Running)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (DB2119.Spiral_B.Polarty)
|
|
|
|
if (DB2103.DM2BSF01.Polarity)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PlcReadTemp.DM2BSF01L_Set = true;
|
|
|
|
PlcReadTemp.DM2BSF01L_Set = true;
|
|
|
|
PlcReadTemp.DM2BSF01R_Set = false;
|
|
|
|
PlcReadTemp.DM2BSF01R_Set = false;
|
|
|
@ -1109,9 +1107,11 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
PlcReadTemp.DM2BSF01R_Set = false;
|
|
|
|
PlcReadTemp.DM2BSF01R_Set = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (DB2103.DM2CSF01.Running)
|
|
|
|
if (DB2103.DM2CSF01.Running)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (DB2119.Spiral_C.Polarty)
|
|
|
|
if (DB2103.DM2CSF01.Polarity)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PlcReadTemp.DM2CSF01L_Set = true;
|
|
|
|
PlcReadTemp.DM2CSF01L_Set = true;
|
|
|
|
PlcReadTemp.DM2CSF01R_Set = false;
|
|
|
|
PlcReadTemp.DM2CSF01R_Set = false;
|
|
|
@ -1130,6 +1130,10 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
PlcReadTemp.DM2CSF01R_Set = false;
|
|
|
|
PlcReadTemp.DM2CSF01R_Set = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (DB2103.DM2DSF01.Running)
|
|
|
|
if (DB2103.DM2DSF01.Running)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (DB2103.DM2DSF01.Polarity)
|
|
|
|
if (DB2103.DM2DSF01.Polarity)
|
|
|
@ -1234,6 +1238,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
SetRSCREWBIG(RSCREE.DM1OSF01, PlcReadTemp.DM1OSF01_Set);
|
|
|
|
SetRSCREWBIG(RSCREE.DM1OSF01, PlcReadTemp.DM1OSF01_Set);
|
|
|
|
SetLSCREWBIG(LSCREE.DM2ASF01L, PlcReadTemp.DM2ASF01L_Set);
|
|
|
|
SetLSCREWBIG(LSCREE.DM2ASF01L, PlcReadTemp.DM2ASF01L_Set);
|
|
|
|
SetLSCREWBIG(LSCREE.DM2BSF01L, PlcReadTemp.DM2BSF01L_Set);
|
|
|
|
SetLSCREWBIG(LSCREE.DM2BSF01L, PlcReadTemp.DM2BSF01L_Set);
|
|
|
|
|
|
|
|
|
|
|
|
SetLSCREWBIG(LSCREE.DM2CSF01L, PlcReadTemp.DM2CSF01L_Set);
|
|
|
|
SetLSCREWBIG(LSCREE.DM2CSF01L, PlcReadTemp.DM2CSF01L_Set);
|
|
|
|
SetLSCREWBIG(LSCREE.DM2DSF01L, PlcReadTemp.DM2DSF01L_Set);
|
|
|
|
SetLSCREWBIG(LSCREE.DM2DSF01L, PlcReadTemp.DM2DSF01L_Set);
|
|
|
|
SetRSCREWBIG(RSCREE.DM2ASF01R, PlcReadTemp.DM2ASF01R_Set);
|
|
|
|
SetRSCREWBIG(RSCREE.DM2ASF01R, PlcReadTemp.DM2ASF01R_Set);
|
|
|
@ -1444,9 +1449,9 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
PlcReadTemp.PM1KDF01_Set = DB2107.Valve.PM1KDF01;
|
|
|
|
PlcReadTemp.PM1KDF01_Set = DB2107.Valve.PM1KDF01;
|
|
|
|
PlcReadTemp.PM1LDF01_Set = DB2107.Valve.PM1LDF01;
|
|
|
|
PlcReadTemp.PM1LDF01_Set = DB2107.Valve.PM1LDF01;
|
|
|
|
|
|
|
|
|
|
|
|
PlcReadTemp.ValueWeight1 = DB2119.Spiral_A.Value_Weight;
|
|
|
|
//PlcReadTemp.ValueWeight1 = DB2119.Spiral_A.Value_Weight;
|
|
|
|
PlcReadTemp.ValueWeight2 = DB2119.Spiral_B.Value_Weight;
|
|
|
|
//PlcReadTemp.ValueWeight2 = DB2119.Spiral_B.Value_Weight;
|
|
|
|
PlcReadTemp.ValueWeight3 = DB2119.Spiral_C.Value_Weight;
|
|
|
|
//PlcReadTemp.ValueWeight3 = DB2119.Spiral_C.Value_Weight;
|
|
|
|
|
|
|
|
|
|
|
|
//yang 4特殊处理下 采用2107
|
|
|
|
//yang 4特殊处理下 采用2107
|
|
|
|
|
|
|
|
|
|
|
@ -1459,6 +1464,40 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
//{
|
|
|
|
//{
|
|
|
|
|
|
|
|
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//DM2ASF01L_Set
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (PlcReadTemp.DM2ASF01L_Set)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
PlcReadTemp.ValueWeight1 = DB2107.Weter[0].FeedValue.ToString("0.#");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
PlcReadTemp.ValueWeight1 = DB2107.Weter[1].FeedValue.ToString("0.#");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
if (PlcReadTemp.DM2BSF01L_Set)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
PlcReadTemp.ValueWeight2 = DB2107.Weter[2].FeedValue.ToString("0.#");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
PlcReadTemp.ValueWeight2 = DB2107.Weter[3].FeedValue.ToString("0.#");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (PlcReadTemp.DM2CSF01L_Set)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
PlcReadTemp.ValueWeight3 = DB2107.Weter[4].FeedValue.ToString("0.#");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
PlcReadTemp.ValueWeight3 = DB2107.Weter[5].FeedValue.ToString("0.#");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (PlcReadTemp.DM2DSF01L_Set)
|
|
|
|
if (PlcReadTemp.DM2DSF01L_Set)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|