oCompassDN Object
An Object that reads a Dinsmore 1490 Compass.
Description:
 

A Hardware Object that reads a Dinsmore 1490 Compass and returns a URCP heading value.

Operation:
 

The oCompassDN Object uses the 4 I/O lines specified by the IOGroup and Nibble properties to read a Dinsmore 1490 Compass module. It  converts the data to a URCP Heading value which is then stored in the Value property.

Storage size & Availability:
 

The following table lists the size and availability of the oCompassDN Object:

ObjectSizeVersion
oCompassDN4 BytesB.1.0
Properties:
 

The following table lists the Properties of the oCompassDN Object:

PropertyDescription
Address

Returns a pointer to the address of the oCompassDN Object instance.

Data-Type: Address, Read-Only

Data-Range: 0 - 127

IOGroup

A value that specifies which physical I/O Group to use.

Data-Type: Nibble

Data-Range: 0 - 3

Nibble

A value that specifies which side of the IOGroup to use.

Data-Type: Bit

Data-Range: 0 - 1

Operate

A value that specifies whether or not the data is updated.

Data-Type: Bit, Flag

Data-Range: 0 - 1

Unsigned

A value that specifies if the Value property is signed or unsigned.

Data-Type: Bit

Data-Range: 0 - 1

Value

A value that indicates the current compass heading.

Data-Type: Word, Default

Data-Range: 0 - 255

Example:
 In the following example, the oCompassDN Object
' This program reads a Dinsmore 
' Compass and displays the binary 
' URCP value on I/O Lines 8 - 15

Dim A As New oCompassDN 
Dim B As New oDio8

Sub Main()
  OOPic.Pullup = 1
  B.IOGroup = 3
  B.Direction = cvOutput
  A.IOGroup = 1
  A.Nibble = 1
  A.Operate = cvTrue
  Do
    B.Value = A.Value
  Loop
end sub
Connections
 The Dinsmore Compass Module requires connections to 4 I/O lines.  These 4 I/O lines must be 4 contiguous I/O lines starting with I/O line 8, 12, 16, 20, 24, or 28.  Each of the 4 I/O lines will require a pull up resister.  If the I/O lines starting with 8 or 12 are selected, the internal pull up resisters can be used by setting the OOPic.PullUp property to 1.
See Also:
 

oCompassVX - An Object that reads a Vector V2X Compass.