Reads user data sent from the remote device (PLC) to the vision system.
Namespace: Cognex.VisionPro.CommValues 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.
Assembly: Cognex.VisionPro.Comm (in Cognex.VisionPro.Comm.dll) Version: 69.0.0.0
Syntax
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: ByteExceptions
| Exception | Condition |
|---|---|
| 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