TcAdsClient.TryReadWrite Method (UInt32, UInt32, .Byte., Int32, Int32, .Byte., 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(
uint indexGroup,
uint indexOffset,
byte[] rdDataStream,
int rdOffset,
int rdLength,
byte[] wrDataStream,
int wrOffset,
int wrLength,
out int readBytes
)
VB
Public Function TryReadWrite (
indexGroup As UInteger,
indexOffset As UInteger,
rdDataStream As Byte(),
rdOffset As Integer,
rdLength As Integer,
wrDataStream As Byte(),
wrOffset As Integer,
wrLength As Integer,
<OutAttribute> ByRef readBytes As Integer
) As AdsErrorCode
Parameters
|
indexGroup |
Type: System.UInt32 |
|
indexOffset |
Type: System.UInt32 |
|
rdDataStream |
Type: .System.Byte. |
|
rdOffset |
Type: System.Int32 |
|
rdLength |
Type: System.Int32 |
|
wrDataStream |
Type: .System.Byte. |
|
wrOffset |
Type: System.Int32 |
|
wrLength |
Type: System.Int32 |
|
readBytes |
Type: System.Int32. |