Notify the remote device (PLC) that an inspection has finished.
Namespace: Cognex.VisionPro.CommAssembly: Cognex.VisionPro.Comm (in Cognex.VisionPro.Comm.dll) Version: 79.0.0.0
Syntax
Parameters
- inspectionIndex
- Type: System Int32
The index of the inspection channel/slot which completed and produced the result
- usedAcquisitionIDs
- Type: Cognex.VisionPro.Comm CogNdmUsedAcquisitionIDCollection
A collection of the AcquisitionIDs that were used to create this inspection result
- inspectionPassed
- Type: System Boolean
Whether the inspection passed or failed
- resultCode
- Type: System Int32
The result code of the inspection
- resultData
- Type: System Byte
The inspection result data
- resultDataOffset
- Type: System Int32
The offset at which the Result bytes for this inspection are written into the overall inspection results buffer
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException |
Thrown if
|
| CogFfpInvalidOperationException | Thrown if the size of resultData + resultDataOffset is outside the valid range for result data. |
| CogFfpQueueFullException | Thrown if the remote device has enabled the "Buffer Results Enable" signal to enable results buffering and the buffer for the given inspection index/channel is full. When this exception is thrown the "Results Buffer Overrun" signal will be sent to the remote device. Each inspection channel can buffer up to 16 results when results buffering is enabled. |
| ArgumentNullException | Thrown if usedAcquisitionIDs is null. |
| ArgumentException | Thrown if usedAcquisitionIDs is an empty collection. |
See Also