JP2020042517A - Numerical control device - Google Patents

Numerical control device Download PDF

Info

Publication number
JP2020042517A
JP2020042517A JP2018169085A JP2018169085A JP2020042517A JP 2020042517 A JP2020042517 A JP 2020042517A JP 2018169085 A JP2018169085 A JP 2018169085A JP 2018169085 A JP2018169085 A JP 2018169085A JP 2020042517 A JP2020042517 A JP 2020042517A
Authority
JP
Japan
Prior art keywords
operation unit
program
request
control device
priority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018169085A
Other languages
Japanese (ja)
Other versions
JP7283875B2 (en
Inventor
和幸 三上
Kazuyuki Mikami
和幸 三上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fanuc Corp
Original Assignee
Fanuc Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fanuc Corp filed Critical Fanuc Corp
Priority to JP2018169085A priority Critical patent/JP7283875B2/en
Publication of JP2020042517A publication Critical patent/JP2020042517A/en
Application granted granted Critical
Publication of JP7283875B2 publication Critical patent/JP7283875B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P70/00Climate change mitigation technologies in the production process for final industrial or consumer products
    • Y02P70/10Greenhouse gas [GHG] capture, material saving, heat recovery or other energy efficient measures, e.g. motor control, characterised by manufacturing processes, e.g. for rolling metal or metal working

Landscapes

  • Numerical Control (AREA)

Abstract

To provide a numerical control device that optimizes a program acquisition request sequence.SOLUTION: A numerical control device 1 having a plurality of operation units operated by receiving the transfer of a program stored in a storage medium, comprises: an advance request receiving unit 101 for receiving a program transfer request from each of the operation units; a standby buffer 102 for temporarily storing the program transfer request; a request adjustment unit 103 for determining a high-frequency allocation operation unit that is the program transfer request to be transferred with priority from the standby buffer 102; and a data acquisition request control unit 104 for transferring the high-frequency allocation operation unit with the highest priority.SELECTED DRAWING: Figure 8

Description

本発明は、数値制御装置に関し、特にプログラム取得要求順序を最適化する数値制御装置に関する。   The present invention relates to a numerical controller, and more particularly to a numerical controller that optimizes a program acquisition request order.

複数プログラムの同時運転が可能な数値制御装置がある。数値制御装置がプログラムに従って制御する動作の単位を運転単位と称する。運転単位は、運転系統、又は単に系統と称されることもある。   There is a numerical controller capable of simultaneously operating a plurality of programs. An operation unit controlled by the numerical controller according to a program is referred to as an operation unit. The operation unit may be referred to as an operation system or simply a system.

図1は、各運転単位がプログラムを取得する際のフローを示している。プログラムは記憶媒体に格納されている。各運転単位は、データ取得要求制御部に対し、記憶媒体からプログラムを転送するよう要求する。データ取得要求制御部が記憶媒体からプログラムを取得し、各運転単位に引き渡す。各運転単位は、取得されたプログラムをメモリに展開して運転を行う。   FIG. 1 shows a flow when each operation unit acquires a program. The program is stored in a storage medium. Each operation unit requests the data acquisition request control unit to transfer the program from the storage medium. The data acquisition request control unit acquires the program from the storage medium and delivers the program to each operation unit. Each operation unit operates by expanding the acquired program in a memory.

運転単位には大きく2種類ある。実際の加工を行う運転単位(以降、加工運転単位)と、図2及び図3に示すような、テーブル、ワーク交換、ローダ軸、バックドリル及び工具交換等の周辺軸を制御する運転単位(以降、周辺運転単位)である。加工運転単位は精度と密接に関連する運転単位であるため、周辺運転単位よりも安定して動作させる必要性がある。しかし稀に、加工運転単位のプログラム転送要求が、周辺運転単位のプログラム転送要求によって阻害されてしまうことがある。すなわち、タイミングによっては、周辺運転単位のプログラム転送を行っていることが原因で、加工運転単位のプログラム転送に遅れが生じてしまうことがある。これにより、スループットの低下や加工精度の低下を招く恐れがある。このような事態を回避するためには、特定の運転単位(加工運転単位)に関するプログラム転送を優先的に処理するような制御を行うことが望まれる。   There are two main types of operation units. An operation unit for performing actual machining (hereinafter referred to as a machining operation unit) and an operation unit for controlling peripheral axes such as a table, a workpiece exchange, a loader axis, a back drill, and a tool exchange (hereinafter, referred to as FIGS. 2 and 3) , Peripheral operation units). Since the processing operation unit is an operation unit closely related to the accuracy, it is necessary to operate more stably than the peripheral operation unit. However, in rare cases, the program transfer request of the machining operation unit may be obstructed by the program transfer request of the peripheral operation unit. In other words, depending on the timing, the program transfer of the machining operation unit may be delayed due to the transfer of the program of the peripheral operation unit. As a result, there is a possibility that the throughput and the processing accuracy will be reduced. In order to avoid such a situation, it is desired to perform control such that program transfer relating to a specific operation unit (processing operation unit) is preferentially processed.

