From 32f4e5154a4bcc3228b9e422e96b7009d55f50ad Mon Sep 17 00:00:00 2001
From: LAPTOP-T815PCOQ\25526 <mr.liuyang@126.com>
Date: 星期四, 26 十二月 2024 11:24:29 +0800
Subject: [PATCH] 1. 添加主界面,并且读写PLC

---
 SourceCode/Bond/BondEq/View/AxisDetailSettingsDlg.cpp |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/BondEq/View/AxisDetailSettingsDlg.cpp b/SourceCode/Bond/BondEq/View/AxisDetailSettingsDlg.cpp
index d9e0aaf..a9baca3 100644
--- a/SourceCode/Bond/BondEq/View/AxisDetailSettingsDlg.cpp
+++ b/SourceCode/Bond/BondEq/View/AxisDetailSettingsDlg.cpp
@@ -289,10 +289,17 @@
 
 	auto writeIntToBuffer = [&](int value, int nWriteIndex) {
 		if (nWriteIndex + 4 <= sizeof(szWrite)) {
+			// 灏忕
 			szWrite[nWriteIndex] = static_cast<char>(value & 0xFF);             // 浣庡瓧鑺�
 			szWrite[nWriteIndex + 1] = static_cast<char>((value >> 8) & 0xFF);  // 娆′綆瀛楄妭
 			szWrite[nWriteIndex + 2] = static_cast<char>((value >> 16) & 0xFF); // 娆¢珮瀛楄妭
 			szWrite[nWriteIndex + 3] = static_cast<char>((value >> 24) & 0xFF); // 楂樺瓧鑺�
+
+			// 澶х
+			//szWrite[nWriteIndex + 3] = static_cast<char>(value & 0xFF);         // 楂樺瓧鑺�
+			//szWrite[nWriteIndex + 2] = static_cast<char>((value >> 8) & 0xFF);  // 娆¢珮瀛楄妭
+			//szWrite[nWriteIndex + 1] = static_cast<char>((value >> 16) & 0xFF); // 娆′綆瀛楄妭
+			//szWrite[nWriteIndex] = static_cast<char>((value >> 24) & 0xFF);     // 浣庡瓧鑺�
 		}
 	};
 

--
Gitblit v1.9.3