<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>Widget</class> <widget class="QWidget" name="Widget"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>700</width> <height>503</height> </rect> </property> <property name="windowTitle"> <string>Widget</string> </property> <widget class="QGroupBox" name="groupBox"> <property name="geometry"> <rect> <x>30</x> <y>260</y> <width>181</width> <height>231</height> </rect> </property> <property name="title"> <string>从站配置</string> </property> <widget class="QPushButton" name="btn_read"> <property name="geometry"> <rect> <x>10</x> <y>170</y> <width>71</width> <height>51</height> </rect> </property> <property name="text"> <string>读</string> </property> </widget> <widget class="QPushButton" name="btn_write"> <property name="geometry"> <rect> <x>90</x> <y>170</y> <width>71</width> <height>51</height> </rect> </property> <property name="text"> <string>写</string> </property> </widget> <widget class="QWidget" name="layoutWidget"> <property name="geometry"> <rect> <x>10</x> <y>20</y> <width>159</width> <height>151</height> </rect> </property> <layout class="QGridLayout" name="gridLayout_2"> <item row="0" column="0"> <widget class="QLabel" name="label_9"> <property name="text"> <string>站地址</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QLineEdit" name="line_station_address"> <property name="text"> <string>1</string> </property> </widget> </item> <item row="1" column="0"> <widget class="QLabel" name="label_10"> <property name="text"> <string>操作</string> </property> </widget> </item> <item row="1" column="1"> <widget class="QComboBox" name="combo_function_code"> <item> <property name="text"> <string>读线圈</string> </property> </item> <item> <property name="text"> <string>读寄存器</string> </property> </item> <item> <property name="text"> <string>写线圈</string> </property> </item> <item> <property name="text"> <string>写寄存器</string> </property> </item> </widget> </item> <item row="2" column="0"> <widget class="QLabel" name="label_11"> <property name="text"> <string>起始地址</string> </property> </widget> </item> <item row="2" column="1"> <widget class="QLineEdit" name="line_strat_address"> <property name="text"> <string>256</string> </property> </widget> </item> <item row="3" column="0"> <widget class="QLabel" name="label_12"> <property name="text"> <string>长度</string> </property> </widget> </item> <item row="3" column="1"> <widget class="QLineEdit" name="line_length"> <property name="text"> <string>1</string> </property> </widget> </item> </layout> </widget> </widget> <widget class="QGroupBox" name="groupBox_2"> <property name="geometry"> <rect> <x>30</x> <y>19</y> <width>181</width> <height>231</height> </rect> </property> <property name="title"> <string>串口配置</string> </property> <widget class="QWidget" name="layoutWidget"> <property name="geometry"> <rect> <x>10</x> <y>20</y> <width>161</width> <height>205</height> </rect> </property> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> <widget class="QLabel" name="label"> <property name="text"> <string>串口</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QComboBox" name="combo_serial_num"/> </item> <item row="1" column="0"> <widget class="QLabel" name="label_2"> <property name="text"> <string>波特率</string> </property> </widget> </item> <item row="1" column="1"> <widget class="QComboBox" name="combo_baud_rate"> <item> <property name="text"> <string>1200</string> </property> </item> <item> <property name="text"> <string>2400</string> </property> </item> <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> </widget> </item> <item row="2" column="0"> <widget class="QLabel" name="label_3"> <property name="text"> <string>数据位</string> </property> </widget> </item> <item row="2" column="1"> <widget class="QComboBox" name="combo_data_bit"> <item> <property name="text"> <string>5</string> </property> </item> <item> <property name="text"> <string>6</string> </property> </item> <item> <property name="text"> <string>7</string> </property> </item> <item> <property name="text"> <string>8</string> </property> </item> </widget> </item> <item row="3" column="0"> <widget class="QLabel" name="label_7"> <property name="text"> <string>校验位</string> </property> </widget> </item> <item row="3" column="1"> <widget class="QComboBox" name="combo_check"> <item> <property name="text"> <string>无校验(N)</string> </property> </item> <item> <property name="text"> <string>奇校验(O)</string> </property> </item> <item> <property name="text"> <string>偶校验(E)</string> </property> </item> </widget> </item> <item row="4" column="0"> <widget class="QLabel" name="label_8"> <property name="text"> <string>停止位</string> </property> </widget> </item> <item row="4" column="1"> <widget class="QComboBox" name="comboBox_stopBit"> <item> <property name="text"> <string>1</string> </property> </item> <item> <property name="text"> <string>2</string> </property> </item> </widget> </item> <item row="5" column="0" colspan="2"> <widget class="QPushButton" name="btn_connect"> <property name="text"> <string>连接</string> </property> </widget> </item> <item row="6" column="0" colspan="2"> <widget class="QPushButton" name="btn_refresh"> <property name="text"> <string>检测可用串口</string> </property> </widget> </item> </layout> </widget> </widget> <widget class="QGroupBox" name="groupBox_3"> <property name="geometry"> <rect> <x>240</x> <y>30</y> <width>211</width> <height>261</height> </rect> </property> <property name="title"> <string>数据读取</string> </property> <widget class="QTextEdit" name="text_data"> <property name="geometry"> <rect> <x>10</x> <y>20</y> <width>191</width> <height>241</height> </rect> </property> <property name="readOnly"> <bool>true</bool> </property> </widget> </widget> <widget class="QGroupBox" name="groupBox_4"> <property name="geometry"> <rect> <x>470</x> <y>30</y> <width>221</width> <height>261</height> </rect> </property> <property name="title"> <string>状态通知</string> </property> <widget class="QTextEdit" name="text_information"> <property name="geometry"> <rect> <x>10</x> <y>20</y> <width>201</width> <height>241</height> </rect> </property> <property name="readOnly"> <bool>true</bool> </property> </widget> </widget> <widget class="QGroupBox" name="groupBox_5"> <property name="geometry"> <rect> <x>240</x> <y>340</y> <width>341</width> <height>151</height> </rect> </property> <property name="title"> <string>写入数据</string> </property> <widget class="QLabel" name="label_13"> <property name="geometry"> <rect> <x>10</x> <y>20</y> <width>311</width> <height>91</height> </rect> </property> <property name="text"> <string>写线圈时,使用1、0代表线圈的开关状态, 从左到右依次输入每个线圈的开关; 写寄存器时要同时写入所有寄存器的数值, 相邻寄存器的值之间用英文","分离。</string> </property> </widget> <widget class="QLineEdit" name="line_input"> <property name="geometry"> <rect> <x>10</x> <y>110</y> <width>301</width> <height>31</height> </rect> </property> </widget> </widget> <widget class="QWidget" name="layoutWidget"> <property name="geometry"> <rect> <x>240</x> <y>300</y> <width>451</width> <height>30</height> </rect> </property> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QPushButton" name="btn_clear_read"> <property name="text"> <string>清空读取信息</string> </property> </widget> </item> <item> <widget class="QPushButton" name="btn_clear_date"> <property name="text"> <string>清空收发信息</string> </property> </widget> </item> <item> <widget class="QPushButton" name="btn_read_date"> <property name="text"> <string>读取历史收发信息</string> </property> </widget> </item> <item> <widget class="QPushButton" name="btn_save_date"> <property name="text"> <string>保存收发信息</string> </property> </widget> </item> </layout> </widget> <widget class="QPushButton" name="btn_batch_input"> <property name="geometry"> <rect> <x>590</x> <y>400</y> <width>93</width> <height>28</height> </rect> </property> <property name="text"> <string>批量输入</string> </property> </widget> <widget class="QLineEdit" name="line_data_num"> <property name="geometry"> <rect> <x>590</x> <y>440</y> <width>71</width> <height>21</height> </rect> </property> </widget> <widget class="QLineEdit" name="line_data"> <property name="geometry"> <rect> <x>590</x> <y>470</y> <width>71</width> <height>21</height> </rect> </property> </widget> <widget class="QLabel" name="label_4"> <property name="geometry"> <rect> <x>670</x> <y>440</y> <width>21</width> <height>16</height> </rect> </property> <property name="text"> <string>个</string> </property> </widget> <widget class="QLabel" name="label_5"> <property name="geometry"> <rect> <x>590</x> <y>350</y> <width>51</width> <height>41</height> </rect> </property> <property name="text"> <string>数据数:</string> </property> </widget> <widget class="QLineEdit" name="line_number"> <property name="geometry"> <rect> <x>640</x> <y>350</y> <width>51</width> <height>31</height> </rect> </property> <property name="readOnly"> <bool>true</bool> </property> </widget> <widget class="QWidget" name=""> <property name="geometry"> <rect> <x>251</x> <y>1</y> <width>241</width> <height>30</height> </rect> </property> <layout class="QHBoxLayout" name="horizontalLayout_2"> <item> <widget class="QLabel" name="label_staion"> <property name="text"> <string>未连接到从站</string> </property> </widget> </item> <item> <widget class="QPushButton" name="btn_checkmsg"> <property name="text"> <string>重新生成检测报文</string> </property> </widget> </item> </layout> </widget> </widget> <layoutdefault spacing="6" margin="11"/> <resources/> <connections/> </ui>