A.2.7 Dataset Trigger Variables
A dataset trigger variable specifies or signals, when a set of variables in the OPC-UA server is valid and consistent:
For variables which are written by the OPC-UA server (e.g. measured or state values of a device), the OPC-UA server shall increment the dataset trigger variable, when all the corresponding variables have valid values.
For variables which are written by the OPC-UA client (e.g. setpoint values for the device), the OPC-UA client shall increment the dataset trigger variable, when all the corresponding variables have valid values.
Note: A dataset trigger variable is only necessary for sets of variables which must be consistent from a process perspective. For single "independent" variables there's no need for a dataset trigger variable.
Dataset Trigger variables shall fulfill the following mandatory requirements:
Dataset Trigger variables shall be implemented as UInt16 variable, which are incremented at the desired trigger event.
Note: If the dataset trigger variable reaches the maximum value range of an UInt16 it will be incremented to the lowest value it can achieve, that means 0. Any reader interested in the corresponding variable set should therefore observe the change of this dataset trigger variable, so the value of the dataset trigger variable itself has no meaning.It shall be ensured, that all variables which correspond to a dataset trigger variable are valid at least for a duration of 1 seconds after the dataset trigger variable has been incremented.
Recommendations for implementation:
It is strongly recommended, that a client fetches the data set from an OPC-UA server as soon as possible after the corresponding dataset trigger variable has been incremented.
It is strongly recommended, that a server refreshes all the variables of a data set as late as possible, in best case immediately before the server increments the corresponding dataset trigger variable.