WO2023084597A1 - 数値制御装置、及び記憶媒体 - Google Patents

数値制御装置、及び記憶媒体 Download PDF

Info

Publication number
WO2023084597A1
WO2023084597A1 PCT/JP2021/041175 JP2021041175W WO2023084597A1 WO 2023084597 A1 WO2023084597 A1 WO 2023084597A1 JP 2021041175 W JP2021041175 W JP 2021041175W WO 2023084597 A1 WO2023084597 A1 WO 2023084597A1
Authority
WO
WIPO (PCT)
Prior art keywords
modal
modal data
command
initialization
initialize
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.)
Ceased
Application number
PCT/JP2021/041175
Other languages
English (en)
French (fr)
Inventor
和弘 平内
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 PCT/JP2021/041175 priority Critical patent/WO2023084597A1/ja
Publication of WO2023084597A1 publication Critical patent/WO2023084597A1/ja
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Program-control systems
    • G05B19/02Program-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of program data in numerical form
    • G05B19/4155Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of program data in numerical form characterised by program execution, i.e. part program or machine function execution, e.g. selection of a program

Definitions

  • the present invention relates to numerical controllers and storage media.
  • a numerical controller is a device that analyzes machining programs and controls machine tools.
  • a machining program consists of a plurality of blocks (lines), and a block consists of one or more words.
  • a G code is a word of a machining program and is used for internal settings of the machine tool. By using G-codes, it is possible to finely set the axis movement of the machine tool, coordinate setting, rotation, the machining method of the target workpiece, and the like.
  • G-codes are classified into two types: one-shot codes and modal codes.
  • One-shot codes work only in blocks containing G-code.
  • Modal codes are classified into groups, and when one G-code within a group is specified, the previously specified G-code remains valid until another G-code in the same group is commanded. .
  • Modal information continues with the previous command.
  • the machine since some modal information changes the operation of the machine, the machine may malfunction unless the modal information is initialized and the machining program is executed. To prevent machine malfunction, it is necessary to issue a command to initialize the modal information before starting execution of the machining program or at the beginning of the machining program.
  • a numerical control device that controls a predetermined device for each block based on a program described for each block in control command code
  • a plurality of command information for initializing modal data and the plurality of commands A storage section for storing initialization identification information for identifying a set of information, and extracting the program for each block and corresponding to the initialization identification information stored in the storage section in the extracted block.
  • an analysis unit for determining whether initialization identification information is included; and when the analysis unit determines initialization identification information corresponding to the initialization identification information from the extracted block,
  • a numerical control device comprising an initialization processing unit that initializes the modal data based on the corresponding plurality of command information. See Patent Document 1, for example.
  • Patent Document 1 a command that requires initialization is stored, and if there is a command that requires initialization in a machining program, the modal data of that command is initialized.
  • modal commands can also be manually entered from the operation screen. Since the modal command input from the operation screen is not described in the machining program, it cannot be determined from the machining program as in Patent Document 1.
  • a numerical control device includes an instruction receiving unit that receives an instruction to initialize modal data, a current modal storage unit that stores current modal data, and a modal data initialized based on the current modal data.
  • An initialization modal determination unit that determines modal data that has not been initialized, an initialization information storage unit that stores information regarding a command to initialize modal data, and a modal data that has not been initialized based on information regarding a command to initialize modal data.
  • a modal initialization command generation unit that generates a command to initialize modal data; and an initialization execution unit that executes the command generated by the modal initialization command generation unit and initializes modal data that has not been initialized.
  • a computer-readable storage medium that is one aspect of the present disclosure stores information about an instruction to initialize modal data, and is executed by one or more processors to receive an instruction to initialize modal data. , based on the current modal data, determine the uninitialized modal data, based on the information about the modal data initialization directive, generate a directive to initialize the uninitialized modal data, and generate It stores computer readable instructions for executing commands and initializing uninitialized modal data.
  • modals can be initialized easily and accurately.
  • FIG. 2 is a hardware configuration diagram of a numerical controller
  • FIG. 1 is a block diagram of a numerical controller
  • FIG. It is an example of a machining program in which an initialization start code is written. It is an example of an initial value storage unit and a current modal storage unit. It is an example of a modal initialization information storage unit. It is an example of a machining program that initializes modal data.
  • 4 is a flowchart for explaining processing of a numerical control device;
  • a hardware configuration of a numerical controller 100 that controls a machine tool 200 will be described with reference to FIG.
  • a CPU 111 included in the numerical controller 100 is a processor that controls the numerical controller 100 as a whole.
  • the CPU 111 reads a system program stored in the ROM 112 through the bus and controls the entire numerical controller 100 according to the system program.
  • the RAM 113 temporarily stores calculation data, display data, various data input by the user via the input unit 71, and the like.
  • the display unit 70 is a monitor attached to the numerical controller 100 or the like.
  • the display unit 70 displays an operation screen, a setting screen, and the like of the numerical controller 100 .
  • the input unit 71 is integrated with the display unit 70 or is a keyboard, touch panel, or the like that is separate from the display unit 70 .
  • the user operates the input unit 71 to perform input to the screen displayed on the display unit 70 .
  • the display unit 70 and the input unit 71 may be mobile terminals.
  • the non-volatile memory 114 is, for example, a memory that is backed up by a battery (not shown) so that the stored state is retained even when the numerical controller 100 is powered off.
  • the nonvolatile memory 114 stores programs read from external devices via an interface (not shown), programs input via the input unit 71, and various data ( For example, setting parameters acquired from the machine tool 200, etc.) are stored.
  • the programs and various data stored in the non-volatile memory 114 may be developed in the RAM 113 at the time of execution/use.
  • Various system programs are pre-written in the ROM 112 .
  • the controller 40 that controls the machine tool 200 converts the axis movement command from the CPU 111 into a pulse signal and outputs it to the driver 41 .
  • the driver 41 converts the pulse signal into current to drive the servo motor of the machine tool 200 .
  • the servomotor moves the tool according to the control of the numerical controller 100 .
  • machine tool 200 has at least two axes of rotation and feed.
  • FIG. 2 is a block diagram of the numerical controller 100 of the first disclosure.
  • the numerical controller analyzes the machining program and controls the machine tool.
  • the numerical controller includes an instruction receiving section 11 , a modal storage section 12 , an initialization modal determination section 13 , a modal initialization information storage section 14 , a modal initialization command generation section 15 and an initialization execution section 16 .
  • the modal storage unit 12 includes an initial value storage unit 17 and a current modal storage unit 18 .
  • the instruction accepting unit 11 accepts an instruction to initialize modal data.
  • the means for receiving instructions is not particularly limited.
  • An operator's manual instruction may be accepted, or a virtual G-code may be used.
  • a virtual G code (hereinafter referred to as an initialization start code) is, for example, a code of G9999 as shown in FIG.
  • the instruction receiving unit 11 Upon reading the initialization start code, the instruction receiving unit 11 calls a subprogram including a modal initialization instruction, or creates a program including a modal initialization instruction. A method of creating the program will be described later.
  • the modal storage unit 12 includes an initial value storage unit 17 that stores initial values of modal data, and a current modal storage unit 18 that stores current modal data.
  • Modal data is represented by a G code that commands modal data. Modal data is managed for each group.
  • the groups include, for example, "positioning/interpolation”, “plane selection”, “unit designation”, “tool radius correction”, “tool length correction”, “canned cycle”, and “dimension”.
  • the "positioning/interpolation” group includes "G00: positioning", “G01: linear interpolation”, “G02: clockwise circular interpolation", and "G03: counterclockwise circular interpolation".
  • One of the modal data included in the group is the initial value. The previously commanded modal data is maintained until another G-code of the same group is commanded.
  • the initialization modal determination unit 13 compares the initial value of the modal data and the current modal data for each group, and if the current modal data and the initial value of the modal data are different, it is determined that the modal data has not been initialized.
  • a G-code for initializing uninitialized modal data or an uninitialized group is extracted. Processing for determining whether modal data has been initialized will be described with reference to FIG.
  • the initial value storage unit 17 stores initial values of modal data for each group. In the example of FIG. 4, an initial value G00 for group 1, an initial value G40 for group 2, an initial value G49 for group 3, an initial value G69 for group 4, and so on are stored.
  • the current modal storage unit 18 stores current modal data G00 of group 1, current modal data G42 of group 2, current modal data G43 of group 3, current modal data G68 of group 4, and so on.
  • the initialization modal determination unit extracts G40, G49, G69, . . . as modal data for initialization.
  • the need for initialization is determined based on whether or not it differs from the initial value, so there is no need to determine in advance which modal to initialize. Therefore, even for modal data not commanded by the machining program, it is possible to determine the necessity of initialization.
  • Numerical controllers have optional features that the user selects to add. If the option is disabled, the modal data, which is valid only if the option is added, always remains at its initial value. Therefore, modal data valid only when an option is added is extracted as modal data requiring initialization only when the option is added. In the numerical controller of the present disclosure, it is also possible to initialize modal data valid only when options are added, that is, modal data supported by the numerical controller.
  • the modal initialization information storage unit 14 stores the command order of the G code and the initial value of the G code. The order of modal commands will be described later.
  • the modal initialization command generator 15 searches the modal initialization information storage 14 for the G code for initialization of the modal data group.
  • the initialization G-codes are arranged in the order of instructions in the modal initialization information storage unit 14 to create an instruction for initializing modal data.
  • FIG. 5 shows an example of the modal initialization information storage unit 14. As shown in FIG.
  • the modal initialization information storage unit 14 shown in FIG. 5 stores the command order of the G code and the initial value of the G code. In the example of FIG.
  • G40, G49, G69, G80, G54.4, G90, and G98 are G-codes that need to be initialized, and these are searched from the modal initialization information storage unit.
  • the found G codes are arranged in order of instruction, and a program is generated which instructs G40, G49, G69 and G80 in the first block, G54.4 in the second block, and G90 and G98 in the third block. Since G17 is a G code determined by the initialization modal determination unit 13 to not need initialization, it is not searched out from the modal initialization information storage unit and is not output to the program.
  • the initialization execution unit 16 executes G-codes that need to be initialized in the order of the commands generated by the modal initialization command generation unit 15 .
  • the command execution means is not particularly limited. Command execution means include signal output, machining program analysis, and the like. In the signal output, signals corresponding to G-codes requiring initialization are output in the order of instructions. In programming, a machining program in which G-codes are arranged in the order of instructions is analyzed, and the instructions written in the machining program are executed.
  • FIG. 6 is an example of a machining program created by the modal initialization command generation unit 15 and executed by the initialization execution unit 16. As shown in FIG.
  • the initialization execution unit 16 performs modal initialization by executing a machining program as shown in FIG.
  • Numerical controller 100 receives an instruction to initialize modal (step S1).
  • the means for receiving instructions is not particularly limited. An operator may manually instruct the initialization, or a virtual G-code may be used.
  • Numerical controller 100 compares the initial value of modal data with the current modal data, and if the initial value of modal data and the current modal data are different, determines that the modal has not been initialized, and initializes the modal.
  • the G code to be used is extracted (step S2).
  • the numerical controller 100 generates commands by arranging G-codes for initializing modal data that need to be initialized in order of commands (step S3).
  • the numerical controller 100 executes the command generated in step S3 (step S4).
  • Command execution means include signal output, execution of a machining program, and the like.
  • signals corresponding to G-codes requiring initialization are output in the order of instructions.
  • program execution a machining program in which G-codes are arranged in the order of instructions is analyzed and executed.
  • the numerical control device 100 of the present disclosure uses the current modal state to extract modals to be initialized. Since the current modal reflects any modal command, such as a command from a machining program or a command from an operation screen, the modal can be accurately extracted.
  • the numerical controller 100 of the present disclosure extracts only G-codes that require initialization, thereby reducing the number of command words and command blocks and minimizing the execution time of the machining program.
  • the numerical controller 100 of the present disclosure stores the command order of G-codes that need to be initialized, and executes the extracted G-codes in the command order. Therefore, the G-code is executed in the correct order.
  • the numerical controller 100 of the present disclosure stores whether or not G-codes that require initialization are required, and executes only the necessary G-codes. Whether or not the G-code is required depends on the type of machine such as the machine tool and the numerical control device 100, the type of software installed in the numerical control device 100, the type of added software, and the like. Numerical controller 100 executes only supported G-codes, thus avoiding execution of erroneous commands.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

