Black Box GEH-6510 manual Communications Client to Server

Page 58

Communications – Client to Server

This section explains the most common error situations that can occur when attempting to establish DDE conversations between client applications and the PMCS DDE Server.

When a client requires the status of a DDE item, it opens a link with the PMCS DDE Server and requests the data. The DDE Server collects the data from the device and returns it to the client application; it also begins monitoring the data and advises the client whenever the data item changes.

The DDE Server automatically handles all of the messages to and from the device. The client application simply tells the DDE Server what register, coil number, or I/O point to read or write. The DDE Server then automatically updates the client upon any change of that data value.

Always start the DDE Server before starting any client software. If a client attempts to establish a link with a Server that is not running, an error message will result.

When an error message is displayed, note the information shown in the error message. You can often determine the source of the error message from the message itself – usually an application that is not running or a topic that is not properly configured.

Below are several situations that will cause a DDE conversation error message to appear:

1.The DDE Server application is not running. You can verify this by opening the Windows Task List (press Shift+Ctrl+Esc keys) and checking the list of currently running applications for the Server.

2.The Server's program name is misspelled in the DDE Access Name definition. The Server is running, but its name is misspelled in one or more DDE Access Name definitions. The name entered in the DDE Access Name definition must be the DDE Server's actual program name (less the .exe extension) as seen in the Windows File Manager. If the name is misspelled, the Server will not be found.

3.The topic is not defined in the Server or it is misspelled. The Server may be functioning properly, but if a client requests data from a topic that doesn’t exist, an error is generated.

4.The mnemonic or register address is not defined in the Server or it is misspelled. The Server may be functioning properly, but if a client requests data from a mnemonic or register address that doesn’t exist, an error is generated.

Let’s assume that the Server’s name is spelled correctly in the client’s DDE request and that the Server is running. The client is now looking for a topic defined in the Server; for example, Device1. To check the topic name, close the client (the Server cannot be configured if the client is running) and open the Server’s program window. Invoke the Configure:Device Info... command. Is there a topic defined as Device1 listed in the dialog box? Is it spelled exactly (including spaces, etc.) as it is in the DDE Access Name definition?

NOTE: Make sure there are no blank spaces after the topic name in both the Server or in the DDE Access Name definition in the client.

DDE Server User’s Guide

Chapter Five - Troubleshooting 55

Image 58
Contents Power Leader TM DMMS425 Back to Main Menu Contents Glossary of Terms This page left blank intentionally Chapter One Introduction WelcomeAbout DDE About NetDDEEI User’s only InstallationAbout the Pmcs DDE Server Server with OPC InterfacesChapter One Introduction DDE Server User’s Guide Running Pmcs DDE Server as an NT Service Chapter Two Overview About PmcsChapter Two Overview DDE Server User’s Guide Devices Sample register mapClient Applications NetworksPmcs DDE Server What’s NextChapter Three Getting Started First-Time ConfigurationDevice Configuration IntroductionLaunching the Program What’s on the DDE Server Screen?Menu Bar Menu ConventionsConfiguring Communication ports Ethernet Users Only EPM 7700 Xpress Card or Xplex 1620 Max Server UsersChapter Three Getting Started DDE Server User’s Guide Modbus TCP/IP Server Users Chapter Three Getting Started DDE Server User’s Guide Configuring the Devices Device Name Topic Starting the Server Com PortDisplaying I/O Traffic DDE Server User’s Guide Chapter Three Getting Started NetDDE Setup Overview Automatic NetDDE Setup VNDDE.EXEUtility VNDDE.EXE Error Messages Tips on using VNDDE.EXEResults VNDDE.EXE FAQ’s Manual NetDDE SetupTrouble-Shooting VNDDE.EXE Additional HelpChapter Three Getting Started DDE Server User’s Guide DDE Server User’s Guide Chapter Three Getting Started Chapter Three Getting Started DDE Server User’s Guide This page left blank intentionally Chapter Four Menus and Toolbars System MenuRun Server MenuStop Print I/O Traffic View MenuSuspend Protocol/Resume Protocol ExitDisplay Traffic DisplayColor Background Add DeviceDelete Clear DisplayRegister groups for display Save Display To File Configure MenuConfiguration Port StatisticsConfigure Ports Modbus or EIDDE Server User’s Guide Chapter Four Menus and Toolbars Ports Ethernet only Ethernet Gateway UsersEPM 7700 Xpress Card or Xplex 1620 Max Server Users Chapter Four Menus and Toolbars DDE Server User’s Guide Modbus TCP/IP Server Users Chapter Four Menus and Toolbars DDE Server User’s Guide Add Device InfoChapter Four Menus and Toolbars DDE Server User’s Guide Activate checkbox ModifyDelete Device Type InformationGeneric Comm Interface DDE Server User’s Guide Chapter Four Menus and Toolbars Reports Menu Active LinksHelp Menu ToolbarTrouble-Shooting the Pmcs DDE Server Chapter Five TroubleshootingWWLogger Communications Client to Server Communications Server to Device NetDDE Trouble-Shooting Trouble-Shooting Flowchart Trouble-Shooting Chart Error MessagesCServerAppOnDeleteDev Invalid toolkit index Device device name Active Failed to delete itemlogical device handle, Protocol Handle No Write to Individual Discrete Bits Device type device type name is not a valid type for topic This page left blank intentionally Chapter Six Advanced Options Device Type Information Adding Generic DevicesAdd Default Type Function Codes Register Map Adding a Register Group Type Code Type of Register Supported Function Codes UseDDE Server User’s Guide Chapter Six Advanced Options Invalid Register Blocks Deleting a Register Group Modifying an Invalid Register BlockDeleting an Invalid Register Block Modifying a Register GroupMnemonics Importing or Exporting a Register GroupDeleting a Mnemonic Adding a MnemonicModifying a Mnemonic Importing or Exporting MnemonicsServer Operational Parameters Protocol Timer TickOptimizing Server Performance Valid Data Time-outCommunication Time-out Pmcs DDE Server .ini FileSlow Poll Count SleepTime For Exception Maximum Query RetriesDead Device Scan Interval TimeDownLoad PeriodExitDisable UIHideAppendix a Register Addressing Conventions Data-Addressing ConventionsStandard Data Organization Data TypesExamples Special Naming ConventionsLong Words and Special Numbers Individual Bits In Registers XnnnnDL-BRegister Array Format This page left blank intentionally Glossary of Terms Terms You Should KnowGlossary of Terms DDE Server User’s Guide Index GE Industrial Systems