⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usingmod.htm

📁 串口调试工具 用于串口调 试的很方便
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 2.0">
<title>Using the Modbus Configuration Utility</title>
</head>

<body bgcolor="#FFFFFF">

<p align="center"><font size="4"><strong>Using Modbus
Configuration Utility</strong></font></p>

<p align="center">&nbsp;</p>

<p align="center"><img src="images/cfgdoc.gif" width="571"
height="331"></p>

<p align="center">Fig. 1 - Modbus Configuration Screen.</p>

<p align="left">&nbsp;</p>

<p align="left">After creating a connection, the communication
with the slave can be initiated. Click on the menu File |New ,now
you will see a window like fig 1.</p>

<p align="left">There are some divisions explained below.</p>

<p align="left"><strong>Device - </strong>Here the slave address
and a previus configured connection is selected.</p>

<p align="left"><strong>Read Function</strong> - Choose the type
of function that will be executed , Read Output Registers (
holding registers (4<i>x</i> references)) , Read Input Registers
(3<i>x</i> references), Reads Ouput Status (0<i>x</i> references,
coils) and Read Input Status (1<i>x</i> references). The text box
Address is the start register/coil that will be read and the last
field is the quantity of register/coils read.</p>

<p align="left"><font size="3">One important comment about these
functions is that <strong>all functions use a zero based index
for address. </strong>For instance, the figure 1 shows how to
read 10 holding registers beginning at address </font>40001 , the
first address is 0(zero).</p>

<p align="left"><strong>Write Function - </strong>It's possible
to set the value of a register (Preset Single Register ) or a
coil ( Force a single coil) , the value can be an integer number
or floating point if is selected Data Type as float or double.
The address follows the same rules explained above. When writing
a coil any value different than 0 is cosidered &quot;true&quot;
or &quot;on&quot; and 0 is &quot;false&quot;or &quot;off&quot;.</p>

<p align="left"><strong>Poll Thread</strong> - The Read function
will be executed at periodic intervals specified in the textbox
interval(ms). Unchek the option <strong>Enable poll</strong> to
stop the program to poll the device.</p>

<p align="left"><strong>Data Type - </strong>The values read from
the slave can be interpreted in different ways. Remeber that a
register is 16 - bit number.</p>

<p align="left">16 bit signed number - <strong>signed 16</strong></p>

<p align="left">16 bit unsigned number - <strong>unsigned 16</strong></p>

<p align="left">32 bit float point number - <strong>float 32</strong>
; two register can form one floating point number , the order of
register that form a floating numbe can be changed if float - 32
reverse is chosen.</p>

<p align="left">64 bit floating point number (double) - <strong>double
64</strong>. Now we need 4 registers to form a number. </p>

<p align="left">This data type is valid for seting a register
too. For instance , if you choose data type as float 32 , the
value you enter inside a text box is interpreted as floating
point number. </p>

<p align="left"><strong>List Values</strong> - On the right of
the window, the data read from slave is displayed. The numbers
showed follow the the Data Type chosen. If not all data is
visible , click inside the list and use arrow keys to move up and
down. </p>

<p align="left"><strong>Statistic</strong> - Above the list of
values is showed number of times the device was polled and number
of errors occurred. It's displayed also the maximum speed that a
device can be polled.</p>

<p align="left"><strong>Last Error</strong> - Below the list of
values is displayed the last communication error.</p>

<p align="left"><a href="client.htm">Modbus Automation Client</a>
, <a href="index.htm">Home</a></p>

<p align="left">&nbsp;</p>

<p align="left">&nbsp;</p>

<p align="left">&nbsp;</p>

<p align="left">&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -