CogNdmProfinet EventsCognex VisionPro 9.10

The CogNdmProfinet type exposes the following members.

Events

  NameDescription
Public eventClearError
The NDM raises the ClearError event to inform the vision system that the remote device has been notified of an error reported by the vision system and the error has been be cleared.

Handle this event to know when the remote device has acknowledged an error and normal operation can continue.

(Inherited from CogNdm.)
Public eventJobChangeRequested
The NDM raises the JobChangeRequested event to inform the vision system that the remote device has requested a job change.

Handle this event and use the JobID and JobSlot properties of the event args to determine which job to load and where.

(Inherited from CogNdm.)
Public eventNewUserData
The NDM raises the NewUserData event to tell the vision system that new user data has arrived from the remote device.

Handle this event and call ReadUserData(Int32, Int32) to read the new user data.

Note that changes to the user data present on the remote device cannot be read until the remote device signals the vision system that new user data is available by sending a "Set User Data" signal.

The remote device can send separate "Set User Data" signals for each user data channel. Use the ChannelIndex property of the event args to determine which "Set User Data" signal was received.

Upon returning from the event handler, the remote device is automatically notified by sending the “Set User Data Ack” signal.

(Inherited from CogNdm.)
Public eventOfflineRequested
The NDM raises the OfflineRequested event to tell the vision system that it should go offline.

Handle this event and use the ReturnToPreviousState property of the event args to determine whether to transition the vision system offline or return it to its previous state.

(Inherited from CogNdm.)
Public eventProfinetConfigChanged
The NDM raises the ProfinetConfigChanged event to tell the vision system that the PROFINET specific configuration settings have changed.
Public eventProtocolStatusChanged
The NDM raises the ProtocolStatusChanged event to inform the vision system that the status of the underlying protocol has changed.

Handle this event and use the RemoteAddress and ProtocolStatus properties of the event args to determine how the protocol status has changed.

(Inherited from CogNdm.)
Public eventTriggerAcquisition
The NDM raises the TriggerAcquisition event to inform the vision system that the remote device has requested an image Acquisition.

Handle this event and use the CameraIndex property of the event args to determine which camera should perform the image acquisition.

Set the ResponseCode property of the event args to notify the remote device if an acquisition error has occurred.

(Inherited from CogNdm.)
Public eventTriggerAcquisitionDisabledError
The NDM raises the TriggerAcquisitionDisabledError event to tell the vision system that an acquisition trigger was set but the acquisition trigger was not enabled.
(Inherited from CogNdm.)
Public eventTriggerAcquisitionNotReadyError
The NDM raises the TriggerAcquisitionNotReadyError event when the remote device asserts a "Trigger Camera" signal high without waiting for the vision system to signal that it's ready to receive triggers by setting the "Trigger Ready" signal high.

Handle this event and use the CameraIndex to identify which camera channel was triggered before it was ready.

Your user code should call NotifyAcquisitionComplete(Int32, Int32) to signal that the vision system that it has completed the current acquisition and is ready to receive another "Trigger Camera" signal from the remote device.

(Inherited from CogNdm.)
Public eventTriggerAcquisitionStop
The NDM raises the TriggerAcquisitionStop event to tell the vision system that the Acquisition trigger has been reset.

Handle this event and use the CameraIndex property of the event args to determine which camera trigger was reset.

(Inherited from CogNdm.)
Public eventTriggerSoftEvent
The NDM raises the TriggerSoftEvent event to inform the vision system that the remote device has requested that a soft event execute.

Handle this event and use the SoftEventID property of the event args to determine which soft event should execute.

Set the ResponseCode property of the event args to notify the remote device of the status of the soft event when the event handler returns.

(Inherited from CogNdm.)
Public eventTriggerSoftEventOff
The NDM raises the TriggerSoftEventOff event to tell the vision system that the soft event trigger bit has been reset.

Handle this event and use the SoftEventID property of the event args to determine which soft event has been reset.

(Inherited from CogNdm.)
Top
See Also