AdsConnection.ReadWrite 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 int ReadWrite(
uint indexGroup,
uint indexOffset,
byte[] readBuffer,
int rdOffset,
int rdLength,
byte[] writeBuffer,
int wrOffset,
int wrLength,
int timeout
)
VB
Public Function ReadWrite (
indexGroup As UInteger,
indexOffset As UInteger,
readBuffer As Byte(),
rdOffset As Integer,
rdLength As Integer,
writeBuffer As Byte(),
wrOffset As Integer,
wrLength As Integer,
timeout As Integer
) As Integer
Parameters
indexGroup |
Type: System.UInt32 |
indexOffset |
Type: System.UInt32 |
readBuffer |
Type: .System.Byte. |
rdOffset |
Type: System.Int32 |
rdLength |
Type: System.Int32 |
writeBuffer |
Type: .System.Byte. |
wrOffset |
Type: System.Int32 |
wrLength |
Type: System.Int32 |
timeout |
Type: System.Int32 |
Return Value
Type: Int32
Number of successfully returned data bytes.