- <?xml version="1.0" encoding="UTF-8"?>
- <ui version="4.0">
- <class>MainWindow</class>
- <widget class="QMainWindow" name="MainWindow">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>815</width>
- <height>606</height>
- </rect>
- </property>
- <property name="windowTitle">
- <string>MainWindow</string>
- </property>
- <widget class="QWidget" name="centralwidget">
- <widget class="QGroupBox" name="groupBox_3">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>240</y>
- <width>381</width>
- <height>311</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="title">
- <string/>
- </property>
- <widget class="QLabel" name="label">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>120</y>
- <width>91</width>
- <height>31</height>
- </rect>
- </property>
- <property name="text">
- <string>起始地址:</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_10">
- <property name="geometry">
- <rect>
- <x>190</x>
- <y>110</y>
- <width>91</width>
- <height>41</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="text">
- <string>读取数量:</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_4">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>70</y>
- <width>91</width>
- <height>20</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="text">
- <string>从站地址:</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_8">
- <property name="geometry">
- <rect>
- <x>200</x>
- <y>60</y>
- <width>81</width>
- <height>31</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="text">
- <string>功能码:</string>
- </property>
- </widget>
- <widget class="QComboBox" name="functionComboBox">
- <property name="geometry">
- <rect>
- <x>270</x>
- <y>60</y>
- <width>101</width>
- <height>31</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>11</pointsize>
- </font>
- </property>
- <item>
- <property name="text">
- <string>01读线圈</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>03读寄存器</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>0F写线圈</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>10写寄存器</string>
- </property>
- </item>
- </widget>
- <widget class="QTextEdit" name="writeTextEdit">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>260</y>
- <width>381</width>
- <height>41</height>
- </rect>
- </property>
- </widget>
- <widget class="QPushButton" name="writeButton">
- <property name="geometry">
- <rect>
- <x>260</x>
- <y>180</y>
- <width>93</width>
- <height>41</height>
- </rect>
- </property>
- <property name="text">
- <string>写入</string>
- </property>
- </widget>
- <widget class="QPushButton" name="readButton">
- <property name="geometry">
- <rect>
- <x>90</x>
- <y>180</y>
- <width>93</width>
- <height>41</height>
- </rect>
- </property>
- <property name="text">
- <string>读取</string>
- </property>
- </widget>
- <widget class="QSpinBox" name="numberSpinBox">
- <property name="geometry">
- <rect>
- <x>280</x>
- <y>120</y>
- <width>90</width>
- <height>31</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>黑体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="maximum">
- <number>1000</number>
- </property>
- </widget>
- <widget class="QSpinBox" name="startAddrSpinBox">
- <property name="geometry">
- <rect>
- <x>100</x>
- <y>120</y>
- <width>91</width>
- <height>31</height>
- </rect>
- </property>
- <property name="maximum">
- <number>20000</number>
- </property>
- </widget>
- <widget class="QSpinBox" name="stationAddrSpinBox">
- <property name="geometry">
- <rect>
- <x>100</x>
- <y>60</y>
- <width>91</width>
- <height>31</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>黑体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="maximum">
- <number>1000</number>
- </property>
- </widget>
- <widget class="QLabel" name="label_13">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>101</width>
- <height>31</height>
- </rect>
- </property>
- <property name="text">
- <string>Modbus配置</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_14">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>230</y>
- <width>91</width>
- <height>31</height>
- </rect>
- </property>
- <property name="text">
- <string>写入数据</string>
- </property>
- </widget>
- </widget>
- <widget class="QGroupBox" name="groupBox_4">
- <property name="geometry">
- <rect>
- <x>400</x>
- <y>310</y>
- <width>401</width>
- <height>241</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="title">
- <string/>
- </property>
- <widget class="QTextEdit" name="logTextEdit">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>30</y>
- <width>391</width>
- <height>201</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>微软雅黑 Light</family>
- <pointsize>10</pointsize>
- </font>
- </property>
- </widget>
- <widget class="QPushButton" name="clearLogButton">
- <property name="geometry">
- <rect>
- <x>300</x>
- <y>0</y>
- <width>93</width>
- <height>31</height>
- </rect>
- </property>
- <property name="text">
- <string>清空</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_12">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>81</width>
- <height>21</height>
- </rect>
- </property>
- <property name="text">
- <string>日志框</string>
- </property>
- </widget>
- </widget>
- <widget class="QGroupBox" name="groupBox">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>10</y>
- <width>381</width>
- <height>231</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="title">
- <string>通信配置</string>
- </property>
- <widget class="QComboBox" name="verifyComboBox">
- <property name="geometry">
- <rect>
- <x>120</x>
- <y>70</y>
- <width>70</width>
- <height>30</height>
- </rect>
- </property>
- </widget>
- <widget class="QComboBox" name="dataComboBox">
- <property name="geometry">
- <rect>
- <x>280</x>
- <y>70</y>
- <width>70</width>
- <height>30</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>黑体</family>
- <pointsize>10</pointsize>
- </font>
- </property>
- </widget>
- <widget class="QComboBox" name="stopComboBox">
- <property name="geometry">
- <rect>
- <x>280</x>
- <y>110</y>
- <width>70</width>
- <height>30</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>黑体</family>
- <pointsize>10</pointsize>
- </font>
- </property>
- </widget>
- <widget class="QLabel" name="label_5">
- <property name="geometry">
- <rect>
- <x>40</x>
- <y>120</y>
- <width>85</width>
- <height>23</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="text">
- <string>波特率:</string>
- </property>
- </widget>
- <widget class="QComboBox" name="baudComboBox">
- <property name="geometry">
- <rect>
- <x>120</x>
- <y>110</y>
- <width>70</width>
- <height>30</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>黑体</family>
- <pointsize>10</pointsize>
- </font>
- </property>
- <item>
- <property name="text">
- <string>4800</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>9600</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>19200</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>38400</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>115200</string>
- </property>
- </item>
- </widget>
- <widget class="QPushButton" name="disconnectButton">
- <property name="geometry">
- <rect>
- <x>260</x>
- <y>190</y>
- <width>93</width>
- <height>31</height>
- </rect>
- </property>
- <property name="text">
- <string>断开连接</string>
- </property>
- </widget>
- <widget class="QPushButton" name="connectButton">
- <property name="geometry">
- <rect>
- <x>110</x>
- <y>190</y>
- <width>93</width>
- <height>31</height>
- </rect>
- </property>
- <property name="text">
- <string>连接</string>
- </property>
- </widget>
- <widget class="QComboBox" name="serialPortCombox">
- <property name="geometry">
- <rect>
- <x>120</x>
- <y>30</y>
- <width>231</width>
- <height>31</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>10</pointsize>
- </font>
- </property>
- </widget>
- <widget class="QLabel" name="label_2">
- <property name="geometry">
- <rect>
- <x>30</x>
- <y>30</y>
- <width>85</width>
- <height>31</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="text">
- <string>通信接口:</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_6">
- <property name="geometry">
- <rect>
- <x>210</x>
- <y>70</y>
- <width>68</width>
- <height>23</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="text">
- <string>数据位:</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_3">
- <property name="geometry">
- <rect>
- <x>30</x>
- <y>80</y>
- <width>85</width>
- <height>23</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="text">
- <string>奇偶校验:</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_7">
- <property name="geometry">
- <rect>
- <x>210</x>
- <y>110</y>
- <width>68</width>
- <height>23</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="text">
- <string>停止位:</string>
- </property>
- </widget>
- <widget class="QLineEdit" name="timeoutEdit">
- <property name="geometry">
- <rect>
- <x>120</x>
- <y>150</y>
- <width>71</width>
- <height>21</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>黑体</family>
- <pointsize>9</pointsize>
- </font>
- </property>
- <property name="maxLength">
- <number>5000</number>
- </property>
- </widget>
- <widget class="QLineEdit" name="reissueEdit">
- <property name="geometry">
- <rect>
- <x>280</x>
- <y>150</y>
- <width>71</width>
- <height>21</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>黑体</family>
- <pointsize>9</pointsize>
- </font>
- </property>
- <property name="maxLength">
- <number>10</number>
- </property>
- </widget>
- <widget class="QLabel" name="label_9">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>150</y>
- <width>121</width>
- <height>23</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="text">
- <string>超时时间(ms):</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_11">
- <property name="geometry">
- <rect>
- <x>190</x>
- <y>150</y>
- <width>101</width>
- <height>23</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="text">
- <string>重发次数:</string>
- </property>
- </widget>
- </widget>
- <widget class="QGroupBox" name="groupBox_2">
- <property name="geometry">
- <rect>
- <x>400</x>
- <y>0</y>
- <width>401</width>
- <height>301</height>
- </rect>
- </property>
- <property name="title">
- <string/>
- </property>
- <widget class="QListWidget" name="historyListWidget">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>40</y>
- <width>391</width>
- <height>261</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <pointsize>10</pointsize>
- </font>
- </property>
- </widget>
- <widget class="QLabel" name="recv_label">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>81</width>
- <height>31</height>
- </rect>
- </property>
- <property name="font">
- <font>
- <family>楷体</family>
- <pointsize>12</pointsize>
- </font>
- </property>
- <property name="text">
- <string>通信历史</string>
- </property>
- </widget>
- <widget class="QPushButton" name="exportHistoryButton">
- <property name="geometry">
- <rect>
- <x>300</x>
- <y>10</y>
- <width>93</width>
- <height>31</height>
- </rect>
- </property>
- <property name="text">
- <string>导出历史</string>
- </property>
- </widget>
- </widget>
- <zorder>groupBox</zorder>
- <zorder>groupBox_3</zorder>
- <zorder>groupBox_4</zorder>
- <zorder>groupBox_2</zorder>
- </widget>
- <widget class="QMenuBar" name="menubar">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>815</width>
- <height>26</height>
- </rect>
- </property>
- <widget class="QMenu" name="menu">
- <property name="title">
- <string>主站界面</string>
- </property>
- </widget>
- <addaction name="menu"/>
- </widget>
- <widget class="QStatusBar" name="statusbar"/>
- </widget>
- <resources/>
- <connections/>
- </ui>
|