CogNdm NotifyError Method Cognex VisionPro 9.20
Notify the remote device (PLC) that the Vision System has encountered an error.

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

public virtual void NotifyError(
	int errorCode
)

Parameters

errorCode
Type: System Int32
The code which identifies the error.
Exceptions

ExceptionCondition
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