In a real-time environment at least one task is executed with a pre-defined task run-time, wherein at least one auxiliary function with indeterminate function run-time is to be processed within the specified task run-time by means of a time monitoring function. The time monitoring function, which defines a termination time for the auxiliary function within the pre-defined task run-time, is started. Then the auxiliary function is executed, wherein the time monitoring function monitors the function run-time and a function abort is initiated if the pre-defined abort time point is exceeded. Finally, the time monitoring function is terminated.
Legal claims defining the scope of protection, as filed with the USPTO.
1. A method of operating a real-time environment comprising: executing at least one task on a programmable logic controller (PLC) with a pre-defined task run-time, the task comprising processing data of a system including sensors and actuators controlled by the programmable logic controller, wherein at least one auxiliary function controlled by the programmable logic controller (PLC) with indeterminate function run-time is to be processed within the pre-defined task run-time by a time monitoring function, the auxiliary function comprising processing data of an auxiliary system, wherein the auxiliary function and the time monitoring function form a program code executed within the real-time environment; starting the time monitoring function, which defines a termination time for the auxiliary function within the pre-defined task run-time, the termination time having a pre-defined abort time point; executing the auxiliary function, wherein the time monitoring function monitors a run-time of the auxiliary function and a function abort is initiated if the pre-defined abort time point is exceeded; and terminating the time monitoring function.
2. The method as claimed in claim 1 , wherein the time monitoring function is configured as a wrapper function which surrounds the program code of the auxiliary function, so that the program code of the auxiliary function is executed within the program code of the time monitoring function.
3. The method as claimed in claim 1 , wherein an abort function is provided, which is called in order to execute the abort function if the pre-defined time point is exceeded by the function run-time.
4. The method as claimed in claim 1 , wherein the auxiliary function comprises an abort condition, which aborts the execution of the auxiliary function and returns a processing result if the pre-defined time point is exceeded by the function run-time.
5. The method as claimed in claim 1 , wherein the time monitoring function defines the pre-defined abort time point at the time of calling as the sum of the current time and a maximum allowed time interval.
6. The method as claimed in claim 1 , wherein on termination the time monitoring function outputs a characteristic parameter which indicates the proportion of the function execution completed.
7. The method as claimed in claim 6 , wherein the auxiliary function has a plurality of function elements and wherein the characteristic variable which is output when terminating the time monitoring function indicates the accumulated proportion of the completed execution of the function elements and/or the number of accumulated function elements.
8. The method as claimed in claim 1 , wherein on terminating the time monitoring function outputs a time value which indicates the time difference between the current time and the pre-defined abort time.
9. The method as claimed claim 1 , wherein on termination the time monitoring function outputs an error code which indicates an error condition in the execution of the time monitoring function.
10. The method as claimed in claim 1 , wherein the time monitoring function has at least one subordinate time monitoring function element, which defines an abort time for an assigned auxiliary function within the pre-defined task run-time before the abort time of the time monitoring function.
11. The method as claimed in claim 10 , wherein the time monitoring function is managed using a stack.
12. A real-time environment management system comprising: at least one task which is executed on a programmable logic control (PLC) with a pre-defined task run-time, the task comprising processing data of a system including sensors and actuators controlled by the programmable logic controller (PLC), and at least one auxiliary function with indeterminate function run-time which is to be processed within the specified task run-time by a time monitoring function, the at least one auxiliary function comprising processing data of an auxiliary system, wherein the time monitoring function and the auxiliary function form a command structure, wherein the time monitoring function is started immediately before and is stopped immediately after the auxiliary function within the command structure, and wherein the time monitoring function defines the pre-defined abort time point at the time of calling as the sum of the current time and a maximum allowed time interval.
13. The real-time environment management system as claimed in claim 12 , wherein the time monitoring function is configured as a wrapper function which surrounds the program code of the auxiliary function, so that the program code of the auxiliary function is executed within the program code of the time monitoring function.
14. The real-time environment management system as claimed in claim 12 , wherein the auxiliary function comprises an abort condition, which aborts the execution of the auxiliary function and returns a processing result if the pre-defined time point is exceeded by the function run-time.
15. A programmable logic controller, which is connected via a fieldbus to actuators and sensors of a production system, wherein the programmable logic controller comprises: a real-time environment, in which at least one task is executed with a pre-defined task run-time, the task being used for controlling the actuators and the sensors, and at least one auxiliary function with indeterminate function run-time, the auxiliary function being used for processing data of an auxiliary system, wherein an execution of the auxiliary function with indeterminate function run-time is synchronized with the task by a time monitoring function, and wherein the time monitoring function has at least one subordinate time monitoring function element, which defines an abort time for an assigned auxiliary function within the pre-defined task run-time before the abort time of the time monitoring function.
16. The programmable logic controller as claimed in claim 15 , which is connected to a functional unit for image acquisition, to transmit the image data thereof into the real-time environment, wherein the auxiliary function is a vision function for the processing and/or analysis of the image data.
17. The programmable logic controller as claimed in claim 15 , wherein the time monitoring function is managed using a stack.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
September 28, 2018
September 22, 2020
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.