AdsConnection.Read Method (Int32, AdsStream)
Reads data synchronously from an ADS device and writes it to the given stream.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 4.3.0.0
Syntax
C#
public int Read(
int variableHandle,
AdsStream dataStream
)
VB
Public Function Read (
variableHandle As Integer,
dataStream As AdsStream
) As Integer
Parameters
variableHandle |
Type: System.Int32 |
dataStream |
Type: TwinCAT.Ads.AdsStream |
Return Value
Type: Int32
Number of successfully returned data bytes.