VisionPro comm cards are hardware devices designed to handle communication between a VisionPro vision system and the outside world.
VisionPro comm cards utilize dedicated real-time processors to manage I/O. This allows VisionPro vision systems to integrate with demanding real-time control scenarios, and reserves PC hardware resources for image processing and machine vision related tasks.
VisionPro comm cards support one or more communication modules, each communication module supports a different type or style of communication.
For example, a single VisionPro comm card may support discrete (digital) inputs and outputs, and/or Ethernet based Factory Floor Protocols (FFP) such as EtherNet/IP.
This class cannot be constructed. Instances must be retrieved from a CogCommCards collection.
This class provides access to the communication capabilities of a VisionPro Communication Card via its supported module interfaces.
- Access the factory floor protocol (FFP) capabilities of the comm card via FfpAccess.
- Access the precision I/O (discrete I/O) capabilities of the comm card via DiscreteIOAccess.
System MarshalByRefObject
Cognex.VisionPro.Implementation CogObjectBase
Cognex.VisionPro.Comm CogCommCard
Namespace: Cognex.VisionPro.Comm
Assembly: Cognex.VisionPro.Comm (in Cognex.VisionPro.Comm.dll) Version: 75.0.0.0
The CogCommCard type exposes the following members.
| 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 | ||
| Dispose(Boolean) | ||
| Equals | (Inherited from Object.) | |
| Finalize | (Overrides Object Finalize .) | |
| GetAttributes |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetClassName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetComponentName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetConverter |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetDefaultEvent |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetDefaultProperty |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEditor |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents( Attribute ) |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| 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.) | |
| GetProperties |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetProperties( Attribute ) |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetPropertyOwner |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| 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.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
| ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| DiscreteIOAccess |
Gets a discrete I/O access object.
Use the discrete I/O access object to access the discrete I/O and precision I/O features of the comm card. This property returns null if the hardware does not support discrete I/O. | |
| EthernetPortAccess |
Gets the Ethernet port access object.
Use the Ethernet port access object to configure the IP settings (IP address, subnet mask, etc...) of the Ethernet ports on the hardware. The IP settings of the card can also be configured using Comm Card Configurator utility. This property returns null if the hardware does not support Ethernet port configuration. | |
| FfpAccess |
Gets a factory floor protocol (FFP) access object.
Use the factory floor protocol access object to access the factory floor protocol features of the comm card. This property returns null if the hardware does not support factory floor protocols. | |
| FirmwareVersion |
Gets the version of the firmware running on the hardware.
| |
| Name |
Gets the name of the comm card.
| |
| ProductIdentity |
Gets the product identity of the hardware.
| |
| SerialNumber |
Gets the serial number of the comm card.
|
| Name | Description | |
|---|---|---|
| CardStatus |
This event is raised by the Comm Card to report very specific status or error
events to the host PC. CardStatus events are typically used to inform the
host PC of important "out of band" information that cannot be reported
synchronously.
|
using Cognex.VisionPro; using Cognex.VisionPro.Comm; // Shows simple use of comm card API. // // Initializes a connection to a Rockwell Control Logix PLC // using the EtherNet/IP protocol and the Cognex generic // Factory Floor Protocol (FFP) interface known as the // Network Data Model (NDM). // // Signs up for the NDM's "NewUserData" event and prints out the // NewUserData as it's received. public void Example() { CogCommCards commCardCollection = new CogCommCards(); Console.WriteLine("Found: {0} comm cards", commCardCollection.Count); if (commCardCollection.Count == 0) return; CogCommCard card = commCardCollection[0]; Console.WriteLine("Name: {0}", card.Name); Console.WriteLine("Serial: {0}", card.SerialNumber); Console.WriteLine("Initializing comm card Factory Floor Protocol (FFP)"); CogFfpAccess ffpAccess = card.FfpAccess; if (ffpAccess == null) throw new Exception("FFP is not supported."); CogNdm ffpNdm = ffpAccess.CreateNetworkDataModel(CogFfpProtocolConstants.EthernetIp); ffpNdm.Start(); Console.WriteLine("Sign up for the NewUserData Event"); ffpNdm.NewUserData += new CogNdmNewUserDataEventHandler(ffpNdm_NewUserData); } void ffpNdm_NewUserData(object sender, CogNdmNewUserDataEventArgs e) { CogNdm ndm = sender as CogNdm; if (ndm != null) Console.WriteLine(BitConverter.ToString(ndm.ReadUserData(0, 100))); }