Alarm via email

Forum Home Forums Understanding the Software Alarm via email

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1491
    MohanadOdema
    Participant

    Hello,

    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?

    #1492
    Mikhail
    Moderator

    Hello,

    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.

    #1493
    Mikhail
    Moderator

    Check 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;message

    #1494
    Mikhail
    Moderator

    If emails are sent successfully, you should use Automatic Control Module to send commands automatically according to your conditions.

    #1503
    MohanadOdema
    Participant

    It 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=0

    #1504
    Mikhail
    Moderator

    Did you enter your valid email account in the device 201 properies in Communicator?
    If not, just double click the device 201 to open them.

    #1505
    MohanadOdema
    Participant

    Yeah that was it, it’s working now thanks.

    #1514
    MohanadOdema
    Participant

    The 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 ?

    https://www.dropbox.com/s/ovyshvznfm6029u/enquiry.png?dl=0

    #1515
    Mikhail
    Moderator

    10 min after start Server service. What is in the module log?

    #1516
    MohanadOdema
    Participant

    Nevermind I got it working now. thanks a lot.

    #17140
    BinnyGen
    Participant

    Glad 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.
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.