How to send alarm messages from WonderWare InTouch through INS
The easiest way to send alarm messages from InTouch is by using their WW External Alarm Utility (please read below).
>>> WonderWare technote #000734
All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind.
Created: October 1998
Updated: January 2001
The WW External Alarm utility lets you format and filter Alarm and Event messages generated by InTouch and then send the latest message back to the InTouch application as a Message tagname. This is especially useful in situations where you need to trap the last alarm message, implement custom alarm loggers, and so on. This utility is compatible with InTouch 7.0 and later.
Along with the WW External Alarm utility, we have also included a demonstration InTouch application that shows how to use the utility with a FileWriteMessage() script function call to implement your own custom Alarm/Event logger with no programming required!
A Wwextalm.ini file is also provided for you to define how you want the messages to be formatted. This is similar to configuring an Alarm History, summary or logger object.
Installing the WW External Alarm Utility and InTouch Demo Application
Download the WWExalm.zip file which contains the WW External Alarm utility and an InTouch demonstration application.
Extract the files from Wwexalm.zip, then copy Wwextalm.dll (32-bit) to the InTouch installation directory and Wwextalm.ini file to your Windows directory (example, C:\Winnt).
The InTouch demonstration application is provided in the compressed file, Testapp.zip. Uncompress the file into a separate directory and open the application under WindowViewer or WindowMaker.
M. McCulty/R. MullinsFor technical support questions, send an e-mail to firstname.lastname@example.org.
WonderWare technote #000734 <<<
With this all alarm messages are now copied into this memory tag and are available for use by INS.
The next strep is to configure a trigger (Data change
script) that fires every time a new alarm is copied into this tag.
C:\ins\SendMsg.exe /Time " +StringChar(34) + "
NOW" + StringChar(34) +
" /Type " +StringChar(34) + "
SMST" + StringChar(34)
+ " /Recipient "+StringChar(34) +
">" + StringTrim(StringMid(LastAlarmString,56,12),3) +StringChar(34)
+" /Message "+StringChar(34) +
If you experience troubles with the instruction above, please try to first run the InTouch Demo Application from the link at the top.