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.

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