図3に、プログラム転送の阻害が生じる状況の一例を示す。プログラムの同時転送数は、ハードウェア又はソフトウェア上の理由により上限がある。例えばプログラム転送を処理するためのスロットの上限数は、ハードウェアのバッファサイズ等に依存する。データ取得要求制御部は、上限を超える数のプログラム取得要求に同時に対応することはできないため、図4に×印で示すように、一時的に、一部の要求に対する応答(プログラムの転送)を保留させざるを得ない状態が発生することがある。   FIG. 3 shows an example of a situation in which program transfer is inhibited. The number of simultaneous transfers of a program has an upper limit for hardware or software reasons. For example, the upper limit number of slots for processing the program transfer depends on the buffer size of hardware and the like. Since the data acquisition request control unit cannot simultaneously respond to the number of program acquisition requests exceeding the upper limit, as shown by the crosses in FIG. 4, the data acquisition request control unit temporarily responds to some of the requests (program transfer). There may be situations where it is necessary to suspend.

特許文献1には、プログラム転送に優先順位を付すことが可能な数値制御装置が記載されている。特許文献2には、複数の運転単位からのプログラム転送要求を処理できる数値制御装置が記載されている。   Patent Literature 1 discloses a numerical controller capable of assigning priorities to program transfers. Patent Literature 2 discloses a numerical controller capable of processing a program transfer request from a plurality of operation units.

特開平3−189705号公報JP-A-3-189705 特開平4−068407号公報JP-A-4-068407

しかしながら、引用文献1及び2はいずれも、複数の運転単位間でプログラム転送要求の優先度を制御するという思想や、当該思想を実現するための具体的な手法を開示していない。   However, neither of the cited documents 1 and 2 disclose a concept of controlling the priority of a program transfer request between a plurality of operation units and a specific method for realizing the concept.

本発明はこのような課題を解決するためのものであり、プログラム取得要求に対する応答順序を最適化する数値制御装置を提供することを目的とする。   The present invention has been made to solve such a problem, and an object of the present invention is to provide a numerical control device that optimizes a response order to a program acquisition request.

本発明の一実施形態にかかる数値制御装置は、記憶媒体に格納されたプログラムの転送を受けて運転される複数の運転単位を有する数値制御装置であって、前記運転単位各々からのプログラム転送要求を受け付ける事前要求受付部と、前記プログラム転送要求を一時的に格納する待機バッファと、前記待機バッファから、優先的に転送すべき前記プログラム転送要求である高頻度割り当て運転単位を決定する要求調整部と、高頻度割り当て運転単位を最優先で転送するデータ取得要求制御部と、を有することを特徴とする。
本発明の一実施形態にかかる数値制御装置は、優先的に転送すべき前記プログラム転送要求を判断するための条件である優先運転単位判断情報を格納する優先運転単位判断情報格納部をさらに有し、前記要求調整部は、前記優先運転単位判断情報に基づいて、高頻度割り当て運転単位を選択する決定することを特徴とする。
本発明の一実施形態にかかる数値制御装置は、前記優先運転単位判断情報は、前記数値制御装置の過去の運転データやその解析データに基づく情報を含むことを特徴とする。
本発明の一実施形態にかかる数値制御装置は、前記優先運転単位判断情報は、前記数値制御装置の現在の運転状態に基づく情報を含むことを特徴とする。
本発明の一実施形態にかかる数値制御装置は、前記優先運転単位判断情報は、優先して転送すべきプログラムをユーザが指定した情報を含むことを特徴とする。
A numerical control device according to an embodiment of the present invention is a numerical control device having a plurality of operation units that are operated by receiving a transfer of a program stored in a storage medium, wherein a program transfer request from each of the operation units is provided. A request reception unit that receives a request, a standby buffer that temporarily stores the program transfer request, and a request adjustment unit that determines, from the standby buffer, a high-frequency allocation operation unit that is the program transfer request to be transferred preferentially. And a data acquisition request control unit that transfers the frequently assigned operation units with the highest priority.
The numerical control device according to an embodiment of the present invention further includes a priority operation unit determination information storage unit that stores priority operation unit determination information that is a condition for determining the program transfer request to be transferred with priority. The request adjustment unit determines to select a high-frequency allocation operation unit based on the priority operation unit determination information.
The numerical control device according to an embodiment of the present invention is characterized in that the priority operation unit determination information includes information based on past operation data of the numerical control device and analysis data thereof.
The numerical control device according to an embodiment of the present invention is characterized in that the priority operation unit determination information includes information based on a current operation state of the numerical control device.
The numerical control device according to an embodiment of the present invention is characterized in that the priority operation unit determination information includes information in which a user specifies a program to be transferred with priority.

