Interface Object

NI-DNET Programmer

Interface Object

Description

The Interface Object represents a DeviceNet interface. Since this interface acts as a device on the DeviceNet network much like any other device, it is configured with its own MAC ID and baud rate.

Use the Interface Object to do the following:

  • Configure NI-DNET settings that apply to the entire interface.
  • Start and stop communication for all NI-DNET objects associated with the interface.

The Interface Object must be the first NI-DNET object opened by your application, and thus the ncOpenDnetIntf function must be the first NI-DNET function called by your application.

Functions

Function Name Function Description
EasyIOClose Close multiple NI-DNET objects (LabVIEW only)
EasyIOConfig Configure and open multiple NI-DNET objects (LabVIEW only)
ncCloseObject Close an NI-DNET object
ncGetDriverAttr Get the value of an attribute in the NI-DNET driver
ncOpenDnetIntf Configure and open an NI-DNET Interface Object
ncOperateDnetIntf Perform an operation on an NI-DNET Interface Object
ncSetDriverAttr Set the value of an attribute in the NI-DNET driver
ncStatusToString Convert status returned from an NI-DNET function into a descriptive string (C only)

Driver Attributes

Baud Rate

Attribute ID NC_ATTR_BAUD_RATE
Hex Encoding 80000007
Data Type NCTYPE_BAUD_RATE
Permissions Get
Description This driver attribute allows you to get the BaudRate originally passed into ncOpenDnetIntf.

Interface Protocol Version

Attribute ID NC_ATTR_PROTOCOL_VERSION
Hex Encoding 80000002
Data Type NCTYPE_VERSION
Permissions Get
Description This driver attribute reports the version of the DeviceNet Specification to which the NI-DNET software conforms. This version is at least 02000000 hex (version 2.0).

Interface Software Version

Attribute ID NC_ATTR_SOFTWARE_VERSION
Hex Encoding 80000003
Data Type NCTYPE_VERSION
Permissions Get
Description This driver attribute reports the version of the NI-DNET software. This version is at least 01000000 hex (version 1.0).

Mac Id

Attribute ID NC_ATTR_MAC_ID
Hex Encoding 80000080
Data Type NCTYPE_UINT8
Permissions Get
Description This driver attribute allows you to get the IntfMacId originally passed into ncOpenDnetIntf.

Poll Mode

Attribute ID NC_ATTR_POLL_MODE
Hex Encoding 8000009B
Data Type NCTYPE_POLL_MODE
Permissions Get
Description This driver attribute allows you to get the PollMode originally passed into ncOpenDnetIntf.