You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

411 regels
9.4 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>Widget</class>
  4. <widget class="QWidget" name="Widget">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>787</width>
  10. <height>543</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Widget</string>
  15. </property>
  16. <widget class="QLineEdit" name="lineEdit">
  17. <property name="geometry">
  18. <rect>
  19. <x>340</x>
  20. <y>430</y>
  21. <width>301</width>
  22. <height>31</height>
  23. </rect>
  24. </property>
  25. </widget>
  26. <widget class="QPushButton" name="pushWrite">
  27. <property name="geometry">
  28. <rect>
  29. <x>350</x>
  30. <y>470</y>
  31. <width>93</width>
  32. <height>28</height>
  33. </rect>
  34. </property>
  35. <property name="text">
  36. <string>写</string>
  37. </property>
  38. </widget>
  39. <widget class="QTextEdit" name="textEdit">
  40. <property name="geometry">
  41. <rect>
  42. <x>40</x>
  43. <y>250</y>
  44. <width>251</width>
  45. <height>211</height>
  46. </rect>
  47. </property>
  48. </widget>
  49. <widget class="QPushButton" name="btn_read">
  50. <property name="geometry">
  51. <rect>
  52. <x>110</x>
  53. <y>470</y>
  54. <width>93</width>
  55. <height>28</height>
  56. </rect>
  57. </property>
  58. <property name="text">
  59. <string>读</string>
  60. </property>
  61. </widget>
  62. <widget class="QWidget" name="layoutWidget">
  63. <property name="geometry">
  64. <rect>
  65. <x>40</x>
  66. <y>115</y>
  67. <width>672</width>
  68. <height>23</height>
  69. </rect>
  70. </property>
  71. <layout class="QHBoxLayout" name="horizontalLayout">
  72. <item>
  73. <widget class="QLabel" name="label_9">
  74. <property name="text">
  75. <string>站地址</string>
  76. </property>
  77. </widget>
  78. </item>
  79. <item>
  80. <widget class="QComboBox" name="comboBox_stationAddress">
  81. <item>
  82. <property name="text">
  83. <string>1</string>
  84. </property>
  85. </item>
  86. <item>
  87. <property name="text">
  88. <string>2</string>
  89. </property>
  90. </item>
  91. <item>
  92. <property name="text">
  93. <string>3</string>
  94. </property>
  95. </item>
  96. <item>
  97. <property name="text">
  98. <string>4</string>
  99. </property>
  100. </item>
  101. <item>
  102. <property name="text">
  103. <string>5</string>
  104. </property>
  105. </item>
  106. <item>
  107. <property name="text">
  108. <string>6</string>
  109. </property>
  110. </item>
  111. <item>
  112. <property name="text">
  113. <string>7</string>
  114. </property>
  115. </item>
  116. <item>
  117. <property name="text">
  118. <string>8</string>
  119. </property>
  120. </item>
  121. <item>
  122. <property name="text">
  123. <string>9</string>
  124. </property>
  125. </item>
  126. </widget>
  127. </item>
  128. <item>
  129. <widget class="QLabel" name="label_10">
  130. <property name="text">
  131. <string>操作</string>
  132. </property>
  133. </widget>
  134. </item>
  135. <item>
  136. <widget class="QComboBox" name="comboBox_gongnengma">
  137. <item>
  138. <property name="text">
  139. <string>读线圈</string>
  140. </property>
  141. </item>
  142. <item>
  143. <property name="text">
  144. <string>读寄存器</string>
  145. </property>
  146. </item>
  147. <item>
  148. <property name="text">
  149. <string>写线圈</string>
  150. </property>
  151. </item>
  152. <item>
  153. <property name="text">
  154. <string>写寄存器</string>
  155. </property>
  156. </item>
  157. </widget>
  158. </item>
  159. <item>
  160. <widget class="QLabel" name="label_11">
  161. <property name="text">
  162. <string>起始地址</string>
  163. </property>
  164. </widget>
  165. </item>
  166. <item>
  167. <widget class="QLineEdit" name="lineEdit_stratAddress">
  168. <property name="text">
  169. <string>256</string>
  170. </property>
  171. </widget>
  172. </item>
  173. <item>
  174. <widget class="QLabel" name="label_12">
  175. <property name="text">
  176. <string>长度</string>
  177. </property>
  178. </widget>
  179. </item>
  180. <item>
  181. <widget class="QLineEdit" name="lineEdit_length">
  182. <property name="text">
  183. <string>1</string>
  184. </property>
  185. </widget>
  186. </item>
  187. </layout>
  188. </widget>
  189. <widget class="QLabel" name="label_13">
  190. <property name="geometry">
  191. <rect>
  192. <x>340</x>
  193. <y>330</y>
  194. <width>311</width>
  195. <height>101</height>
  196. </rect>
  197. </property>
  198. <property name="text">
  199. <string>写线圈时,使用1、0代表线圈的开关状态,
  200. 从左到右依次输入每个线圈的开关;
  201. 写寄存器时要写入所有寄存器的16进制数值,
  202. 相邻寄存器的值之间用英文&quot;,&quot;分离。</string>
  203. </property>
  204. </widget>
  205. <widget class="QWidget" name="">
  206. <property name="geometry">
  207. <rect>
  208. <x>40</x>
  209. <y>30</y>
  210. <width>378</width>
  211. <height>62</height>
  212. </rect>
  213. </property>
  214. <layout class="QVBoxLayout" name="verticalLayout">
  215. <item>
  216. <layout class="QHBoxLayout" name="horizontalLayout_2">
  217. <item>
  218. <widget class="QLabel" name="label">
  219. <property name="text">
  220. <string>串口</string>
  221. </property>
  222. </widget>
  223. </item>
  224. <item>
  225. <widget class="QComboBox" name="comboBox_serialNum"/>
  226. </item>
  227. <item>
  228. <widget class="QLabel" name="label_2">
  229. <property name="text">
  230. <string>波特率</string>
  231. </property>
  232. </widget>
  233. </item>
  234. <item>
  235. <widget class="QComboBox" name="comboBox_baudRate">
  236. <item>
  237. <property name="text">
  238. <string>1200</string>
  239. </property>
  240. </item>
  241. <item>
  242. <property name="text">
  243. <string>2400</string>
  244. </property>
  245. </item>
  246. <item>
  247. <property name="text">
  248. <string>4800</string>
  249. </property>
  250. </item>
  251. <item>
  252. <property name="text">
  253. <string>9600</string>
  254. </property>
  255. </item>
  256. <item>
  257. <property name="text">
  258. <string>19200</string>
  259. </property>
  260. </item>
  261. <item>
  262. <property name="text">
  263. <string>38400</string>
  264. </property>
  265. </item>
  266. </widget>
  267. </item>
  268. <item>
  269. <widget class="QLabel" name="label_3">
  270. <property name="text">
  271. <string>数据位</string>
  272. </property>
  273. </widget>
  274. </item>
  275. <item>
  276. <widget class="QComboBox" name="comboBox_dataBit">
  277. <item>
  278. <property name="text">
  279. <string>5</string>
  280. </property>
  281. </item>
  282. <item>
  283. <property name="text">
  284. <string>6</string>
  285. </property>
  286. </item>
  287. <item>
  288. <property name="text">
  289. <string>7</string>
  290. </property>
  291. </item>
  292. <item>
  293. <property name="text">
  294. <string>8</string>
  295. </property>
  296. </item>
  297. <item>
  298. <property name="text">
  299. <string>NONE</string>
  300. </property>
  301. </item>
  302. </widget>
  303. </item>
  304. </layout>
  305. </item>
  306. <item>
  307. <layout class="QHBoxLayout" name="horizontalLayout_3">
  308. <item>
  309. <widget class="QLabel" name="label_7">
  310. <property name="text">
  311. <string>校验位</string>
  312. </property>
  313. </widget>
  314. </item>
  315. <item>
  316. <widget class="QComboBox" name="comboBox_xiaoyan">
  317. <item>
  318. <property name="text">
  319. <string>无校验(N)</string>
  320. </property>
  321. </item>
  322. <item>
  323. <property name="text">
  324. <string>奇校验(O)</string>
  325. </property>
  326. </item>
  327. <item>
  328. <property name="text">
  329. <string>偶校验(E)</string>
  330. </property>
  331. </item>
  332. </widget>
  333. </item>
  334. <item>
  335. <widget class="QLabel" name="label_8">
  336. <property name="text">
  337. <string>停止位</string>
  338. </property>
  339. </widget>
  340. </item>
  341. <item>
  342. <widget class="QComboBox" name="comboBox_stopBit">
  343. <item>
  344. <property name="text">
  345. <string>1</string>
  346. </property>
  347. </item>
  348. <item>
  349. <property name="text">
  350. <string>2</string>
  351. </property>
  352. </item>
  353. </widget>
  354. </item>
  355. <item>
  356. <widget class="QPushButton" name="btnConnect">
  357. <property name="text">
  358. <string>连接</string>
  359. </property>
  360. </widget>
  361. </item>
  362. </layout>
  363. </item>
  364. </layout>
  365. </widget>
  366. <widget class="QWidget" name="">
  367. <property name="geometry">
  368. <rect>
  369. <x>40</x>
  370. <y>150</y>
  371. <width>671</width>
  372. <height>91</height>
  373. </rect>
  374. </property>
  375. <layout class="QHBoxLayout" name="horizontalLayout_4">
  376. <item>
  377. <widget class="QTextEdit" name="textEdit_2"/>
  378. </item>
  379. <item>
  380. <layout class="QVBoxLayout" name="verticalLayout_2">
  381. <item>
  382. <widget class="QPushButton" name="pushButton_3">
  383. <property name="text">
  384. <string>清空收发信息</string>
  385. </property>
  386. </widget>
  387. </item>
  388. <item>
  389. <widget class="QPushButton" name="pushButton">
  390. <property name="text">
  391. <string>保存收发信息</string>
  392. </property>
  393. </widget>
  394. </item>
  395. <item>
  396. <widget class="QPushButton" name="pushButton_2">
  397. <property name="text">
  398. <string>读取历史收发信息</string>
  399. </property>
  400. </widget>
  401. </item>
  402. </layout>
  403. </item>
  404. </layout>
  405. </widget>
  406. </widget>
  407. <layoutdefault spacing="6" margin="11"/>
  408. <resources/>
  409. <connections/>
  410. </ui>