本発明により、プログラム取得要求に対する応答順序を最適化する数値制御装置を提供することができる。   According to the present invention, it is possible to provide a numerical control device that optimizes the order of response to a program acquisition request.

従来の数値制御装置の動作を示す図である。FIG. 9 is a diagram illustrating an operation of a conventional numerical control device. 従来の課題を示す図である。It is a figure showing a conventional subject. 従来の課題を示す図である。It is a figure showing a conventional subject. 従来の課題を示す図である。It is a figure showing a conventional subject. 数値制御装置1のハードウェア構成例を示す図である。FIG. 2 is a diagram illustrating a hardware configuration example of a numerical control device 1. 従来の数値制御装置の機能構成を示す図である。FIG. 9 is a diagram showing a functional configuration of a conventional numerical control device. 従来の数値制御装置の動作を示す図である。FIG. 9 is a diagram illustrating an operation of a conventional numerical control device. 数値制御装置1の機能構成を示す図である。FIG. 2 is a diagram illustrating a functional configuration of the numerical control device 1. 数値制御装置1の動作を示す図である。FIG. 3 is a diagram illustrating an operation of the numerical controller 1. 従来の数値制御装置の動作を示す図である。FIG. 9 is a diagram illustrating an operation of a conventional numerical control device. 数値制御装置1の動作を示す図である。FIG. 3 is a diagram illustrating an operation of the numerical controller 1. 数値制御装置1の動作を示す図である。FIG. 3 is a diagram illustrating an operation of the numerical controller 1. 数値制御装置1の動作を示す図である。FIG. 3 is a diagram illustrating an operation of the numerical controller 1.

本発明の実施の形態にかかる数値制御装置1は、図13に示すように、プログラム要求の順序を最適化することで、上記課題を解決するものである。   The numerical control device 1 according to the embodiment of the present invention solves the above-mentioned problem by optimizing the order of program requests as shown in FIG.

図5は、本発明の実施の形態にかかる数値制御装置1の要部を示す概略的なハードウェア構成図である。数値制御装置1は、工作機械を含む産業用機械の制御を行う装置である。数値制御装置1は、CPU11、ROM12、RAM13、不揮発性メモリ14、バス10、軸制御回路16、サーボアンプ17、インタフェース18を有する。数値制御装置1には、サーボモータ50、入出力装置60が接続される。   FIG. 5 is a schematic hardware configuration diagram illustrating a main part of the numerical control device 1 according to the embodiment of the present invention. The numerical control device 1 is a device that controls an industrial machine including a machine tool. The numerical controller 1 has a CPU 11, a ROM 12, a RAM 13, a nonvolatile memory 14, a bus 10, an axis control circuit 16, a servo amplifier 17, and an interface 18. The servomotor 50 and the input / output device 60 are connected to the numerical control device 1.

CPU11は、数値制御装置1を全体的に制御するプロセッサである。CPU11は、ROM12に格納されたシステム・プログラムをバス10を介して読み出し、システム・プログラムに従って数値制御装置1全体を制御する。   The CPU 11 is a processor that controls the numerical controller 1 as a whole. The CPU 11 reads out a system program stored in the ROM 12 via the bus 10 and controls the entire numerical controller 1 according to the system program.

ROM12は、例えば工作機械等の産業用機械の各種制御を実行するためのシステム・プログラムを予め格納している。   The ROM 12 stores, in advance, a system program for executing various controls of an industrial machine such as a machine tool.

RAM13は、一時的な計算データや表示データ、入出力装置60を介してオペレータが入力したデータやプログラム等を一時的に格納する。   The RAM 13 temporarily stores temporary calculation data and display data, data and programs input by the operator via the input / output device 60, and the like.

不揮発性メモリ14は、例えば図示しないバッテリでバックアップされており、数値制御装置1の電源が遮断されても記憶状態を保持する。不揮発性メモリ14は、入出力装置60から入力されるデータやプログラム等を格納する。不揮発性メモリ14に記憶されたプログラムやデータは、実行時及び利用時にはRAM13に展開されても良い。   The non-volatile memory 14 is backed up by, for example, a battery (not shown), and retains the stored state even when the power of the numerical controller 1 is cut off. The non-volatile memory 14 stores data, programs, and the like input from the input / output device 60. The programs and data stored in the nonvolatile memory 14 may be expanded in the RAM 13 at the time of execution and use.

軸制御回路16は、産業用機械の動作軸を制御する。軸制御回路16は、CPU11が出力する軸の移動指令量を受けて、動作軸の移動指令をサーボアンプ17に出力する。   The axis control circuit 16 controls the operation axis of the industrial machine. The axis control circuit 16 receives an axis movement command amount output by the CPU 11 and outputs a movement command of an operation axis to the servo amplifier 17.

