KWD 6 kuukautta sitten
vanhempi
sitoutus
74261816ef

+ 5 - 0
TeamAAS-VM/Core/Management.cs

@@ -1177,8 +1177,13 @@ namespace TeamAAS_VP.Core
                 addressConfig.In_ScrewTeachExe.Address,
                 addressConfig.In_PickINC.Address,
             };
+            var systemconfig = _configService.GetSystemConfiguration();
             for (int i = 0; i < 10; i++)
             {
+                if (systemconfig.DoubleSoftMode && i==1)
+                {
+                    continue;
+                }
                 monitorNodeIds.Add(string.Format(addressConfig.In_MesCheck.Address, i));
             }
             //订阅PLC地址变化

+ 11 - 0
TeamAAS-VM/Models/SystemConfiguration.cs

@@ -1,6 +1,7 @@
 using Prism.Mvvm;
 using System;
 using System.Reflection;
+using System.Windows;
 using TeamAAS_VP.Enums;
 
 namespace TeamAAS_VP.Models
@@ -216,6 +217,16 @@ namespace TeamAAS_VP.Models
             set => SetProperty(ref _ScrewCurvePath, value);
         }
 
+        private bool _DoubleSoftMode = false;
+        /// <summary>
+        /// 双软件模式
+        /// </summary>
+        public bool DoubleSoftMode
+        {
+            get => _DoubleSoftMode;
+            set => SetProperty(ref _DoubleSoftMode, value);
+        }
+
         /// <summary>
         /// 字体大小子设置
         /// </summary>

+ 1 - 0
TeamAAS-VM/Services/ConfigService.cs

@@ -897,6 +897,7 @@ namespace TeamAAS_VP.Services
                 {
                     config = FileHelper.ReadJsonFile<SystemConfiguration>(ConfigPaths.SystemConfigurationPath);
                 }
+                FileHelper.WriteJsonFile(config, ConfigPaths.SystemConfigurationPath);
                 return config;
             }
         }