增加修改删除页面,增加COM口的配置等

This commit is contained in:
bnala committed 2025-02-23 20:06:16 +08:00
1 parent f3110791a7
commit e96e2d3651
89 files changed
+10692 -727

No files matched your search

+20 -9
View File
@@ -1,11 +1,13 @@
using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp1.mod;
using WindowsFormsApp1.mod.server;
using WindowsFormsApp1.server;
namespace WindowsFormsApp1
@@ -36,23 +38,32 @@ namespace WindowsFormsApp1
public static class Init
{
public static t_user t_User;
public static t_line t_Line;
public static List<t_flow> t_Flows;
public static t_plc t_Plc1;
public static t_plc t_Plc2;
public static List<t_interface> t_Interfaces;
public static List<t_plcaddress> t_Plcaddresses;
public static bool isrunning1 = false;
public static CancellationTokenSource cancellationTokenSource1;
public static bool isrunning2 = false;
public static CancellationTokenSource cancellationTokenSource2;
public static int errinterface1 = 0;
public static int errinterface2 = 0;
public static List<t_angleaddress> t_Angleaddresses;
public static List<t_torqueaddress> t_Torqueaddresses;
public static t_line t_Line;
public static List<t_lineplc> t_Lineplcs;
public static List<ThreadHelp> threadHelps;
//PLC状态存储
public static short Plcstatus = -1;
//PLC最后状态事件(用于计时15秒状态不变回传)
public static DateTime Plcstatus_LastTime = DateTime.Now;
//扫码Com
public static SerialPort ScanPort;
//气密Com
public static SerialPort AirtightPort;
//其他线程获取的气密参数
public static Airtight airtight = new Airtight();
}
}