AdsConnection.TryRead Method (Int32, 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 AdsErrorCode TryRead(
int variableHandle,
AdsStream dataStream,
int offset,
int length,
out int readBytes
)
VB
Public Function TryRead (
variableHandle As Integer,
dataStream As AdsStream,
offset As Integer,
length As Integer,
<OutAttribute> ByRef readBytes As Integer
) As AdsErrorCode
Parameters
variableHandle |
Type: System.Int32 |
dataStream |
Type: TwinCAT.Ads.AdsStream |
offset |
Type: System.Int32 |
length |
Type: System.Int32 |
readBytes |
Type: System.Int32. |