Here’s what more than 2,500 business decision-makers around the world say.Download the report
...with the Facility Hero app in hand! Discover how you can optimize your maintenance efforts today.Learn more
Access tailored services, 24/7 self-service and expert help. Anywhere, anytime, any project.Discover now
Don’t miss the latest events, videos, or articles. It’s all in our news bulletin.Sign up now
Schneider Electric Global Website×
Explore our global offerings or select your country from one of our five regions.Global
Découvrez nos offres globales ou sélectionnez votre pays dans l’une de nos cinq régions.
Goals and Symptoms
Blat is a simple program that allows a launching module in ION Enterprise to send email alerts. Blat can be downloaded for free at http://sourceforge.net/project/showfiles.php?group_id=81910. Blat is commonly used to alert on communication losses or event detection.
Facts and Changes
Causes and Fixes
1) Install Blat and register the SMTP server. The Syntax is: Blat -install <server addr> <sender's addr>
2) Create a batch file to run. Here is a sample:
echo This is text in the batch file > "C:\temp\Test.txt
Date /t >> "C:\temp\Test.txt
Time /t >> "C:\temp\Test.txt
echo kW tot= %1 >> "C:\temp\Test.txt
echo kVAR tot= %2 >> "C:\temp\Test.txt
start C:\blat262\full\blat C:\temp\test.txt -s "Email subject line text" -t email@example.com -f firstname.lastname@example.org
This batch file in the example is labeled Test.bat. It creates and emails the content of the file Test.txt.
3) Setup a launching module to execute the batch file.
4) Test the configuration by setting up a pulse in Vista and executing the launching module.
1) Check that the launching module receives and outputs a pulse.
2) Check that the test.bat file creates and writes to test.txt.
3) Check that the email is sent to a user.
4) Too long of a file path to the blat files will prevent blat from working. For example, if test.txt was located in the file C:\Program Files\Schneider Electric\ION Enterprise\blat\test.txt the blat program will not work.
5) If clicking the pulse to execute the launching module does not work, try double clicking on the test.bat file to see if it will execute manually. If this doesn't work there is a problem with the test.bat file or a problem with blat or the way blat was installed.
6) If double clicking the bat file works and the launching module doesn't it is possible that the complete file paths are not in the test.bat file. Blat will work with this configuration however if you do not specify the full paths to everything within the test.bat file the launching module will not work.
(Removed Image URL: /PubResEXPORT.nsf/2b87ee90be777fc085257c28006ee4ef/a2a106ae4ce1ef06c12575aa00108c68/fl_block_5/0.1AD6?OpenElement&FieldElemFormat=gif)Original article# 11585
Date Created: June 30, 2007
Last Revised: May 1, 2009 by MN
Original Author: KA
All content © 1992-2009 Schneider Electric