|
|
|
@ -33,6 +33,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
|
private DB2102Helper DB2102 = new DB2102Helper();
|
|
|
|
|
private DB2103Helper DB2103 = new DB2103Helper();
|
|
|
|
|
private DB2107Helper DB2107 = new DB2107Helper();
|
|
|
|
|
private DB2119Helper DB2119 = new DB2119Helper();
|
|
|
|
|
private ConcurrentDictionary<string, object> conCurrentCache = new ConcurrentDictionary<string, object>();
|
|
|
|
|
|
|
|
|
|
private Timer timer;
|
|
|
|
@ -151,6 +152,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
|
DB2102 = new DB2102Helper();
|
|
|
|
|
DB2103 = new DB2103Helper();
|
|
|
|
|
DB2107 = new DB2107Helper();
|
|
|
|
|
DB2119 = new DB2119Helper();
|
|
|
|
|
|
|
|
|
|
NewThreadDb2102();
|
|
|
|
|
NewThreadDb2103();
|
|
|
|
@ -691,19 +693,19 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
|
|
|
|
|
|
if (DB2103.DM2ASF01.Running)
|
|
|
|
|
{
|
|
|
|
|
//if (DB2103.DM2ASF01.Polarity)
|
|
|
|
|
//{
|
|
|
|
|
// DM2ASF01L_Set = true;
|
|
|
|
|
// DM2ASF01R_Set = false;
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// DM2ASF01L_Set = false;
|
|
|
|
|
// DM2ASF01R_Set = true;
|
|
|
|
|
//}
|
|
|
|
|
if (DB2119.Spiral_A.Polarty)
|
|
|
|
|
{
|
|
|
|
|
PlcReadTemp.DM2ASF01L_Set = true;
|
|
|
|
|
PlcReadTemp.DM2ASF01R_Set = false;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
PlcReadTemp.DM2ASF01L_Set = false;
|
|
|
|
|
PlcReadTemp.DM2ASF01R_Set = true;
|
|
|
|
|
}
|
|
|
|
|
//PlcReadTemp.DM2ASF01L_Set = true;
|
|
|
|
|
//PlcReadTemp.DM2ASF01R_Set = true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
PlcReadTemp.DM2ASF01L_Set = false;
|
|
|
|
@ -712,19 +714,19 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
|
|
|
|
|
|
if (DB2103.DM2BSF01.Running)
|
|
|
|
|
{
|
|
|
|
|
//if (DB2103.DM2BSF01.Polarity)
|
|
|
|
|
//{
|
|
|
|
|
// DM2BSF01L_Set = true;
|
|
|
|
|
// DM2BSF01R_Set = false;
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// DM2BSF01L_Set = false;
|
|
|
|
|
// DM2BSF01R_Set = true;
|
|
|
|
|
//}
|
|
|
|
|
if (DB2119.Spiral_B.Polarty)
|
|
|
|
|
{
|
|
|
|
|
PlcReadTemp.DM2BSF01L_Set = true;
|
|
|
|
|
PlcReadTemp.DM2BSF01R_Set = false;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
PlcReadTemp.DM2BSF01L_Set = false;
|
|
|
|
|
PlcReadTemp.DM2BSF01R_Set = true;
|
|
|
|
|
}
|
|
|
|
|
//PlcReadTemp.DM2BSF01L_Set = true;
|
|
|
|
|
//PlcReadTemp.DM2BSF01R_Set = true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
PlcReadTemp.DM2BSF01L_Set = false;
|
|
|
|
@ -733,19 +735,19 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
|
|
|
|
|
|
if (DB2103.DM2CSF01.Running)
|
|
|
|
|
{
|
|
|
|
|
//if (DB2103.DM2CSF01.Polarity)
|
|
|
|
|
//{
|
|
|
|
|
// DM2CSF01L_Set = true;
|
|
|
|
|
// DM2CSF01R_Set = false;
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// DM2CSF01L_Set = false;
|
|
|
|
|
// DM2CSF01R_Set = true;
|
|
|
|
|
//}
|
|
|
|
|
if (DB2119.Spiral_C.Polarty)
|
|
|
|
|
{
|
|
|
|
|
PlcReadTemp.DM2CSF01L_Set = true;
|
|
|
|
|
PlcReadTemp.DM2CSF01R_Set = false;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
PlcReadTemp.DM2CSF01L_Set = false;
|
|
|
|
|
PlcReadTemp.DM2CSF01R_Set = true;
|
|
|
|
|
}
|
|
|
|
|
//PlcReadTemp.DM2CSF01L_Set = true;
|
|
|
|
|
//PlcReadTemp.DM2CSF01R_Set = true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
PlcReadTemp.DM2CSF01L_Set = false;
|
|
|
|
@ -756,13 +758,13 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
|
{
|
|
|
|
|
//if (DB2103.DM2DSF01.Polarity)
|
|
|
|
|
//{
|
|
|
|
|
// DM2DSF01L_Set = true;
|
|
|
|
|
// DM2DSF01R_Set = false;
|
|
|
|
|
// PlcReadTemp.DM2DSF01L_Set = true;
|
|
|
|
|
// PlcReadTemp.DM2DSF01R_Set = false;
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// DM2DSF01L_Set = false;
|
|
|
|
|
// DM2DSF01R_Set = true;
|
|
|
|
|
// PlcReadTemp.DM2DSF01L_Set = false;
|
|
|
|
|
// PlcReadTemp.DM2DSF01R_Set = true;
|
|
|
|
|
//}
|
|
|
|
|
PlcReadTemp.DM2DSF01L_Set = true;
|
|
|
|
|
PlcReadTemp.DM2DSF01R_Set = true;
|
|
|
|
|