数値制御装置において、モーダルデータを初期化する指示を受け付け、現在のモーダルデータを記憶し、前記現在のモーダルデータを基に、初期化されていないモーダルデータを判断し、モーダルデータを初期化する指令に関する情報を記憶し、モーダルデータを初期化する指令に関する情報を基に、初期化されていないモーダルデータを初期化する指令を生成し、生成した指令を実行し初期化されていないモーダルデータを初期化する。

Description

数値制御装置、及び記憶媒体
 本発明は、数値制御装置、及び記憶媒体に関する。
 数値制御装置は、加工プログラムを解析して工作機械を制御する装置である。加工プログラムは、複数のブロック(行)から構成され、ブロックは1つ又は複数のワードから構成される。Gコードは、加工プログラムのワードであり、工作機械の内部設定に用いる。Gコードを用いると、工作機械の軸移動、座標設定、回転、対象加工物の加工方法などを細かく設定することが可能である。
 Gコードは、ワンショットコードとモーダルコードの2種類に分類される。ワンショットコードは、Gコードを含むブロックでのみ有効に働く。
 モーダルコードは、グループに分類されており、あるグループ内の1つのGコードが指定されると、同じグループの別のGコードが指令されるまで、先に指定したGコードの有効性が継続する。
 モーダル情報は、先の指令が継続する。また、モーダル情報の中には機械の動作を変えるものがあるため、モーダル情報を初期化して加工プログラムを実行しないと、機械が誤動作することがある。機械の誤動作を防ぐため、加工プログラムの実行開始前、または加工プログラムの冒頭でモーダル情報を初期化する指令を行う必要がある。
 従来、「制御指令コードでブロックごとに記述されたプログラムに基づいて、所定の装置をブロック毎に制御する数値制御装置において、モーダルデータを初期化するための複数の指令情報、および前記複数の指令情報からなる1組の情報を識別するための初期化識別情報を記憶する記憶部と、前記プログラムをブロック毎に抽出し、抽出したブロック内に前記記憶部が記憶する初期化識別情報に対応する初期化識別情報が含まれるか否かを判別する解析部と、前記解析部が、前記抽出したブロック内から前記初期化識別情報に対応する初期化識別情報を判別すると、当該初期化識別情報に対応する前記複数の指令情報に基づいて、前記モーダルデータを初期化させる初期化処理部と」を備える数値制御装置が存在する。例えば、特許文献1参照。
