GetTagValue
GetTagValue(TagId As String/Integer, Value As String/Double/Boolean/Integer) As Integer
Gets in <Value> the value of the variable identified by <TagId>. <TagId> can be the numeric object id of the tag or its alphanumeric identifier, according with the parameter type (Integer or String).
The function returns an error code (0 if no error, 6 if invalid tag Id).