📄 condcom.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>Connecting Using DCOM</title>
</head>
<body bgcolor="#FFFFFF">
<p><strong>Connection using DCOM</strong></p>
<p>Using DCOM can be difficult at first time, try to read some
articles (see some suggestions below) about DCOM at microsoft,
and install<strong> </strong><a
href="http://www.microsoft.com/com/dcom95/dcom95.htm">DCOM95</a>
(if you are using win95) <a
href="http://www.microsoft.com/com/resource/netclip.htm"><b>NetClip</b></a><b>
</b>(Simple Clipboard DCOM application) and <a
href="http://www.microsoft.com/com/resource/oleview.htm"><font
size="3"><b>OLE-COM Object Viewer</b></font></a><font size="3"><b>.</b></font></p>
<p>Here are some Articles about DCOM, use the search engine at
microsoft site.</p>
<p><font size="3">FAQ: DCOM95 Frequently Asked Questions </font><font
size="2" face="verdana,arial,helvetica">Article ID:Q174024</font></p>
<p><font size="3">HOWTO: Use Win95 as a DCOM Server</font><font
size="2" face="verdana,arial,helvetica"> Article ID: Q165101 </font></p>
<p><font size="3">COM Security Frequently Asked Questions </font><font
size="2" face="verdana,arial,helvetica">Article ID:Q158508</font></p>
<p>HOWTO: Control Server Location in a Visual Basic Client <font
size="2" face="verdana,arial,helvetica">Article ID: Q180217 </font></p>
<p><strong>Related Links:</strong></p>
<p><a href="http://www.microsoft.com/com"><b>http://www.microsoft.com/com</b></a><b>
</b></p>
<p><a href="http://www.microsoft.com/com/dcom95/dcom95.htm">www.microsoft.com/com/dcom95/dcom95.htm</a></p>
<p><a href="http://www.microsoft.com/com/resource/oleview.htm"><b>The
OLE-COM Object Viewer</b></a></p>
<p><a href="http://www.microsoft.com/com/resource/netclip.htm"><b>NetClip</b></a></p>
<p><a
href="http://www.microsoft.com/com/comResource.htm#Downloads"><b>Com
Downloads</b></a></p>
<p>This Modbus server and client application were tested only
with win95 using 2 machines (one connected with a modbus slave
using serial port and reading registers from the other machine)
with TCP/IP protocol installed. The steps used during
installation are the following:</p>
<p align="center"><img src="images/dcomnet.gif" width="536"
height="86"></p>
<ol>
<li>Certify you have TCP/IP protocol installed and working
correctly. Use PING utility from the client to verify if
TCP/IP network is OK.<br>
</li>
<li>Folow the steps explained during <a href="svrinst.htm">Modbus
Server Instalation</a>. Install the server on both
machines the client and server PCs.<br>
</li>
<li>Test the connection with the slave , see <a
href="UsingMod.htm">Using the Modbus Configuration
Utility</a> . <br>
</li>
<li>Enable DCOM on both machines changing some parameters
from the registry using REGEDIT.<br>
<br>
In the registry, the following named value must be set to
"Y" on both machines: <br>
<br>
HKEY_LOCAL_MACHINE\Software\Microsoft\OleEnableDCOM<br>
<br>
The following named value must be set to "Y" on
the server Machine:<br>
<br>
HKEY_LOCAL_MACHINE\Software\Microsoft\OleEnableRemoteConnect<br>
<br>
If you are changing these values, keep in mind that you
need to reboot the machine for thischange to take effect.<br>
<br>
The following named value (REG_DWORD) must be set to 1
(None) on both machines: <br>
<br>
HKEY_LOCAL_MACHINE\Software\Microsoft\OleLegacyAuthenticationLevel<br>
<br>
If this named value does not exist, you can create it. <br>
<br>
If you are creating/changing this value, keep in mind
that you need to reboot the machine forthis change to
take effect. <br>
</li>
<li>Reboot both machines.<br>
</li>
<li>Run Modbus Configuration (Modbucfg.exe) on the server
machine an create a connection using the serial port
which the slave is connected. <strong>The Server must be
runnig before any client from other computers can
connect.</strong><br>
</li>
<li><p align="left">Run Modbus Configuration (Modbucfg.exe)
on the client machine an create a connection using the
serial port which the slave is connected, but now type
the IP Address of the machine where the server is running
in DCOM|Server text box.. This means that the program
will create an instace of the server on the other
machine. Note that you can change the serial port
parameters ( baudrate , parity... ) from the client
machine.</p>
</li>
<li>Try to read some registers of the slave from the client
machine.</li>
</ol>
<p><img src="images/dcom.gif" width="410" height="334"></p>
<p>Fig 1. Creating an instance of Modbus Server on another
machine</p>
<p> </p>
<p>Back to <a href="client.htm">Modbus Automation Client</a> , <a
href="index.htm">Home</a></p>
<p> </p>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -