AdsConnection.TryReadWrite Method (Int32, AdsStream, Int32, Int32, AdsStream, Int32, Int32, Int32.)
Writes data synchronously to an ADS device and then Reads data from this device.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 4.3.0.0
Syntax
C#
public AdsErrorCode TryReadWrite(
int variableHandle,
AdsStream rdDataStream,
int rdOffset,
int rdLength,
AdsStream wrDataStream,
int wrOffset,
int wrLength,
out int readBytes
)
VB
Public Function TryReadWrite (
variableHandle As Integer,
rdDataStream As AdsStream,
rdOffset As Integer,
rdLength As Integer,
wrDataStream As AdsStream,
wrOffset As Integer,
wrLength As Integer,
<OutAttribute> ByRef readBytes As Integer
) As AdsErrorCode
Parameters
variableHandle |
Type: System.Int32 |
rdDataStream |
Type: TwinCAT.Ads.AdsStream |
rdOffset |
Type: System.Int32 |
rdLength |
Type: System.Int32 |
wrDataStream |
Type: TwinCAT.Ads.AdsStream |
wrOffset |
Type: System.Int32 |
wrLength |
Type: System.Int32 |
readBytes |
Type: System.Int32. |