サーボアンプ17は、軸制御回路16が出力する軸の移動指令を受けて、サーボモータ50を駆動する。   The servo amplifier 17 drives the servomotor 50 in response to an axis movement command output from the axis control circuit 16.

サーボモータ50は、サーボアンプ17により駆動されて産業用機械の動作軸を動かす。サーボモータ50は、典型的には位置・速度検出器を内蔵する。位置・速度検出器は位置・速度フィードバック信号を出力し、この信号が軸制御回路16にフィードバックされることで、位置・速度のフィードバック制御が行われる。   The servo motor 50 is driven by the servo amplifier 17 to move the operating axis of the industrial machine. The servo motor 50 typically has a built-in position / speed detector. The position / velocity detector outputs a position / velocity feedback signal, and this signal is fed back to the axis control circuit 16 to perform position / velocity feedback control.

なお、図5では軸制御回路16、サーボアンプ17、サーボモータ50は1つずつしか示されていないが、実際には制御対象となる産業用機械に備えられた軸の数だけ用意される。例えば親軸、子軸の2軸を制御する場合、軸制御回路16、サーボアンプ17、サーボモータ50は2セット用意される。   Although only one axis control circuit 16, one servo amplifier 17, and one servo motor 50 are shown in FIG. 5, actually, the same number of axes as those provided in the industrial machine to be controlled are prepared. For example, when controlling two axes of a parent axis and a child axis, two sets of the axis control circuit 16, the servo amplifier 17, and the servomotor 50 are prepared.

入出力装置60は、ディスプレイやハードウェアキー等を備えたデータ入出力装置であり、典型的にはMDI又は操作盤である。入出力装置60は、インタフェース18を介してCPU11から受けた情報をディスプレイに表示する。入出力装置60は、ハードウェアキー等から入力された指令やデータ等をインタフェース18を介してCPU11に渡す。   The input / output device 60 is a data input / output device provided with a display, hardware keys, and the like, and is typically an MDI or an operation panel. The input / output device 60 displays information received from the CPU 11 via the interface 18 on a display. The input / output device 60 transfers commands, data, and the like input from a hardware key or the like to the CPU 11 via the interface 18.

本実施の形態にかかる数値制御装置1の特徴的な機能構成を、従来の数値制御装置の機能構成と対比して示す。   A characteristic functional configuration of the numerical control device 1 according to the present embodiment will be described in comparison with a functional configuration of a conventional numerical control device.

図6は従来の数値制御装置の機能構成を示すブロック図である。従来の数値制御装置は、各運転単位からのプログラム転送要求を受け付ける待機バッファ、待機バッファにプログラム運転要求が到着した順に記憶媒体から運転単位へプログラムを転送するデータ取得要求制御部を有する。図7のフローチャートに示すように、従来の数値制御装置は、プログラム転送要求を受け付けた時点の空き処理スロットで、直ちにプログラム転送処理を開始する。仮にその時点で空きスロットがなければ、プログラム転送要求は拒否される。そのため、タイミング次第では、図6に示すように、周辺運転単位2や3の要求を処理している間、加工運転単位1の要求を拒否せざるを得ない場合(図中に×印で示す)が生じうる。   FIG. 6 is a block diagram showing a functional configuration of a conventional numerical controller. The conventional numerical controller has a standby buffer for receiving a program transfer request from each operation unit, and a data acquisition request control unit for transferring a program from a storage medium to an operation unit in the order in which the program operation request arrives at the standby buffer. As shown in the flowchart of FIG. 7, the conventional numerical control device starts the program transfer process immediately in an empty processing slot at the time of receiving the program transfer request. If there is no empty slot at that time, the program transfer request is rejected. For this reason, depending on the timing, as shown in FIG. 6, while processing the requests for the peripheral operation units 2 and 3, the request for the processing operation unit 1 must be rejected (indicated by a cross in the figure). ) Can occur.

図8は、本実施の形態にかかる数値制御装置1の機能構成を示す図である。数値制御装置1は、本発明の特徴的な動作を実現するための処理部として、事前要求受付部101、待機バッファ102、要求調整部103、データ取得要求制御部104、優先運転単位判断情報格納部105を有する。図9のフローチャートを参照しつつ、これらの処理部の動作について説明する。   FIG. 8 is a diagram illustrating a functional configuration of the numerical control device 1 according to the present embodiment. The numerical control device 1 includes a pre-request receiving unit 101, a standby buffer 102, a request adjusting unit 103, a data acquisition request control unit 104, and a priority operation unit determination information storage as processing units for realizing the characteristic operation of the present invention. It has a part 105. The operation of these processing units will be described with reference to the flowchart of FIG.

