1
czw
9 天以前 c6c6ca4fc4038aefb13ffcd8e024652c84a5b32f
1
1个文件已修改
58 ■■■■ 已修改文件
2025年6月12日/AuxAllWCS/Build/Project/代码/界面事件.cs 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
2025Äê6ÔÂ12ÈÕ/AuxAllWCS/Build/Project/´úÂë/½çÃæÊ¼þ.cs
@@ -794,13 +794,21 @@
                }
                ExitJudgeStack.TryPop(out int exitJudgeVal);
            });
            //执行多次
            for (int iii = 0; iii < 1; iii++)
            /// <summary>
            /// ç¨‹åºç‰‡æ®µ:Ipping
            /// æè¿°:检测IP地址通断
            /// </summary>
            System.Threading.Tasks.Task.Factory.StartNew(() =>
            {
                System.Threading.Thread.CurrentThread.IsBackground = true;
                ExitJudgeStack.Push(0);
                //一直执行,直到满足结束条件
                while (true)
            {
                if (IsExitApp) { break; }
                try
                {
                    #region    [脚本][20250323151832119][业务逻辑.Program4]
                        #region    [脚本][20250323151832119][业务逻辑.Ipping]
                    //LogHelper.Info($"<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>");
                    //LogHelper.Info($"<<<<<<<<<<<<<<<<<程序·启动>>>>>>>>>>>>>>");
@@ -812,7 +820,7 @@
                    //LogHelper.Info($"<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>");
                    //AnsiConsole.Markup("[underline red]Hello[/] World!");
                    // AnsiConsole.Markup("[underline red]Hello[/] World!");
                    #endregion [脚本][20250323151832119][业务逻辑.Program4]
                        #endregion [脚本][20250323151832119][业务逻辑.Ipping]
                }
                catch (Exception ex)
                {
@@ -823,6 +831,8 @@
                    System.Threading.Thread.Sleep(3000);
                }
            }
                ExitJudgeStack.TryPop(out int exitJudgeVal);
            });
            /// <summary>
            /// ç¨‹åºç‰‡æ®µ:新线程总线
            /// æè¿°:1
@@ -955,8 +965,24 @@
                    Device.A2030取货交互?.Stop();
                    Device.RGV?.Stop();
                    Device.p发那科2下线?.Stop();
                    Device.p发那科3上线?.Stop();
                    Device.p发那科4上线?.Stop();
                    Device.D定子1号机械手?.Stop();
                    Device.D定子2号机械手?.Stop();
                    Device.S2027Read?.Stop();
                    Device.S2020Read?.Stop();
                    Device.S2013Read?.Stop();
                    Device.S2027Write?.Stop();
                    Device.S2020Write?.Stop();
                    Device.S2013Write?.Stop();
                    Device.S2001Write?.Stop();
                    Device.S2008Write?.Stop();
                    Device.S3001Read?.Stop();
                    Device.S3006Read?.Stop();
                    Device.S3005Read?.Stop();
                    Device.S3010Read?.Stop();
                    Device.A3001放货交互?.Stop();
                    Device.A3005取货交互?.Stop();
                    Device.A3006放货交互?.Stop();
                    Device.A3010取货交互?.Stop();
                }
                catch (Exception ex)
                {
@@ -1008,8 +1034,24 @@
                        || (Device.A2030取货交互 == null ? false : Device.A2030取货交互.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.RGV == null ? false : Device.RGV.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.p发那科2下线 == null ? false : Device.p发那科2下线.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.p发那科3上线 == null ? false : Device.p发那科3上线.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.p发那科4上线 == null ? false : Device.p发那科4上线.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.D定子1号机械手 == null ? false : Device.D定子1号机械手.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.D定子2号机械手 == null ? false : Device.D定子2号机械手.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.S2027Read == null ? false : Device.S2027Read.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.S2020Read == null ? false : Device.S2020Read.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.S2013Read == null ? false : Device.S2013Read.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.S2027Write == null ? false : Device.S2027Write.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.S2020Write == null ? false : Device.S2020Write.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.S2013Write == null ? false : Device.S2013Write.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.S2001Write == null ? false : Device.S2001Write.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.S2008Write == null ? false : Device.S2008Write.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.S3001Read == null ? false : Device.S3001Read.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.S3006Read == null ? false : Device.S3006Read.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.S3005Read == null ? false : Device.S3005Read.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.S3010Read == null ? false : Device.S3010Read.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.A3001放货交互 == null ? false : Device.A3001放货交互.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.A3005取货交互 == null ? false : Device.A3005取货交互.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.A3006放货交互 == null ? false : Device.A3006放货交互.State != GZ.Device.PLC.PlcRunState.Stoped)
                        || (Device.A3010取货交互 == null ? false : Device.A3010取货交互.State != GZ.Device.PLC.PlcRunState.Stoped)
                    )
                    {
                        System.Threading.Thread.Sleep(1000);