Tag Functions
- Last UpdatedJul 18, 2023
- 2 minute read
The Tag Functions allow you to read the values of variables in I/O devices such as PLCs, and to write data into these I/O device variables. These functions also allow you to control I/O devices and to display information about I/O devices.
Following are functions relating to tags:
|
Adds a callback function to a tag subscription. |
|
|
Reads an attribute value of a tag subscription. |
|
|
Reads the specified text information about a subscribed tag. |
|
|
Reads quality of a subscribed tag. |
|
|
Reads a value, quality and timestamps of a subscribed tag. |
|
|
Reads the specified timestamp of a subscribed tag. |
|
|
Reads a value of a subscribed tag. |
|
|
Removes a callback function from a tag subscription. |
|
|
Terminates an active data browse session and cleans up all resources associated with the session. |
|
|
Places the data browse cursor at the first record. |
|
|
Retrieves the value of the specified field from the record the data browse cursor is currently referencing. |
|
|
Moves the data browse cursor forward one record. |
|
|
Gets the number of records for a given browsing session. |
|
|
Initiates a new browse session and returns a handle to the new session that can be used in subsequent data browse function calls. |
|
|
Moves the data browse cursor back one record. |
|
|
Displays a dialog which allows you to select any configured tag to read or change (write) its value. |
|
|
Displays a dialog that allows you to select a variable tag and perform some basic read/write operations. |
|
|
Returns a handle to the format of the data used by the TagEventQueue(). |
|
|
Opens the tag update event queue. |
|
|
Gets a property for a variable tag from the datasource. |
|
|
Gets the value of a tag at a specified scale from the datasource. |
|
|
Gets the value, quality and timestamp of a tag based on the tag subscription. |
|
|
Gets information about a variable tag. |
|
|
Gets information about a variable tag. |
|
|
Increments a tag by a percentage amount. |
|
|
Reloads the variable tag database so when TagInfo is called it picks up online changes to the tag database. |
|
|
Reads a variable from an I/O Device. |
|
|
Reads the value, quality and timestamp of a particular tag element. |
|
|
Increments a reference count on a tag to keep it resolved. |
|
|
Gets the value of a tag at a specified scale. |
|
|
Sets a quality Override element for a specified tag to Bad Non Specific. |
|
|
Sets a quality Override element for a specified tag to Good Non Specific. |
|
|
Sets a quality Override element for a specified tag to Uncertain Non Specific. |
|
|
Sets a quality Override element for a specified tag. |
|
|
Subscribes a tag for periodic monitoring and event handling. |
|
|
Unsubscribes a tag for periodic monitoring and event handling. |
|
|
Unresolves a reference count implemented on a tag by TagResolve(). |
|
|
Writes to an I/O Device variable. |
|
|
Opens the tag write event queue. |
|
|
Writes an array of integers to a tag. |
|
|
Writes an array of reals to a tag. |
See Also
Related Links
- SubscriptionAddCallback
- SubscriptionGetAttribute
- SubscriptionGetInfo
- SubscriptionGetQuality
- SubscriptionGetTag
- SubscriptionGetTimestamp
- SubscriptionGetValue
- SubscriptionRemoveCallback
- TagBrowseClose
- TagBrowseFirst
- TagBrowseGetField
- TagBrowseNext
- TagBrowseNumRecords
- TagBrowseOpen
- TagBrowsePrev
- TagDebug
- TagDebugForm
- TagEventFormat
- TagEventQueue
- TagGetProperty
- TagGetScale
- TagGetValue
- TagInfo
- TagInfoEx
- TagRamp
- TagRDBReload
- TagRead
- TagReadEx
- TagResolve
- TagScaleStr
- TagSetOverrideBad
- TagSetOverrideGood
- TagSetOverrideQuality
- TagSetOverrideUncertain
- TagSubscribe
- TagUnresolve
- TagUnsubscribe
- TagWrite
- TagWriteEventQue
- TagWriteIntArray
- TagWriteRealArray