Forum Home › Forums › Understanding the Software › Alarm via email
- This topic has 10 replies, 3 voices, and was last updated 1 month, 2 weeks ago by
BinnyGen.
-
AuthorPosts
-
July 30, 2016 at 11:38 am #1491
MohanadOdema
ParticipantHello,
I want to send an email to myself whenever an alarm for a certain channel goes off. However, I’m uncertain of what I’m supposed to do. I know I should create a new device for the emailing but im not entirely sure what I’am supposed to fill in the ‘Address’ and ‘call number’ fields. I also am clueless of what my next step should be and whether I need a specific software for this kind of action or not.
Help?
July 30, 2016 at 2:49 pm #1492
MikhailModeratorHello,
You can add this XML into ScadaCommSvcConfig.xml:
<CommLine active="true" bind="false" number="12" name="Email"> <CommChannel type="" /> <LineParams> <Param name="ReqTriesCnt" value="3" descr="Device request retries count on error" /> <Param name="CycleDelay" value="0" descr="Delay after request cycle, ms" /> <Param name="CmdEnabled" value="true" descr="Commands enabled" /> <Param name="DetailedLog" value="true" descr="Write detailed information to the log" /> </LineParams> <CustomParams /> <ReqSequence> <KP active="true" bind="true" number="201" name="Email sender" dll="KpEmail.dll" address="0" callNum="" timeout="10000" delay="200" time="00:00:00" period="00:00:00" cmdLine="" /> </ReqSequence> </CommLine>It adds a communication line with device 201 that sends SMS.
July 30, 2016 at 2:51 pm #1493
MikhailModeratorCheck that commands are send from Communicator UI.
Commands:
1 (binary) – send the notification.Command text examples:
group_name;subject;message
contact_name;subject;message
email;subject;messageJuly 30, 2016 at 2:53 pm #1494
MikhailModeratorIf emails are sent successfully, you should use Automatic Control Module to send commands automatically according to your conditions.
August 2, 2016 at 7:05 pm #1503MohanadOdema
ParticipantIt is not sending emails from the communicator UI. I tried adding the same credentials in the Scada Admin and it is not working still.
Here are some screenshots
https://www.dropbox.com/s/x9tfllbbppozys5/communicator2.png?dl=0
https://www.dropbox.com/s/l00gyb2puj5c39p/communicator3.png?dl=0
https://www.dropbox.com/s/c3uz8gz0gczym61/communicator.png?dl=0August 3, 2016 at 12:09 pm #1504
MikhailModeratorDid you enter your valid email account in the device 201 properies in Communicator?
If not, just double click the device 201 to open them.August 3, 2016 at 12:46 pm #1505MohanadOdema
ParticipantYeah that was it, it’s working now thanks.
August 5, 2016 at 6:19 pm #1514MohanadOdema
ParticipantThe module can be tested to send automatic commands during the 10 minute trial period, can’t it?
I’m trying to send a simple command that I configured before but it doesn’t seem to be working. Is further configuration needed on the module properties ?
August 6, 2016 at 11:53 am #1515
MikhailModerator10 min after start Server service. What is in the module log?
August 6, 2016 at 4:34 pm #1516MohanadOdema
ParticipantNevermind I got it working now. thanks a lot.
October 10, 2025 at 10:34 am #17140BinnyGen
ParticipantGlad you got the email sending sorted out! That KpEmail.dll setup and getting the credentials right in the Device properties is always the tricky part.
For the final step—triggering it automatically—the key thing in the Automatic Control Module is to make sure your Action (the send email command) has a Condition set to check the status or value of the channel you care about.
For example-
1. Condition: Channel.Val > 50
2. Action: Send Command 1 (Binary) with text your.email@test.com;Alarm;Channel is High!
It sounds like you got it working already, but for anyone else looking, that’s usually where the final hang-up happens!-
This reply was modified 1 month, 2 weeks ago by
Mikhail.
-
This reply was modified 1 month, 2 weeks ago by
-
AuthorPosts
- You must be logged in to reply to this topic.