Real time control method for a robot controller
First Claim
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 Assignments
0 Petitions
Accused Products
Abstract
A robot controller and its control method use a generic personal computer and a PC operating system. The controller 10 comprises the following: a task-switching unit 30 that switches tasks on a pre-emptive basis; an external interrupt generator 50 that uses an external timer to generate interrupts at specified fixed time intervals; an event drive unit 40 that performs event drive processing in synchronization with the interrupts generated by the external interrupt generator 50; an event registration unit 60 that registers the fact that the application program which performs processing in response to the occurrence of the event is waiting for the occurrence of the event; an event resource state storage unit 70 that stores event resource states in order to keep track of and recall the occurrence of events; an event resource state update unit 80 that updates the conditions of event resources stored in the event resource state storage unit 70; and a swap-out prevention unit 90 that prevents the swapping out of programs for which real time processing is required.
-
Citations
10 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. - View Dependent Claims (2, 3, 4, 5)
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 comprising
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 the occurrence of an event. -
4. The control method of claim 1, wherein
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. -
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. - View Dependent Claims (7, 8, 9, 10)
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.
Specification