Creating an expression tag which calls a gateway message handler?

Is it possible to create an expression tag that can call a gateway message handler?

I have a gateway message handler that writes a command to an IEC61850 tag to an IED. Currently, I am using a button in Vision with system.util.sendRequest to call the gateway message handler.

So, is there a way for an expression tag to call out gateway message handler? I was thinking the runScript would have the flexibility to run scripts/functions. Let me know if that is possible or if there are other possible methods. I am asking this because i need to be able to convert the ‘write’ control command into a tag so I could integrate this tag to another SCADA platform via OPCUA. Because unfortunately the control IEC attributes are read-only when converted to OPC items.

You would want to use the value change to drive a gateway tag change script and do your scripting in there. NEVER use the runScript expression to do anything more than doing a calculation etc… It isn’t there to do heavy tasks like reading/writing to tags, database etc… That is what the gateway tag change scripts are for.

7 Likes

Thanks for the recommendation. I managed to create a writeable memory tag which I then included in the tag path of the gateway tag change script. The tag change script calls out my gateway message handler and generates the results based on the conditional values from the memory tag.

1 Like