Events not being fired

Forum Home Forums Understanding the Software Events not being fired

Tagged: 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #3967
    jacklondon
    Participant

    Hi,

    i setup already a running system; alarms (received from the plc and read as word values via Modbus) are then interpreted as calculated discretes (via GetBit) correctly. They are bound to Led components, which also signalize the corresponding alarms (l, ll, h, hh) visually and correct.

    But i can’t see them in the events table, even though the checkboxes “Write Event” and “Event on Change” (on the calculated discretes) are checked.

    Any suggestions?

    #3969
    Mikhail
    Moderator

    Hi,

    Try switching the event filter to “All Events”. May be they are not visible.
    Also look for the events in the GUI of SCADA-Server.
    We need to understand if there no events at all or they are hidden.
    Please write here about the result.

    #3977
    jacklondon
    Participant

    Hi Mikhail,,

    1. “All Events” filter is selected.
    2. Scada-Server GUI -> Events also checked: The events are simply not there in the DAT!

    #3979
    Mikhail
    Moderator

    Hi,

    This is a bit strange. On the other hand, I’m sure that the cause exists. Could you provide screenshots of the related input channels?

    #3984
    jacklondon
    Participant

    Hi Mikhail,

    i think, i found the cause of this issue. Since the alarms (received from the plc and read as word values via Modbus) are interpreted as calculated discretes in separate channels (via GetBit), these (calculated) channels do not have any signal numbers assigned from the device template (because there are 5 words to read from the plc which are then being interpreted via GetBit as on/off alarm values).The result of the GetBit operation is then being assigned to the value and the status of the calculated discrete (without a device signal number).

    Events

    As i mentioned earlier, even though “Write Event” and “Event on Change” are selected, these events on the calculated discretes are not being fired. Could this be the reason?

    #3985
    jacklondon
    Participant

    Nope, that’s not the cause, because i have four other alarms also calculated discrete and they are registered as events…

    #3986
    jacklondon
    Participant

    Hmmm, if i create an event manually via Generator for one of those (not firing) alarm channels then i can see it in the list of events…

    • This reply was modified 5 years, 8 months ago by jacklondon.
    • This reply was modified 5 years, 8 months ago by jacklondon.
    #3989
    jacklondon
    Participant

    OK, got it now:

    i was returning only 0/1 as channel Stat, so the event types Undefined and Defined were being assigned the whole time. I updated the formula for the stat-part, so that it returns corresponding event types (alarm) and now it works!

    #3993
    Mikhail
    Moderator

    Wow!
    Could you show the screenshots before and after?
    The above screenshot is too small. I can’t recognize anything.

    #3994
    jacklondon
    Participant

    Hi Mikhail,

    sure:

    Here is how it was before:

    eventbefore

    And here is after the update:

    eventsafter

    Instead of just determining the channel status only via the standard expression, i.e. “…;GetBit(Val(CnlNum),x-th bit)” (which of course returns only and always 0 or 1 as stat, which also describes as event type ‘undefined’ and ‘defined’ (as in the event types table defined)), i enhanced the expression for the stat part of the channel as “…;GetBit(Val(CnlNum),x-th bit) == 1 ? 11:13” (so -> alarm set!? then return 11 as LL alarm from the event types, else 13 normal stat also from the event types)

    Regards

    #3996
    Mikhail
    Moderator

    Thank you!

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.