Questions? Search our site or call 1-800-722-6004

Wonderware inTouch: Sending Commands to your Device

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:

WWExecute("Winwedge","Com1","[SENDCODE(27)]") ;

To Toggle the DTR signal which is usually used to hang up on a modem, execute the following InTouch statement:

WWExecute("WinWedge", "Com1", "[TOGGLEDTR]) ;

Once the modem is off the hook, the following InTouch statement can be execute to dial the modem :

WWExecute("WinWedge", "Com1", "[SEND(ATDT 555-1212)]") ;
WWExecute("WinWedge", "Com1", "[SENDCODE(13)]") ;
WWExecute("WinWedge", "Com1", "[SENDCODE(10)]") ;

The above three statements can also be combined into the following single statement:

WWexecute("WinWedge", "Com1", "[SEND(ATDT 555-1212" + StringChar(13) + StringChar(10) + ")]") ; 


Categories: Macro / Code Sample, Other Applications, WinWedge

Last Updated: 2011.07.06

Need more help?

Don't hesitate to call or email us with your questions

Our office is open 9AM - 5PM Monday Through Friday (E.S.T.)

Technical Support: 215-496-0202

Toll-Free: 1 (800) 722-6004
Skype: taltech1 (Voice only)