AdsSymbolicServerOnReadWriteIgIoAsync Method
Handler function for handling of pure IG/IO calls.
Namespace: TwinCAT.Ads.Server
Assembly: TwinCAT.Ads.SymbolicServer (in
TwinCAT.Ads.SymbolicServer.dll) Version:
7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
protected virtual Task<ResultReadWriteBytes> OnReadWriteIgIoAsync(
AmsAddress sender,
uint invokeId,
uint indexGroup,
uint indexOffset,
int readLength,
ReadOnlyMemory<byte> writeData,
CancellationToken cancel
)Parameters
|
sender AmsAddress |
The sender address of the request. |
|
invokeId UInt32 |
The invoke identifier of the request. |
|
indexGroup UInt32 |
The index group of the requested ADS service |
|
indexOffset UInt32 |
The index offset of the requested ADS service |
|
readLength Int32 |
Number of bytes to be read |
|
writeData ReadOnlyMemoryByte |
The data to be written |
|
cancel CancellationToken |
The cancellation token. |
Return Value
Task
ResultReadWriteBytes
A task that represents the asynchronous
'OnReadWriteIgIoAsync' operation. The TaskTResult
parameter contains the AdsErrorCode as
Result.
Exceptions
|
Exception |
Condition |
|---|---|
Remarks
Overwrite this method in derived classes to react on pure IG/IO ADS ReadWrite indications. To send the ADS answer/response back to the sender, the base class implementation must be called after
Reference
AdsSymbolicServer Class TwinCAT.Ads.Server Namespace
Beckhoff Automation GmbH & Co. KG 2001-2026