AdsConnection.TryWrite Method (UInt32, UInt32, AdsStream, Int32, Int32)
Writes data synchronously to an ADS device.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 4.3.0.0
Syntax
C#
public AdsErrorCode TryWrite(
uint indexGroup,
uint indexOffset,
AdsStream dataStream,
int offset,
int length
)
VB
Public Function TryWrite (
indexGroup As UInteger,
indexOffset As UInteger,
dataStream As AdsStream,
offset As Integer,
length As Integer
) As AdsErrorCode
Parameters
indexGroup |
Type: System.UInt32 |
indexOffset |
Type: System.UInt32 |
dataStream |
Type: TwinCAT.Ads.AdsStream |
offset |
Type: System.Int32 |
length |
Type: System.Int32 |
Exceptions
Exception |
Condition |
---|---|