oDIO16 Object
An Object that provides a 16-bit digital I/O.
Description:
 

A Hardware Object that consists of 16 of the OOPic's I/O lines.

Operation:
 

An oDIO16 Object's Value property represents the binary value of the electrical state of the I/O lines 8 - 15 and 24 - 31. The Direction property specifies if the I/O Lines are inputs or outputs.

When the IOGroup property is set the Direction property is updated to reflect the current state of the specified I/O Lines.

Remarks:
 

1 Physical 16-bit I/O group is implemented within the OOPic.

Storage size & Availability:
 

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

ObjectSizeVersion
oDio161 BytesA.1.0 and greater
Properties:
 

The following table lists the Properties of the oDIO16 Object:
PropertyDescription
Address

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

Data-Type: Number-Pointer, Read-Only

Data-Range: 0 - 127

Direction

Determines if the I/O Lines are inputs or outputs.

Data-Type: Byte

Data-Range: 0 - 1

IOGroup

 

Data-Type: Bit, Flag

Data-Range: 0 - 1

The following table list the values of the IOGroup Property.
IOGroupConstantDescription
0 

 

1 

 

String

The Value property represented as a string.

Note: The String property is available in OOPic Basic Version 2

Data-Type: String

Value

The electrical connection to the I/O Lines.

Data-Type: Byte Default

Data-Range: 0 - 65535

Methods:
 

The following table lists the Methods of the oDIO16 Object:
MethodsDescription
Clear

Clears the Value property to 0.

Dec

Decrements the Value property by 1.

Inc

Increments the Value property by 1.

Invert

Inverts the bits in the Value property

LShift

Shifts the bits in the Value property left.

RShift

Shifts the bits in the Value property Right.

Set

Sets the Value property to 65535.

Example:
 In the following example, the oDio1 Object is used.
'This program creates one oDio16 Object 
'and tells it to use I/O Group 1 as an
'output. It then uses a For-Next loop
'to make its value go from 1 to 65000

Dim A As New oDio16

Sub main()
  A.IOGroup = 1
  A.Direction = cvOutput
  For A = 1 To 64000
  Next A
End Sub
See Also:
 

oDio1 - An Object that provides a 1-bit digital I/O.
oDio4
- An Object that provides a 4-bit digital I/O.
oDio8 - An Object that provides an 8-bit digital I/O.