Search

DE-102018008369-B4 - Numerical control device

DE102018008369B4DE 102018008369 B4DE102018008369 B4DE 102018008369B4DE-102018008369-B4

Abstract

Numerical control device capable of providing an interface that performs safe task control for adding an original function, wherein the numerical control device comprises: - a memory management unit that is set up to develop or initialize a program executed by a task in memory, analyze the program, and gather information about the program, - an execution time calculation unit that is set up to calculate an execution time of the task, - an execution condition setting unit configured to set an execution condition of the task based on the execution results of the memory management unit and the execution time calculation unit, - a task monitoring unit that is configured to monitor the state of a computing unit and to determine the computing unit to which the task is assigned, and - a task control unit that is configured to register and start the task in the assigned computing unit based on the execution condition.

Inventors

  • Yuuki Sakayori
  • Akira KANEMARU

Assignees

  • FANUC CORPORATION

Dates

Publication Date
20260513
Application Date
20181023
Priority Date
20171025

Claims (5)

  1. A numerical control unit capable of providing an interface for safe task control to add original functionality, wherein the numerical control unit comprises: - a memory management unit configured to develop or initialize a program executed by a task in memory, analyze the program, and gather information about the program; - an execution time calculation unit configured to calculate the execution time of the task; - an execution condition determination unit configured to determine an execution condition of the task based on the execution results of the memory management unit and the execution time calculation unit; - a task monitoring unit configured to monitor the state of an arithmetic unit and determine the arithmetic unit to which the task is assigned; and - a task control unit configured to register and start the task in the assigned arithmetic unit based on the execution condition.
  2. Numerical control device according to Claim 1 , where the task control unit stops the started task in response to a command.
  3. Numerical control device according to Claim 2 , where the task control unit deletes the stopped task in response to a command.
  4. Numerical control device according to Claim 1 , wherein the task monitoring unit determines the computing unit that performs the task based on the idle times or sleep/dormant times of a plurality of computing units.
  5. Numerical control device according to Claim 1 , whereby a message is issued if the memory management unit is unable to develop the program in memory, or if the task monitoring unit is unable to determine the computing unit that is executing the task.

Description

Background of the invention Field of invention The present invention relates to a numerical control device and, in particular, a numerical control device to which original functions can be safely added. Description of the relevant state of the art There is a need to add original functions, such as condition monitoring, high-speed axis control, and emergency safety functions for a machine tool, to a numerical control device. To meet this need, it is necessary to provide an interface for registering tasks at any time, e.g., during the operation of a machining program, a mechanism to make a specific processing operation memory-resident and execute it multiple times, and the like. A universal multitasking operating system can perform operations to register, start, stop, and delete tasks at any given time, providing a software developer with an interface to implement such task control according to purpose and task execution situations. Furthermore, by specifying the task start cycle and priority, the execution sequence and timing of multiple tasks can be managed, allowing for finer control of system operation. The disclosed Japanese patent application JP 2000- 293 386 A For example, it describes an operating system which, when it is determined that the current remaining memory capacity is insufficient to execute a new task, calculates the task utilization rate, stops a running task with the lowest utilization rate, and repeats the calculation and task stopping so that free space is created. However, numerical control systems require higher levels of reliability and security than general-purpose multitasking operating systems. Therefore, conventional numerical control systems, based on the assumption that tasks to be executed are pre-registered, are designed such that task switching times and the like are set to maintain a reasonable memory utilization rate and CPU operating speed. In other words, the conventional numerical control system is not based on the assumption that tasks are registered or started at a time specified by a user. Simply adding an interface for arbitrarily controlling tasks to a conventional numerical control device of this type can cause unexpected changes in behavior. For example, if tasks are registered or started at arbitrary times, system errors can occur due to a delay in axis control processing, a reduction in communication speed, or memory exhaustion. This can potentially reduce the reliability and operational stability of the numerical control device. Therefore, there is a need for an interface capable of arbitrarily controlling tasks without compromising the necessary reliability and safety. Summary of the invention The present invention was made to solve the above problems and aims to provide a numerical control device to which original functions can be safely added. A numerical control device according to one aspect of the present invention is capable of providing an interface that performs safe task control for adding an original function. The numerical control device comprises a memory management unit configured to develop or initialize a program executed by the task in memory, analyze the program, and acquire information about the program; an execution time calculation unit configured to calculate the execution time of the task; an execution condition determination unit configured to determine an execution condition of the task based on the execution results of the memory management unit and the execution time calculation unit; a task monitoring unit configured to monitor the state of a computing unit and determine the computing unit to which the task is assigned; and a task control unit configured to register and start the task in the assigned computing unit based on the execution condition. The task control unit can stop the started task in response to a command. The task control unit can delete the stopped task in response to a command. The task monitoring unit can determine the computing unit executing the task based on the idle times or sleep/dormant mode times of a plurality of computing units. The numerical control unit may issue a message if the memory management unit is unable to develop the program in memory, or if the task monitoring unit is unable to determine the computing unit that is executing the task. According to the present invention, a numerical control device can be provided to which original functions can be safely added. Brief description of the drawings The foregoing and other objectives and features of the present invention are evident from the following description of embodiments with reference to the accompanying drawings. These show: 1 a block diagram showing the functional configuration of a numerical control device; 2 a block diagram showing components of a task registration process; 3 a representation showing a method for arranging executable programs in a memory; 4 a block diagram showing components of a task start processing; 5 a representation