DelRead
(VTSDriver Module)
Description: | Is called by a tag to delete an existing read request, as created by an AddRead. |
Returns: | Nothing |
Usage: | Script Only. |
Function Groups: | Memory I/O |
Related to: | AddRead |
Format: | VTSDriver.DelRead(Address, Value, Rate, OriginalAddress) |
Parameters: |
Address |
Required. The address from which to get the data. |
Value |
Required. A pointer to the destination for the read data. |
Rate |
Required. The update rate in seconds. |
OriginalAddress |
Original Address string from I/O tag. |
Comments: | DelRead() can only delete a single item. The module searches ReadList (a linked list of ReadBlocks) for the node whose info vars match those of the item to be deleted. It then looks for the matching rate, then the specific request as identified by Value (the address of the tag's RawValue) and removes it from the list. |
Example:
For an in-context example, refer to Template.SRC, provided in the Examples folder of your VTScada installation.