CogNdm ReadUserData Method Cognex VisionPro 9.10
Reads user data sent from the remote device (PLC) to the vision system.

Values returned from this function will not reflect changes to the user data present on the remote system until the remote system signals the vision system that new user data is available by sendng a "Set User Data" signal.

Namespace: Cognex.VisionPro.Comm
Assembly: Cognex.VisionPro.Comm (in Cognex.VisionPro.Comm.dll) Version: 79.0.0.0
Syntax

public byte[] ReadUserData(
	int offset,
	int size
)

Parameters

offset
Type: System Int32
The offset into the user data at which to read.
size
Type: System Int32
The number of bytes of user data to read.

Return Value

Type:  Byte 
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown if the offset is less than 0 or greater than 65535 [0xFFFF].
ArgumentOutOfRangeException Thrown if the size is less than 0 or greater than 65535 [0xFFFF].
CogFfpInvalidOperationException Thrown if offset + size is greater than max data size.
See Also