From 49cab6105eccb35d8b18a12f8ea29c05a857471b Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期五, 12 九月 2025 11:11:19 +0800
Subject: [PATCH] 1. SG精度检文件字符集全部修改成UTF-8

---
 SourceCode/Bond/SGMeasurement/CCLinkPerformance/CCLinkIEControl.h |   94 +++++++++++++++++++++++-----------------------
 1 files changed, 47 insertions(+), 47 deletions(-)

diff --git a/SourceCode/Bond/SGMeasurement/CCLinkPerformance/CCLinkIEControl.h b/SourceCode/Bond/SGMeasurement/CCLinkPerformance/CCLinkIEControl.h
index 703780b..5782c45 100644
--- a/SourceCode/Bond/SGMeasurement/CCLinkPerformance/CCLinkIEControl.h
+++ b/SourceCode/Bond/SGMeasurement/CCLinkPerformance/CCLinkIEControl.h
@@ -4,66 +4,66 @@
 #include "PerformanceMelsec.h"
 
 enum class CCLinkIEControlMode : short {
-    UNKNOWN = 0x0194,               // 未知
-    ONLINE = 0x0000,                // 在线
-    OFFLINE = 0x0002,               // 离线
-    INTER_STATION_TEST = 0x0005,    // 站间测试
-    LINE_TEST = 0x0006,             // 线路测试
-    LOOPBACK_TEST = 0x0007,         // 自回送测试
-    HW_TEST = 0x0009,               // H/W测试
-    BUS_IF_TEST = 0x000E            // 总线I/F测试
+	UNKNOWN = 0x0194,               // 鏈煡
+	ONLINE = 0x0000,                // 鍦ㄧ嚎
+	OFFLINE = 0x0002,               // 绂荤嚎
+	INTER_STATION_TEST = 0x0005,    // 绔欓棿娴嬭瘯
+	LINE_TEST = 0x0006,             // 绾胯矾娴嬭瘯
+	LOOPBACK_TEST = 0x0007,         // 鑷洖閫佹祴璇�
+	HW_TEST = 0x0009,               // H/W娴嬭瘯
+	BUS_IF_TEST = 0x000E            // 鎬荤嚎I/F娴嬭瘯
 };
 
 class CCCLinkIEControl final : public CPerformanceMelsec {
 public:
-    CCCLinkIEControl();
-    ~CCCLinkIEControl() override;
+	CCCLinkIEControl();
+	~CCCLinkIEControl() override;
 
-    struct LedStatus {
-        bool bExtPw; // 外部电源状态 (b15)
-        bool bRd;    // 数据接收状态 (b6)
-        bool bDLnk;  // 数据链接状态 (b5)
-        bool bPrm;   // 管理功能状态 (b4)
-        bool bErr;   // 错误状态 (b3)
-        bool bSd;    // 数据发送状态 (b2)
-        bool bMode;  // 动作模式 (b1)
-        bool bRun;   // 运行状态 (b0)
+	struct LedStatus {
+		bool bExtPw; // 澶栭儴鐢垫簮鐘舵�� (b15)
+		bool bRd;    // 鏁版嵁鎺ユ敹鐘舵�� (b6)
+		bool bDLnk;  // 鏁版嵁閾炬帴鐘舵�� (b5)
+		bool bPrm;   // 绠$悊鍔熻兘鐘舵�� (b4)
+		bool bErr;   // 閿欒鐘舵�� (b3)
+		bool bSd;    // 鏁版嵁鍙戦�佺姸鎬� (b2)
+		bool bMode;  // 鍔ㄤ綔妯″紡 (b1)
+		bool bRun;   // 杩愯鐘舵�� (b0)
 
-        // 转换为字符串,用于调试
-        std::string ToString() const {
-            std::ostringstream oss;
-            oss << "CC-Link IE Control Network LED Status: {"
-                << "\n  Ext Power: " << (bExtPw ? "ON" : "OFF")
-                << "\n  Receive Data: " << (bRd ? "Receiving" : "Not Receiving")
-                << "\n  Data Link: " << (bDLnk ? "Linked" : "Not Linked")
-                << "\n  Management: " << (bPrm ? "Managing" : "Not Managing")
-                << "\n  Error: " << (bErr ? "Error Detected" : "No Error")
-                << "\n  Send Data: " << (bSd ? "Sending" : "Not Sending")
-                << "\n  Mode: " << (bMode ? "Executing" : "Not Executing")
-                << "\n  Run: " << (bRun ? "Running" : "Stopped")
-                << "\n}";
-            return oss.str();
-        }
-    };
+		// 杞崲涓哄瓧绗︿覆锛岀敤浜庤皟璇�
+		std::string ToString() const {
+			std::ostringstream oss;
+			oss << "CC-Link IE Control Network LED Status: {"
+				<< "\n  Ext Power: " << (bExtPw ? "ON" : "OFF")
+				<< "\n  Receive Data: " << (bRd ? "Receiving" : "Not Receiving")
+				<< "\n  Data Link: " << (bDLnk ? "Linked" : "Not Linked")
+				<< "\n  Management: " << (bPrm ? "Managing" : "Not Managing")
+				<< "\n  Error: " << (bErr ? "Error Detected" : "No Error")
+				<< "\n  Send Data: " << (bSd ? "Sending" : "Not Sending")
+				<< "\n  Mode: " << (bMode ? "Executing" : "Not Executing")
+				<< "\n  Run: " << (bRun ? "Running" : "Stopped")
+				<< "\n}";
+			return oss.str();
+		}
+	};
 
-    // 读取目标站点CPU类型
-    // short ReadCPUCodeEx(const StationIdentifier& station, short& nCPUCode);
+	// 璇诲彇鐩爣绔欑偣CPU绫诲瀷
+	// short ReadCPUCodeEx(const StationIdentifier& station, short& nCPUCode);
 
-    // 板模式获取/设置
-    int SetBoardModeEx(CCLinkIEControlMode mode);
-    CCLinkIEControlMode GetBoardModeEx();
+	// 鏉挎ā寮忚幏鍙�/璁剧疆
+	int SetBoardModeEx(CCLinkIEControlMode mode);
+	CCLinkIEControlMode GetBoardModeEx();
 
-    // 获取板状态
-    int GetBoardStatusEx(BoardStatus& status);
+	// 鑾峰彇鏉跨姸鎬�
+	int GetBoardStatusEx(BoardStatus& status);
 
-    // 读取LED状态
-    int ReadLedStatus(LedStatus& outLedStatus);
+	// 璇诲彇LED鐘舵��
+	int ReadLedStatus(LedStatus& outLedStatus);
 
-    int ReadDataEx(const StationIdentifier& station, DeviceType enDevType, long devNo, long size, void* pData);
+	int ReadDataEx(const StationIdentifier& station, DeviceType enDevType, long devNo, long size, void* pData);
 
 private:
-    static CCLinkIEControlMode ConvertToCCLinkIEControlMode(short nMode);
-    static int ValidateBoardStatus(const BoardStatus& status);
+	static CCLinkIEControlMode ConvertToCCLinkIEControlMode(short nMode);
+	static int ValidateBoardStatus(const BoardStatus& status);
 };
 
 

--
Gitblit v1.9.3