事前要求受付部101は、各運転単位からのプログラム転送要求を受け付けて、待機バッファ102に一時的に蓄積する。これにより、プログラム転送要求は待ち状態となる(S101)。   The advance request receiving unit 101 receives a program transfer request from each operation unit and temporarily stores the request in the standby buffer 102. As a result, the program transfer request enters a waiting state (S101).

要求調整部103は、優先運転単位判断情報格納部105に格納されている優先運転単位判断情報に基づいて、プログラム転送要求を実行する優先度を決定する。   The request adjustment unit 103 determines the priority for executing the program transfer request based on the priority operation unit determination information stored in the priority operation unit determination information storage unit 105.

優先運転単位判断情報には、例えば以下のような情報が含まれる。
・ユーザ設定
・ユーザが予め指定した、取得頻度の高い(又は低い)プログラム名(又はプログラム番号等)であるか。
・取得頻度の高い(又は低い)プログラムを格納するためにユーザが予め指定したフォルダ又はメモリ領域内に存在するプログラムか。
・運転状態
・取得頻度が高い(又は低い)ことが予め判っているプログラムが実行されているか。
・取得頻度が高い(又は低い)ことが予め判っている機能を利用する運転単位であるか。
・高速な、すなわちデータ転送速度が所定の閾値以上である(又は低速な、すなわちデータ転送速度が所定の閾値未満である)記憶媒体や通信方式を使用してプログラムを取得しているか。
・過去の運転データやその解析データ
・過去に運転した時に、データ取得頻度又は時間が所定の閾値以上(又は未満)であったプログラムか。
The priority operation unit determination information includes, for example, the following information.
-User settings-Is the program name (or program number, etc.) specified by the user in advance and frequently (or infrequently) obtained?
Whether the program exists in a folder or memory area designated by the user in advance to store a program with a high acquisition frequency (or a low acquisition frequency).
・ Operating state ・ Is a program that is known in advance to be frequently (or infrequently) executed?
-Is the operation unit using a function that is known in advance to have a high (or low) acquisition frequency?
Whether the program is acquired using a high-speed storage medium or a communication method in which the data transfer speed is equal to or higher than a predetermined threshold (or in which the data transfer speed is low, that is, lower than the predetermined threshold).
・ Past driving data and its analysis data ・ Is the program the data acquisition frequency or time of which was equal to or greater than (or less than) a predetermined threshold value when operating in the past?

要求調整部103は、待機バッファ102に格納されているデータ転送要求において要求されているプログラムが、優先運転単位判断情報で指定されたプログラムに該当するか否かを判断する。該当する場合、その運転単位におけるプログラムの取得頻度を上げる(又は下げる)。すなわち、他の運転単位と比べて優先的に(又は劣後して)プログラム転送処理を開始する。   The request adjustment unit 103 determines whether the program requested in the data transfer request stored in the standby buffer 102 corresponds to the program specified by the priority operation unit determination information. If applicable, increase (or decrease) the frequency of program acquisition in that unit of operation. That is, the program transfer process is started preferentially (or inferiorly) to the other operation units.

例えば、取得頻度が高い(又は低い)ことが予め判っているプログラムには、例えば微小線分やパルスデータ等を含むプログラムがある。要求調整部103は、待機バッファ102に格納されているデータ転送要求において要求されているプログラムが、このようなプログラムであるか否かを判定する。例えば微小線分を指令として含むプログラムであれば、要求調整部103は、このプログラムを要求した運転単位のプログラム取得頻度を上げる処理を行う。   For example, a program that is known in advance to have a high (or low) acquisition frequency includes, for example, a program including minute line segments, pulse data, and the like. The request adjustment unit 103 determines whether the program requested in the data transfer request stored in the standby buffer 102 is such a program. For example, if the program includes a minute line segment as a command, the request adjustment unit 103 performs a process of increasing the program acquisition frequency of the operation unit that has requested the program.

また、例えば、待機バッファ102に格納されているデータ転送要求において要求されているプログラムが、データ転送速度が所定の閾値未満である低速な記憶媒体に格納されている場合、要求調整部103は、このプログラムを要求した運転単位のプログラム取得頻度(優先度)を上げる処理を行う。   Further, for example, when the program requested in the data transfer request stored in the standby buffer 102 is stored in a low-speed storage medium whose data transfer speed is less than a predetermined threshold, the request adjustment unit 103 Processing is performed to increase the program acquisition frequency (priority) of the operation unit that requested this program.

