OPCUA Trigger Node Read multiple OPCUA Tags

I am trying to read the below configured OPC UA tags in the work flow using the OPCUA trigger node. When I configure the trigger node as Individual Items, I can get data changes via workflow. If I use the agent conf file, it does not react to any changes.

Also, how multiple tags be added to this trigger configuration?

[[triggers]]
name = ‘opcuaTrig1’
type = ‘opcua’
uri = ‘opc.tcp://10.33.4.83:49320’
samplingInterval = ‘5’
eventFilter = [‘Message’, ‘Value’]

[[triggers.monitoredItems]]
nameSpace = ‘2’
identifier = ‘s=Line1.Machine2.Global_IOT.U_iot_RunData.Speed’

Hey @Sasikumar_Rajendran,

The first place I recommend looking is the GEA’s log file. If the trigger is failing due to some error, the error should be logged. You can read the logs using the following command on the gateway:

docker logs CONTAINER_ID

Trigger errors will usually be logged shortly after the GEA launches.

Information on that command can be found here:

Also, how multiple tags be added to this trigger configuration?

You can add another [[triggers.monitoredItems]] section like so:

[[triggers]]
name = ‘opcuaTrig1’
type = ‘opcua’
uri = ‘opc.tcp://10.33.4.83:49320’
samplingInterval = ‘5’
eventFilter = [‘Message’, ‘Value’]

[[triggers.monitoredItems]]
nameSpace = ‘2’
identifier = ‘s=Line1.Machine2.Global_IOT.U_iot_RunData.Speed’

[[triggers.monitoredItems]]
nameSpace = ‘2’
identifier = ‘s=My.Other.Identifier’

For instance, if I need to get data for 500 tags from OPC, does it require 500 lines to be added to the config file ? Is there a calling function available where the set of 500 tags can be maintained and called to check its status ?

losant_log.zip (1.6 KB)
PFA of logfile

For instance, if I need to get data for 500 tags from OPC, does it require 500 lines to be added to the config file ?

Yes, you would need to add a [[triggers.monitoredItems]] entry for each identifier you want to monitor.

Is there a calling function available where the set of 500 tags can be maintained and called to check its status ?

You can use the Agent Config: Get Node to view the GEA’s current configuration. Any values that are defined in the TOML file (i.e. not as command line flags or environment variables) can also be changed using the Agent Config: Set Node. Invoking the node will cause the GEA process to restart with the new config applied.