|
- <?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>787</width>
- <height>543</height>
- </rect>
- </property>
- <property name="windowTitle">
- <string>Widget</string>
- </property>
- <widget class="QLineEdit" name="lineEdit">
- <property name="geometry">
- <rect>
- <x>340</x>
- <y>430</y>
- <width>301</width>
- <height>31</height>
- </rect>
- </property>
- </widget>
- <widget class="QPushButton" name="pushWrite">
- <property name="geometry">
- <rect>
- <x>340</x>
- <y>470</y>
- <width>93</width>
- <height>28</height>
- </rect>
- </property>
- <property name="text">
- <string>写</string>
- </property>
- </widget>
- <widget class="QTextEdit" name="textEdit">
- <property name="geometry">
- <rect>
- <x>40</x>
- <y>280</y>
- <width>251</width>
- <height>191</height>
- </rect>
- </property>
- <property name="readOnly">
- <bool>true</bool>
- </property>
- </widget>
- <widget class="QPushButton" name="btn_read">
- <property name="geometry">
- <rect>
- <x>200</x>
- <y>470</y>
- <width>93</width>
- <height>28</height>
- </rect>
- </property>
- <property name="text">
- <string>读</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_13">
- <property name="geometry">
- <rect>
- <x>340</x>
- <y>330</y>
- <width>311</width>
- <height>101</height>
- </rect>
- </property>
- <property name="text">
- <string>写线圈时,使用1、0代表线圈的开关状态,
- 从左到右依次输入每个线圈的开关;
- 写寄存器时要写入所有寄存器的16进制数值,
- 相邻寄存器的值之间用英文","分离。</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_4">
- <property name="geometry">
- <rect>
- <x>40</x>
- <y>10</y>
- <width>72</width>
- <height>15</height>
- </rect>
- </property>
- <property name="text">
- <string>串口配置</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_5">
- <property name="geometry">
- <rect>
- <x>40</x>
- <y>100</y>
- <width>72</width>
- <height>15</height>
- </rect>
- </property>
- <property name="text">
- <string>从站配置</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_6">
- <property name="geometry">
- <rect>
- <x>40</x>
- <y>150</y>
- <width>72</width>
- <height>15</height>
- </rect>
- </property>
- <property name="text">
- <string>状态通知</string>
- </property>
- </widget>
- <widget class="QWidget" name="">
- <property name="geometry">
- <rect>
- <x>42</x>
- <y>32</y>
- <width>406</width>
- <height>58</height>
- </rect>
- </property>
- <layout class="QGridLayout" name="gridLayout_2">
- <item row="0" column="0">
- <widget class="QLabel" name="label">
- <property name="text">
- <string>串口</string>
- </property>
- </widget>
- </item>
- <item row="0" column="1" colspan="2">
- <widget class="QComboBox" name="comboBox_serialNum"/>
- </item>
- <item row="0" column="3" colspan="2">
- <widget class="QLabel" name="label_2">
- <property name="text">
- <string>波特率</string>
- </property>
- </widget>
- </item>
- <item row="0" column="5" colspan="2">
- <widget class="QComboBox" name="comboBox_baudRate">
- <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="0" column="7">
- <widget class="QLabel" name="label_3">
- <property name="text">
- <string>数据位</string>
- </property>
- </widget>
- </item>
- <item row="0" column="8">
- <widget class="QComboBox" name="comboBox_dataBit">
- <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>
- <item>
- <property name="text">
- <string>NONE</string>
- </property>
- </item>
- </widget>
- </item>
- <item row="1" column="0" colspan="2">
- <widget class="QLabel" name="label_7">
- <property name="text">
- <string>校验位</string>
- </property>
- </widget>
- </item>
- <item row="1" column="2" colspan="2">
- <widget class="QComboBox" name="comboBox_xiaoyan">
- <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="1" column="4" colspan="2">
- <widget class="QLabel" name="label_8">
- <property name="text">
- <string>停止位</string>
- </property>
- </widget>
- </item>
- <item row="1" column="6">
- <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="1" column="7" colspan="2">
- <widget class="QPushButton" name="btnConnect">
- <property name="text">
- <string>连接</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="">
- <property name="geometry">
- <rect>
- <x>41</x>
- <y>116</y>
- <width>687</width>
- <height>23</height>
- </rect>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
- <widget class="QLabel" name="label_9">
- <property name="text">
- <string>站地址</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QComboBox" name="comboBox_stationAddress">
- <item>
- <property name="text">
- <string>1</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>2</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>3</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>4</string>
- </property>
- </item>
- <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>
- <item>
- <property name="text">
- <string>9</string>
- </property>
- </item>
- </widget>
- </item>
- <item>
- <widget class="QLabel" name="label_10">
- <property name="text">
- <string>操作</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QComboBox" name="comboBox_gongnengma">
- <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>
- <widget class="QLabel" name="label_11">
- <property name="text">
- <string>起始地址</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="lineEdit_stratAddress">
- <property name="text">
- <string>256</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLabel" name="label_12">
- <property name="text">
- <string>长度</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="lineEdit_length">
- <property name="text">
- <string>1</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="">
- <property name="geometry">
- <rect>
- <x>41</x>
- <y>164</y>
- <width>691</width>
- <height>91</height>
- </rect>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout_2">
- <item>
- <widget class="QTextEdit" name="textEdit_2"/>
- </item>
- <item>
- <layout class="QVBoxLayout" name="verticalLayout">
- <item>
- <widget class="QPushButton" name="pushButton_3">
- <property name="text">
- <string>清空收发信息</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton">
- <property name="text">
- <string>保存收发信息</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_2">
- <property name="text">
- <string>读取历史收发信息</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- </layout>
- </widget>
- </widget>
- <layoutdefault spacing="6" margin="11"/>
- <resources/>
- <connections/>
- </ui>
|