要求調整部103により「プログラム取得頻度を上げる」処理が行われた運転単位を、高頻度割り当て運転単位と称する。一方、かつて高頻度割り当て運転単位であって、要求調整部103により「プログラム取得頻度を下げる」処理が行われた運転単位は、もはや高頻度割り当て運転単位とは称されない。要求調整部103は、高頻度割り当て運転単位からのプログラム転送要求については、次に空き処理スロットが生じた際に、当該処理スロットで強制的に(先着のプログラム転送要求が存在したとしても)転送を実行する。   The operation unit for which the process of “raising the program acquisition frequency” has been performed by the request adjustment unit 103 is referred to as a high-frequency allocation operation unit. On the other hand, an operation unit that was a high-frequency allocation operation unit and that has been subjected to the process of “reducing the program acquisition frequency” by the request adjustment unit 103 is no longer referred to as a high-frequency allocation operation unit. The request coordinator 103 forcibly transfers the program transfer request from the frequently assigned operation unit when the next available processing slot occurs (even if there is a first-come first-served program transfer request) in the processing slot. Execute

データ取得要求制御部104は、要求調整部103が決定した優先度に従ってプログラム転送要求を実行する。すなわち、待機バッファ102からプログラム転送要求を取り出し、次に空く処理スロットを使用して、要求されたプログラムの記憶媒体からの取得及び運転単位への転送を実行する。高頻度割り当て運転単位が存在する場合は当該運転単位を最優先で転送し、その他の運転単位は可能な限り等頻度で転送する。高頻度割り当て運転単位が存在しない場合は、全ての運転単位を等頻度で転送する。   The data acquisition request control unit 104 executes a program transfer request according to the priority determined by the request adjustment unit 103. That is, the program transfer request is extracted from the standby buffer 102, and the acquisition of the requested program from the storage medium and transfer to the operation unit are executed using the next available processing slot. If a high-frequency assignment operation unit exists, the operation unit is transferred with the highest priority, and the other operation units are transferred with the same frequency as possible. If there is no frequently-assigned operation unit, all operation units are transferred at equal frequency.

図10乃至図13を用いて、従来の数値制御装置と対比しつつ、本実施の形態にかかる数値制御装置1の動作例について説明する。この例では、プログラム転送処理に同時に使用できる処理スロット数が2であるものとする。   An operation example of the numerical control device 1 according to the present embodiment will be described with reference to FIGS. 10 to 13 while comparing with a conventional numerical control device. In this example, it is assumed that the number of processing slots that can be used simultaneously for the program transfer processing is two.

図10は、従来の数値制御装置によるプログラム転送処理の動作例を示す図である。グラフの横軸は時間(1マスは1制御周期)を示している。この例では、運転単位3→2→1の順に周期的にプログラム転送要求が発生している。運転単位2及び3の転送処理にそれぞれ3制御周期を要するとした場合、タイミングによっては、図10に示すように、運転単位1のプログラム転送要求が毎度拒絶される(×印で示す)事態も生じうる。   FIG. 10 is a diagram showing an operation example of a program transfer process by a conventional numerical control device. The horizontal axis of the graph indicates time (one cell is one control cycle). In this example, a program transfer request is generated periodically in the order of operation units 3 → 2 → 1. Assuming that three control cycles are required for the transfer processing of the operation units 2 and 3, respectively, depending on the timing, as shown in FIG. 10, a program transfer request of the operation unit 1 may be rejected every time (indicated by a cross). Can occur.

図11及び図12は、本実施の形態の数値制御装置1によるプログラム転送処理の動作例を示す図である。この例でも、運転単位3→2→1の順に周期的にプログラム転送要求が発生している。プログラム転送要求は、一旦待機バッファ102に蓄えられ、要求調整部103により高頻度割り当て運転単位が決定される。   FIG. 11 and FIG. 12 are diagrams illustrating an operation example of a program transfer process by the numerical controller 1 according to the present embodiment. Also in this example, a program transfer request is generated periodically in the order of operation units 3 → 2 → 1. The program transfer request is temporarily stored in the standby buffer 102, and the request adjusting unit 103 determines a frequently assigned operation unit.

図12は、高頻度割り当て運転単位が存在しない場合の動作例である。この場合、全運転単位に可能な限り等頻度に空きスロットが割り当てられる。図中の★印は優先運転単位、すなわち次に空きスロットが生じた際にデータ転送が実行される運転単位を示している。要求調整部103は、各運転単位に対し可能な限り等頻度でプログラム転送処理が実行されるよう、優先運転単位を決定する。   FIG. 12 is an operation example in the case where there is no frequently assigned operation unit. In this case, empty slots are allocated to all operation units as evenly as possible. In the figure, the symbol “★” indicates a priority operation unit, that is, an operation unit in which data transfer is performed when a next empty slot occurs. The request adjusting unit 103 determines a priority operation unit so that the program transfer process is executed as frequently as possible for each operation unit.

