From 8ff84ae4bba9b267abe8a1984817ae8745d548e1 Mon Sep 17 00:00:00 2001
From: QuakeGod <QuakeGod@sina.com>
Date: 星期一, 30 一月 2023 01:29:47 +0800
Subject: [PATCH] radio clean up files

---
 Inc/KMachine.h |   65 ++++++++++++++++----------------
 1 files changed, 32 insertions(+), 33 deletions(-)

diff --git a/Inc/KMachine.h b/Inc/KMachine.h
index 1be757b..125fef1 100644
--- a/Inc/KMachine.h
+++ b/Inc/KMachine.h
@@ -49,9 +49,9 @@
 #define LoHofB(x) ((x)&0xf)
 #define HiHofB(x) (((x)>>4)&0xf)
 
-//  锟斤拷息锟斤拷
-//  锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟矫匡拷
-//  锟矫伙拷/系统锟斤拷锟斤拷锟斤拷锟矫匡拷
+//  淇℃伅鍧�
+//  宸ュ巶鍙傛暟閰嶇疆鍧�
+//  鐢ㄦ埛/绯荤粺鍙傛暟閰嶇疆鍧�
 //  
 //
 
@@ -103,26 +103,26 @@
 
 enum enPortType
 {
-	PortType_Com = 0,	//锟斤拷锟斤拷锟酵ㄑ�
-	PortType_Gen = 1,	//通锟斤拷通讯锟斤拷锟斤拷锟缴匡拷
-	PortType_KLink = 2, //Klink通讯
-	PortType_KBus = 3, 	//KBus通讯
-	PortType_KNet = 4, 	// KNet通讯
-	PortType_ModbusRTU = 5, //Modbus RTU 通讯
+	PortType_Com = 0,	//璁$畻鏈洪�氳
+	PortType_Gen = 1,	//閫氱敤閫氳锛岃嚜鐢卞彛
+	PortType_KLink = 2, //Klink閫氳
+	PortType_KBus = 3, 	//KBus閫氳
+	PortType_KNet = 4, 	// KNet閫氳
+	PortType_ModbusRTU = 5, //Modbus RTU 閫氳
 };
 
-//每锟斤拷模锟斤拷锟斤拷 0/1/2/3/4/5/6/7/8锟斤拷 通讯port
-//锟斤拷锟斤拷锟斤拷 UART, 锟斤拷锟节o拷锟斤拷锟竭o拷锟斤拷锟斤拷锟竭等o拷锟斤拷锟斤拷port
-//锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟絧ort
+//姣忎釜妯″潡鏈� 0/1/2/3/4/5/6/7/8涓� 閫氳port
+//涓嶉檺浜� UART, 缃戝彛锛屾棤绾匡紝鍗曟�荤嚎绛夛紝閮芥槸port
+//鐢氳嚦鍙互鏈夎櫄鎷熺殑port
 
 typedef struct tagPortStat
 {
-	UCHAR nWorking;			//锟斤拷锟斤拷锟斤拷
-	UCHAR nStation;			//锟皆硷拷站锟斤拷
-	UCHAR bBus;					//锟斤拷锟斤拷?,,全双锟斤拷?
-	UCHAR bMaster;			//锟斤拷锟斤拷
-	UCHAR PortType;			//锟剿口癸拷锟斤拷模式
-	UCHAR nDevices;			//锟斤拷锟接碉拷锟借备锟斤拷锟斤拷//锟斤拷锟斤拷锟斤拷锟皆硷拷 //device list;
+	UCHAR nWorking;			//宸ヤ綔涓�
+	UCHAR nStation;			//鑷繁绔欏彿
+	UCHAR bBus;					//鎬荤嚎?,,鍏ㄥ弻宸�?
+	UCHAR bMaster;			//涓绘満
+	UCHAR PortType;			//绔彛宸ヤ綔妯″紡
+	UCHAR nDevices;			//杩炴帴鐨勮澶囨暟閲�//涓嶅寘鎷嚜宸� //device list;
 	
 }stPortStat,*pPortStat;
 
