Claims
- 1. A real time control method for executing processing associated with occurrences of events in a robot controller utilizing a generic operating system having a pre-emptive multi-tasking function comprising:using an external timer to generate interrupt signals on a regular basis at fixed time intervals sufficient for the execution of real time processing; and detecting events in synchronization with said interrupt signals that are generated in said external interrupt generation step and performing event drive processing whereby said generic operating system is directed to switch to a task which executes processing associated with an event detected in said detecting step.
- 2. The control method of claim 1, further comprising:registering an event, an occurrence of which is being waited for by a program that executes processing associated with said event occurrence; detecting the occurrence of an event registered in said event registration step; and directing said generic operating system to switch to a task which executes a program that is waiting for occurrence of said event registered in said event registration step.
- 3. The control method of claim 2 further comprisingpreventing swapping out of a program by directing said generic operating system to start a program, on a regular basis at specified time intervals said program having registered the fact that it is waiting for the occurrence of an event.
- 4. The control method of claim 1, whereinsaid detected events include at least one of a change in hardware resources of a robot controlled by said controller, a change in output data which enables a program for controlling manipulator actions, and a change in output data which enables peripheral devices to perform synchronization and communication.
- 5. The control method of claim 4, further comprising:storing in a shared memory area that can be referenced and updated by multiple tasks, event resource states in order to keep track of said detected events; updating said event resource states stored in said shared memory based upon changes in said detected events; and updating a hardware resource based upon event resource states that have been updated in said event resource state update step.
- 6. A medium readable by a machine embodying a program of instructions executable by said machine to perform a real time control method for executing processing associated with occurrences of events in a robot controller utilizing a generic operating system having a pre-emptive multi-tasking function, said control method comprising the steps of:using an external timer to generate interrupt signals on a regular basis at fixed time intervals sufficient for the execution of real time processing; and detecting events in synchronization with said interrupt signals that are generated in said external interrupt generation step and performing event drive processing whereby said generic operating system is directed to switch to a task which executes processing associated with an event detected in said detecting step.
- 7. The medium of claim 6 wherein said control method further comprises:registering an event, an occurrence of which is being waited for by a program that executes processing associated with said event occurrence; detecting the occurrence of an event registered in said event registration step; and directing said generic operating system to switch to a task which executes a program that is waiting for occurrence of said event registered in said event registration step.
- 8. The medium of claim 7 wherein in said control method:said detected events include at least one of a change in hardware resources of a robot controlled by said controller, a change in output data which enables a program for controlling manipulator actions, and a change in output data which enables peripheral devices to perform synchronization and communication.
- 9. The medium of claim 8 wherein said control method further comprises:storing in a shared memory area that can be referenced and updated by multiple tasks, event resource states in order to keep track of said detected events; updating said event resource states stored in said shared memory based upon changes in said detected events; and updating a hardware resource based upon event resource states that have been updated in said event resource state update step.
- 10. The medium of claim 7 wherein said control method of claim 9 further comprises:preventing swapping out of a program by directing said generic operating system to start a program, on a regular basis at specified time intervals, said program having registered the fact that it is waiting for occurrence of an event.
Priority Claims (1)
Number |
Date |
Country |
Kind |
8-195352 |
Jul 1996 |
JP |
|
CROSS REFERENCE TO RELATED APPLICATIONS
This application is a divisional of application Ser. No. 08/876,697 filed Jun. 16, 1997 now U.S. Pat. No. 6,031,973, which is incorporated by reference herein in its entirety.
US Referenced Citations (8)