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.
 
 
 

542 lines
13 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>700</width>
  10. <height>503</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Widget</string>
  15. </property>
  16. <widget class="QGroupBox" name="groupBox">
  17. <property name="geometry">
  18. <rect>
  19. <x>30</x>
  20. <y>260</y>
  21. <width>181</width>
  22. <height>231</height>
  23. </rect>
  24. </property>
  25. <property name="title">
  26. <string>从站配置</string>
  27. </property>
  28. <widget class="QPushButton" name="btn_read">
  29. <property name="geometry">
  30. <rect>
  31. <x>10</x>
  32. <y>170</y>
  33. <width>71</width>
  34. <height>51</height>
  35. </rect>
  36. </property>
  37. <property name="text">
  38. <string>读</string>
  39. </property>
  40. </widget>
  41. <widget class="QPushButton" name="btn_write">
  42. <property name="geometry">
  43. <rect>
  44. <x>90</x>
  45. <y>170</y>
  46. <width>71</width>
  47. <height>51</height>
  48. </rect>
  49. </property>
  50. <property name="text">
  51. <string>写</string>
  52. </property>
  53. </widget>
  54. <widget class="QWidget" name="layoutWidget">
  55. <property name="geometry">
  56. <rect>
  57. <x>10</x>
  58. <y>20</y>
  59. <width>159</width>
  60. <height>151</height>
  61. </rect>
  62. </property>
  63. <layout class="QGridLayout" name="gridLayout_2">
  64. <item row="0" column="0">
  65. <widget class="QLabel" name="label_9">
  66. <property name="text">
  67. <string>站地址</string>
  68. </property>
  69. </widget>
  70. </item>
  71. <item row="0" column="1">
  72. <widget class="QLineEdit" name="line_station_address">
  73. <property name="text">
  74. <string>1</string>
  75. </property>
  76. </widget>
  77. </item>
  78. <item row="1" column="0">
  79. <widget class="QLabel" name="label_10">
  80. <property name="text">
  81. <string>操作</string>
  82. </property>
  83. </widget>
  84. </item>
  85. <item row="1" column="1">
  86. <widget class="QComboBox" name="combo_function_code">
  87. <item>
  88. <property name="text">
  89. <string>读线圈</string>
  90. </property>
  91. </item>
  92. <item>
  93. <property name="text">
  94. <string>读寄存器</string>
  95. </property>
  96. </item>
  97. <item>
  98. <property name="text">
  99. <string>写线圈</string>
  100. </property>
  101. </item>
  102. <item>
  103. <property name="text">
  104. <string>写寄存器</string>
  105. </property>
  106. </item>
  107. </widget>
  108. </item>
  109. <item row="2" column="0">
  110. <widget class="QLabel" name="label_11">
  111. <property name="text">
  112. <string>起始地址</string>
  113. </property>
  114. </widget>
  115. </item>
  116. <item row="2" column="1">
  117. <widget class="QLineEdit" name="line_strat_address">
  118. <property name="text">
  119. <string>256</string>
  120. </property>
  121. </widget>
  122. </item>
  123. <item row="3" column="0">
  124. <widget class="QLabel" name="label_12">
  125. <property name="text">
  126. <string>长度</string>
  127. </property>
  128. </widget>
  129. </item>
  130. <item row="3" column="1">
  131. <widget class="QLineEdit" name="line_length">
  132. <property name="text">
  133. <string>1</string>
  134. </property>
  135. </widget>
  136. </item>
  137. </layout>
  138. </widget>
  139. </widget>
  140. <widget class="QGroupBox" name="groupBox_2">
  141. <property name="geometry">
  142. <rect>
  143. <x>30</x>
  144. <y>19</y>
  145. <width>181</width>
  146. <height>231</height>
  147. </rect>
  148. </property>
  149. <property name="title">
  150. <string>串口配置</string>
  151. </property>
  152. <widget class="QWidget" name="layoutWidget">
  153. <property name="geometry">
  154. <rect>
  155. <x>10</x>
  156. <y>20</y>
  157. <width>161</width>
  158. <height>205</height>
  159. </rect>
  160. </property>
  161. <layout class="QGridLayout" name="gridLayout">
  162. <item row="0" column="0">
  163. <widget class="QLabel" name="label">
  164. <property name="text">
  165. <string>串口</string>
  166. </property>
  167. </widget>
  168. </item>
  169. <item row="0" column="1">
  170. <widget class="QComboBox" name="combo_serial_num"/>
  171. </item>
  172. <item row="1" column="0">
  173. <widget class="QLabel" name="label_2">
  174. <property name="text">
  175. <string>波特率</string>
  176. </property>
  177. </widget>
  178. </item>
  179. <item row="1" column="1">
  180. <widget class="QComboBox" name="combo_baud_rate">
  181. <item>
  182. <property name="text">
  183. <string>1200</string>
  184. </property>
  185. </item>
  186. <item>
  187. <property name="text">
  188. <string>2400</string>
  189. </property>
  190. </item>
  191. <item>
  192. <property name="text">
  193. <string>4800</string>
  194. </property>
  195. </item>
  196. <item>
  197. <property name="text">
  198. <string>9600</string>
  199. </property>
  200. </item>
  201. <item>
  202. <property name="text">
  203. <string>19200</string>
  204. </property>
  205. </item>
  206. <item>
  207. <property name="text">
  208. <string>38400</string>
  209. </property>
  210. </item>
  211. </widget>
  212. </item>
  213. <item row="2" column="0">
  214. <widget class="QLabel" name="label_3">
  215. <property name="text">
  216. <string>数据位</string>
  217. </property>
  218. </widget>
  219. </item>
  220. <item row="2" column="1">
  221. <widget class="QComboBox" name="combo_data_bit">
  222. <item>
  223. <property name="text">
  224. <string>5</string>
  225. </property>
  226. </item>
  227. <item>
  228. <property name="text">
  229. <string>6</string>
  230. </property>
  231. </item>
  232. <item>
  233. <property name="text">
  234. <string>7</string>
  235. </property>
  236. </item>
  237. <item>
  238. <property name="text">
  239. <string>8</string>
  240. </property>
  241. </item>
  242. </widget>
  243. </item>
  244. <item row="3" column="0">
  245. <widget class="QLabel" name="label_7">
  246. <property name="text">
  247. <string>校验位</string>
  248. </property>
  249. </widget>
  250. </item>
  251. <item row="3" column="1">
  252. <widget class="QComboBox" name="combo_check">
  253. <item>
  254. <property name="text">
  255. <string>无校验(N)</string>
  256. </property>
  257. </item>
  258. <item>
  259. <property name="text">
  260. <string>奇校验(O)</string>
  261. </property>
  262. </item>
  263. <item>
  264. <property name="text">
  265. <string>偶校验(E)</string>
  266. </property>
  267. </item>
  268. </widget>
  269. </item>
  270. <item row="4" column="0">
  271. <widget class="QLabel" name="label_8">
  272. <property name="text">
  273. <string>停止位</string>
  274. </property>
  275. </widget>
  276. </item>
  277. <item row="4" column="1">
  278. <widget class="QComboBox" name="comboBox_stopBit">
  279. <item>
  280. <property name="text">
  281. <string>1</string>
  282. </property>
  283. </item>
  284. <item>
  285. <property name="text">
  286. <string>2</string>
  287. </property>
  288. </item>
  289. </widget>
  290. </item>
  291. <item row="5" column="0" colspan="2">
  292. <widget class="QPushButton" name="btn_connect">
  293. <property name="text">
  294. <string>连接</string>
  295. </property>
  296. </widget>
  297. </item>
  298. <item row="6" column="0" colspan="2">
  299. <widget class="QPushButton" name="btn_refresh">
  300. <property name="text">
  301. <string>检测可用串口</string>
  302. </property>
  303. </widget>
  304. </item>
  305. </layout>
  306. </widget>
  307. </widget>
  308. <widget class="QGroupBox" name="groupBox_3">
  309. <property name="geometry">
  310. <rect>
  311. <x>240</x>
  312. <y>30</y>
  313. <width>211</width>
  314. <height>261</height>
  315. </rect>
  316. </property>
  317. <property name="title">
  318. <string>数据读取</string>
  319. </property>
  320. <widget class="QTextEdit" name="text_data">
  321. <property name="geometry">
  322. <rect>
  323. <x>10</x>
  324. <y>20</y>
  325. <width>191</width>
  326. <height>241</height>
  327. </rect>
  328. </property>
  329. <property name="readOnly">
  330. <bool>true</bool>
  331. </property>
  332. </widget>
  333. </widget>
  334. <widget class="QGroupBox" name="groupBox_4">
  335. <property name="geometry">
  336. <rect>
  337. <x>470</x>
  338. <y>30</y>
  339. <width>221</width>
  340. <height>261</height>
  341. </rect>
  342. </property>
  343. <property name="title">
  344. <string>状态通知</string>
  345. </property>
  346. <widget class="QTextEdit" name="text_information">
  347. <property name="geometry">
  348. <rect>
  349. <x>10</x>
  350. <y>20</y>
  351. <width>201</width>
  352. <height>241</height>
  353. </rect>
  354. </property>
  355. <property name="readOnly">
  356. <bool>true</bool>
  357. </property>
  358. </widget>
  359. </widget>
  360. <widget class="QGroupBox" name="groupBox_5">
  361. <property name="geometry">
  362. <rect>
  363. <x>240</x>
  364. <y>340</y>
  365. <width>341</width>
  366. <height>151</height>
  367. </rect>
  368. </property>
  369. <property name="title">
  370. <string>写入数据</string>
  371. </property>
  372. <widget class="QLabel" name="label_13">
  373. <property name="geometry">
  374. <rect>
  375. <x>10</x>
  376. <y>20</y>
  377. <width>311</width>
  378. <height>91</height>
  379. </rect>
  380. </property>
  381. <property name="text">
  382. <string>写线圈时,使用1、0代表线圈的开关状态,
  383. 从左到右依次输入每个线圈的开关;
  384. 写寄存器时要同时写入所有寄存器的数值,
  385. 相邻寄存器的值之间用英文&quot;,&quot;分离。</string>
  386. </property>
  387. </widget>
  388. <widget class="QLineEdit" name="line_input">
  389. <property name="geometry">
  390. <rect>
  391. <x>10</x>
  392. <y>110</y>
  393. <width>301</width>
  394. <height>31</height>
  395. </rect>
  396. </property>
  397. </widget>
  398. </widget>
  399. <widget class="QWidget" name="layoutWidget">
  400. <property name="geometry">
  401. <rect>
  402. <x>240</x>
  403. <y>300</y>
  404. <width>451</width>
  405. <height>30</height>
  406. </rect>
  407. </property>
  408. <layout class="QHBoxLayout" name="horizontalLayout">
  409. <item>
  410. <widget class="QPushButton" name="btn_clear_read">
  411. <property name="text">
  412. <string>清空读取信息</string>
  413. </property>
  414. </widget>
  415. </item>
  416. <item>
  417. <widget class="QPushButton" name="btn_clear_date">
  418. <property name="text">
  419. <string>清空收发信息</string>
  420. </property>
  421. </widget>
  422. </item>
  423. <item>
  424. <widget class="QPushButton" name="btn_read_date">
  425. <property name="text">
  426. <string>读取历史收发信息</string>
  427. </property>
  428. </widget>
  429. </item>
  430. <item>
  431. <widget class="QPushButton" name="btn_save_date">
  432. <property name="text">
  433. <string>保存收发信息</string>
  434. </property>
  435. </widget>
  436. </item>
  437. </layout>
  438. </widget>
  439. <widget class="QPushButton" name="btn_batch_input">
  440. <property name="geometry">
  441. <rect>
  442. <x>590</x>
  443. <y>400</y>
  444. <width>93</width>
  445. <height>28</height>
  446. </rect>
  447. </property>
  448. <property name="text">
  449. <string>批量输入</string>
  450. </property>
  451. </widget>
  452. <widget class="QLineEdit" name="line_data_num">
  453. <property name="geometry">
  454. <rect>
  455. <x>590</x>
  456. <y>440</y>
  457. <width>71</width>
  458. <height>21</height>
  459. </rect>
  460. </property>
  461. </widget>
  462. <widget class="QLineEdit" name="line_data">
  463. <property name="geometry">
  464. <rect>
  465. <x>590</x>
  466. <y>470</y>
  467. <width>71</width>
  468. <height>21</height>
  469. </rect>
  470. </property>
  471. </widget>
  472. <widget class="QLabel" name="label_4">
  473. <property name="geometry">
  474. <rect>
  475. <x>670</x>
  476. <y>440</y>
  477. <width>21</width>
  478. <height>16</height>
  479. </rect>
  480. </property>
  481. <property name="text">
  482. <string>个</string>
  483. </property>
  484. </widget>
  485. <widget class="QLabel" name="label_5">
  486. <property name="geometry">
  487. <rect>
  488. <x>590</x>
  489. <y>350</y>
  490. <width>51</width>
  491. <height>41</height>
  492. </rect>
  493. </property>
  494. <property name="text">
  495. <string>数据数:</string>
  496. </property>
  497. </widget>
  498. <widget class="QLineEdit" name="line_number">
  499. <property name="geometry">
  500. <rect>
  501. <x>640</x>
  502. <y>350</y>
  503. <width>51</width>
  504. <height>31</height>
  505. </rect>
  506. </property>
  507. <property name="readOnly">
  508. <bool>true</bool>
  509. </property>
  510. </widget>
  511. <widget class="QWidget" name="">
  512. <property name="geometry">
  513. <rect>
  514. <x>251</x>
  515. <y>1</y>
  516. <width>241</width>
  517. <height>30</height>
  518. </rect>
  519. </property>
  520. <layout class="QHBoxLayout" name="horizontalLayout_2">
  521. <item>
  522. <widget class="QLabel" name="label_staion">
  523. <property name="text">
  524. <string>未连接到从站</string>
  525. </property>
  526. </widget>
  527. </item>
  528. <item>
  529. <widget class="QPushButton" name="btn_checkmsg">
  530. <property name="text">
  531. <string>重新生成检测报文</string>
  532. </property>
  533. </widget>
  534. </item>
  535. </layout>
  536. </widget>
  537. </widget>
  538. <layoutdefault spacing="6" margin="11"/>
  539. <resources/>
  540. <connections/>
  541. </ui>