特開2007-26323号公報
 従来技術では、加工プログラムの実行開始前や加工プログラムの冒頭でモーダル情報を初期化する指令を行う必要があるが、指令できるモーダル指令は、工作機械の種類やオプションによって異なるため、オペレータは工作機械毎に初期化するためのモーダル指令を変えなければならない。工作機械や数値制御装置のオプションから初期化するモーダル指令を判断することは困難である。
 また、初期化するモーダル指令やモーダル指令を指令する順番を間違えた場合、加工プログラムのアラーム停止や、機械の誤動作を引き起こす危険性がある。工作機械がサポートするモーダル指令を全て指令して初期化することも可能だが、既に初期化済のモーダル状態も初期化するため、処理時間が長くなる。
 特許文献1では、初期化が必要な指令を記憶し、加工プログラム内に初期化が必要な指令が存在する場合には、その指令のモーダルデータを初期化させる。
 しかしながら、モーダル指令は、操作画面から手動で入力することもできる。操作画面から入力したモーダル指令は、加工プログラムに記載されないため、特許文献1のように、加工プログラムから判別できない。
 機械加工の分野では、モーダルを簡単かつ正確に初期化する技術が望まれている。
 本開示の一態様である数値制御装置は、モーダルデータを初期化する指示を受け付ける指示受付部と現在のモーダルデータを記憶する現行モーダル記憶部と、現在のモーダルデータを基に、初期化されていないモーダルデータを判断する初期化モーダル判断部と、モーダルデータを初期化する指令に関する情報を記憶する初期化情報記憶部と、モーダルデータを初期化する指令に関する情報を基に、初期化されていないモーダルデータを初期化する指令を生成するモーダル初期化指令生成部と、モーダル初期化指令生成部で生成した指令を実行し初期化されていないモーダルデータを初期化する初期化実行部と、を備える。
 本開示の一態様であるコンピュータが読み取り可能な記憶媒体は、モーダルデータを初期化する指令に関する情報を記憶し、1つ又は複数のプロセッサが実行することにより、モーダルデータを初期化する指示を受け付け、現在のモーダルデータを基に、初期化されていないモーダルデータを判断し、モーダルデータを初期化する指令に関する情報を基に、初期化されていないモーダルデータを初期化する指令を生成し、生成した指令を実行し初期化されていないモーダルデータを初期化する、コンピュータが読み取り可能な命令を記憶する。
 本発明の一態様により、モーダルを簡単かつ正確に初期化することができる。
