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.
 
 
 

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