ooPIC Logo

The MAIN Procedure

Main Index
Language Idx

In an ooPIC application, the procedure named "MAIN" is designated as the starting point. When your application powers up or is reset, the program will start executing at the first line within this sub procedure. If you want to stop the program and wait for an event to occur, simply drop out of, or exit the "MAIN" procedure. Another way to stop the program is by setting the ooPIC Object’s Operate property to 0 (cvOff). This will also cause the ooPIC to shut down all events and go into a low-power mode.

Prior to the "MAIN" procedure executing, when the ooPIC is powered up or is reset, all of the application's Object will be created and their values initialized allowing the "MAIN" procedure to access them.


 

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