数値制御装置のハードウェア構成図である。 数値制御装置のブロック図である。 初期化開始コードが記述された加工プログラムの一例である。 初期値記憶部及び現行モーダル記憶部の一例である。 モーダル初期化情報記憶部の一例である。 モーダルデータを初期化する加工プログラムの一例である。 数値制御装置の処理を説明するフローチャートである。
 図1を参照して、工作機械200を制御する数値制御装置100のハードウェア構成を説明する。数値制御装置100が備えるCPU111は、数値制御装置100を全体的に制御するプロセッサである。CPU111は、バスを介してROM112に記憶されたシステム・プログラムを読み出し、該システム・プログラムに従って数値制御装置100の全体を制御する。RAM113には、一時的な計算データや表示データ、入力部71を介してユーザが入力した各種データ等が一時的に格納される。
 表示部70は、数値制御装置100に付属のモニタなどである。表示部70は、数値制御装置100の操作画面や設定画面などを表示する。
 入力部71は、表示部70と一体、又は、表示部70とは別のキーボード、タッチパネルなどである。ユーザは入力部71を操作して、表示部70に表示された画面への入力などを行う。なお、表示部70及び入力部71は、携帯端末でもよい。
 不揮発性メモリ114は、例えば、図示しないバッテリでバックアップされるなどして、数値制御装置100の電源がオフされても記憶状態が保持されるメモリである。不揮発性メモリ114には、図示しないインタフェースを介して外部機器から読み込まれたプログラムや入力部71を介して入力されたプログラム、数値制御装置100の各部や工作機械200等から取得された各種データ(例えば、工作機械200から取得した設定パラメータ等)が記憶される。不揮発性メモリ114に記憶されたプログラムや各種データは、実行時/利用時にはRAM113に展開されてもよい。また、ROM112には、各種のシステム・プログラムがあらかじめ書き込まれている。
 工作機械200を制御するコントローラ40は、CPU111からの軸の移動指令をパルス信号に変換しドライバ41に出力する。ドライバ41はパルス信号を電流に変換して工作機械200のサーボモータを駆動する。サーボモータは、数値制御装置100の制御に従い工具を動かす。本開示の一態様において工作機械200は、少なくとも回転と送りの2軸を有する。
 図2は、第1の開示の数値制御装置100のブロック図である。数値制御装置は、加工プログラムを解析して工作機械を制御する。
 数値制御装置は、指示受付部11、モーダル記憶部12、初期化モーダル判断部13、モーダル初期化情報記憶部14、モーダル初期化指令生成部15、初期化実行部16を備える。モーダル記憶部12は、初期値記憶部17、現行モーダル記憶部18を備える。
 指示受付部11は、モーダルデータを初期化する指示を受け付ける。指示を受け付ける手段は特に限定しない。オペレータの手動指示を受け付けてもよいし、仮想的なGコードを用いてもよい。仮想的なGコード(以下、初期化開始コードと呼ぶ)とは、例えば、図3に示すようなG9999というコードである。指示受付部11は、初期化開始コードを読み出すと、モーダルを初期化する指令を含むサブプログラムを呼び出したり、モーダルの初期化する指令を含むプログラムを作成したりする。プログラムの作成方法については後述する。
 モーダル記憶部12は、モーダルデータの初期値を記憶する初期値記憶部17と、現在のモーダルデータを記憶する現行モーダル記憶部18とを備える。モーダルデータは、モーダルデータを指令するGコードで表現する。モーダルデータは、グループごとに管理されている。グループには、例えば、「位置決め/補間」、「平面選択」、「単位指定」、「工具径補正」、「工具長補正」、「固定サイクル」、「ディメンション」などがある。
 「位置決め/補間」グループでは、「G00:位置決め」、「G01:直線補間」、「G02:時計方向の円弧補間」、「G03:反時計方向の円弧補間」などがある。グループに含まれるモーダルデータの1つが初期値である。同じグループの別のGコードが指令されるまで、先に指令されたモーダルデータが維持される。
 初期化モーダル判断部13は、モーダルデータの初期値と現在のモーダルデータをグループごとに比較し、現在のモーダルデータとモーダルデータの初期値が異なる場合には、モーダルデータが初期化されていないと判断し、初期化されていないモーダルデータを初期化するGコード、又は、初期化されていないグループを抽出する。
 図4を参照してモーダルデータが初期化されているか否かを判断する処理について説明する。初期値記憶部17は、モーダルデータの初期値をグループごとに記憶している。図4の例では、グループ1の初期値G00、グループ2の初期値G40、グループ3の初期値G49、グループ4の初期値G69…を記憶している。
 現行モーダル記憶部18は、グループ1の現在のモーダルデータG00、グループ2の現在のモーダルデータG42、グループ3の現在のモーダルデータG43、グループ4の現在のモーダルデータG68…を記憶している。
 図4の例では、グループ2、グループ3、グループ4において、現在のモーダルデータとモーダルデータの初期値が異なる。初期化モーダル判断部は、G40、G49、G69…を初期化するモーダルデータとして抽出する。
 本開示の数値制御装置では、初期値と異なるか否かにより初期化の必要性を判断するので、事前にどのモーダルを初期化するかを決める必要はない。そのため、加工プログラムで指令されていないモーダルデータであっても、初期化の必要性を判断することができる。
 数値制御装置には、ユーザが選択して追加するオプション機能がある。オプションが無効であれば、オプションが追加されている場合のみ有効なモーダルデータは常に初期値のままである。したがって、オプションが追加されている場合のみ有効なモーダルデータはオプションが追加されている場合にのみ、初期化が必要なモーダルデータとして抽出される。
 本開示の数値制御装置では、オプションが追加されている場合のみ有効なモーダルデータ、すなわち、数値制御装置がサポートするモーダルデータの初期化も可能になる。
 モーダル初期化情報記憶部14は、Gコードの指令順、Gコードの初期値を記憶する。モーダルの指令順については後述する。
 モーダル初期化指令生成部15は、現行のモーダルデータが初期化されていないと判断された場合、そのモーダルデータのグループの初期化用Gコードを、モーダル初期化情報記憶部14から探し出す。初期化用Gコードをモーダル初期化情報記憶部14の指令順に並べて、モーダルデータを初期化する指令を作成する。
 図5を参照してモーダル初期化指令生成部15の処理について説明する。図5はモーダル初期化情報記憶部14の一例である。図5のモーダル初期化情報記憶部14は、Gコードの指令順、Gコードの初期値を記憶している。 
 図5の例では、G40、G49、G69、G80、G54.4、G90、G98が初期化が必要なGコードであり、これらをモーダル初期化情報記憶部から探し出す。探し出したGコードを指令順に並べ、第1ブロックにG40、G49、G69、G80、第2ブロックにG54.4、第3ブロックにG90、G98を指令するプログラムを生成する。G17は初期化モーダル判断部13により初期化不要と判断されたGコードであるため、モーダル初期化情報記憶部から探し出されず、プログラムには出力されない。
 初期化実行部16は、モーダル初期化指令生成部15が生成した指令を基に、初期化が必要なGコードを指令順に実行する。指令の実行手段は、特に限定しない。指令の実行手段には、信号出力、加工プログラムの解析などがある。信号出力では、初期化が必要なGコードに対応する信号を指令順に出力する。プログラム作成では、Gコードを指令順に並べた加工プログラムを解析し、加工プログラムに記載された指令を実行する。
 図6は、モーダル初期化指令生成部15が作成し、初期化実行部16が実行する加工プログラムの一例である。1ブロック目の「Oxxxx;」はプログラム番号、2ブロック目の「G40,G49,G80;」は指令順1のGコード、3ブロック目の「G54.4 P0;」は指令順2のGコード及びG54.4のキャンセルコードP0、4ブロック目の「G90,G98;」は指令順3のGコードである。初期化実行部16は、図6に示すような、初期化が必要なGコードを指令順ごとにまとめた加工プログラムを実行してモーダルの初期化を行う。
 図7のフローチャートを参照して、本開示の数値制御装置100の処理について説明する。
 数値制御装置100は、モーダルを初期化する指示を受け付ける(ステップS1)。指示を受け付ける手段は特に限定しない。オペレータが手動で初期化を指示してもよいし、仮想的なGコードを用いてもよい。
 数値制御装置100は、モーダルデータの初期値と現在のモーダルデータとを比較し、モーダルデータの初期値と現在のモーダルデータが異なる場合、モーダルが初期化されていないものと判断して、初期化するGコードを抽出する(ステップS2)。
 数値制御装置100は、初期化が必要なモーダルデータを初期化するGコードを指令順に並べて指令を生成する(ステップS3)。
 数値制御装置100は、ステップS3で生成した指令を実行する(ステップS4)。指令の実行手段には、信号出力、加工プログラムの実行などがある。信号出力では、初期化が必要なGコードに対応する信号を指令順に出力する。プログラムの実行では、Gコードを指令順に並べた加工プログラムを解析し実行する。
 以上説明したように、本開示の数値制御装置100は、初期化するモーダルの抽出に現在のモーダルの状態を用いる。現在のモーダルは、加工プログラムからの指令、操作画面からの指令など、何れの指令によるモーダルの指令も反映されているので、モーダルが正確に抽出できる。
 本開示の数値制御装置100は、初期化が必要なGコードのみ抽出することで、指令ワード数、指令ブロック数を少なくし、加工プログラムの実行時間を最小限に抑えられる。
 本開示の数値制御装置100は、初期化が必要なGコードの指令順を記憶し、抽出したGコードを指令順に実行する。そのため、正確な順序でGコードが実行される。
 本開示の数値制御装置100は、初期化が必要なGコードの要不要を記憶し、必要なGコードのみを実行する。Gコードの要不要は、工作機械、数値制御装置100などの機械の種類、数値制御装置100に実装したソフトウェアの種類、追加されたソフトウェアの種類などによって決まる。数値制御装置100は、サポートされたGコードのみを実行するため、誤った指令の実行を回避することができる。
  100 数値制御装置
  11  指示受付部
  12  モーダル記憶部
  13  初期化モーダル判断部
  14  モーダル初期化情報記憶部
  15  モーダル初期化指令生成部
  16  初期化実行部
  17  初期値記憶部
  18  現行モーダル記憶部
  111 CPU
  112 ROM
  113 RAM
  114 不揮発性メモリ

