DDE Client communication protocol

Supported device types and versions
Communication line configuration
Communication station configuration
I/O tag configuration
Literature
Changes and modifications
Document revisions

Supported device types and versions


Communication supports the DDE Client access using the XlTable data format (the format used by e.g. MS Excel, Wonderware Intouch I/O Servers) or CF_TEXT data format.

Communication line configuration


Communication with the DDE Server requires a separate line. Accessing several servers from one communication line is not possible.

Note: The user you want to impersonate must have Log on as a batch Job system privileges.

Communication station configuration



Station protocol parameters

Table 1

KeywordFull nameMeaningUnitDefault value
REQ
RequestIf the value is Yes, after each writing a value, a request for the reading of the value will be sent.YES/NONO
TYPE
Server TypeType of the DDE server for communication:


  • WARM - supporting XTYP_ADVSTART transactions,
  • COLD - periodic reading the values using the XTYP_REQUEST transaction.
COLD/WARMWARM
FORMAT
Data FormatThe Data clipboard format to be used for data transmission.XLTABLE/TEXTXLTABLE
TIMEOUT
Transaction TimeoutA timeout of the function DdeClientTransaction, which determines the maximum amount of time (in milliseconds), that the DDE client will wait for a response from the DDE server in the synchronous transaction.ms1000

I/O tag configuration


Possible types: Ai, Ao, Ci, Co, Di, Do, TxtI, TxtO.

The address is the DDE Cell name (a string containing up to 50 characters).

Note: If the initialization of the connection to the server, topic, or cell has failed, the attempt to connect is repeated in the interval of 5 seconds. The same is true also when the connection is lost (server shutdown etc.).


Connection to the server via NetDDE

If the DDE server is installed on other PC within a local computer network, you can establish a connection via the NetDDE interface. For such a connection the following rules apply:


Example of communication testing

It is possible using the MS Excel program. Run the MS Excel as the DDE server using the switch /e e.g. from the command prompt - excel.exe /e.

Complete access to a DDE cell is in the following format:

Excel|Sheet1!”R1C1”

Where:

This naming is valid only for English versions of MS Excel.

Literature


-

Changes and modifications


Document revisions


Communication protocols