@@ -146,11 +146,11 @@
 
 typedef struct tagKMFuncParam
 {
-	USHORT EnablePLC:1;		//使锟斤拷锟节诧拷PLC锟斤拷锟斤拷
-	USHORT RunMode;				//锟斤拷锟斤拷模式
+	USHORT EnablePLC:1;		//浣胯兘鍐呴儴PLC鍔熻兘
+	USHORT RunMode;				//宸ヤ綔妯″紡
 }stKMFuncParam;
 
-// 锟斤拷锟斤拷锟斤拷锟斤拷锟街酚筹拷锟�
+// 杈撳叆杈撳嚭鍦板潃鏄犲皠
 
 typedef struct tagComPortParam			//4 Bytes
 {
@@ -190,7 +190,7 @@
 	USHORT workmode;									// SC1  // 2 Bytes 0=From jumper  
 	USHORT SwitchFunc;								// SC2  // 2 Bytes 
 	
-	USHORT OutMappings[6];										//12 Bytes //锟斤拷锟接筹拷锟�
+	USHORT OutMappings[6];										//12 Bytes //杈撳嚭鏄犲皠
 	
 	stComPortParam PortParams[2];							// 8 Bytes
 	stOutputHoldParam OutputParams[16];				//16 Bytes
@@ -223,7 +223,6 @@
 	unsigned short EndSign1;
 }stStoredKMSysCfg,*pStoredKMSysCfg;
 
-
 /*
 typedef struct tagFactData
 {
@@ -238,7 +237,7 @@
 	
 }stFactData;
 */
-typedef struct tagFactoryData		//锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
+typedef struct tagFactoryData		//宸ュ巶閲忎骇鍙傛暟锛屾暟鎹�
 {
 	USHORT Sign1;
 	USHORT Seq1;
@@ -397,12 +396,12 @@
 	stTimer Timers[TOTALTIMERS];
 
 	union {
-	unsigned short WX[KLDataWXCount];		//锟斤拷锟斤拷锟斤拷X锟斤拷Y
+	unsigned short WX[KLDataWXCount];		//鏈満鐨刋鍜孻
 	unsigned char WXB[KLDataWXCount*2];	
 	};
 	union {
-	unsigned short WY[KLDataWYCount];		//锟斤拷锟斤拷锟斤拷X锟斤拷Y
-	unsigned char WYB[KLDataWYCount*2];		//锟斤拷锟斤拷锟斤拷X锟斤拷Y
+	unsigned short WY[KLDataWYCount];		//鏈満鐨刋鍜孻
+	unsigned char WYB[KLDataWYCount*2];		//鏈満鐨刋鍜孻
 	}; 
 	unsigned short WR[KLDataWRCount];
 	
@@ -413,7 +412,7 @@
 	unsigned short SV[KLDataSVCount];
 	
 	
-	unsigned short WLX[16];		//锟斤拷锟斤拷锟絏锟斤拷Y锟斤拷远锟斤拷通讯时映锟斤拷锟矫★拷
+	unsigned short WLX[16];		//铏氭嫙鐨刋鍜孻锛岃繙绋嬮�氳鏃舵槧灏勭敤銆�
 	unsigned short WLY[16];
 	unsigned short WLR[16];	
 	unsigned short WSR[16];
@@ -422,12 +421,12 @@
 	unsigned int DTD[KLDataDTCount];
 	unsigned short DT[KLDataDTCount];
 	unsigned char DTB[KLDataDTCount*2];
-};	
+};
 
-	// 锟斤拷锟矫寄达拷锟斤拷
-	// 系统状态锟侥达拷锟斤拷
-	// 锟斤拷锟斤拷拇锟斤拷锟�
-	// 锟斤拷锟皆o拷锟斤拷丶拇锟斤拷锟�
+	// 閰嶇疆瀵勫瓨鍣�
+	// 绯荤粺鐘舵�佸瘎瀛樺櫒
+	// 鐗规畩瀵勫瓨鍣�
+	// 璋冭瘯锛岀洃鎺у瘎瀛樺櫒
 	union {
 		unsigned int SDD[KLDataSDTCount/2];
 		unsigned short SDT[KLDataSDTCount];

--
Gitblit v1.9.1