Notify the remote device (PLC) that the Vision System has encountered an error.
Namespace: Cognex.VisionPro.CommAssembly: Cognex.VisionPro.Comm (in Cognex.VisionPro.Comm.dll) Version: 69.0.0.0
Syntax
Parameters
- errorCode
- Type: System Int32
The code which identifies the error.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | Thrown if the errorCode is less than or equal to 0 or greater than 4095 (0xFFF). |
Remarks
The NDM supports 16 bits of error code information.
Currently the NDM does _not_ define its own error codes. You must supply your own meaningful error codes as arguments to NotifyError(Int32). Cognex recommends using the lower 12-bits (0x0001 to 0x0FFF) for your error codes.See Also