Claims (6)

  1.  モーダルデータを初期化する指示を受け付ける指示受付部と、
     現在のモーダルデータを記憶する現行モーダル記憶部と、
     前記現在のモーダルデータを基に、初期化されていないモーダルデータを判断する初期化モーダル判断部と、
     モーダルデータを初期化する指令に関する情報を記憶する初期化情報記憶部と、
     前記モーダルデータを初期化する指令に関する情報を基に、前記初期化されていないモーダルデータを初期化する指令を生成するモーダル初期化指令生成部と、
     前記モーダル初期化指令生成部で生成した指令を実行し前記初期化されていないモーダルデータを初期化する初期化実行部と、を備える数値制御装置。
  2.  前記指示受付部は、モーダルを初期化するプログラムのコード又は信号を受け付けることを特徴とする請求項1記載の数値制御装置。
  3.  モーダルデータの初期値を記憶する初期値記憶部を備え、
     前記初期化モーダル判断部は、前記現在のモーダルデータと前記モーダルデータの初期値とをグループごとに比較し、前記現在のモーダルデータと前記モーダルデータの初期値が異なる場合には、モーダルデータが初期化されていないと判断する、請求項1記載の数値制御装置。
  4.  前記初期化情報記憶部は、前記モーダルデータを初期化する指令順を記憶し、
     前記初期化実行部は、前記指令順でモーダルデータを初期化する、請求項1記載の数値制御装置。
  5.  前記モーダル初期化指令生成部は、前記モーダルデータを初期化するコードを前記指令順で並べたプログラムを作成し、
     前記初期化実行部は、前記プログラムを解析して、前記指令順でモーダルデータを初期化する、請求項4記載の数値制御装置。
  6.  モーダルデータを初期化する指令に関する情報を記憶し、
     1つ又は複数のプロセッサが実行することにより、
     モーダルデータを初期化する指示を受け付け、
     現在のモーダルデータを基に、初期化されていないモーダルデータを判断し、
     前記モーダルデータを初期化する指令に関する情報を基に、前記初期化されていないモーダルデータを初期化する指令を生成し、
     前記生成した指令を実行し前記初期化されていないモーダルデータを初期化する、
     コンピュータが読み取り可能な命令を記憶する記憶媒体。
