AdsConnection.Read Method (UInt32, UInt32, AdsStream, Int32, Int32, Int32)
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(
uint indexGroup,
uint indexOffset,
AdsStream dataStream,
int offset,
int length,
int timeout
)
VB
Public Function Read (
indexGroup As UInteger,
indexOffset As UInteger,
dataStream As AdsStream,
offset As Integer,
length As Integer,
timeout As Integer
) As Integer
Parameters
indexGroup |
Type: System.UInt32 |
indexOffset |
Type: System.UInt32 |
dataStream |
Type: TwinCAT.Ads.AdsStream |
offset |
Type: System.Int32 |
length |
Type: System.Int32 |
timeout |
Type: System.Int32 |
Return Value
Type: Int32
Number of successfully returned data bytes.