Class which represents a precision I/O event.
Inheritance Hierarchy
System MarshalByRefObject
Cognex.VisionPro.Implementation CogObjectBase
Cognex.VisionPro.Implementation CogSerializableObjectBase
Cognex.VisionPro.Implementation CogSerializableChangedEventBase
Cognex.VisionPro.Implementation CogTrackedItemBaseEx
Cognex.VisionPro.Comm.Implementation.Internal CogPrioEventBase
Cognex.VisionPro.Comm CogPrioEvent
Namespace: Cognex.VisionPro.Comm
Assembly: Cognex.VisionPro.Comm (in Cognex.VisionPro.Comm.dll) Version: 87.0.0.0
Syntax
The CogPrioEvent type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogPrioEvent |
Construct a new precision i/o event instance.
| |
| CogPrioEvent(String) |
Construct a new precision i/o event instance.
| |
| CogPrioEvent(String, CogPrioEventCauseLineCollection, CogPrioEventCauseNdmCollection, CogPrioEventResponseLineCollection) |
Construct a new precision i/o event instance.
|
Methods
| Name | Description | |
|---|---|---|
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
| Dispose | ||
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| ResumeAndRaiseChangedEvent |
Re-enables raising of the Changed event after SuspendChangedEvent
has been called, and raises the Changed event if the
ChangedEventSuspended count is reduced to zero and any changes were
made while events were suspended. Must be called once for each call to
SuspendChangedEvent.
(Inherited from CogSerializableChangedEventBase.) | |
| Schedule |
Manually schedules an I/O event to occur as soon as possible.
| |
| Schedule(CogPrioEventScheduleTypeConstants, Double) |
Manually schedules an I/O event to occur.
| |
| Schedule(CogPrioEventScheduleTypeConstants, Double, CogPrioState) |
Manually schedules an I/O event to occur relative to
some other previous state.
| |
| SuspendChangedEvent |
Temporarily suspends the raising of the Changed event. May be called
more than once, and a corresponding call to ResumeAndRaiseChangedEvent
must be made for each call to SuspendChangedEvent.
(Inherited from CogSerializableChangedEventBase.) | |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| SfCausesLine |
This bit will be set in the EventArgs of a Changed event
every time the value returned by CausesLine may have changed.
| |
| SfCausesNdm |
This bit will be set in the EventArgs of a Changed event
every time the value returned by CausesNdm may have changed.
| |
| SfHasHostNotificationListener |
This bit will be set in the EventArgs of a Changed event
every time a handler is added or removed to the HostNotification
Event.
| |
| SfResponsesLine |
This bit will be set in the EventArgs of a Changed event
every time the value returned by ResponsesLine may have changed.
|
Properties
| Name | Description | |
|---|---|---|
| CausesLine |
A collection of CogPrioEventCauseLine which
cause the event to occur.
| |
| CausesNdm |
A collection of CogPrioEventCauseNdm which
cause the event to occur.
| |
| ChangedEventSuspended |
If nonzero, indicates that the raising of the Changed event has been
suspended. This value is incremented when SuspendChangedEvent is called
and decremented when ResumeAndRaiseChangedEvent is called.
(Inherited from CogSerializableChangedEventBase.) | |
| EventNumber |
A value which uniquely identifies this event.
| |
| HasChanged | (Inherited from CogSerializableChangedEventBase.) | |
| HasHostNotificationListener |
Returns true if there is currently an event handler listening
for host notification of this event.
| |
| ID | (Inherited from CogTrackedItemBaseEx.) | |
| Name | (Inherited from CogTrackedItemBaseEx.) | |
| Parent | (Inherited from CogTrackedItemBaseEx.) | |
| ResponsesLine |
A collection of CogPrioEventResponseLine
which occur in response to the event.
| |
| StateFlags |
Returns the complete set of state flags supported on this object. The
flags may be indexed by name as shown in the following C# code snippet:
if (changedObject.StateFlags["Color"] & eventArgs.StateFlags) { ... }
(Inherited from CogSerializableChangedEventBase.) |
Events
| Name | Description | |
|---|---|---|
| Changed |
This event is raised when one or more parts of the object's state may
have changed.
(Inherited from CogSerializableChangedEventBase.) | |
| HostNotification |
The HostNotification event is raised to signal the PC that a
precision I/O event has occurred on the comm card hardware.
| |
| NameChanging | (Inherited from CogTrackedItemBaseEx.) |
Remarks
Precision I/O supports getting and setting the state of the Comm Card's Discrete I/O lines.
Precision I/O also supports configuration of an event system that runs on the Comm Card's real-time processor.
The precision I/O event system allows the Comm Card to receive inputs and automatically react to them without involving the host PC.
This enables accurate configuration and reporting of I/O events and avoids typical host PC latency issues.
- Use SetOutput to manually set an I/O line high or low.
- Use ReadState to get the current state the I/O lines.
- Construct instances of CogPrioEvent and add them to the Events collection to configure a set of named events that correspond to different actions of interest that occur on the I/O card.
- Use CausesLine to configure which I/O line transitions cause a precision I/O event to occur.
- Use CausesNdm to configure which NDM signals of the factory floor protocol cause a precision I/O event to occur.
- Use ResponsesLine to configure an automatic I/O line response to a precision I/O event.
- Use Schedule(CogPrioEventScheduleTypeConstants, Double, CogPrioState) to manually schedule a configured precision I/O event to occur at an precise instant.
- Use HostNotification to receive notifications whenever a configured event occurs.
See Also