|
|
|
<?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>800</width>
|
|
|
|
<height>600</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="windowTitle">
|
|
|
|
<string>MainWindow</string>
|
|
|
|
</property>
|
|
|
|
<widget class="QWidget" name="centralwidget">
|
|
|
|
<widget class="QPushButton" name="connect">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>40</x>
|
|
|
|
<y>10</y>
|
|
|
|
<width>89</width>
|
|
|
|
<height>25</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Connect</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
<widget class="QLabel" name="label_5">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>40</x>
|
|
|
|
<y>142</y>
|
|
|
|
<width>126</width>
|
|
|
|
<height>25</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Number of values:</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
<widget class="QLabel" name="label_4">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>40</x>
|
|
|
|
<y>110</y>
|
|
|
|
<width>126</width>
|
|
|
|
<height>26</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Start address:</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
<widget class="QLineEdit" name="startAddress">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>170</x>
|
|
|
|
<y>110</y>
|
|
|
|
<width>113</width>
|
|
|
|
<height>25</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
<widget class="QLineEdit" name="readSize">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>170</x>
|
|
|
|
<y>140</y>
|
|
|
|
<width>113</width>
|
|
|
|
<height>25</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
<widget class="QLabel" name="label_6">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>160</x>
|
|
|
|
<y>10</y>
|
|
|
|
<width>41</width>
|
|
|
|
<height>25</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Table:</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
<widget class="QComboBox" name="writeTable">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>207</x>
|
|
|
|
<y>10</y>
|
|
|
|
<width>86</width>
|
|
|
|
<height>25</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
<widget class="QLabel" name="label_9">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>40</x>
|
|
|
|
<y>167</y>
|
|
|
|
<width>126</width>
|
|
|
|
<height>17</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Result:</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
<widget class="QGroupBox" name="groupBox">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>10</x>
|
|
|
|
<y>70</y>
|
|
|
|
<width>311</width>
|
|
|
|
<height>381</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="title">
|
|
|
|
<string>Read Data From Device</string>
|
|
|
|
</property>
|
|
|
|
<widget class="QTextEdit" name="textEditRead">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>20</x>
|
|
|
|
<y>120</y>
|
|
|
|
<width>257</width>
|
|
|
|
<height>221</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
<widget class="QPushButton" name="readButton">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>100</x>
|
|
|
|
<y>350</y>
|
|
|
|
<width>80</width>
|
|
|
|
<height>25</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Read</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</widget>
|
|
|
|
<widget class="QGroupBox" name="groupBox_2">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>340</x>
|
|
|
|
<y>70</y>
|
|
|
|
<width>191</width>
|
|
|
|
<height>111</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="title">
|
|
|
|
<string>Write Single Coil</string>
|
|
|
|
</property>
|
|
|
|
<widget class="QCheckBox" name="coilData">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>10</x>
|
|
|
|
<y>20</y>
|
|
|
|
<width>61</width>
|
|
|
|
<height>23</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Coil</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
<widget class="QLineEdit" name="writeSingleCoilAddress">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>70</x>
|
|
|
|
<y>40</y>
|
|
|
|
<width>113</width>
|
|
|
|
<height>25</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
<widget class="QLabel" name="label_7">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>10</x>
|
|
|
|
<y>40</y>
|
|
|
|
<width>71</width>
|
|
|
|
<height>26</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>address:</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
<widget class="QPushButton" name="writeSingleCoil">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>20</x>
|
|
|
|
<y>70</y>
|
|
|
|
<width>141</width>
|
|
|
|
<height>25</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Write Single Coil</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</widget>
|
|
|
|
<zorder>groupBox</zorder>
|
|
|
|
<zorder>connect</zorder>
|
|
|
|
<zorder>label_5</zorder>
|
|
|
|
<zorder>label_4</zorder>
|
|
|
|
<zorder>startAddress</zorder>
|
|
|
|
<zorder>readSize</zorder>
|
|
|
|
<zorder>label_6</zorder>
|
|
|
|
<zorder>writeTable</zorder>
|
|
|
|
<zorder>label_9</zorder>
|
|
|
|
<zorder>groupBox_2</zorder>
|
|
|
|
</widget>
|
|
|
|
<widget class="QMenuBar" name="menubar">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
|
|
|
<width>800</width>
|
|
|
|
<height>22</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
<widget class="QStatusBar" name="statusbar"/>
|
|
|
|
</widget>
|
|
|
|
<resources/>
|
|
|
|
<connections/>
|
|
|
|
</ui>
|