添加资源,设备模拟页面

This commit is contained in:
sc committed 2025-09-17 00:34:22 +08:00
commit c4b3cbb469
8 files changed
+768 -91

No files matched your search

+9 -10
View File
@@ -328,6 +328,8 @@ namespace DyeingComputer.ViewModel
private static double MT16;//流量计数系数
public static int MT17;//
public static int MT18;//主缸管数
public static int MT19;//
public static int MT20;//管数
private static double MT33;//主缸温度偏差
private int MT38;//高水位
private int MT39;//中水位
@@ -408,6 +410,8 @@ namespace DyeingComputer.ViewModel
MT16 = Convert.ToDouble(Selet_con("MT16"));//流量计数系数
MT17 = Convert.ToInt16(Selet_con("MT17"));//
MT18 = Convert.ToInt16(Selet_con("MT18"));//
MT19 = Convert.ToInt16(Selet_con("MT19"));//
MT20 = Convert.ToInt16(Selet_con("MT20"));//
MT33 = Convert.ToDouble(Selet_con("MT33"));//温度偏差参数
MT38 = Convert.ToInt16(Selet_con("MT38"));//
MT39 = Convert.ToInt16(Selet_con("MT39"));//
@@ -941,7 +945,7 @@ namespace DyeingComputer.ViewModel
STEP_finish = false;
break;
case "041":
SETP_runtime = false;
SETP_runtime = true;
STEP_finish = false;
break;
case "049":
@@ -1763,6 +1767,7 @@ namespace DyeingComputer.ViewModel
Updata_dtd((3000 + i).ToString(), false);
}
if (errTabler.Rows.Count == 0) Status_Str = Resources.End;
WORK_RUN = 0;
break;//结束
case "049":
if (Selet_dtd("2004")|| UserCall_OK)
@@ -2432,7 +2437,6 @@ namespace DyeingComputer.ViewModel
double T_P4 = Convert.ToDouble(arrRows[0]["Parameter4"].ToString());
double T_P5 = Convert.ToDouble(arrRows[0]["Parameter5"].ToString());
STEP_START(T_ID, T_P1, T_P2, T_P3, T_P4, T_P5);
/* if (arrRows.First().Field<object>("StepID_S1") != null)
{
STEP_IDp1 = (string)arrRows[0]["StepID_S1"];
@@ -2460,7 +2464,6 @@ namespace DyeingComputer.ViewModel
STEP_P4p3 = (double)arrRows[0]["Parameter4_S3"];
STEP_P5p3 = (double)arrRows[0]["Parameter5_S3"];
}*/
APILog.LOGlog(WorkNumder.ToString(), "Process", "Next", "STEP = " + RUN_STEPID + ";StepID=" +
T_ID + ";P1=" + T_P1 + ";P2=" + T_P2 + ";P3=" + T_P3 + ";P4=" + T_P4 + ";P5=" + T_P5);
if (ViewID == 1) { sys_workSTEPID = RUN_STEPID; } else { sys_workSTEPID = -1; }
@@ -2474,21 +2477,17 @@ namespace DyeingComputer.ViewModel
else if (WORK_RUN == 1)
{
Status_Str = Resources.Paused;
for (int i = 4; i < DQ_DL; i++)
/* for (int i = 4; i < DQ_DL; i++)
{
Updata_dtd((3000 + i).ToString(), false);
}
}*/
}
else if (WORK_RUN == 0)
{
// if (Status_Str == Resources.Paused)
// {
Updata_dtm("1004", 0);
Updata_dtm("1005", Selet_dtm("1010"));
for (int i = 1; i < DQ_DL; i++)
{
Updata_dtd((3000+i).ToString(), false);
}
Updata_dtm("1005", Selet_dtm("1010"));
// }//清除输出状态
if (errTabler.Rows.Count == 0)
{