This commit is contained in:
gongxh
2022-05-06 12:28:16 +08:00
parent c57ca69dfd
commit 0e459f231a
49 changed files with 458 additions and 388 deletions

View File

@@ -55,7 +55,7 @@ namespace CleanMachineHMI
}
private void ReFreshControl_Y()
{
while (GlobalHelper.SysThIsRunFlag)
while (Global.SysThIsRunFlag)
{
try
{
@@ -146,10 +146,10 @@ namespace CleanMachineHMI
lstMoitor_Y.Clear();
#region PLC X数据类型变量
if (GlobalHelper.PlcItemMd_X_List != null && GlobalHelper.PlcItemMd_X_List.Count > 0)
if (Global.PlcItemMd_X_List != null && Global.PlcItemMd_X_List.Count > 0)
{
//List<BasPlcItemMd> tempLst = AppConfig.PlcItemMd_X_List.FindAll(x => x.PlcItemName != "备用").OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
List<PlcItem> tempLst = Global.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
int dataSum = tempLst.Count;
int rowNum;
if (dataSum % 2 == 0)
@@ -262,10 +262,10 @@ namespace CleanMachineHMI
#endregion
#region PLC Y数据类型变量
if (GlobalHelper.PlcItemMd_Y_List != null && GlobalHelper.PlcItemMd_Y_List.Count > 0)
if (Global.PlcItemMd_Y_List != null && Global.PlcItemMd_Y_List.Count > 0)
{
//List<BasPlcItemMd> tempLst = AppConfig.PlcItemMd_Y_List.FindAll(x => x.PlcItemName != "备用").OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
List<PlcItem> tempLst = Global.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
int dataSum = tempLst.Count;
//int dataSum = AppConfig.PlcItemMd_Y_List.Count;
int rowNum;