Wonderware® FactorySuite™ NetDDE™ For The Microsoft Windows Operating System (User's Guide)
Wonderware® FactorySuite™ NetDDE™ For The Microsoft Windows Operating System (User's Guide)
User’s Guide
Revision B
July, 1999
Wonderware Corporation
All rights reserved. No part of this documentation shall be reproduced, stored in a
retrieval system, or transmitted by any means, electronic, mechanical,
photocopying, recording, or otherwise, without the prior written permission of the
Wonderware Corporation. No copyright or patent liability is assumed with respect
to the use of the information contained herein. Although every precaution has been
taken in the preparation of this documentation, the publisher and author assume no
responsibility for errors or omissions. Neither is any liability assumed for damages
resulting from the use of the information contained herein.
The information in this documentation is subject to change without notice and does
not represent a commitment on the part of Wonderware Corporation. The software
described in this documentation is furnished under a license or nondisclosure
agreement. This software may be used or copied only in accordance with the terms
of these agreements.
Contents
.............................................................................. 8-1
Introduction...........................................................................................................8-2
Testing an Open Connection.................................................................................8-3
Table of Contents iii
Index..................................................................... I-1
1-1
C H A P T E R 1
Introduction
This chapter introduces you to NetDDE and explains how NetDDE is used in the
Windows, Windows for Workgroups (WFW), Windows 95 (Win95) and Windows
98 (Win98) environments. The connectivity information for other platforms is also
included in this chapter.
Contents
! About NetDDE
! NetDDE in the Windows 3.1 Environment
! NetDDE in the WFW and Win95/98 Environments
! NetDDE Connectivity with Windows NT
! NetDDE Connectivity with VMS
! NetDDE Connectivity with UNIX
! NetDDE Connectivity with Macintosh
1-2 Chapter 1
About NetDDE
If you are a new NetDDE for Windows user, we recommend that you read this
entire chapter to familiarize yourself with NetDDE for Windows and its role in
providing DDE connectivity between various operating environments.
What is DDE?
DDE is the acronym for Dynamic Data Exchange. DDE is a communication
protocol designed by Microsoft to allow applications in the Windows environment
to send/receive data and instructions to/from each other. It implements a client-
server relationship between two concurrently running applications. The server
application provides the data and accepts requests from any other application
interested in its data. Requesting applications are called clients.
DDE is often used to gather and distribute "live" data such as production
measurements from a factory floor, scientific instrument readings, or stock price
quotations. Client applications can use DDE for one-time data transfers or for
ongoing data exchanges in which updates are sent as soon as new information is
available. DDE can be used to dispatch control instructions to process-connected
instruments. For example, in a factory automation system, DDE client applications
may send control temperature set points to ovens.
DDE compliance is a standard feature for Windows applications needing data links
to other applications. For example, DDE-compliant applications include,
Microsoft Excel, Lotus 1-2-3 for Windows, InTouch, and others.
Network extensions are available to allow DDE links between applications running
on different computers connected via networks or modems. For example, NetDDE
supports DDE between applications running on IBM PCs connected via LAN or
modem and DDE-aware applications running on non-PC based platforms under
operating environments such as VMS and UNIX.
To obtain data from another application, the client program opens a channel to the
server application by specifying two things: the server’s application name and the
topic name of interest. Once a channel is open, items in the topic can be read or
written. For example, in the case of Excel, the application name is "Excel." The
topic name is the name of the spreadsheet that contains the data. The item name is
the specific cell on the spreadsheet containing the data. With InTouch, the
application name is "View." When reading or writing a tagname in the InTouch
database, the topic name is always the word "Tagname." The item name is the
actual tagname defined in the InTouch database.
Introduction 1-3
When a client application sets up a link to another DDE program, it asks the server
application to advise the client whenever a specific item’s value changes. These
data links remain active until either the client or server terminates the link or the
conversation. This is an efficient means of exchanging data because once the link
has been established no communication occurs until the specified item changes.
InTouch uses DDE to communicate with I/O device drivers and other DDE
application programs.
What is NetDDE?
NetDDE for Windows extends the standard Windows DDE (Dynamic Data
Exchange) functionality to include communication over local area networks and
through serial ports. To use NetDDE, two or more IBM compatible PCs running
Windows (3.1 or later), Windows for Workgroups (3.1 or later), or Windows 95/98
are required. NetDDE must be installed on all network nodes between which DDE
data is to be exchanged. The services provided by NetDDE are independent of
other available network services such as file sharing, E-mail, terminal emulation,
database query, etc. NetDDE does not require a file server to function, but it can
be installed to and loaded from a file server if desired.
The diagram below illustrates a feasible network configuration utilizing the family
of NetDDE products to provide DDE connectivity between applications running on
different platforms and operating systems:
Modem
DECnet
Modem
TCP/IP NetBIOS
1-4 Chapter 1
Note When connecting NetDDE for Windows, using the WinSock interface, to
NetDDE for NT, the Validation Method must be set to Checksum.
Note When connecting NetDDE for Windows, using the WinSock interface, to
NetDDE for VMS, the Validation Method must be set to Checksum.
Note When connecting NetDDE for Windows, using the WinSock interface, to
NetDDE for UNIX, the Validation Method must be set to Checksum.
C H A P T E R 2
Installation Considerations
This chapter describes any additional installation requirements and considerations
for specific network interfaces.
Contents
! Installing NetDDE for Windows
! General Installation Requirements
! Installation Requirements for NetBIOS
! Installation Requirements for Serial
! Custom Hardware Settings
! Installation Requirements for WinSock
2-2 Chapter 2
Note Windows must be restarted once the SYSTEM.INI has been edited in order
for the changes to take effect.
Note The PC node must be rebooted once the CONFIG.SYS file has been edited
in order for the changes to take effect.
2-4 Chapter 2
[NETBIOS]
LanaNums=nnn,n1,n2,n3...
The "NumNetBIOS=nnn" parameter instructs the NetBIOS network interface to
use, at most, the first ’nnn’ LAN adapters found. If not limited by this parameter, it
will attempt to use all configured LAN adapters found at the node.
The "LanaNums=nnn,n1,n2,n3" parameter instructs the NetBIOS network interface
to use ’nnn’ LAN adapters at the node and specifies that the ’nnn’ LAN adapters are
addressable by LAN numbers ’n1’, ’n2’, and ’n3’. This parameter is used primarily
to bypass NetDDE’s automatic LAN adapter configuration query. Therefore, you
must know beforehand how the NetBIOS LAN adapters are configured.
Installation Considerations 2-5
Note When enabling COM ports greater than COM2, it may be necessary to
provide the specific I/O base address and interrupt level assignment for that port.
2-8 Chapter 2
To use an I/O server that requires the WWCOMTSR on COM1 and Serial
NetDDE on COM2 (with default settings):
C:\INTOUCH.16>WWCOMTSR
C:\INTOUCH.16>SDDETSR COM1:0 COM2:1
or,
C:\INTOUCH.16> WWCOMTSR COM1:1,2048,2048,3F8,4
COM2:1,2048,2048,2F8,3
C:\INTOUCH.16> SDDETSR COM1:0 COM2:1
To use an I/O server that requires the WWCOMTSR on COM2 and Serial
NetDDE on COM1 (with default settings):
C:\INTOUCH.16>WWCOMTSR
C:\INTOUCH.16>SDDETSR COM1:1 COM2:0
or,
C:\INTOUCH.16> WWCOMTSR COM1:1,2048,2048,3F8,4
COM2:1,2048,2048,2F8,3
C:\INTOUCH.16> SDDETSR COM1:1 COM2:0
After loading WWCOMTSR and SDDETSR, complete the setup procedures
required by the serial port based I/O Server.
Installation Considerations 2-9
PC/AT/ISA/EISA
PS/2 MCA
PORT
I/O
IRQ
I/O
IRQ
COM1
3F8
4
3F8
4
COM2
2F8
3
2F8
3
COM3
3E8
4
3220
3
COM4
2E8
3
3228
3
If you are enabling a specific communication port when the default values differ
from the I/O address base and interrupt level assignment (as configured on the I/O
card), change the TSR’s defaults by entering the custom I/O address and interrupt
level assignment on the command line. For example:
C:\INTOUCH.16>WWCOMTSR COM1:0 COM2:0 COM3:1,2048,2048,2E8,5
This example allows the TSR to be configured for one communication port,
COM3, using rx/tx buffer lengths of 2048, an I/O address base of 2E8, and an
interrupt level 5.
When entering custom I/O and interrupt (IRQ) configurations, ensure that the
2-10 Chapter 2
values entered actually correspond to the hardware configuration and that there are
no conflicts with other hardware installed in the system. One way to check for IRQ
conflicts is to use the Microsoft Diagnostic (MSD) utility that is included in
Windows 3.1. MSD is a character-based DOS application that is best run after
exiting Windows. From the DOS prompt, type:
C:\INTOUCH.16>C:\WINDOWS\MSD
From MSD’s main menu of options, select IRQ Status to list the current IRQs and
the devices currently assigned.
Although WWCOMTSR allows interrupt (IRQ) assignments ranging from 2-15,
few serial interface adapters or boards support interrupts greater than 7. On an
IBM PC/AT compatible system, interrupts cannot be shared between devices.
Unique IRQs must be assigned to each of the active communication ports.
Warning! If configuring more than two ports, the default will never be adequate
and specific IRQ assignments must be made to the selected communication ports.
Starting WIN3SETU
A key PATHWORKS support component for Windows is the WIN3SETU
program. This utility installs the DEC-specific support components for Windows
and allows NetDDE to access DECnet.
Note Failure to run the WIN3SETU program before running NetDDE will cause
the computer to stall or require you to reboot!
WIN3SETU can be started either from the DOS command line or within Windows.
Installation Considerations 2-13
Using WIN3SETU
½ To use WIN3SETU:
1. At the prompt, verify the drive letter of the system service on which
PATHWORKS for DOS is located. If it is incorrect, enter the appropriate
drive letter.
2. At the second prompt, verify the directory where Windows is installed. If it is
incorrect, enter the appropriate directory location.
Based on the response to the second prompt, WIN3SETU determines whether you
are a System Administrator, allowed to install all of the support components to the
network service, or an End User.
System Administrator
If you are a System Administrator, enter the location of the network service where
the Windows files were copied (for example, K:\WINDOWS) at the second
prompt. WIN3SETU copies all support components into this directory and then
exits.
2-14 Chapter 2
End User
1. If you are an End User, verify the Windows default directory shown at the
second prompt. If it is incorrect, enter the correct path. For example,
C:\WINDOWS.
2. WIN3SETU will prompt you to answer questions about your particular
hardware configuration. After you have responded, WIN3SETU will display
all of the entered information.
3. Press RETURN to confirm the information and exit the utility. If the
information was entered incorrectly, press the ESCAPE key. The entries will be
canceled and WIN3SETU must be restarted.
Once the information is confirmed, WIN3SETU completes the support component
installation by modifying the SYSTEM.INI file and copying all DEC-specific
support components into the Windows directory.
Starting PWSETUP
Prior to running PWSETUP, ensure that Microsoft Network is configured on your
PC. PWSETUP can be started either from the DOS command line or within
Windows.
Using PWSETUP
½ To use PWSETUP:
1. Initially, PWSETUP will prompt you for verification of the software
destination directory and drive where it can find PATHWORKS for DOS and
Windows. If these are incorrect, enter the appropriate origin and destination
directory and drive.
2. To customize a configuration, click Customize in the Select a Configuration
Option dialog box.
The Customize: Select a Workstation Template dialog box appears.
3. Select a template to represent the basis of your configuration.
It is mandatory that you select a template that includes DECnet. For example,
select the LAN Manager #1 template for Windows 3.1 or select the WFW
v3.11 #1 template for Windows for Workgroups 3.11. The Customize:
Modify Workstation Configuration dialog box appears. The default settings
should be adequate, but for information on modifying these configurations,
click Help.
4. Click OK.
2-16 Chapter 2
5. Once you select a template that approximates your desired configuration, you
can modify it. For example, if you want your PC to run SETHOST Terminal
Emulation, add PATHWORKS Terminal Emulation to the Run on
Workstation box in the Customize: Select PATHWORKS Services for
Workstation dialog box. When it appears in this box, select it and click
Detail. Double-click on SETHOST for DOS.
6. PWSETUP will ask questions about your particular network configuration.
Enter the network connection and network adapter information.
Once you have entered the requested information, the Customize: Save
Template to Disk dialog box appears.
7. In the Customize: Save Template to Disk dialog box, name your
configuration template and enter the description (for example, Template
Name: NetDDE; Description: DECnet, Terminal Emulation), and click Save.
PWSETUP copies the associated files for the PATHWORKS services you
requested, modifies the startup files, and creates a template file
(CFGnnnn.TPL, where nnnn is a number) that characterizes the configuration
you specified.
8. After the configuration utility completes, reboot the PC to start the network.
Note To modify the above configuration, run PWSETUP and select your
template (by the name and description given in Step 7). You can now
add/delete specific PATHWORKS services to/from your configuration.
You can also run the PATHWORKS installation directly from the CD-ROM by
entering:
x:\SETUP.EXE
where x: identifies your CD-ROM drive.
Note The contents of the CD-ROM can also be shared or copied to a network file
service and installed from there. Refer to the Windows 95/98 help for additional
information on sharing and using network resources.
To start PATHWORKS for Windows 95/98, click the Start menu on the taskbar,
point to Programs, and then click PATHWORKS.
Installation Considerations 2-17
Note Make note of the node name assigned to the local node. You will need to
enter it when NetDDE initially runs.
Note All defined nodes a remote machine can automatically be defined on the
local node by using the "copy known nodes from X command." Where "X"
identifies the name of a node from which to retrieve the DECnet node name
definitions.
2-18 Chapter 2
3-1
C H A P T E R 3
Starting NetDDE
This chapter describes how to start NetDDE and what occurs the first time
NetDDE runs after installation.
Contents
! Introduction
! Starting in Windows 3.1 and Windows 95/98
! Defining a Local Node Name
! Selecting Network Interfaces
! Viewing Version Information
! Closing NetDDE
3-2 Chapter 3
Introduction
NetDDE for Windows supports the Windows (3.1 or later), Windows for
Workgroups (WFW) (3.1 or later), and Window 95 operating systems. The
method used to start NetDDE in each of these environments is different. During
NetDDE startup, the Wonderware Logger (WWLOGGER.EXE) is optionally
started to record and display error and diagnostic messages generated by NetDDE.
After NetDDE is installed and configured, a NETDDE.INI file is automatically
created in the Windows default directory. All operating parameters, routes and
connections configured in the NetDDE program are stored in the NETDDE.INI
file. NetDDE reads the NETDDE.INI each time it starts. We highly recommend
that you do not manually edit NETDDE.INI without consulting Technical Support.
Starting NetDDE 3-3
Note During installation, NetDDE for Windows terminates and replaces any
Network DDE or NetDDE programs. You will be prompted as to whether you
want to rename these files during the installation.
3-4 Chapter 3
2. Initially, the box will be blank. Type a unique name to identify the local node.
All nodes on the network must have unique logical node names. Unless the
logical node name entered in this dialog box is re-mapped to a network name
during network interface selection, the name entered must match the name
defined for the node when the network software was installed.
Note If you are connecting to a VAX system through DECnet, the node name
must be all UPPERCASE letters.
3. Click OK.
4. The Network Interface Selection dialog box appears. Go to the next section,
"Selecting Network Interfaces," to complete the configuration.
In the Windows environment, NetDDE obtains the logical node name from the
name that was assigned to the node during Windows configuration. It assumes that
the logical node name is equivalent to the network node name used on the
Windows network. If this is not satisfactory, you can change the derived logical
node name.
For more information on changing the derived logical node name, see
"Customizing NetDDE Setup" in Chapter 4.
Starting NetDDE 3-5
Select the interface to add, enter the network node name to be used on the
selected network interface, and click OK. A message box will appear
confirming that the interface was successfully added. For example:
3. After you have added one network interface, the Modify and Delete buttons in
the Network Interface Selection dialog box become available. You may now
add more network interfaces, modify existing interfaces, or delete interfaces
from the list.
4. Click Done.
5. The NetDDE program window will appear displaying any newly configured
network interfaces:
By default, when NetDDE initially runs, the NetDDE program window displays
information for Network Interfaces, Internode Connections and DDE
Conversations. These default settings can be changed by using commands from
the View menu.
Also, by default, the Terminal font is used for the text in the window. You can
changes this font by using the Fonts command on the View menu.
For more information, see Chapter 7, "NetDDE Status and Statistics Display."
Starting NetDDE 3-7
Closing NetDDE
½ To close NetDDE:
2. Press Alt+F4. Or, from the Control menu, click Close. (To access the
Control menu, click the NetDDE icon in the top left corner of the program
window.)
Note To close NetDDE in Windows 95/98, either click the "X" button in the
upper right corner of the program window, or right-click in the program
window’s title bar and click Exit from the pop-up menu.
C H A P T E R 4
Contents
! Modifying the Local Node Name
! Configuring Network Interfaces
! Configuring Preferences
! Setting Up Network Routes
! Mapping Node Connections
4-2 Chapter 4
2. In the box, type a logical node name for the local node.
The logical node name is limited to a maximum of 15 characters. It cannot
contain any embedded spaces or any of the following special characters: + * \
/ , ? ( ) " ’. If an existing logical node name is changed to a new node name,
NetDDE must be restarted to recognize the change.
3. Click OK.
Customizing NetDDE Setup 4-3
2. To change the node name for a particular interface, select the interface in the
Configured Interfaces window, edit the name in the Node Name on Selected
Interface box, and then click Modify.
By default, the logical node name for the local node will appear in this box.
You have the option to modify this box in order to enter the node name used
by the PC on the selected network interface. The network node name entered
in this box must be valid for the selected network interface. For example, if it
is a TCP/IP network interface, the network node name entered here must be
either in the local host table or known to the TCP/IP name server. The
network node name is limited to 128 characters, but can include any
combination of special characters.
3. To delete a network interface, select the network interface to delete and click
Delete. A confirmation dialog box will appear:
The Available Interfaces list displays all of the available network interfaces
that NetDDE is capable of supporting. It does not necessarily represent the
network interfaces that are currently installed on the node.
5. Select an interface and then click OK. A confirmation dialog box will appear.
For example:
Configuring Preferences
You can modify miscellaneous NetDDE program control preferences. The
preferences chosen will affect all network interfaces and connections.
Note All routes are saved in the [Route] section of the NETDDE.INI file.
4-8 Chapter 4
2. Initially, the Network Routes dialog box will be blank. Any routes that you
add, along with their configuration information, will appear in this dialog box:
Destination Node List
Allows you to select a route definition to modify or delete. Route
definitions are referenced by the destination logical node name.
Route to Destination Node
Route to the selected destination node. The last name in this box is the
destination node. Any node name before the destination node is the name
of a hop node in the link to that destination node. No edits can be made in
this box.
Using the previous network illustration, if "Phil" wants to communicate
with "Linda," the route shown in the Network Routes dialog box above
would be defined on Phil’s machine. The route Chet+Linda tells NetDDE
that in order to get to "Linda" from "Phil," a connection must be made
first to "Chet" and then a hop through "Chet" to the final destination of
"Linda."
3. To add a route, see "Adding a Route" later in this section.
4. To modify a route, see "Modifying a Route" later in this section.
5. To delete a route, see "Deleting a Route" later in this section.
6. When you are finished configuring routes, click Done.
Customizing NetDDE Setup 4-9
2. In the Destination Node Name box, type the name of the destination node.
3. In the Route to Destination Node box, type a route specification.
The last node name entered in this field is the destination node. Any node
name entered before the destination node name is a hop to the destination
node.
4. Click OK.
5. The new route will be added to the Destination Node List:
4-10 Chapter 4
Modifying a Route
½ To modify a route:
1. In the Network Routes dialog box, select the destination node from the
Destination Node List window.
2. Click Modify.
The Modify Route dialog box appears. (This dialog box is the same as the
Add Route dialog box.)
3. Make the necessary modifications to the route.
4. Click OK.
All modifications will be reflected in the Network Routes dialog box.
Deleting a Route
½ To delete a route:
1. In the Network Routes dialog box, select the destination node from the
Destination Node List window.
2. Click Delete.
Customizing NetDDE Setup 4-11
2. Initially, the Connection Names dialog box will be blank. Any logical node
names that you add, along with their configuration information, will appear in
this dialog box:
Logical Node Names
Logical node names of the remote nodes that are normally accessed from
this node.
Network
Network interface to be used in connecting to the selected logical node
name.
Port
Port number on the defined network interface to be used in connecting to
the selected logical node name. Not all network interfaces support
multiple ports or allow the ports to be addressed.
4-12 Chapter 4
2. In the Logical Node box, type a logical node name for the remote node.
The logical node name cannot exceed 15 characters and cannot include
embedded spaces or the following special characters: + * \ / , ? ( ) " ’.
3. In the Network Interfaces list, select a network interface to be used for
connecting to the remote node represented by the logical node name.
NetDDE allows you to select network interfaces that are not currently
configured. For example, you can select the NetBIOS interface even if you
have not added it to the NetDDE configuration using the Network Interface
Selection dialog box.
Customizing NetDDE Setup 4-13
4. If the selected network interface supports multiple ports, a list of possible port
selections will appear in the Ports list. Select a port to be used in connecting
to the remote node represented by the logical node name.
Not all network interfaces support multiple ports and not all ports listed are
valid references. NetDDE does not validate the selection. If a network
interface does not support a specific port reference or you are not sure of the
valid selection, select the Any option.
For example, if the NetBIOS network interface is configured to support two
network adapters (’lana0’ and ’lana1’), you may wish to specify that all
connections to a specific logical node name be made by going directly to the
adapter that services the LAN to which the corresponding remote node is
connected. In this case, click on the down arrow in the Ports field and select
either Port 0 or Port 1 depending on which adapter is connected to the remote
node.
Note If you are using the Serial interface, the communication ports map to the
following logical ports:
5. In the Network Node box, type a network node name that corresponds to the
logical node name of the remote node.
The network node name entered in this field must be valid for the selected
network interface. For example, if it is a TCP/IP network interface, the
network node name entered here must be either in the local host table or
known to the TCP/IP name server. The network node name is limited to 128
characters, but can include any combination of special characters.
6. Click OK to accept the entries and return to the Connection Names dialog
box. The added logical node name will appear in the Logical Node Names
list.
4-14 Chapter 4
C H A P T E R 5
This chapter describes DDE Share Security and the procedure for creating a DDE
Share database.
Contents
! Introduction
! Defining Default DDE Share Security
! Customized DDE Shares
! Connecting to a Secured Windows NT Application
! Connecting to a Secured WFW or Win95/98 Application
5-2 Chapter 5
Introduction
Because NetDDE enables access by other workstations to DDE data stored on the
local node, a security policy has been put into place to prevent unauthorized access
to information by remote workstations. With a DDE Share Security policy in
place, access must be explicitly granted to shared DDE data available at the local
node. Likewise, a remote workstation that wants access to secured DDE data must
be able to respond appropriately to the requirements exacted by the DDE Share
Security subsystem in NetDDE.
NetDDE allows you to configure a DDE Share Security policy and to administer
the configured DDE Share Security policy when remote workstations attempt to
gain access to DDE data available at the local node. The DDE Share Security
architecture implemented by NetDDE was first introduced by Microsoft in its
Windows for Workgroups 3.1 product.
DDE Shares
DDE shares correspond to DDE data maintained by DDE-aware server
applications. Some applications, such as Wonderware InTouch and Microsoft
Excel, can be both DDE clients and DDE servers on the local node. DDE shares
are defined in the DDE shares database maintained by NetDDE on each node. The
DDE shares database stores the name of each application and topic pair that can be
referred by a remote node in a NetDDE conversation. The DDE shares database
also identifies the security permission levels for each DDE share that defines the
access nodes available to that share.
A DDE share can be created for each DDE topic supported by a DDE-aware
application. Or, a "wild card" DDE share, specifying "*" as the topic name, can be
defined to enable access through NetDDE to all topics supported by the given
DDE-aware application.
Full Access
Allows access to the specified application and topic from all remote workstations
without any restrictions.
No Access
Allows no access to the specified application and topic from any remote
workstation.
The current security level for the default DDE share is displayed in the
Default DDE Security on This Node is box. For example, "Full Access."
2. To modify the default security level, click Configure Default Security.
The Default DDE Security dialog box appears.
5-6 Chapter 5
Descriptions for the options you select will appear in the message window at
the right of the dialog box.
3. In the Default Access group, select a default access option for the node.
By default, NetDDE assumes "Full Access" for the node and creates a
corresponding default DDE share when it is activated (unless a DDE share
already exists in the DDE shares database). This ensures a smooth transition
from the Windows 3.1 environment, allowing you to become gradually
accustomed to securing DDE data in this manner.
For more information on the available permission levels, see "DDE Share
Permission Levels" earlier in this chapter.
4. To start an application that is not already running on connection from the
remote node, select the Default Startup option.
5. Click OK to return to the Custom DDE Security Browser dialog box.
DDE Share Security 5-7
The default security level for the local node is displayed in the Default DDE
Security on This Node is box. For example, "Full Access."
2. To configure the default DDE share security, click Configure Default
Security.
For more information, see "Defining Default DDE Share Security" earlier
in this chapter.
3. To view the security permission level assigned to a custom DDE share, select
the application from the Application Name window and then select the topic
from the Topic Name window.
Once a custom DDE share is selected, the security permission level associated
with that share will be displayed in Security for Selected App/Topic window.
5-8 Chapter 5
4. To flush the client password cache, click Flush Client Password Cache.
Note If you are using Windows 3.1, the Flush Client Password Cache
button will remove all client passwords in the cache without offering a
selection.
For more information, see "Flushing Cached Passwords" later in this chapter.
5. Click Done.
Descriptions for the options you select will appear in the message window at
the right of the dialog box.
2. In the Application box, type an application name.
3. To specify a particular topic name, select the Topic Name option and type a
topic name in this box. To allow access to all topics, select the Any Topic
option.
If you wish to only allow access to certain topics in an application, security
levels can be assigned to each topic. In the example above, SHEET1.XLS of
the application EXCEL requires a password to read and write.
4. In the Select Required Access Security group, select the desired security
permission level to be assigned to the custom DDE share.
DDE Share Security 5-9
For more information on the available permission levels, see "DDE Share
Permission Levels" earlier in this chapter.
5. To start an application that is not already running on connection from the
remote node, select Application Startup Option.
6. To specify a read password, type a password in the Enter Read Password
box.
This box will only appear if the Passwords Required to Read and Write
security level is selected.
7. To specify a write password, type a password in the Enter Write Password
box.
This box will only appear if the Passwords Required to Read and Write
security level is selected.
8. Click OK to return to the Custom DDE Security Browser dialog box.
2. To remove a cached password associated with a DDE share, select the DDE
share name in the above dialog box and click Flush.
3. To flush all passwords for all cached DDE shares, click Flush All.
4. Click Done to return to the Custom DDE Security Browser dialog box.
If an entered password for a particular share is not removed, NetDDE will use the
entered password each time access to that share is attempted.
DDE Share Security 5-11
The User Name box displays the user name. The Domain box displays either the
name of the remote Windows NT node to which the connection is being initiated or
the name of a domain server that the Windows NT node trusts.
5-12 Chapter 5
½ To gain access:
1. In the Password box, type the user password that was defined when the user’s
identity was established (either at the remote Windows NT node or at the
designated domain server).
2. To save the entered user identity at the local node for future accesses to the
same DDE share, select Save Password for Future Access.
3. Click OK.
If the entered information is correct, you will be granted access to the desired DDE
share.
DDE Share Security 5-13
½ To gain access:
1. In the Password box, type the appropriate password for the desired DDE
share.
Clients must be informed of valid passwords by the user defining the DDE
share.
2. To save the entered user identity at the local node for future accesses to the
same DDE share, select Save Password for Future Access.
3. Click OK.
If the entered information is correct, you will be granted access to the desired DDE
share.
5-14 Chapter 5
6-1
C H A P T E R 6
Contents
! Introduction
! Configuring Ports
! Defining Connection Information
! Viewing Port Status
6-2 Chapter 6
Introduction
After the Serial interface has been selected using the Interfaces command on the
Configure menu, additional parameters need to be configured for NetDDE to
successfully access remote nodes. These parameters include definition of the PC
communication port to use, modem configuration, and connection information
including dialing instructions.
Configuring Ports
You can change the communication port(s) and/or modem(s) being used by
NetDDE at the local node.
3. Select the Enabled option to activate the selected PC communication port for
NetDDE use.
Multiple communication ports may be enabled concurrently by reselecting the
port box.
4. In the Com Port Baud Rate list, select the appropriate baud rate to be
assigned to the selected PC communication port. If you select Other from the
list, you can specify a baud rate.
Note The 38,400 baud rate is not supported reliably by all PC communication
hardware. If the NetDDE connection is terminated frequently when
configured at this rate, reduce the selected baud rate to a value that is more
compatible with the PC and communication hardware being used. Otherwise,
upgrade PC hardware with support for higher performance UARTs, such as
the 16550.
5. In the NetDDE Port Type group, select type of port that NetDDE will use.
The following options are available:
Direct Connection
Nodes are directly connected with a serial cable.
Modem
The selected PC communication port is attached to a modem. When you
select this option, the Modem Configuration group becomes available.
For more information on configuring the modem, see "Configuring
Modem Details" later in this chapter.
Leased Line Modem
If two nodes are connected by two modems using a leased or "direct" line,
select the Leased Line Modem option. (Such modems must support and
be configured for leased line mode.)
6. In the Flow Control group, select a transmit option.
RTS/CTS
Enables RTS/CTS flow control.
DTR/DSR
Enables DTR/DSR flow control.
7. Click OK to return to the Serial Configuration dialog box.
Additional Serial Interface Parameters 6-5
In most cases, the default settings for modem parameters provide good
performance and do not require modification. However, they can be changed
to fine-tune the modem for a specific environment.
2. In the Init String box, verify or change the Hayes-compatible command
sequence that is issued to the modem to initialize and configure it
appropriately for communications.
For more information, see "Modem Initialization String Sequences" later
in this chapter.
3. The Dial Prefix string is prefixed to the phone number (specified as part of the
Connection Information configuration) each time NetDDE dials the remote
node via the modem. Different modems or connected telephone carriers
require different options at dial time. (Specific modem requirements for
dialing should be found in the manufacturer’s documentation.) The default
prefix specifies the following:
’D’ Tells the modem to dial the appended number.
’T’ Tells the modem to use the "Tone" mode rather than the "Pulse"
mode when dialing.
4. In the Dial Timeout box, type the number of seconds NetDDE will allow for
the modem to connect (after the dial string was issued) before NetDDE times
out.
5. In the Dial Retries box, type the number of times NetDDE will redial the
remote when the dialing timeout is exceeded. (NetDDE does not detect the
busy signal or count rings to determine when to give up.)
6. In the Hangup Timeout box, type long to delay before issuing a hang-up
sequence to the modem (after a conversation has terminated).
Different modems and telephone carriers may have different requirements for
this parameter. Issuing a hang-up command to some modems can prematurely
cut off the last control message being sent to the remote modem.
6-6 Chapter 6
Note For NetDDE to connect properly to a modem, the modem must present the
DSR (Data Set Ready) signal after initialization. If the DSR signal is low or
follows the CD signal, an error will occur. If this occurs, refer to the modem
manual for the appropriate DIP switch setting and/or initialization string parameter
to use. In general, DSR should NOT follow CD, and should be ON after
initialization while the DTR signal from the PC is active. The modem must also
respond to the DTR signal and present the CD signal only after a connection has
been established.
Additional Serial Interface Parameters 6-7
The Connection Information dialog box displays a list of defined serial links
and the port and phone number of the selected link. No changes can be
entered directly into the text fields of this dialog box.
2. Before defining connection names, verify that the required communication
ports have been correctly configured and enabled. The options are described
as follows:
Connection Name List
Contains the remote node names to which serial links can be made from
the local node. Added remote nodes will also appear in this list.
To add a connection name mapping, see "Adding a Serial Link" later in
this chapter.
To modify a connection name mapping, see "Modifying a Serial Link"
later in this chapter.
To delete a connection name mapping, see "Deleting a Serial Link" later
in this chapter.
6-8 Chapter 6
Port
Port being used to connect to the selected remote node.
To select a different port, see "Modifying a Serial Link" later in this
chapter.
Phone Number
Phone number being used to connect to the selected remote node.
To enter a different phone number, see "Modifying a Serial Link" later in
this chapter.
3. Click Done to return to the Serial Configuration dialog box.
2. In the Connection Node Name box, type the remote node name to which the
serial link will be made.
This name must match the remote node’s logical node name.
3. In the Port list, select the PC communication port to be used to connect to the
selected remote node.
If the serial connection is a direct connection (via RS-232 NULL modem
cable) from the local node to the remote node, select the appropriate
communication port.
4. In the Phone Number box, type the telephone number for the modem to be
dialed.
If the connected modem or telephone carrier supports outside line access or
requires pauses during the dialing process, control characters for these
functions (for example, commas) can be entered in this box.
5. Click OK to return to the Connection Information dialog box.
Additional Serial Interface Parameters 6-9
Rcv Queue Size In the Rcv Queue Size box, the size of
the serial driver queue for receiving
data is displayed.
Click Close Port to close the connection to the remote node via the selected PC
communication port.
The descriptions on the Configuration, Status, Transmit, and Modem Status
options are the same for both modem and direct connect ports.
For more information on these options, see "Configuring Port Status" earlier in this
chapter..
6-14 Chapter 6
7-1
C H A P T E R 7
Contents
! Introduction
! Viewing Status and Statistics Information
! Configuring Child Windows
7-2 Chapter 7
Introduction
NetDDE allows you to view the status of ongoing DDE conversations, connections,
and routes, as well as the statistics associated with them. Status displays are
updated as soon as they happen. Statistics displays (when enabled) are updated at
a user-defined poll rate or "manually" when the user requests the update. Use the
View menu to choose the type of status and statistics to be displayed. Use the
Window menu to control the arrangement and presentation of the status and
statistics display windows.
NetDDE Status and Statistics Display 7-3
The selected status and statistics (optional) displays appear as child windows with
the NetDDE program window.
7-4 Chapter 7
Note The Pkts Sent, Pkts Rcvd, Bytes Sent, and Bytes Rcvd columns are only
displayed if you have enabled the Statistics command on the View menu. (You
must also select View Statistics on the Control menu. Access the Control menu
by clicking on the NetDDE icon in the top left corner of the program window.)
NetDDE Status and Statistics Display 7-5
Viewing Connections
The Internode Connections child window displays status and statistics (optional)
on the DDE connections between the local node and all directly connected remote
nodes with which NetDDE is actively communicating.
To display current DDE connections to remote nodes, on the View menu, click
Connections.
Note The Pkts Sent and Pkts Rcvd columns are only displayed if you have
enabled the Statistics command on the View menu. (You must also select View
Statistics on the Control menu. Access the Control menu by clicking on the
NetDDE icon in the top left corner of the program window.)
7-6 Chapter 7
Viewing Routes
The Routes child window displays the status and statistics (optional) for all DDE
routes originating from the local node or terminating at the local node. A DDE
route is defined as a connection between two endpoint nodes irrespective of the
number of intermediate hops that are involved in the connection.
To display DDE routes, on the View menu, click Routes.
Note The Pkts Sent and Pkts Rcvd columns are only displayed if you have
enabled the Statistics command on the View menu. (You must also select View
Statistics on the Control menu. Access the Control menu by clicking on the
NetDDE icon in the top left corner of the program window.)
NetDDE Status and Statistics Display 7-7
Viewing Hops
The Through Node Hops child window displays status and statistics (optional) for
all DDE routes on the network that use the local node as a hop node. Although the
local node is not an endpoint for any of the DDE traffic displayed in this window,
through node traffic does have an impact on available NetDDE resources and
performance.
To display hop information for the local node, on the View menu, click Hops.
Note The Pkts Sent and Pkts Rcvd columns are only displayed if you have
enabled the Statistics command on the View menu. (You must also select View
Statistics on the Control menu. Access the Control menu by clicking on the
NetDDE icon in the top left corner of the program window.)
7-8 Chapter 7
Viewing Conversations
The DDE Conversations child window displays the status and statistics (optional)
for all DDE conversations originating or terminating at the local node. It identifies
the conversing nodes, applications and topics.
To display the current DDE conversation information, on the View menu, click
Conversations.
Note The Pkts Sent and Pkts Rcvd columns are only displayed if you have
enabled the Statistics command on the View menu. (You must also select View
Statistics on the Control menu. Access the Control menu by clicking on the
NetDDE icon in the top left corner of the program window.)
NetDDE Status and Statistics Display 7-9
Note The Pkts Sent and Pkts Rcvd columns are only displayed if you have
enabled the Statistics command on the View menu. (You must also select View
Statistics on the Control menu. Access the Control menu by clicking on the
NetDDE icon in the top left corner of the program window.)
7-10 Chapter 7
Viewing Statistics
NetDDE allows you to control whether or not statistics are displayed in the enabled
child windows. You can enable or disable display of the number of packets (Pkts
Sent and Pkts Rcvd) or the number of bytes (Byte Sent and Bytes Rcvd) in open
child windows. Byte level statistics are only available for the Network Interfaces
display.
When you enable statistics, you can choose whether to gather the information
"automatically" or "manually." If you choose to display statistics automatically,
information is updated in all open child windows periodically by NetDDE (based
on the selected poll rate in the NetDDE Preferences dialog box). If you choose to
display statistics manually, information is only updated when you position the
mouse cursor in the child window and click the left mouse button.
To enable statistics, on the View menu, point to Statistics and then click the
appropriate command.
Once you have enabled either automatic or manual statistics, you can control the
display of statistics for each child window. On the Control menu of child window,
click View Statistics.
NetDDE Status and Statistics Display 7-11
Tiling
To tile information in the program window vertically, click Tile on the Window
menu. For example:
NetDDE Status and Statistics Display 7-13
Cascading
To cascade information in the program window, click Cascade on the Window
menu. For example:
Tiling Horizontally
To tile information in the program window horizontally, click Tile Horizontally
on the Window menu. This display format is the default. For example:
7-14 Chapter 7
Arranging Icons
To arrange child window icons in the NetDDE program window, click Arrange
Icons on the Window menu. For example:
Before
After
NetDDE Status and Statistics Display 7-15
C H A P T E R 8
This chapter describes some of the available NetDDE test, trace and debug options.
Contents
! Introduction
! Testing an Open Connection
! Closing an Open Connection
! Enabling Debug Menu Commands
! Configuring Additional Interface Parameters
8-2 Chapter 8
Introduction
NetDDE provides inter-node connectivity to DDE-aware Windows applications
(under most normal circumstances) without testing. However, from within the
NetDDE program window, you can:
Validate network connections.
Enable logging and tracing of DDE messages.
Dump the state of NetDDE and configured network interfaces.
Modify the additional operating parameters supported by each configured network
interface.
Warning! Enabling the debug and trace options described in this section
significantly impacts NetDDE performance and system resources. Logging should
not be enabled unless directed by Wonderware Technical Support.
You can verify connectivity between NetDDE programs operating on different
nodes of the network or across serial interfaces. You can also enable additional
menu items in both the NetDDE Control and Configure menus.
Chapter 8 8-3
In the box, type the logical node name of the remote node to which you want to
connect.
Click OK.
Once the connection is established, information regarding the connection will
appear in the Internode Connections window, according to the options enabled in
the View menu. For example:
8-4 Chapter 8
If the test connection fails, verify that proper configuration and installation
procedures were performed for the local node and the remote node to which you
are attempting to connect. Most connection failures are due to improper or
incomplete configuration of the underlying network interface.
If the connection is serial, ensure that you are using the correct cable and that both
nodes are using the same Baud Rate and the same Flow Control protocol. If using
modems, make sure that the proper initialization string has been given and the
modems are configured properly. Verify that the destination node name is properly
mapped to a communication port.
If the connection is DECnet or TCP/IP, make sure that the destination node name
and address were properly configured when you installed the network interface.
Verify that the local node name and address are entered in the remote node’s host
table.
Chapter 8 8-5
To close a single connection, in the Name list, enter the logical node name of the
remote node connection to close (or select a remote node name from the list).
Then, click Close.
In the validation box that appears, click Yes to close the connection or No to return
to the Close Connection With dialog box.
To access the Control menu in Windows 95/98, click the icon in the top left
corner of the NetDDE program window.
Chapter 8 8-7
Log Info
Enabling this option causes NetDDE to log the various internal NetDDE function
calls and parameters associated with all DDE data transfers to the Wonderware
Logger. This information has no meaning to the general user and is provided only
for use by Wonderware Technical Support. The format of the logged data is
similar to the example below:
94/08/29 13:30:52.670/NETDDE /
94/08/29 13:30:53.270/NETDDE /DDEPKT: 0CC7356C
94/08/29 13:30:53.270/NETDDE / WM_DDE_DATA
94/08/29 13:30:53.330/NETDDE / format: 0001
94/08/29 13:30:53.330/NETDDE / offsFormat: 0000
94/08/29 13:30:53.330/NETDDE / fResponse: 00
94/08/29 13:30:53.380/NETDDE / fAckReq: 01
94/08/29 13:30:53.380/NETDDE / fRelease: 01
94/08/29 13:30:53.440/NETDDE / offsItem: 0034
94/08/29 13:30:53.490/NETDDE / item: "s01"
94/08/29 13:30:53.490/NETDDE / offsData: 0038
94/08/29 13:30:53.550/NETDDE / sizeData: 0000001C
94/08/29 13:30:53.550/NETDDE / 0CC735A4: 32 20 49 4E 49 54 49 41-4C
49 5A 45 44 00 00 00 2 INITIA-LIZED...
94/08/29 13:30:53.600/NETDDE / 0CC735B4: 00 00 00 00 00 00 00 00-00
00 00 00 ........-....
94/08/29 13:30:53.600/NETDDE /
Chapter 8 8-9
94/08/29 13:30:56.680/NETDDE /
94/08/29 13:30:59.590/NETDDE /DDEINTF State [Normal Windows]:
94/08/29 13:30:59.640/NETDDE / 51F8: 0CC73663 \\PROMETHIUM\WWCLIENT
-> \\LITHIUM\TESTPROT|TOPIC
94/08/29 13:30:59.640/NETDDE / 1 0 1 0 0 0 0 0 0 0 51F8 5574
0CC735E3 2 0000 0000 187 187
94/08/29 13:30:59.700/NETDDE /DDEINTF State [Terminating Windows]:
94/08/29 13:30:59.700/NETDDE /DDER State:
94/08/29 13:30:59.750/NETDDE / 0CC735E3: 00000000 00000000 5 1
0013D560 0CC7791C 000051F8 00000000 00000000 00000000 1 1 1 1 0 186
186
94/08/29 13:30:59.750/NETDDE /ROUTER State:
94/08/29 13:30:59.810/NETDDE / 0CC7791C: 00000000 00000000 3 1
"PROMETHIUM" "LITHIUM" "nickel" 188 188
94/08/29 13:30:59.810/NETDDE / 0 30 0 0 100 0 30 "lithium"
0CC735E3
94/08/29 13:30:59.860/NETDDE / 0: 0CC777C8 10D7003C 00000000 0
00000000 0 1 0 0
94/08/29 13:30:59.860/NETDDE / 1: 00000000 00000000 00000000 0
00000000 0 1 0 0
94/08/29 13:30:59.920/NETDDE /PKTZ State:
94/08/29 13:30:59.920/NETDDE / 0CC777C8: "NETBIOS" 11377E36 1 0
000000D0 000000D0 02 000000CF 000000CF 000000CF
94/08/29 13:30:59.970/NETDDE / 000000D0 0 "NICKEL" "nickel" 1470
10 60000 60000 10000 60000 120000 60000
94/08/29 13:31:00.030/NETDDE / 3 3 3 0 30 413 394 0CC73718
00000000 00000000 00000000 00000000 00000000
94/08/29 13:31:00.080/NETDDE / 00000000 00000000 0CC771EC
0CC73D30 00000000 00000000 00000000 00000000 00000000 00000000
0CC7791C 0
94/08/29 13:31:00.080/NETDDE /
94/08/29 13:31:00.080/NETDDE /
94/08/29 13:31:02.060/NETDDE /0B470000: "NETDDE" used 1 of 128 32767
byte Chks, 1024 granules
94/08/29 13:31:02.110/NETDDE / # : hMem Address Alloced/BlkSize
FrLs Hg
94/08/29 13:31:02.110/NETDDE / 1: 0CC6 p 214368256 19104 7FFF 0
94/08/29 13:31:02.170/NETDDE /
Enabling this option causes NetDDE to request a one-time dump of the selected
network interface’s state to the Wonderware Logger. The format and content of the
data dumped is dependent on the selected network interface. This information has
no meaning to the general user and is provided only for use by Wonderware
Technical Support. The format of the logged data for the NetBIOS interface is
similar to the example below:
Warning! The default parameters used for each network interface are optimal for
most network configurations. It is recommended that you consult with
Wonderware Technical Support before attempting to change them.
Port Option
For the WinSock network, you can configure the local port number.
Option Description
TCP/IP Port Local port number used by TCP/IP when
attempting to connect to a host. All hosts
communicating with each other must have the
same port number.
8-12 Chapter 8
Packet Options
Use the packet options to configure the size of the packets and maximum number
of unacknowledged packets. Packet options are as follows:
Option Description
Packet Size Size of network packets to be used over the interface.
For the Serial interface, the default value of 512 bytes
is optimal for most configurations. Increasing the
packet size may improve performance, but it may also
make communication susceptible to line-induced data
errors.
For the WinSock and DECnet interfaces, the default
value of 2048 bytes is optimal for most configurations.
Max Unacked Pkts Number of unacknowledged packets that NetDDE
allows. During normal operation, NetDDE allows
several unacknowledged network packets to be
outstanding at the interface before pausing to wait for
acknowledgment. If the values for this parameter are
different at two connecting nodes, the minimum value
is used by NetDDE.
Timeout Options
Use the options in the Timeouts group to configure the timeout values (measured
in seconds) for the interface. Timeout options are as follows:
Option Description
Connect to Remote Number of seconds that NetDDE will wait before
timing out on the connection.
Low-Level Connect Number of seconds NetDDE will wait for a
successful low-level connect at the network
interface. Low-level connect is command-based
rather than packet-based.
Receive Connect Cmd Number of seconds NetDDE will wait from the time
of the initial connect to the time it receives an initial
connect packet from the remote node.
Receive Connect Rsp Number of seconds NetDDE will wait from the time
it sends an initial connect packet to the time it
receives an initial connect response packet from the
remote node.
Out-of-Memory Pause Number of seconds NetDDE will wait to re-transmit
a message to the remote node after receiving
notification that the remote node is out of memory.
Chapter 8 8-13
(continued)
Option Description
No Response Number of seconds NetDDE will wait for a
transmitted packet to be acknowledged by the
remote node before attempting to re-transmit the
unacknowledged packet.
Keep Alive Period Number of seconds between keep-alive packets that
are exchanged between connected NetDDE
programs. Keep-alive packets are used as positive
acknowledgment that the connection is still
functional in the absence of normal DDE message
activity.
Xmit Stuck Number of seconds NetDDE will wait for
permission from the network interface to transmit an
outbound packet before timing out and closing the
connection.
Partial Xmit Retry Delay Number of seconds NetDDE will wait before re-
transmitting an unsuccessfully transmitted packet.
Logging Options
In the Logging group, configure the amount of information that the specific
network interface will log to the Wonderware Logger. The following mutually
exclusive options are available:
Option Description
Log All Problems Log all problems detected at the network interface.
Log Unusual Problems Only log problems that are unusual for the network
interface. This is the default option.
Don’t Log Problems Disable problem logging.
8-14 Chapter 8
A P P E N D I X A
Contents
! NetDDE Messages
! Security Messages
! NetBIOS Messages
! Serial Messages
! WWCOMTSR Messages
! SDDETSR Messages
! WinSock Messages
! DECnet Messages
A-2 Appendix A
NetDDE Messages
The following messages may be displayed in the Wonderware Logger for NetDDE:
"Adding atom "ITEM_NAME" => NULL"
NetDDE needed to add an atom on behalf of client. Client should have done it.
Probably a client application error where an atom used in a DDE conversation has
been released prematurely.
"Cannot load address of ""PROC_NAME"" function from ""DLL_NAME""
DLL"
Cannot successfully access the named procedure from the identified network
interface DLL. Incorrect DLL version or NetDDE internal error.
"Cannot load DLL "DLL_NAME": ERROR_CODE"
Cannot load a network interface DLL. Make sure that the named network interface
DLL is in the current path.
"Couldn’t create window for DDE conversation."
Could not create a window for the initiated DDE conversation. Insufficient
Windows system resources.
"DDE_MSG ACK not to an DDE_MSG: [XXXX] ""CLIENT_NAME"" ->
""APP_NAME"""
A DDE_MSG acknowledge was addressed by a client to an application that did
not have that DDE_MSG outstanding. Application programming error. The
following DDE_MSGs could be subject to this error:
WM_DDE_ADVISE
WM_DDE_DATA
WM_DDE_POKE
WM_DDE_REQUEST
"Data Checksum Error: computed CKS=XXXXXXXX vs. received
CKS=XXXXXXXX"
"XX XX XX XX ... {a multi-line dump of packet in error}... XX"
The computed checksum of a received packet data did not match the checksum
value transmitted in the header by the packet source.
"Data CKS Err: COMPUTED_CKS vs. DATA_CKS"
"XX XX XX XX ... {a multi-line dump of packet in error}... XX"
The computed checksum of a received packet data did not match the checksum
value transmitted in the header by the packet source.
"Data CRC Error: computed CRC=XXXXXXXX vs. received
CRC=XXXXXXXX"
"XX XX XX XX ... {a multi-line dump of packet in error}... XX"
The computed CRC of a received packet data did not match the CRC value
transmitted in the header by the packet source.
"*** DDEQFree releasing invalid handle XXXX"
An invalid handle for a DDE message was passed to be freed. Internal error.
"DDER: Detected duplicate node name ""NODE_NAME"""
Received a request from another node on the network that has the same node name
as the local node. Connection will be aborted. Sort out node naming conventions
used on the network.
"Error adding atom ""ITEM_NAME"" XXXX ""ATOM_NAME"""
Wonderware Logger Messages A-3
After attempting to add an atom on behalf of client, the resulting atom name did
not match the client’s item name. Application programming error where an atom
used in a DDE conversation has been pre-maturely freed and re-used.
"EXEC of ""COMMAND_LINE"" failed: ""FAILURE_REASON"""
Requested DDE_EXEC of the submitted command line failed due to the reason
identified by FAILURE_REASON. Verify the command line represented by
COMMAND_LINE is correct.
"Extraneous WM_DDE_ACK from DDE Client ""CLIENT_NAME"":
XXXXXXXX"
The client application submitted an unexpected acknowledge message to NetDDE.
The lParam value in the acknowledge message is represented by XXXXXXXX.
Application programming error.
"Extraneous WM_DDE_ACK_EXECUTE from DDE Client
""CLIENT_NAME"""
A DDE_ACK_EXECUTE was addressed by a client when there was no
outstanding DDE_EXEC message requiring an Ack. Application programming
error.
"Extraneous ACK apparently to a DDE_MSG "CLIENT_NAME" ->
"APP_NAME""
A DDE acknowledge apparently for a DDE_MSG was addressed by a client to an
application that did not have anything outstanding requiring an Ack. Application
programming error. The following DDE_MSGs can potentially receive extraneous
acknowledges:
WM_DDE_ADVISE
WM_DDE_DATA
WM_DDE_POKE
WM_DDE_REQUEST
WM_DDE_UNADVISE
"Extraneous WM_DDE_DATA response from DDE Server
""SERVER_NAME"""
The named DDE server sent a data response that was not solicited by the client
application. Application programming error at the server.
"Failed creating server hPktz."
Received a connection request from the low-level network interface but could not
create a NetDDE packet server. Insufficient Windows system resources.
"GetShareInfo Error: SHARE_NAME"
NetDDE was not able to successfully access the identified share name
(SHARE_NAME) when attempting to validate a client’s credentials for accessing
the data represented by the share. Verify that the share name database is not
corrupted.
"GetShareInfo Size Error: SHARE_NAME"
The information associated with the identified share name (SHARE_NAME) is too
large for internal NetDDE buffers. Verify that the share name database is not
corrupt.
A-4 Appendix A
"PKTZ: Dest "" NODE_NAME "", No connect rsp from other side ... closing
connection"
Result from the "Response Cmd" timer expiring after establishing a low-level
connection with another node and sending a NetDDE connect command packet, no
response was received for a long time (usually 60 seconds).
"PKTZ: Dest "" NODE_NAME "", No response NNN1/NNN2 for pktid
XXXXXXXX"
No response for a transmitted packet was received for a time period determined by
the "Response" timer configuration value. The packet will be retranslated for the
number of "Retries" specified (NNN2) by the configuration parameter (usually 3
retries) before failing the connection. NNN1 represents the current retry number on
the specific packet.
"PKTZ: Dest "" NODE_NAME "", Out of timers for memory pause ... closing
connection"
Could not start a "Memory Pause" timer due to lack of timers after receiving a
"memory error" on a transmitted packet from the receiving node. Closing
connection as a result.
"PKTZ: Dest ""NODE_NAME "", Paused for remote side to get memory,
retrying ..."
The other side of the connection ran out of memory and requested this node to
suspend sending data for the time specified by the "Memory Pause" timer
configuration value.
"PKTZ: Dest "" NODE_NAME "", Rcvd PACKETID1 Expecting
PACKETID2, status: XXXXXXXX"
Received a packet (PACKETID1) with a sequence number other than the one
expected (PACKETID2). One or more packets have been lost in transit between
connected nodes. The other node should detect the error and re-transmit the lost
packets. Unreliable connections are the usual cause for packet sequence errors.
"PKTZ: Dest "" NODE_NAME "", Too many no response retries (NNN) for
packet id XXXXXXXX ... closing connection"
No response for a transmitted packet was received after several attempts (NNN
retries) at re-transmitting the subject packet (id XXXXXXX). The connection will
now be terminated.
"PKTZ: Dest "" NODE_NAME "", Too many retries for memory errs (NNN)
... closing connection"
Sending node retried too many times (NNN times) transmitting a packet to a node
that could not accommodate the packet due to lack of memory. The connection as
a result is broken.
"PKTZ: Dest ""NODE_NAME"", Too many timeout retries for no response
(NNN) ... closing connection"
Too many timeout retries (NNN) attempting to reach a connected node
(NODE_NAME) without any response from that node. Verify that the two nodes
are still physically connected and that the underlying network interface software at
both nodes is still functional.
"PKTZ: Dest "" NODE_NAME "", Too many xmt error retries (NNN) ...
closing connection"
Too many retries (NNN) for transmission errors on the same packet. Connection
will be broken.
Wonderware Logger Messages A-7
"PKTZ: Dest "" NODE_NAME "", Xmt error on pktid PACKETID "
Errors were detected during packet (PACKETID) transmission. Packet will be re-
transmitted.
"PKTZ: Dest "" NODE_NAME "", Xmt timeout (NNN secs) ... closing
connection"
Results from the "Transmit Stuck" timer expiring. The network interface did not
respond to the transmit request for a long time (usually after 120 seconds). This is
usually an indication that the underlying network interface has failed abnormally.
"PKTZ: Node "" NODE_NAME "", does not speak any of our protocols"
A NetDDE connection could not be established because the connecting node did
not support any common protocol dialects with this node. Different NetDDE
implementations may support additional proprietary protocol dialects
communicating nodes; however, need to support at least one common "core"
dialect. Incompatible NetDDE versions attempting to communicate.
"PKTZ: Node "" NODE_NAME "", returned an invalid protocol: NNN"
The connected node selected an invalid protocol dialect from the list of supported
protocol dialects offered during the session negotiation process. Connection
cannot be established. Incompatible NetDDE versions attempting to communicate.
"PKTZ: Their name ""THEIR_NAME"" was same as ours
"“OUR_NAME"""
The remote node (THEIR_NAME) reported that its name was the same as ours
(OUR_NAME). Connection will be broken. Verify that the assigned network node
names are unique and all communicating nodes are properly configured.
"PKTZ: Their name was not "" NODE_NAME """
The network interface delivered a NetDDE packet to a node whose NetDDE local
node name was not the one addressed by the packet. This can occur when the
NetDDE local node name is not the same as the one used by the network interface
and it was not declared as an alias at the destination node. Node name mismatch
commonly occurs on TCP/IP and DECnet networks. Make sure that appropriate
"alias" definitions have been made at the remote node when the network interface
was selected.
"PKTZ: Unusual connect error with "" NODE_NAME "": XX/XX"
An unusual response was returned by the node to which a connection was
attempted. Verify proper NetDDE versions on connecting nodes.
"PKTZ: Unusual connect name error from "" NODE_NAME "": XX"
An unusual name class response was returned by the node to which a connection
was attempted. Verify proper network interface node address configuration.
"ROUTE ERROR 001: "SRC_NODE"->"DEST_NODE" @ "HOP_NODE":
no memory"
Memory resources required to establish route depleted.
A-8 Appendix A
Security Messages
The following security messages may be displayed in the Wonderware Logger:
"AddPasswordToCache: invalid security type: NNN"
Unable to cache a password due to an invalid security type code. Internal error.
Verify that the correct NDDEAPI.DLL is in the current path.
"Domain name buffer too small."
Buffer supplied to capture the domain name for an NT connection is too small.
Internal error.
"GetPasswordFromCache: invalid security type: NNN"
Unable to get a password from cache due to an invalid security type code. Internal
error. Verify that the correct NDDEAPI.DLL is in the current path.
"Invalid share: SHARE_NAME."
The share name (SHARE_NAME) used to access security information is improperly
formatted.
"Loading security information failed."
Attempt to load ’old style’ security information from the NETDDE.INI file failed.
Security information in the NETDDE.INI file was available but improperly
formatted. Verify that the NETDDE.INI file is not corrupted and that the security
information entered in that file is properly formatted.
"NetWkstaGetInfo() returned error: NNN"
Call to get workstation information from the Windows for Workgroups operating
system returned an error (NNN). Verify that the proper version of the Windows for
Workgroups operating system is being used.
"PasswordGetFromUserModeless: invalid security type: NNN"
Invalid security type returned by dialog used to get password from user. Internal
error.
"SECURITY VIOLATION: Advise ""ITEM_NAME"""
The permissions associated with the addressed item (ITEM_NAME) do not allow
"’read" access. Verify that security for this node is configured appropriately.
"SECURITY VIOLATION: Execute"
The permissions associated with the application and topic for this conversation do
not allow "execute" access. Verify that security for this node is configured
appropriately.
"SECURITY VIOLATION: Init \\\\NODE_NAME\\APP_NAME ->
APP_NAME|TOPIC_NAME"
The permissions associated with application and topic name at this node do not
allow initiation of DDE conversations from remote nodes. Verify that security for
this node is configured appropriately.
"SECURITY VIOLATION: Poke "" ITEM_NAME """
The permissions associated with the addressed item (ITEM_NAME) do not allow
"write" access. Verify that security for this node is configured appropriately.
"SECURITY VIOLATION: Request "" ITEM_NAME """
The permissions associated with the addressed item (ITEM_NAME) do not allow
"read" access. Verify that security for this node is configured appropriately.
A-12 Appendix A
NetBIOS Messages
The following messages may be displayed in the Wonderware Logger for NetBIOS
network interface:
"Install check for 2.0 version failed. Version installed: NNN"
Checking for a NetBIOS of version 2.0 or greater. Instead, found installed
NetBIOS to be version NNN. Informative message under LogAll option.
"Lana enum requested failed: 0 size buffer returned ( int21 0x5f80 )"
Although a NetBIOS of version 2.0 or greater is installed, the request to enumerate
the number of LAN adapters supported by the interfaced failed. NetDDE will
assume that at least one adapter is supported and its lananum is 0.
"Listen failed: "ERROR_MSG""
Unable to set up a listen for connections on the NetBIOS interface. The error
message returned by the NetBIOS network interface is appended in the following
list of ERROR_MESSAGES.
""NODE_NAME": Connect failed: "ERROR_MSG""
The low level network interface was unable to connect to the specified node name.
The error message returned by the NetBIOS network interface is appended in the
following list of ERROR_MESSAGES.
""NODE_NAME": Recv err: "ERROR_MSG"",
The low level network interface detected an error while receiving from the
specified node name. The error message returned by the NetBIOS network
interface is appended in the following list of ERROR_MESSAGES.
""NODE_NAME": Send err: "ERROR_MSG"",
The low level network interface encountered an error while sending to the specified
node name. The error message returned by the NetBIOS network interface is
appended in the following list of ERROR_MESSAGES.
"Node Name too long for connect on NetBIOS: "NODE_NAME""
The node name of the destination node to which a connection is attempted is too
long for the NetBIOS interface. The destination node name must be 16 characters
or less.
"Not enough memory for Listen NCB"
Depleted memory resources attempting to allocate memory for a listen network
control block.
A-14 Appendix A
Serial Messages
The following messages may be displayed in the Wonderware Logger for the
SERIAL network interface:
"COMn: already in use"
The port selected for making a connection is already in use. Try using another port
or close the other connection first.
"COMn: No memory for new connection"
Depleted memory resources while attempting to start a new connection.
"COMn: not enabled"
An attempt to connect via COM "n" was made without the selected port being
enabled. Enable the port using the "Port Configuration" dialog box before
attempting connections.
"COMn: restarted"
COM port "n" is restarted as a result of receiving a new connection while the
preceding one was still active.
"COMn: Unknown frame rcvd: XX"
Unknown frame type "XX" received over COM "n".
""NODE_NAME": CD never went low after DTR set low"
The modem carrier signal did not go low after NetDDE attempted to break the
connection to "NODE_NAME" by toggling the DTR signal.
""NODE_NAME" connect failed, no carrier after N dials"
The connection attempt to "NODE_NAME" failed when a carrier was not sensed
after "N" retries. This characteristic applies only to modem connections. Verify
the proper baud rate and phone number.
""NODE_NAME" connect failed, no connect response after N tries"
The connection attempt to "NODE_NAME" failed when a response was not
received after N retries.
""NODE_NAME": COMn: configured as modem, must specify phone
number"
The communication part was configured for a modem, so when connecting to
"NODE_NAME" via the COM "n" port, a phone number is required. Verify that a
phone number is specified for "NODE_NAME" in the Define Connection Name
dialog box.
""NODE_NAME": COMn: not a modem "
An attempt was made to connect to the specified "NODE_NAME" by dialing a
phone number over COM "n" port, however, a modem was not configured on that
port. Verify proper configuration of serial ports in the Port Configuration dialog
box.
""NODE_NAME": Lost carrier"
The modem carrier signal was lost while connected to "NODE_NAME".
Connection broken. The communication line link must be broken or was hung up.
Wonderware Logger Messages A-17
WWCOMTSR Messages
The following are the messages and their definitions which may be displayed on
the screen when attempting to load the Wonderware WWCOMTSR:
"*** Cannot find parent. Can only be executed as a child."
"*** Invoke Serial Comm TSR via WWCOMTSR.EXE"
Attempted to execute the distributed file WWCONF.EXE which can only be
executed when it is spawned by WWCOMTSR. Do not execute WWCONF.EXE
directly.
"*** Cannot unload WWCOMTSR. Other users still active."
" Unload other users (e.g., SDDETSR) first."
The previous two messages appear together when the user attempts to unload the
TSR while it is being used by another TSR.
" COMx serial port configured."
Acknowledges successful configuration of each specified or defaulted
communication port.
" Enter any key to exit ..."
Appears after all error messages to bring attention to the preceding error message
before it scrolls off.
" Installing Serial Comm TSR at interrupt XX"
Acknowledges successful installation of the TSR at the specified or defaulted soft
interrupt vector.
"*** Invalid parameter: XXXXXX"
An invalid parameter was entered on the command line. This message shows the
invalid parameter XXXXXXX.
"*** No current instance of WWCOMTSR found to unload."
" Unload request superfluous."
An attempt to unload the TSR was not successful since no current instance exists.
"*** No free soft interrupt between 60h and 66h. Installation failed"
" Remove one of the drivers or programs using soft interrupts."
Unable to automatically find a free soft interrupt vector in the valid interrupt vector
range. All interrupts must be occupied by other drivers.
"*** Port I/O address assignment "BAD_PARAMETER" parameter error."
Incorrect syntax was entered on the command line assigning an I/O address to the
COM port. For example, valid syntax is "... COM3:1,4,4,3E8 ...".
"*** Port interrupt assignment out of range: NNN."
An out of range value was entered on the command line assigning an interrupt level
to the COM port. Valid interrupt assignments range between 2 and 7.
"*** Receive buffer size of NNNN is out of range"
" Acceptable receive buffer size ranges from 4 to 32768."
Unsuccessful attempt to assign an out of range buffer size was received.
"*** Selected Soft Interrupt XX already occupied."
Wonderware Logger Messages A-19
SDDETSR Messages
The following are the messages and their definitions which may be displayed on
the screen when attempting to load the Wonderware SDDETSR:
"*** Cannot find parent. Can only be executed as a child."
" Invoke Serial NetDDE TSR via SDDETSR.EXE"
Attempted to execute the distributed file SDECONF.EXE which can only be
executed when it is spawned by SDDETSR. Do not execute SDECONF.EXE
directly.
" COMx serial port configured."
Acknowledges successful configuration of each specified or defaulted
communication port.
"*** COMx serial port not configured in WWCOMTSR."
" To use this port, reload WWCOMTSR specifying all desired ports."
The communication ports selected for use by the Serial NetDDE TSR, via the
command line or default, was also selected when the Wonderware Serial Comm
TSR (WWCOMTSR) was loaded.
" Enter any key to exit ..."
Message appears after a severe message, allowing the user time to read the error
message before proceeding.
" Installing Serial NetDDE TSR at interrupt XXh"
Acknowledges successful installation of the TSR at the specified or defaulted soft
interrupt vector.
"*** Invalid parameter: XXXXXX"
An invalid parameter was entered on the command line. This message is showing
the bad parameter XXXXXXX.
"*** No current instance of SDDETSR found to unload."
"Unload request superfluous."
Unsuccessful attempt to unload the TSR when it was not loaded.
"*** No free soft interrupt between 60h and 66h. Installation failed"
" Remove one of the drivers or programs using soft interrupts."
Unable to automatically find a free soft interrupt vector in the valid interrupt vector
range. All interrupts must be occupied by other drivers.
"*** Selected Soft Interrupt XX is out of range."
Unsuccessful attempt to assign an out of range soft interrupt vector to the TSR.
Valid range is between 60 and 66.
"*** Selected Soft Interrupt XXh already occupied."
" Try selecting another soft interrupt or use auto mode."
The specified soft interrupt vector conflicts with an existing driver. Try another
one.
"*** Serial Comm TSR needs to be loaded first. Load by invoking
WWCOMTSR."
The low-level Serial Comm TSR (WWCOMTSR) must be loaded first and
currently resident, before the Serial NetDDE TSR can be loaded. It is possible that
interrupt vector to the WWCOMTSR has been overwritten or re-mapped.
Wonderware Logger Messages A-21
WinSock Messages
The following messages may be displayed in the Wonderware Logger for the
WinSock network interface:
"AsyncWindowProc: WINSOCK_EVENT error WSAERRORCODE on
socket SOCKET_NUMBER"
A WinSock message was received indicating an error has occurred for a specific
asynchronous event.
"Changing the TCP/IP Port will require you to change on this every node in
your system!
Are you sure you want to change this?"
This warning message states that changing the port number on the local host
requires that all hosts which will connect to the local host will need to have
matching port numbers to establish a connection.
"ConnectToHost: connect() failed, WSAERRORCODE"
The connect call to the specified host failed with the error specified by
WSAERRORCODE.
"Copyright (c) 1993 Wonderware Software Development Corp. All rights
reserved."
Informational copyright message.
"Local host HOST_NAME is not in the host table. Please add HOST_NAME
to host table."
The local host name was not found in the host table. HOST_NAME is the
NetDDE node name and must be entered in the host table for the WinSock
interface to initialize properly.
"Maxiumum Sockets supported: NNNNNN"
Maximum number of sockets supported by the TCP/IP vendor’s WinSock.
"NDDEAddConnection: bind() failed, error: ERROR_CODE"
Unable to bind a socket. The error code specifies the reason.
"NDDEAddConnection: connect() failed, error: ERROR_CODE"
Attempt to connect failed. The error code specifies the reason.
Wonderware Logger Messages A-23
WinSock was unable to resolve the host name because the function which retrieves
the host name reported an error. Verify that the host name is in the host table. Or,
if a DNS is being used, verify that the DNS is reachable and the host name exists.
"WWINSOCK vN.NN... Node NODE_NAME"
Informational message providing WinSock version number and node name.
A packet was unsuccessfully sent, with the error code specifying the reason. The
packet will be resent.
"SetAsyncEvents() Failed"
WinSock was unable to properly initialize the new socket with asynchronous
attributes.
The following ERROR_CODEs are returned by the low-level WinSock interface in
response to various commands.
WSAEACCES
Permission denied.
WSAEADDRINUSE
The specified address is already in use. (See the SO_REUSEADDR socket option
under setsockopt().)
WSAEADDRNOTAVAIL
The specified address is not available from the local machine.
WSAEAFNOSUPPORT
The specified address family is not supported by this protocol.
WSAEBADF
Bad file number.
WSAECONNABORTED
The virtual circuit was aborted due to timeout or other failure.
WSAECONNREFUSED
The attempt to connect was forcefully rejected.
WSAECONNRESET
The virtual circuit was reset by the remote side.
WSAEDESTADDRREQ
A destination address is required.
WSAEFAULT
The addrlen argument is too small (less than the size of a struct sockaddr).
WSAEHOSTDOWN
The host is down.
WSAEHOSTUNREACH
Unable to connect to specified host.
WSAEINPROGRESS
A blocking Windows Sockets call is in progress.
WSAEINTR
The (blocking) call was canceled via WSACancelBlockingCall().
WSAEINVAL
listen() was not invoked before an accept().
WSAEISCONN
A-26 Appendix A
DECnet Messages
The following messages may be displayed in the Wonderware Logger for the
DECnet network interface:
"Bind failed: ERROR_CODE"
While setting up for a listen on the network, binding of a created socket failed due
to ERROR_CODE (listed in the following section).
"Listen failed: RETURN_CODE:ERROR_CODE=>ERROR_MSG"
Setting up a listen for new connections failed due to the error identified by the
ERROR_CODE and ERROR_MSG (listed in the following section).
""" NODE_NAME "": connect failed (LL_DISCONNECTING "
Logical link is in the process of disconnecting. The attempt to establish a connect
to NODE_NAME failed.
""" NODE_NAME "": connect failed (LL_INACTIVE)"
Logical link is inactive. The attempt to establish a connect to NODE_NAME
failed.
""NODE_NAME": Connect failed:
RETURN_CODE:ERROR_CODE=>ERROR_MSG"
An attempt to add a new connection to NODE_NAME failed due to the error
identified by the ERROR_CODE and ERROR_MSG (listed in the following
section).
""NODE_NAME": Connect failed ... timed out internally"
The attempt to establish a connection to NODE_NAME failed due to an internal
timeout. Connections must complete within a predetermined period of time.
""" NODE_NAME "": Connection closed (EBADF) while checking data
receive"
""" NODE_NAME "": Connection closed (EBADF) while checking hdr
receive"
Connection to NODE_NAME was found closed while checking for a header or data
receive packet due to the underlying DECnet network interface receiving a bad
frame packet.
""" NODE_NAME "": Connection closed (EBADF) while trying to send"
The connection to NODE_NAME was closed while trying to send.
""NODE_NAME": Couldn’t create new socket:
RETURN_CODE:ERROR_CODE=>ERROR_MSG"
An attempt to create a socket while establishing a connection to NODE_NAME
failed due to the returned ERROR_CODE and ERROR_MSG (listed in the
following section).
""NODE_NAME": Data Verify Error, closing connection"
A packet was received from NODE_NAME whose data section did not verify
properly. Connection will be closed.
Wonderware Logger Messages A-29
A P P E N D I X B
DDEView
This appendix includes installation and user instructions for DDEView. DDEView
is a Microsoft Excel add-in client application designed to make DDE (Dynamic
Data Exchange) and NetDDE easy to use and demonstrate.
Contents
! Introduction to DDEView
! Starting DDEView
! Refreshing the Spreadsheet
! Configuring the Focus
! Retrieving Data
B-2 Appendix B
Introduction to DDEView
In any manufacturing or processing plant there are engineers, managers, and
operators who want data from all parts of the manufacturing enterprise. DDEView
will access this data from any DDE-aware server running on any computer node
accessible through NetDDE. The DDE-aware servers may have been developed
with the Wonderware NetDDE SDK. Using DDEView, you can easily and quickly
connect simultaneously to several databases and view the data on a single
spreadsheet.
DDEView users must be able to start Microsoft Excel, open a spreadsheet, enter
values into cells, and know how to use the cut-and-paste functions. Users must
know the tagnames for data values needed from the plant or process area and the
computer network node names where the data resides. Knowledge of DDE
message syntax is not required since the correct formulas will be generated
automatically from point-and-click choices.
The DDEView software package includes the application and two support files:
1. The DDEView application DDEVIEW.XLA
2. A Microsoft Windows Help File DDEVIEW.HLP
3. A support DLL DDEVDLL.DLL
These files are automatically installed into your INTOUCH directory when
NetDDE is installed.
DDEView B-3
Starting DDEView
DDEView executes from an Excel add-in macro file called DDEVIEW.XLA.
Note For DDEView to be fully functional, you should not place in the XLSTART
directory. Always open DDEView from within a Microsoft Excel spreadsheet.
You will be informed that the add-in is loading, and the percentage of progress
message will appear. Once open, the add-in macro adds the DDEView menu on
the Microsoft Excel main menu bar.
B-4 Appendix B
Note Initially, a worksheet starts up with Node, Application, and Topic all set to
NONE. These must be set to "real" entries before any actions can be taken.
You can change the focus at any time, and it is retained until changed again.
Consequently, you can retrieve data from many DDE-aware servers throughout a
network enterprise. The same functions are used, but the focus is changed to
redirect their effect.
B-6 Appendix B
Selecting a Focus
½ To select the focus:
1. Select any one of the three items (Node, Application, or Topic).
The Assign Connection dialog box appears.
2. Select any item from the Node, Application and Topic lists to become the
focus.
To add an item to the list, see "Adding a Focus Entry" later in this section.
To delete an item to the list, see "Deleting a Focus Entry" later in this
section.
In the example shown in the dialog box, LOCAL is selected for the Node,
VIEW is the Application and TAGNAME is the Topic.
3. Click OK. The DDEView menu will reflect any modifications.
Note DDEView does not check the validity of any entered Node, Application, or
Topic names until the user attempts to access data.
DDEView B-7
2. In the Enter New Node box, type the node name to be added.
3. Click OK.
DDEView automatically embeds the name into the spreadsheet, where it is
preserved when the file is saved.
When a spreadsheet with added names is saved and then later recalled, DDEView
will automatically load the embedded names into the Node, Application, and
Topic lists. You don’t need to retype names each time a spreadsheet is used,
allowing you to maintain customized lists.
Retrieving Data
After you have set the focus, you can access data using the data retrieval functions
on the DDEView menu.
Inserting a Tagname
DDEView provides this special utility for connecting to an InTouch database on a
local node.
½ To insert a tagname:
1. Select an empty cell in the spreadsheet.
2. On the DDEView menu, click Insert Tagname.
The standard InTouch system Tagname Dictionary selection list appears.
You can also manually type or paste tagnames into a COLUMN of cells manually.
After you have entered the tagnames, you can then retrieve data for them.
B-10 Appendix B
Where Microsoft Excel does not find data values (due to network unavailability,
invalid server names, invalid tagnames, and so on), it presents appropriate
messages where the values should be:
#N/A Data was not returned from the server.
#REF The application or topic may not exist.
DDEView B-11
Tip To have the message syntax appear in the value cell, press F2.
2. Position the mouse cursor in the syntax and manually make the changes.
Once the NetDDE formula has been entered for each tagname, the actual tagnames
can be deleted (if desired).
By convention, if a tagname is used without a parameter name (.Field), DDEView
will fetch the current value of the tag (or process variable). To retrieve other valid
parameters from the InTouch database, enter the appropriate .Field name after the
tagname, delimited by a period. For example, for FIC101 ’HiLimit,’ enter
FIC101.HILIMIT.
B-12 Appendix B
Retrieving an Array
DDEView can automatically access any DDE source supplying data in the
Microsoft Excel Table (XlTable) format. Sources for XlTable format data include
some Wonderware I/O Servers, other Microsoft Excel spreadsheets, and many
financial programs.
4. Enter the table array size (in rows and columns). This allows DDEView to
select and prepare the destination cells for the data.
5. Press Enter.
6. The array will be returned to the worksheet:
B-14 Appendix B
Sending Data
DDEView can send (or POKE) data to any DDE-aware application that will accept
the operation.
½ To send data:
1. In a column of your spreadsheet, type the names of tags for which you want to
send data.
2. In the column directly to the right of the tagnames, type the actual data values
to send.
3. Select the column of tagnames (not the column of data).
5. Click OK. The specified data will be sent to the DDE-aware application.
DDEView B-15
3. In the Use Node list, enter the node name where the history is stored and
where HistData is running.
4. In the Date/Time Range group, enter the time range for the period of history
for which you want to retrieve values.
You must enter at least two of the three parameters. If you provide all three
parameters, the Start Time will be recalculated based on End Time, Number
of Values, and the Time Between Values (described below).
5. In the Value Type list, enter the value type. Instantaneous is currently the
only value type available.
6. In the Time Between Values group, enter the time interval between data
samples to be returned to the spreadsheet.
If you only supplied two parameters in the Date/Time Range group, this time
interval is used to calculate the third parameter.
7. To automatically compute and update the missing parameter in the Date/Time
Range box, click Update.
8. To erase the Start Time and place the current time in the End Time box, click
Current.
B-16 Appendix B
9. In the Labels group, select the types of labels to be placed in the columns to
the left of the resulting historical data.
DDEView requires one column for each option selected.
10. In the Tagname Database Dictionary box, type the directory location on the
history node where the InTouch database files are located.
This directory location is embedded in the spreadsheet and is retained if the
spreadsheet is saved and re-opened.
11. In the InTouch History File Directory box, type the directory location on the
history node for the historical (.LGH) files.
This directory location is embedded in the spreadsheet and is retained if the
spreadsheet is saved and re-opened.
12. To perform a summary calculation on the retrieved data, click Summary. If
not, click OK.
The History Summary dialog box appears.
13. Configure the summary calculation. You can calculate a mean, standard
deviation, maximum and/or minimum for none, all, or a selected portion of
data.
Summary calculations are performed on each tag (or column of data) retrieved
from HistData. Calculation results are listed directly below the actual data
extracted from the historical log files.
14. Click OK.
DDEView will read the historical data for each of the tagnames, place the date and
time labels appropriately, and return the values to the spreadsheet. For example:
DDEView B-17
B-18 Appendix B
3. In the Report On group, select the condition to trigger the NetDDE client to
log data. The following options are available:
Time-Basis
Data will be logged according to the defined interval.
Change-Only
Data will be logged only when the value changes in the server.
Time+Change
Data will be logged according to the defined interval and when the value
changes in the server.
4. In the Time Between Values group, enter an integer number (1-100) in the
box and select a particular time identifier (seconds or minutes) to determine
the interval of time separating logged data entries (reporting on Time-Basis or
Time+Change).
5. In the Keep XX Value[s] box, type the maximum number of values (2-25) to
be contained in the data table in this field.
When the Monitor function starts, DDEView inserts values into the table until
it reaches the limit. After this limit is reached, the oldest entry in the table is
deleted to allow for the newest. The data table only keeps the last xx values
(as defined by the entry in this box.)
DDEView B-19
6. In the Log Latest Values group, select whether to log the latest data record at
the top of the data table (generating a table with data at descending times) or at
the bottom (generating a table with data at ascending times).
7. In the Labels group, select the Date and/or Time options to display date and
time markers when the data is logged.
Date/Time labels are displayed in the columns directly to the left of the actual
data. DDEView requires one column for each option selected. The current (or
latest) data values are labeled "Currently."
8. Click OK.
The following example of the Monitor function shows data reporting on a time-
basis of 10 second intervals and retaining 5 values of data at a time.
B-20 Appendix B
The data items that the Retrieve Current SPC command will retrieve are from the
current (or last) sample for each dataset in the selection.
For information on retrieving data from a particular sample, see "Retrieving
Selected SPC Data" later in this chapter.
DDEView B-21
3. In the SPC Sample to Retrieve box, type the desired sample number.
4. DDEView will first POKE the specified sample number to SPC and then
create the required DDE link functions to retrieve the values for the selected
sample in a table.
For example:
B-22 Appendix B
You can use the Retrieve Selected SPC command multiple times for one dataset,
or after the Retrieve Current SPC command is used for a dataset. Each time you
use the command, DDEView will shift the previously retrieved information to the
right, effectively building a running log of sample information.
The following is an example of requests for samples 50, 36, and 24
(consecutively):
DDEView B-23
The data items that the Retrieve Selected SPC command will retrieve are from the
selected sample for one dataset only.
For more information on retrieving current data from one or more datasets, see
"Retrieving Current SPC Data" earlier in this chapter.
B-24 Appendix B
C-1
A P P E N D I X C
Special Topics
This appendix includes information on various topics related to using NetDDE for
Windows.
Contents
! Reserving Onboard Memory
! Cable Diagrams
! Modems Tested with NetDDE
! Setting Up a DDE Conversation from Microsoft Excel
! NetDDE Application Notes
C-2 Appendix C
Cable Diagrams
Pin-out equivalents for null modem cables used to connect two PCs (over a short
distance) with full handshaking are defined below:
25-25 Pin Cable 25-9 Pin Cable
=’\\cloud-9\thunder’|control!volume
To set up a DDE conversation between two nodes, NetDDE must be installed and
running on each network workstation. The DDE-aware application to be accessed
must also be running on the server node while the application requesting the DDE
conversation must be running on the client node. The client and server roles are
interchangeable for NetDDE purposes. Microsoft Excel and Wonderware InTouch
are examples of applications capable of playing both roles.
C-6 Appendix C
On the server node, the DDE data to be accessed must be identified as "shareable"
by defining a "DDE share." This share will represent the data and permission
attributes to control access to the data. DDE shares are created by identifying the
application name and the topic name controlling the data to be shared.
For information on how to define a DDE share on the server node, refer to Chapter
5. "DDE Share Security."
In the following example, a DDE share would be created using the application
name of "Excel" and the topic name of "sheet.xls" to represent the data that will be
accessed by the client Excel application.
As an example of DDE addressing from the client node, if Excel on the local node
wanted to establish a conversation with Excel running on a remote network
workstation, NODE1, the DDE address of the data to be accessed would be entered
in a cell as follows:
\\node1\excel The node name of and application name on the server node
(application name).
sheet1.xls The spreadsheet to be accessed on the server node (topic
name).
r1c1 Identification of the cell in the spreadsheet containing the
data (item name). This can also be a range name.
Note With Excel 5.0, the topic must include a reference to Workbooks. The
workbook name must be enclosed in square brackets [ ] and is identified with the
.xls extension. The spreadsheet is identified as the name of the sheet without the
.xls extension. For example:
=\\node1\excel\[Book1.xls]sheet1’r1c1’
Special Topics C-7
NetDDE responds to any DDE initiate message with application names beginning
with "\\". NetDDE on the local node passes the DDE message to the NetDDE
program running on NODE1. NetDDE running on the server NODE1 receives the
initiate request and validates whether or not the user on the server node has
permitted access to the requested DDE data by defining a DDE share to represent
the subject data. If access is permitted, NetDDE on the server node completes the
conversation by establishing a connection to the Excel program on NODE1.
Except for the extended application name, there is no difference between
specifying a local DDE conversation and specifying a network DDE conversation.
Once the conversation is established, the NetDDE program window will display
the following if Connections command is checked on the View menu.
C-8 Appendix C
No Access, 5-3
Passwords Required to Read and Write, 5-3
Read Only Access, 5-3
Index Read Only with Password, 5-3
Windows for Workgroups DDE shares, 5-4
DDE share utility, 5-4
DDEView
configuring the focus, B-5
A data retrieval
Add a Network Interface dialog box, 3-5 arrays, B-13
Add Connection Name dialog box, 4-12 inserting a tagname, B-8
Add Route dialog box, 4-9 retrieving current data, B-10
Add Serial Connection Information Dialog Box, 6-8 retrieving historical data, B-15
authentication, 8-15 sending data, B-14
dialog boxes
C Add New Nodes, B-7
Array Size, B-13
cable diagrams, C-3 Assign Connection, B-6
cached passwords, 5-10 Choose InTouch Tags, B-8
cascade, 7-13 Desired SPC Sample, B-21
child windows HISTDATA Configuration, B-15
adding horizontal scroll bar, 7-15 History Summary, B-16
arranging icons in, 7-14 Monitor Configuration, B-18
cascading, 7-13 installation, B-2
configuring font for, 7-16 introduction, B-2
determining open windows, 7-16 menu, B-3
tiling, 7-12 refresh mode, B-4
tiling horizontally, 7-13 retrieving data
Close Connection with dialog box, 8-5 current SPC, B-20
closing NetDDE, 3-8 monitoring tag values, B-18
communication ports, 4-11, 4-13, 6-8 selected SPC data, B-21
Direct Connect, 6-13 retrieving data:, B-8
Connection Information Dialog Box, 6-7 starting, B-3
Connection Names dialog box, 4-11 debugging, 8-6, 8-7
connections DECnet
testing, 8-3, 8-5 additional parameters, 8-19
viewing status and statistics, 7-5 Wonderware Logger messages, A-28
conversations Default DDE Security dialog box, 5-6
viewing status and statistics, 7-8 destination node, 4-8
Custom DDE Security Browser dialog box, 5-5, 5-7 dialog boxes
Custom DDE Security Configuration dialog box, 5-8 Add a Network Interface, 3-5
Add Connection Name, 4-12
D Add Route, 4-9
Add Serial Connection Information, 6-8
data authentication, 8-15 Close Connection with, 8-5
DDE, 1-2 Connection Information, 6-7
DDE conversations Connection Names, 4-11
from Microsoft Excel, C-5 Custom DDE Security Browser, 5-5, 5-7
DDE conversations. See also conversations Custom DDE Security Configuration, 5-8
DDE share security DDEView
adding a DDE share, 5-8 Add New Nodes, B-7
connecting to a secured WFW application, 5-13 Array Size, B-13
connecting to a secured Windows NT Assign Connection, B-6
application, 5-11 Choose InTouch Tags, B-8
customized DDE shares, 5-7 Desired SPC Sample, B-21
default DDE share security, 5-4 HISTDATA Configuration, B-15
defining default, 5-5 History Summary, B-16
deleting a DDE share, 5-9 Monitor Configuration, B-18
flushing cached passwords, 5-10 Default DDE Security, 5-6
introduction, 5-2 Enter NetDDE Share Access Password, 5-13
modifying a DDE share, 5-9 Enter Network Access Password, 5-11
permission levels Flush Client DDE Share Password Cache, 5-10
Full Access, 5-3 Font, 7-16
Full Access with Password, else Read Only, Modem Details, 6-5
5-3
I-2 Index
S W
SDDETSR windows. See also child windows
Wonderware Logger messages, A-20 Windows 3.1, 1-4, 3-3, 1-4
security. See DDE share security Windows for Workgroups (WFW), 1-5, 5-13, 1-5
Wonderware Logger messages, A-11 Windows NT, 1-6, 5-11, 1-6
Serial WinSock
Additional Parameters, 8-17 additional parameters, 8-18
Serial Parameters/Define Connection Wonderware Logger messages, A-22
Information, 6-7 Wonderware Logger, 8-7, 8-8, 8-13, A-1
Serial Parameters/Port Configuration, 6-3 messages
Serial Parameters/Port Status, 6-10 DECnet, A-28
Direct Connect Ports, 6-13 NetBIOS, A-13
Wonderware Logger messages, A-16 NetDDE, A-2
Serial Configuration Dialog Box, 6-2, 6-10 SDDETSR, A-20
Serial Parameters security, A-11
Define Connection Information, 6-7 Serial, A-16
Port Configuration, 6-3 WinSock, A-22
Port Status, 6-10 WWCOMTSR, A-18
shares, 5-2 preferences, 4-6
SPC data, B-20 showing, 7-11
starting NetDDE WWCOMTSR
Windows 3.1 environment, 3-3 Wonderware Logger messages, A-18
Windows for Workgroups (WFW) environment, WWINSOCK Configuration Parameters dialog box,
3-3 8-18
statistics
displaying, 7-10
viewing, 7-3
viewing for connections, 7-5
viewing for conversations, 7-8
viewing for DDE routes, 7-9
viewing for hops, 7-7
viewing for network interfaces, 7-4
viewing for routes, 7-6
status
viewing, 7-3
viewing for connections, 7-5
viewing for conversations, 7-8
viewing for DDE routes, 7-9
viewing for hops, 7-7
viewing for network interfaces, 7-4
viewing for routes, 7-6
T
TCP/IP port, 8-11
testing
closing connections, 8-5
enabling debug menu commands, 8-6
introduction, 8-2
opening connections, 8-3
tile, 7-12, 7-13
timeout values, 8-12
U
UNIX, 1-8
V
validation, 8-15
version information, 3-7
VMS, 1-7
I-4 Index