oLogic Object

Back to top of page Description:
 The oLogic Object manages a Boolean value so that it can be used in a Virtual Circuit.  
 The following table lists the size and availability of the oLogic Object.
 ObjectSizeDescriptionA1A2B1B2C1
oLogic1 ByteA linkable Object used for virtual circuits.xxxxx
Back to top of page Operation:
 The oLogic Object is a specialized Boolean value configured so that a Virtual Circuit can read and write the 1-Bit value.
Back to top of page Properties:

The following table lists the properties of the oLogic Object:

Property

Description

Value
The value of the 1 bit.
Object Class: oVar1 Value Range: 0 - 1
Data Type: Numeric Default Value: 0
IsSet
A value that indicates if the bit is 1.
Object Class: oProperty Value Range: 0 - 1
Data Type: Numeric (Read-Only) Default Value: 0
IsClear
A value that indicates if the bit is 0.
Object Class: oProperty Value Range: 0 - 1
Data Type: Numeric (Read-Only) Default Value: 0
Address
Returns a pointer to the address of the oLogic Object instance.
Object Class: oAddress Value Range: 0 - 127
Data Type:Pointer (Read Only) Default Value: Address of Object

Back to top of page Example:

The following examples use the oLogic Object.
Visual Basic SyntaxC and Java Syntax
' This program demonstrates the
' uses of the oLogic object.  
' In the oLED object, an oLogic
' object can be found within the
' Operate property.  The methods
' of this instance of the oLogic
' object will be called.

Dim A As New oLED

Sub Main()
  A.IOLine = 8
  Do
    A.Brightness = A.Brightness + 1  
    A.Operate.Set
    ooPIC.Delay = 20
    A.Operate.Invert
    ooPIC.Delay = 20
    A.Operate.Set
    ooPIC.Delay = 20
    A.Operate.Clear
    ooPIC.Delay = 20
  Loop
End Sub 
// This program demonstrates the
// uses of the oLogic object.
// In the oLED object, an oLogic
// object can be found within the
// Operate property.  The methods
// of this instance of the oLogic
// object will be called.

oLED A = New oLED;

Void Main(Void){
  A.IOLine = 8;
  Do{
    A.Brightness++;
    A.Operate.Set;
    ooPIC.Delay = 20;
    A.Operate.Invert;
    ooPIC.Delay = 20;
    A.Operate.Set;
    ooPIC.Delay = 20;
    A.Operate.Clear;
    ooPIC.Delay = 20;
  } While (1);
}
Basic Syntax 
' This program demonstrates the
' uses of the oLogic object.  
' In the oLED object, an oLogic
' object can be found within the
' Operate property.  The methods
' of this instance of the oLogic
' object will be called.

Dim A As New oLED(8)

Do
  A.Brightness = A.Brightness + 1  
  A.Operate.Set
  ooPIC.Delay = 20
  A.Operate.Invert
  ooPIC.Delay = 20
  A.Operate.Set
  ooPIC.Delay = 20
  A.Operate.Clear
  ooPIC.Delay = 20
Loop
 

Back to top of page Related Items:

 The following table lists objects that use the oLogic Object.
 ObjectDescriptionA1A2B1B2C1
o7SegAn Object that displays a number on a 7-Segment LED display.x
o7Seg2An Object that displays a number on a Dual 7-Segment LED display.x
o8BarAn Object that displays a number on an 8-Segment LED bargraph.x
oA2DControls the PIC's A2D Hardware Module.xxxxx
oA2D10Measures the level of the voltage on an input line with an 10-bit result.xx
oA2D8Measures the level of the voltage on an input line with an 8-bit result.xxxxx
oA2DXMeasures the level of the voltage on an input line and detects when it is below a threshold.xxx
oBitAn Object that manages a value with a range of 1 to 0.xxxxx
oBitShifterAn Object that outputs a bit pattern that shifts.xxx
oBufferAn Object that manages a variable size data-buffer/string variable.xxxxx
oBumper4Reads a 4-contact bumper.xxx
oBumper8Reads an 8-contact bumper.xx
oBusAn Object that copies one Object's Value to another Objectxxx
oBusFAn Object that copies one Object's Value to another Object with fuzziness.x
oButtonReads the position of a switch and controls an LED light.xx
oByteAn Object that manages a value with a range of 0 to 255.xxxxx
oCenterSwitch4An Object that finds the center most active Input.xxx
oCompareCompares an Object's Value to set points.xxx
oDIO1Provides a 1 line digital I/O.xxxxx
oDIO1RWProvides a 1 line digital I/O that continuously reads and writes.xx
oDIO4Provides a 4 line digital I/O.xxxxx
oDIO8BProvides an 8 line digital I/O with Blanking and Invert.x
oDistanceAn Object that manages a URCP distance value.xxx
 The following table lists objects with related functions
 ObjectDescriptionA1A2B1B2C1
oValueAn Object used for virtual circuits.xxxxx
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.