図11は、高頻度割り当て運転単位が存在しない場合の動作例である。この場合、高頻度割り当て運転単位に最優先で空きスロットが割り当てられる。その他の運転単位には、可能な限り等頻度に空きスロットが割り当てられる。図中に白い矢印で示されているように、高頻度割り当て運転単位が発生すると、その時点での優先運転単位が、強制的に高頻度割り当て運転単位に変更される。高頻度割り当て運転単位の転送処理が終了すると、優先運転単位は元の状態(変更前の優先運転単位)に戻される。   FIG. 11 is an operation example in the case where the frequently assigned operation unit does not exist. In this case, an empty slot is assigned to the frequently assigned operation unit with the highest priority. Empty slots are allocated to other operation units as frequently as possible. As shown by the white arrow in the figure, when a high-frequency allocation operation unit occurs, the priority operation unit at that time is forcibly changed to the high-frequency allocation operation unit. When the transfer processing of the frequently-assigned operation unit ends, the priority operation unit is returned to the original state (priority operation unit before change).

本実施の形態によれば、要求調整部103が優先運転単位判断情報に基づいて高頻度割り当て運転単位を決定し、データ取得要求制御部104は高頻度割り当て運転単位を最優先で転送する。これにより、精度に重要な影響を及ぼす運転単位などを優先して動作させることができるので、精度やスループットが向上する。   According to the present embodiment, the request adjustment unit 103 determines the high-frequency allocation operation unit based on the priority operation unit determination information, and the data acquisition request control unit 104 transfers the high-frequency allocation operation unit with the highest priority. As a result, the operation unit that has an important effect on the accuracy can be preferentially operated, so that the accuracy and the throughput are improved.

また、本実施の形態によれば、データ取得要求制御部104は高頻度割り当て運転単位以外の運転単位については可能な限り等頻度で処理スロットを割り当てて転送を行う。これにより、プログラムを取得できない運転単位が生じることを抑制できる。   Further, according to the present embodiment, the data acquisition request control unit 104 allocates processing slots with equal frequency as much as possible for the operation units other than the high-frequency allocation operation unit, and transfers the data. Thereby, it is possible to suppress the occurrence of an operation unit in which a program cannot be obtained.

なお、本発明は上述の実施の形態に限定されるものではなく、本発明の趣旨を損なわない限り適宜変更可能である。例えば、上述の実施の形態では、高頻度割り当て運転単位として1つの運転単位を選定した。しかしながら、例えば要求調整部103は、優先運転単位判断情報の各々に重み付けをするなどして、転送処理の優先度を複数段階で評価できるように構成しても良い。この場合、データ取得要求制御部104は、最も優先度の高い運転単位から順に転送処理を行う。   It should be noted that the present invention is not limited to the above-described embodiment, and can be appropriately changed without impairing the spirit of the present invention. For example, in the above-described embodiment, one operation unit is selected as the frequently-assigned operation unit. However, for example, the request adjusting unit 103 may be configured to evaluate the priority of the transfer process in a plurality of stages by weighting each of the priority operation unit determination information. In this case, the data acquisition request control unit 104 performs the transfer process in order from the operation unit with the highest priority.

1 数値制御装置
11 CPU
12 ROM
13 RAM
14 不揮発性メモリ
18 インタフェース
10 バス
16 軸制御回路
17 サーボアンプ
50 サーボモータ
60 入出力装置
101 事前要求受付部
102 待機バッファ
103 要求調整部
104 データ取得要求制御部
105 優先運転単位判断情報格納部
1 Numerical control unit 11 CPU
12 ROM
13 RAM
14 Non-volatile memory 18 Interface 10 Bus 16 Axis control circuit 17 Servo amplifier 50 Servo motor 60 Input / output device 101 Prior request receiving unit 102 Standby buffer 103 Request adjusting unit 104 Data acquisition request control unit 105 Priority operation unit judgment information storage unit

Claims (5)

