From dc18021539bdf4ee176ec9d9b88eb7d9ad581600 Mon Sep 17 00:00:00 2001
From: C3204 <zhengyabo@lanpucloud.cn>
Date: 星期五, 17 四月 2026 17:00:35 +0800
Subject: [PATCH] 新增心跳等常规信号配置&&修改相机轴读取配置等
---
LB_SmartVision/GlobalVar.cs | 24 ++++++++++++++++++------
1 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/LB_SmartVision/GlobalVar.cs b/LB_SmartVision/GlobalVar.cs
index d1a34e2..473e960 100644
--- a/LB_SmartVision/GlobalVar.cs
+++ b/LB_SmartVision/GlobalVar.cs
@@ -7,6 +7,7 @@
using LB_VisionProcesses.BarcodeReaders;
using LB_VisionProcesses.Cameras;
using LB_VisionProcesses.Communicators;
+using LB_VisionProcesses.Communicators.SiemensS7;
using System.Collections.Concurrent;
namespace LB_SmartVision
@@ -48,8 +49,10 @@
public static string AllSerialPortPath
=> GlobalVar.strApplicationPath + "鎵�鏈変骇鍝乗\" + GlobalVar.strProductName + "\\A_SerialPort.json";
-
-
+ /// <summary>
+ /// 褰撳墠閫氳
+ /// </summary>
+ public static string currentCommunicators { get; set; } = string.Empty;
/// <summary>
/// 娴佺▼闆嗗悎(Key:娴佺▼鍚嶏紝Value:杩愯姝ラ闆嗗悎)
/// </summary>
@@ -72,18 +75,27 @@
/// <summary>
- /// 杩愬姩鎺ф暟鎹埗闆嗗悎 Key:浜у搧鍚嶇О锛孷alue: SN,RecordMotionControlData
+ /// 杩愬姩鎺ф暟鎹埗闆嗗悎 Key:浜у搧鍚嶇О锛孷alue: SN,PlcConfig
/// </summary>
- public static Dictionary<string, Dictionary<string, PlcDataItem>> dicMPlcData { get; set; } = new Dictionary<string, Dictionary<string, PlcDataItem>>();
+ public static Dictionary<string, Dictionary<string, PlcConfig>> dicMPlcData { get; set; } = new Dictionary<string, Dictionary<string, PlcConfig>>();
public static string allMPlcDataPath
=> GlobalVar.strApplicationPath + "鎵�鏈変骇鍝乗\" + GlobalVar.strProductName + "\\A_MPlcDatas.json";
+ public static Dictionary<string, PlcConfig> allPlcSettings { get; set; } = new Dictionary<string, PlcConfig>();
+
+ public static string allPlcSettingPath
+ => GlobalVar.strApplicationPath + "鎵�鏈変骇鍝乗\" + GlobalVar.strProductName /*+ "\\A_PlcSetting.json"*/;
+
+ public static string allPlcSettingsPath
+ => GlobalVar.strApplicationPath + "鎵�鏈変骇鍝乗\" + GlobalVar.strProductName + "\\A_PlcSettings.json";
+
+
/// <summary>
- /// 杩愬姩鎺ф暟鎹埗闆嗗悎 Key:浜у搧鍚嶇О锛孷alue: SN,RecordMotionControlData
+ /// 杩愬姩鎺ф暟鎹埗闆嗗悎 Key:浜у搧鍚嶇О锛孷alue: SN,PlcConfig
/// </summary>
- public static Dictionary<string, Dictionary<string, RecordMotionControlData>> dicMotionControlData { get; set; } = new Dictionary<string, Dictionary<string, RecordMotionControlData>>();
+ public static Dictionary<string, Dictionary<string, PlcConfig>> dicMotionControlData { get; set; } = new Dictionary<string, Dictionary<string, PlcConfig>>();
public static string allMotionControlDataPath
=> GlobalVar.strApplicationPath + "鎵�鏈変骇鍝乗\" + GlobalVar.strProductName + "\\A_MotionControlDatas.json";
--
Gitblit v1.9.3