ReadVals reads the values of multiple tags at once.
Therefore, if you want to read the values of multiple tags,ReadValThis is faster than calling the method multiple times.
Before reading values with the ReadVals method,AddTagThe tag must be registered using the method.
If the call to ReadVals is successful, the return value is set to True. Only when this value is True will Values/Results be valid.
Values stores the acquired tag values, Results stores the quality of the values for each tag (whether communication was successful or not), and when Results(x) is True, Values(x) stores a valid value.
For more information about DataSourceReadValSee Methods.
|