AdsRead[Datatype]Disconnect
AdsReadBoolDisconnect
AdsReadIntegerDisconnect
AdsReadLongDisconnect
AdsReadSingleDisconnect
AdsReadDoubleDisconnect
AdsReadStringDisconnect
Ends a fixed connection between a Visual Basic variable of type boolean, integer, long, single, double or string and a data item from an ADS device.
object.AdsRead[Datatype]Disconnect(
pData As [Datatype]
) As Long
Parameter
pData
[in] Visual Basic variable into which the data is written from the ADS variable
Return value
See ADS error codes
Comments
If the value of an ADS variable is no longer required, the connection should be closed using the AdsReadBoolDisconnect() method. If only certain specific values are required in a form, the connection should only be created when the form is loaded, and should be released again when the form is closed. See also the AdsRead[Datatype]VarConnect() and AdsRead[Datatype]Connect() method.
Example
-