PCT/JP2021/041175 2021-11-09 2021-11-09 数値制御装置、及び記憶媒体 Ceased WO2023084597A1 (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2021/041175 WO2023084597A1 (ja) 2021-11-09 2021-11-09 数値制御装置、及び記憶媒体

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2021/041175 WO2023084597A1 (ja) 2021-11-09 2021-11-09 数値制御装置、及び記憶媒体

Publications (1)

Publication Number Publication Date
WO2023084597A1 true WO2023084597A1 (ja) 2023-05-19

Family

ID=86335340

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2021/041175 Ceased WO2023084597A1 (ja) 2021-11-09 2021-11-09 数値制御装置、及び記憶媒体

Country Status (1)

Country Link
WO (1) WO2023084597A1 (ja)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08305428A (ja) * 1995-05-11 1996-11-22 Amada Co Ltd Nc機械における中断した加工の再開方法
JP2007233575A (ja) * 2006-02-28 2007-09-13 Star Micronics Co Ltd 数値制御装置および工作機械の制御方法
JP2009080591A (ja) * 2007-09-26 2009-04-16 Brother Ind Ltd 数値制御装置、制御プログラム及び記録媒体

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08305428A (ja) * 1995-05-11 1996-11-22 Amada Co Ltd Nc機械における中断した加工の再開方法
JP2007233575A (ja) * 2006-02-28 2007-09-13 Star Micronics Co Ltd 数値制御装置および工作機械の制御方法
JP2009080591A (ja) * 2007-09-26 2009-04-16 Brother Ind Ltd 数値制御装置、制御プログラム及び記録媒体

Similar Documents

Publication Publication Date Title
JP5816632B2 (ja) 数値制御マシンツールのための予測制御及び仮想表示システム
US4328550A (en) Programmer unit with composite calculation capability
US9846424B2 (en) Numerical control apparatus
JP5543534B2 (ja) プログラム再開機能を備えた数値制御装置
US10114363B2 (en) Numerical controller capable of partial correction of machining cycle
US6856853B2 (en) Simulation device
US6970764B2 (en) Machining program producing apparatus
JP6638979B2 (ja) 加工工程管理機能付き数値制御装置および加工工程管理プログラム
CN100354781C (zh) 数控装置
US20150205285A1 (en) Robot, Robot Control Method and Robot Control Program
WO2023084597A1 (ja) 数値制御装置、及び記憶媒体
JP7479571B2 (ja) パラメータ調整装置、工作機械システムおよびパラメータ調整方法
JP2009080591A (ja) 数値制御装置、制御プログラム及び記録媒体
JP7548690B2 (ja) 加工プログラム作成装置
CN115039043A (zh) 辅助装置
JP2007226383A (ja) 数値制御装置
US10705489B2 (en) Controller
JP7184588B2 (ja) 数値制御装置
JP4867876B2 (ja) 数値制御装置、数値制御プログラム及び数値制御プログラムを記憶した記憶媒体
US11036206B2 (en) Numerical controller
US11194313B2 (en) Numerical controller
US11353844B2 (en) Information processing apparatus
JP6219866B2 (ja) 表示機能付き数値制御装置および表示プログラム
JP3764436B2 (ja) 機械の制御装置
JP2009080621A (ja) 数値制御装置、数値制御プログラム及び数値制御プログラムを記憶した記憶媒体

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21963960

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21963960

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP