I’m currently testing mappAlarmX in combination with mappConnect.
According to:
and
I should be able to subscribe to OPC UA events to gather the alarm information.
While reading the documentation of mappConnect and trying out different things, it seems to me that mappConnect doesn’t allow subscriptions to events. Normal variable subscriptions are working fine.
Am I correct that this is a limitation of mappConnect, or am I doing something wrong?
to the best of my knowledge you’re correct that this is a current limitation of mappConnect. While mappConnect supports OPC UA variable subscriptions (monitored items for data variables), it does not support OPC UA event subscriptions (Alarms & Conditions). The UA_EventItemAdd functionality exists in the AsOpcUac library for direct OPC UA client programming, but is not exposed through mappConnect.
Maybe the new implementation [since mappServices 6.6] via OPC UA can help you. From what I understand, this is without mappConnect but allows you to subscribe to events of mpAlarmX.
There is a workaround to this by using the mappConnect standard OPC UA functionality and the mappAlarmX UI function blocks in the application. Then enabling the UIConnect variables on the OPC UA server and registering these as standard OPC UA subscriptions.
That was what I was trying. I wanted to use the new OPC UA endpoint in AlarmX 6.6, but through mappConnect. Which doesn’t work since mappConnect does not support OPC UA Event Subscriptions.
Yeah, I saw that too. And I will probably use that as a fallback now. The event subscription solution would have been way nicer instead of having a ton of huge arrays exposed in OPC UA.