Forum Home › Forums › Understanding the Software › Events not being fired
Tagged: events
- This topic has 10 replies, 2 voices, and was last updated 6 years, 4 months ago by Mikhail.
-
AuthorPosts
-
July 5, 2018 at 5:40 pm #3967jacklondonParticipant
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?
July 6, 2018 at 2:47 pm #3969MikhailModeratorHi,
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.July 10, 2018 at 10:39 am #3977jacklondonParticipantHi Mikhail,,
1. “All Events” filter is selected.
2. Scada-Server GUI -> Events also checked: The events are simply not there in the DAT!July 10, 2018 at 6:30 pm #3979MikhailModeratorHi,
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?
July 12, 2018 at 6:53 am #3984jacklondonParticipantHi 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).
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?
July 12, 2018 at 11:36 am #3985jacklondonParticipantNope, that’s not the cause, because i have four other alarms also calculated discrete and they are registered as events…
July 12, 2018 at 12:03 pm #3986jacklondonParticipantHmmm, 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 6 years, 4 months ago by jacklondon.
- This reply was modified 6 years, 4 months ago by jacklondon.
July 12, 2018 at 12:58 pm #3989jacklondonParticipantOK, 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!
July 12, 2018 at 3:43 pm #3993MikhailModeratorWow!
Could you show the screenshots before and after?
The above screenshot is too small. I can’t recognize anything.July 12, 2018 at 4:03 pm #3994jacklondonParticipantHi Mikhail,
sure:
Here is how it was before:
And here is after the update:
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
July 13, 2018 at 1:29 pm #3996MikhailModeratorThank you!
-
AuthorPosts
- You must be logged in to reply to this topic.