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.
 
 
 

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