DDE Server Quick Guide, v3.1
DDE Server Quick Guide, v3.1
Quick Guide
This guide explains how to use the Triconex DDE Server program for
communication between Triconex controllers (Tridents or Tricons) and DDE
clients in an Ethernet network.
Topics include:
“Overview” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
“Specifications for NT Workstation” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
“Installing Triconex DDE Server” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
“Uninstalling Triconex DDE Server” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
“Configuring the DDE Server Application” . . . . . . . . . . . . . . . . . . . . . . . . . 3
“Configuring Triconex Host Information” . . . . . . . . . . . . . . . . . . . . . . . . . . 4
“Configuring Server Parameters for 802.2 Protocol (Tricon Only)” . . . . . . 7
“Testing a TCP/IP Connection” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
“Configuration Requirements for DDE Network Redundancy” . . . . . . . . . . 8
“Requesting Data with a DDE Client Application” . . . . . . . . . . . . . . . . . . . 9
“Requesting Network Status” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
“Monitoring Responses from the Controller” . . . . . . . . . . . . . . . . . . . . . . . 10
“Menu Commands” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Overview
Triconex DDE Server is a Windows NT application that enables DDE-compliant
clients to request data and, if allowed, to change data in a Triconex control
program. A client can request data about input and output variables, memory
variables, and system attributes. Triconex DDE Server is based on a client/server
model in which a client requests information from a server and a server sends
information to a client.
Client applications use DDE (Dynamic Data Exchange) protocol to communicate
with a DDE Server. Any Windows application that supports DDE protocol—such
as Microsoft Excel—can use Triconex DDE Server.
Triconex DDE Server communicates with one or more Triconex controllers
through TSAA (Triconex System Access Application) protocol. To return data to
clients, the DDE Server uses DDE protocol.
The DDE Server workstation must be connected to an Ethernet port on a Triconex
controller. For Trident, the NET1 or NET2 port on the Communication Module
(CM) must be used. For Tricon, the NET2 port on the Network Communication
Module (NCM) or Advanced Communication Module (ACM) must be used.
The following conceptual diagram depicts multiple clients communicating with
multiple Triconex controllers through a Triconex DDE Server.
This guide explains how to install, configure, test and use Triconex DDE Server.
You can also modify or delete the configuration of a Triconex controller. Before
modifying a configuration, make sure it is not being used by a DDE client. If you
delete a configuration, the associated controller can no longer be accessed by a
DDE client.
To allow a DDE client to change the values of Triconex variables, you must enable
write access by setting controls in your TriStation application. For more
information, see the TriStation 1131 Developer’s Guide.
! CAUTION
The default button clears all previous configuration settings for all of the hosts.
Host Name
The Host Name property specifies the user-defined name for a controller which
must be unique for each controller. (This name is used by the DDE client
application to request data from the controller.)
Node Number
The Node Number property specifies the Triconex node number which must be
unique for each controller.
For Trident, the node number must match the address plug on the MP Baseplate
and the TriNode address specified in the TriStation project. Default values are from
1 to 32.
For Tricon, the node number must match the physical switch settings on the NCM
or ACM and the TriNode address specified in the TriStation project. Default values
are 1 to 16.
Redundant
The Redundant property identifies whether there are redundant paths to the
controller. You should select this property if the physical configuration is
redundant.
This means that two network adapter cards must be connected to network ports on
two communication modules:
• For Trident, the NET1 or NET2 port on two CMs
• For Tricon, the NET2 port on two ACMs or two NCMs
For more information, see “Configuration Requirements for DDE Network
Redundancy” on page 8.
The default is not redundant.
Time Sync
The Time Sync property identifies whether a Triconex node (host) is to be
synchronized with the clock on the DDE Server PC. If there is more than one
Triconex controller in a network, you should select the master node for
synchronization with the DDE Server PC clock. The master node can then
synchronize the time of the other Triconex controllers.
For time-critical applications, Triconex does not recommend selecting the Time
Sync property because PCs are not generally a reliable source for time
synchronization.
The default is not synchronized.
Poll Time
The Poll Time property identifies how often the Triconex controller refreshes the
data stored as aliases. The polling interval must be greater than the scan time of the
controller. For more information on aliases, see the TriStation 1131 Developer’s
Guide.
IP Address
The IP (Internet Protocol) address property identifies the unique 32-bit network
address of the primary communication module in the Triconex controller.
For a Tricon controller, you must specify this property if the Use 802.2 property is
not selected.
For a Tricon controller, you cannot specify a redundant IP address if the Use 802.2
parameter is selected.
Device Type
The Device Type property identifies whether the host is a Tricon or a Trident
controller.
LLC SAP
The LLC SAP (Service Access Point) parameter specifies the address for the DDE
Server on the PC. This number must be a unique address.
The default is 4.
For Trident, 802.2 protocol is not available.
4 In TriStation, set the IP addresses for the primary and redundant communication
modules.
A sample IP address is 206.32.64.y where y is the node number. The node
number is set as follows:
• For Trident, it is set with the address plug on the MP Baseplate.
• For Tricon, it is set with physical switches on the NCM or ACM.
5 From the DDE server application, configure each Triconex node with a host
name. You must use the same IP address for the node configuration in DDE
Server that is used in Step 5 above. For instructions, see “Configuring Triconex
Host Information” on page 4.
Save the address you have specified in the DDE client application and start the
DDE Server application. Both the client and server applications must be running
concurrently to request or exchange data. The DDE Server sends the request to the
Triconex controller, then returns the data to the DDE client application.
As an example, the following address could be entered in a blank cell of a
Microsoft Excel worksheet to request the value for alias 40001 in TRINODE02:
=TR1DDE|TRINODE02!‘40001’
Although you can run only one DDE Server application at a time, you can run as
many DDE client applications as allowed by the virtual memory available on your
PC.
For details on syntax for the DDE address, see the user’s manual for the client
application you are using.
Menu Commands
The DDE Server includes the following menus and commands.
File Menu
Command Description
Configure... Opens the Configure Host Information dialog box and allows
you to configure up to 32 Trident or 16 Tricon controllers for
use with the DDE Server application.
Exit Closes the DDE Server application.
View Menu
Command Description
Always on Top Keeps the DDE Server main window on top of other
windows.
Dump Menu
Command Description
Stats Displays statistics for all Triconex controllers.
Help Menu
Command Description
Triconex DDE Server Opens the Help documentation.
Help
About Triconex DDE Displays the current version number of the DDE Server
Server application and registered owner information.