Other DDE macros and code examples
Wonderware InTouch: sending commands to your device
Send commands from Wonderware InTouch to your serial device with WinWedge using its more advanced DDE mode.
InTouch 5.0 (and above) introduced the WWExecute function. This function can be used to automate other Microsoft Windows programs from Wonderware InTouch. WinWedge can be used to send data out the PC serial port directly from InTouch.
For example, to send the ASCII Char 27 out of port COM1, use the following InTouch script:
To Toggle the DTR signal which is usually used to hang up on a modem, execute the following InTouch statement:
Once the modem is off the hook, the following InTouch statement can be execute to dial the modem :
The above three statements can also be combined into the following single statement:
Last modified on November 3, 2026