記憶媒体に格納されたプログラムの転送を受けて運転される複数の運転単位を有する数値制御装置であって、
前記運転単位各々からのプログラム転送要求を受け付ける事前要求受付部と、
前記プログラム転送要求を一時的に格納する待機バッファと、
前記待機バッファから、優先的に転送すべき前記プログラム転送要求である高頻度割り当て運転単位を決定する要求調整部と、
高頻度割り当て運転単位を最優先で転送するデータ取得要求制御部と、を有することを特徴とする
数値制御装置。
A numerical controller having a plurality of operation units operated by receiving a transfer of a program stored in a storage medium,
A prior request receiving unit that receives a program transfer request from each of the operation units;
A standby buffer for temporarily storing the program transfer request,
From the standby buffer, a request adjustment unit that determines a high-frequency allocation operation unit that is the program transfer request to be transferred with priority,
A data acquisition request control unit for transferring a high-frequency allocation operation unit with the highest priority.
優先的に転送すべき前記プログラム転送要求を判断するための条件である優先運転単位判断情報を格納する優先運転単位判断情報格納部をさらに有し、
前記要求調整部は、前記優先運転単位判断情報に基づいて、高頻度割り当て運転単位を選択する決定することを特徴とする
請求項1に記載の数値制御装置。
A priority operation unit determination information storage unit that stores priority operation unit determination information that is a condition for determining the program transfer request to be transferred preferentially;
The numerical control device according to claim 1, wherein the request adjustment unit determines to select a high-frequency-assigned operation unit based on the priority operation unit determination information.
前記優先運転単位判断情報は、前記数値制御装置の過去の運転データやその解析データに基づく情報を含むことを特徴とする
請求項2に記載の数値制御装置。
The numerical control device according to claim 2, wherein the priority operation unit determination information includes information based on past operation data of the numerical control device and analysis data thereof.
前記優先運転単位判断情報は、前記数値制御装置の現在の運転状態に基づく情報を含むことを特徴とする
請求項2に記載の数値制御装置。
The numerical control device according to claim 2, wherein the priority operation unit determination information includes information based on a current operation state of the numerical control device.
前記優先運転単位判断情報は、優先して転送すべきプログラムをユーザが指定した情報を含むことを特徴とする
請求項2に記載の数値制御装置。
The numerical control device according to claim 2, wherein the priority operation unit determination information includes information in which a program to be transferred with priority is specified by a user.
JP2018169085A 2018-09-10 2018-09-10 Numerical controller Active JP7283875B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018169085A JP7283875B2 (en) 2018-09-10 2018-09-10 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018169085A JP7283875B2 (en) 2018-09-10 2018-09-10 Numerical controller

Publications (2)

Publication Number Publication Date
JP2020042517A true JP2020042517A (en) 2020-03-19
JP7283875B2 JP7283875B2 (en) 2023-05-30

Family

ID=69798382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018169085A Active JP7283875B2 (en) 2018-09-10 2018-09-10 Numerical controller

Country Status (1)

Country Link
JP (1) JP7283875B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03189705A (en) * 1989-12-20 1991-08-19 Ando Electric Co Ltd Mc device with pre-reading board
JP2007219977A (en) * 2006-02-20 2007-08-30 Fuji Xerox Co Ltd Information processing apparatus
WO2014119269A1 (en) * 2013-02-04 2014-08-07 日本電気株式会社 Data set multiplicity change device, server, and data set multiplicity change method
JP2015079461A (en) * 2013-10-18 2015-04-23 ファナック株式会社 Numerical control device including program lookahead function
JP2015172881A (en) * 2014-03-12 2015-10-01 富士通株式会社 Distribution method, device, program; and resource acquisition method, device and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03189705A (en) * 1989-12-20 1991-08-19 Ando Electric Co Ltd Mc device with pre-reading board
JP2007219977A (en) * 2006-02-20 2007-08-30 Fuji Xerox Co Ltd Information processing apparatus
WO2014119269A1 (en) * 2013-02-04 2014-08-07 日本電気株式会社 Data set multiplicity change device, server, and data set multiplicity change method
JP2015079461A (en) * 2013-10-18 2015-04-23 ファナック株式会社 Numerical control device including program lookahead function
JP2015172881A (en) * 2014-03-12 2015-10-01 富士通株式会社 Distribution method, device, program; and resource acquisition method, device and program

Also Published As

Publication number Publication date
JP7283875B2 (en) 2023-05-30

Similar Documents

Publication Publication Date Title
US20160091889A1 (en) Numerical control system
CN106406134B (en) Servo control system with learning control device
CN100382033C (en) Computer system
US9921556B2 (en) Machine controller and power consumption control of machine tool peripherals
JP6408060B1 (en) Numerical controller
TWI712951B (en) Task management method, host and storage device for electronic storage device
US9824229B2 (en) Controller with enhanced reliability
KR970033457A (en) Memory means access control method and numerical control device in numerical control device
JP2020042517A (en) Numerical control device
JP4122725B2 (en) Real-time control system
US10838405B2 (en) Numerical controller
EP3200083B1 (en) Resource scheduling method and related apparatus
US7003681B2 (en) Programmable logic controller with an auxiliary processing unit
JP6662819B2 (en) Control system
US10409262B2 (en) Numerical controller for data request with variable data size
JP7464386B2 (en) Control device and control method
US20170146973A1 (en) Numerical control device for realizing high-speed input and output of external signal in servo controller
CN113867271A (en) Production system, upper-level control device, communication method, and storage medium
JP2003345406A (en) Control device
JP7137042B1 (en) Industrial machine controller
US9904277B2 (en) Numerical controller configured for operation based on tabular data
CN112631975B (en) SPI transmission method based on Linux
WO2022264424A1 (en) Control device and control method
US20170004857A1 (en) Servo control system having function of switching learning memory
WO2024003972A1 (en) Program optimization device and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210713

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220428

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220510

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220706

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221101

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221223

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230418

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230518

R150 Certificate of patent or registration of utility model

Ref document number: 7283875

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150