Click or drag to resize

MemoryAccessReadAsync Method (Boolean, AccessParameters, IOErrorHandler)

Block read data from the peer.

Namespace:  Demo3D.PLC.Comms.Memory
Assembly:  PLC (in PLC.dll) Version: 17.00.05
Syntax
C#
public Task<BufferSegment> ReadAsync(
	bool sync,
	AccessParameters? accessParams = null,
	IOErrorHandler? errorHandler = null
)

Parameters

sync
Type: SystemBoolean
If true, the Task returned is guaranteed to be complete.
accessParams (Optional)
Type: Demo3D.PLC.CommsAccessParameters
Access parameters for this read request (or null to use the access parameters provided to GetAddress(IAddress, AccessParameters, Object)).
errorHandler (Optional)
Type: Demo3D.PLC.CommsIOErrorHandler
An error handler to call if an IO error is detected (or null).

Return Value

Type: TaskBufferSegment
The data read.
See Also