oDIO16 Object

Main Index
Object List
Back to top of pageDescription:
 The oDIO16 Object manages 16 of the I/O Lines in such a way that they can be used in a virtual circuit. 
 The following table lists the size and availability of the oDIO16 Object.
 ObjectSizeDescriptionA1A2B1B2C1
oDIO161 ByteProvides a 16 line digital I/O.xxxxx
Back to top of pageOperation:
 

An oDIO16 Object's State 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 Direction property is 1 (an input), the electrical state of the I/O Lines are copied to the State property once each Object List Loop.

When the Direction property is 0 (an output), the electrical state of the I/O Lines are set to the state of the State property once each Object List Loop.

Note that the Direction property is a single bit.  When set, it will set all sixteen I/O Lines accordingly. 

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

Back to top of pageProperties:
 

The following table lists the properties of the oDIO16 Object:

Property

Description

State
A value that indicates the electrical state of the I/O Lines.
Object Class: oValue Value Range: 0 - 65535
Data Type: Numeric Default Value: 0
Bit Value in StateConstantDescription
0cvOffThe specified I/O line is at 0 Volts.
1cvOnThe specified I/O line is at +5 Volts.
Direction
A value that specifies if the I/O Lines are used as Inputs or Outputs.
Object Class: oProperty Value Range: 0 - 1
Data Type: Numeric Default Value: 0
DirectionConstantDescription
0cvOutput

The I/O Lines are outputs and the State property is written to them.

1cvInput

The I/O Lines are High-Z and the State property is read from them.

Address
Returns a pointer to the address of the oCounter Object instance.
Object Class: oAddress Value Range: 0 - 127
Data Type:Pointer (Read Only) Default Value: Address of Object

Back to top of pageExamples:
 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.Direction = cvOutput
  For A = 1 To 64000
  Next A
End Sub

Back to top of page Related Items:

 The following table lists objects with related functions
 ObjectDescriptionA1A2B1B2C1
oDIO1Provides a 1 bit digital I/O.xxxxx
oDIO4Provides a 4-bit digital I/O.xxxxx
oDIO8Provides an 8-bit digital I/O.xxxxx
oDIO8BProvides an 8-bit digital I/O with blanking.x
Back to top of page Version History and Bug List:
 Firmware Ver A1: Introduced.

Bugs: No known bugs.


ooPIC Compiler Ver 6.0 (c) Copyright 1997 - 2007 Savage Innovations, LLC.