WO2022224388A9 - 数値制御装置及びコンピュータが読み取り可能な記憶媒体 - Google Patents

数値制御装置及びコンピュータが読み取り可能な記憶媒体 Download PDF

Info

Publication number
WO2022224388A9
WO2022224388A9 PCT/JP2021/016229 JP2021016229W WO2022224388A9 WO 2022224388 A9 WO2022224388 A9 WO 2022224388A9 JP 2021016229 W JP2021016229 W JP 2021016229W WO 2022224388 A9 WO2022224388 A9 WO 2022224388A9
Authority
WO
WIPO (PCT)
Prior art keywords
program
time
storage device
editing
external storage
Prior art date
Application number
PCT/JP2021/016229
Other languages
English (en)
French (fr)
Other versions
WO2022224388A1 (ja
Inventor
駿一 五味
和生 佐藤
Original Assignee
ファナック株式会社
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 ファナック株式会社 filed Critical ファナック株式会社
Priority to JP2023515960A priority Critical patent/JPWO2022224388A1/ja
Priority to PCT/JP2021/016229 priority patent/WO2022224388A1/ja
Priority to DE112021007111.4T priority patent/DE112021007111T5/de
Priority to CN202180096985.0A priority patent/CN117157598A/zh
Publication of WO2022224388A1 publication Critical patent/WO2022224388A1/ja
Publication of WO2022224388A9 publication Critical patent/WO2022224388A9/ja

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/00Programme-control systems
    • G05B19/02Programme-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 programme data in numerical form
    • G05B19/408Numerical 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 programme data in numerical form characterised by data handling or data format, e.g. reading, buffering or conversion of data
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-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 programme 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 programme data in numerical form characterised by programme execution, i.e. part programme or machine function execution, e.g. selection of a programme
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/36Nc in input of data, input key till input tape
    • G05B2219/36497Select program, main and secondary program

Definitions

  • the present invention relates to a numerical controller and a computer-readable storage medium.
  • Programs for numerical controllers can be edited on external devices such as PCs and servers in addition to the main body of the numerical controller.
  • a program edited by an external device is recorded in an external storage device such as a CF (compact flash (registered trademark)) card.
  • the memory of the driving device 30 is assumed to be a flash memory.
  • the memory of the control unit 10 is of a cassette type, and a servo memory 103A containing the transfer S/W and the S/W of 30 is attached when the S/W is updated.
  • the S/W of the driving device 30 is automatically updated.
  • Some numerical controllers have a function to automatically select the last used machining program. Such a numerical controller stores the identification information of the last used machining program. When the power is turned on, the numerical controller automatically selects and reads out the last used machining program even if the operator does not select the machining program. If the machining program exists in the storage device of the numerical controller, the machining program is read from the numerical controller. If the machining program exists in the external storage device, the machining program is read from the external storage device. The operator can continue the same machining simply by turning on the power or inserting the external storage device.
  • a numerical control device which is one aspect of the present disclosure, includes a file information storage unit that stores file identification information and an editing date and time of a machining program, and stores file identification information of an operation target program that is a machining program set as an operation target.
  • an external storage device recognizing unit for recognizing attachment of an external storage device; and if the attached external storage device stores the operation target program, the operation target program stored in the external storage device a file information comparison unit that determines that the operation target program has been edited when the editing date and time of the operation target program stored in the file information storage unit are different from each other.
  • a computer-readable storage medium which is one aspect of the present disclosure, stores file identification information and an edit date and time of a machining program in a numerical control device by being executed by one or a plurality of processors, and sets it as an operation target.
  • the file identification information of the operation target program which is the processed machining program, is stored in the numerical control device, the attachment of the external storage device to the numerical control device is recognized, and the operation target program is stored in the attached external storage device. If the date and time of editing the program to be operated stored in the external storage device and the date and time of editing the program to be operated stored in the numerical controller are different, it is determined that the program to be operated has been edited.
  • An editing device which is one aspect of the present disclosure, includes a program editing unit that edits a machining program of a numerical control device, and when the machining program is edited, the editing date and time of the machining program, a file identifier given to the machining program by the numerical control device It is associated with the information and stored in the numerical controller.
  • FIG. 1 is a conceptual diagram of a file management system
  • FIG. 1 is a block diagram of a file management system of the first disclosure
  • FIG. FIG. 10 is a flowchart for explaining the procedure of edit determination processing
  • FIG. 10 is a flowchart for explaining a procedure of processing for updating the editing date and time and the operation target program
  • FIG. Fig. 2 is a block diagram of the file management system of the second disclosure
  • 2 is a hardware configuration diagram of a numerical controller
  • FIG. 1 is a conceptual diagram of a file management system 1000 of the present disclosure.
  • a file management system 1000 of the present disclosure includes a numerical controller 100 that controls a machine tool, and an external device that has a function of creating/editing machining programs.
  • the external device 200 is described as a PC (personal computer), but is not limited to a PC as long as it is an information processing device having a program editing function.
  • the numerical controller 100 and the external device 200 are provided with connectors for attaching an external storage device 300 such as a CF card.
  • a machining program for the numerical control device 100 can be created/edited on the PC 200 .
  • Numerical controller 100 reads a machining program edited by PC 200 .
  • FIG. 2 is a block diagram of the file management system 1000.
  • the numerical controller 100 includes an operation target program storage unit 10, a file system unit 11, a file identification information management unit 12, a file information storage unit 13, a file information update unit 14, an external device recognition unit 15, an operation target program confirmation unit 16, A file information reading unit 17 , a file information comparing unit 18 , an operation target program selecting unit 19 , and an edit notification unit 20 are provided.
  • An editing device 21 is attached inside the numerical controller 100 .
  • the editing device 21 includes a program editing section 22 and an editing date/time updating section 23 .
  • the file system unit 11 is, for example, a FAT (File Allocation Table) file system, but is not limited to this.
  • the file system unit 11 manages files and directories in the ROM and RAM (described later) of the numerical controller 100 and files and directories in the external storage device 300 .
  • the file system section 11 reads out the file management information recorded in the external storage device 300 . This management information includes the date and time when the machining program was edited.
  • the file identification information management unit 12 gives unique file identification information to unknown processing programs.
  • the unknown machining program includes, for example, a program newly created by the numerical controller 100, a machining program newly acquired via the network or the external storage device 300, and the like.
  • the file identification information management section 12 stores the file identification information and the date and time when the file was edited in the file information storage section 13 .
  • the file identification information is a unique value different from the file name managed by the file system section 11 .
  • the file names managed by the file system unit 11 are names given to individual machining programs by programmers, and may overlap with other files.
  • the file identification information given to the processing program by the file identification information management unit 12 is unique information for each file of the processing program, and therefore does not overlap.
  • the editing device 21 accepts editing of the machining program.
  • the program editing unit 22 displays a machining program editing screen and the like, and accepts editing instructions from the operator.
  • the file system section 11 updates the editing date and time of the external storage device 300
  • the editing date and time updating section 23 updates the editing date and time of the file information storage section 13 .
  • both the editing date and time of the file information storage unit 13 and the editing date and time of the external storage device 300 are updated. matches.
  • the external device 200 has a program editing section 31 and a file system section 32 .
  • the program editing unit 31 is, for example, a dedicated tool for editing machining programs for machine tools.
  • the file system section 32 updates the editing date and time of the external storage device 300 .
  • the processing program is edited by the external device 200, only the editing date and time of the external storage device 300 are updated, so the editing date and time of the external storage device 300 and the editing date and time of the file information storage section 13 do not match.
  • the external storage device recognition unit 15 recognizes that the external storage device 300 has been attached to the numerical controller 100 .
  • the timing for recognizing the attachment of the external storage device 300 is, for example, when the power of the numerical controller 100 is turned on.
  • the external storage device 300 is confirmed when the numerical controller 100 is started, and the external storage device 300 recognizes the attachment.
  • the external storage device 300 may be attached while the numerical controller 100 is activated.
  • the external storage device 300 may be temporarily disconnected and reconnected due to factory vibration or the like.
  • the operating program confirmation unit 16 updates the operating program stored in the operating program storage unit 10 .
  • the file identification information of the machining program last executed by the numerical controller 100 is stored in the operating program storage unit 10 .
  • the file information reading unit 17 reads file identification information from the external storage device 300 . Also, the editing date and time of the machining program stored in the external storage device 300 is acquired from the file system section 11 .
  • the file information comparison unit 18 reads out the editing date and time of the operation target program from the file information storage unit 13, and stores the operation target program editing date and time in the file information storage unit 13. is compared with the editing date and time of the operation target program stored in the external storage device 300 .
  • the editing date and time of the operation target program stored in the file information storage unit 13 and the editing date and time stored in the external storage device 300 are different, it is determined that the operation target program has been edited.
  • the operation target program selection unit 19 determines whether or not the machining program has been edited based on the comparison result of the editing date and time. When the editing date and time of the machining program stored in the external storage device 300 is different from the editing date and time stored in the file information storage unit 13, it is determined that the machining program has been edited. If the edited machining program is reproduced as it is, there is a possibility that machining that the operator does not expect will be performed.
  • the edit notification unit 20 notifies the operator that the machining program has been edited.
  • the notification method includes, but is not limited to, display on the numerical control device 100 or the operator's mobile terminal.
  • the edit notification unit 20 may stop the automatic selection function of the operation target program.
  • the edit notification unit 20 waits for input from the operator while the automatic selection function of the program to be operated is stopped.
  • machining with the preset operation target program may be started.
  • the edit notification unit 20 may display a list of machining programs stored in the external storage device 300 and the numerical control device 100, and accept selection of a new machining program from the operator.
  • the edit notification unit 20 may present the edit date and time of the edited program for operation. For example, by displaying at least one of the editing date and time of the file information storage unit 13 and the editing date and time of the external storage device 300, the operator's judgment can be assisted.
  • the file information update unit 14 updates the editing date and time of the driving program stored in the file information storage unit 13 and the file identification information of the driving program stored in the driving program storage unit 10 .
  • the file information updating unit 14 updates the editing date and time of the file information storage unit 13 with the editing date and time of the edited operating program.
  • the date and time of editing of the external storage device 300 and the date and time of editing of the file information storage section 13 match.
  • the operating program storage unit 10 is updated with the file identification information of the newly selected operating program.
  • the numerical control device 100 of the present disclosure determines whether or not the contents of the file have been changed based on the editing date and time of the operation target program, and stops the automatic selection function of the machining program when the contents of the file have been changed. to avoid unexpected machining starts.
  • step S1 the numerical controller 100 determines whether or not the external storage device 300 is attached. If the external storage device 300 is attached (step S2; Yes), the numerical controller 100 reads the file identification information of the operation target program (step S3).
  • step S4 determines that the machining program has not been edited, proceeds to step S8, and continues operation (step S8; Yes), waiting for attachment of a new external storage device 300; If the machining program exists in the external storage device 300 (step S4; Yes), the numerical controller 100 reads the editing date and time of the machining program from the external storage device 300. FIG. Next, the numerical controller 100 reads out the editing date and time of the machining program from the file information storage section 13 . The numerical controller 100 compares the editing date and time of the operation target program stored in the external storage device 300 with the editing date and time of the operation target program stored in the file information storage unit 13 (step S5).
  • step S6 When the editing date and time stored in the external storage device 300 and the editing date and time stored in the file information storage unit 13 are different (step S6; Yes), the numerical controller 100 determines that the machining program has been edited, and confirms that fact. The operator is notified (step S7). The operator determines whether to reselect the edited program to be operated or select another machining program. When the editing date and time stored in the external storage device 300 and the editing date and time stored in the file information storage unit 13 match (step S6; No), the numerical controller 100 determines that the operation target program has not been edited. . The numerical control device 100 starts machining using the operation target program.
  • step S8 If the numerical controller 100 continues to operate with the power turned on (step S8; Yes), the numerical controller 100 proceeds to step S2 and monitors attachment of the external storage device 300. When the operation of the numerical controller 100 is to be terminated (step S8; No), the numerical controller 100 terminates this process.
  • Numerical controller 100 notifies the operator that the operation target program has been edited, and when the operator selects reuse of the edited operation target program (step S11; Yes), numerical controller 100
  • the editing date and time of the machining program obtained is read out from the external storage device 300, and the editing date and time of the file information storage unit 13 are updated (step S12).
  • the numerical controller 100 reads out the edited program for operation from the external storage device 300 (step S13) and reuses it.
  • step S11 If the operator does not select to reuse the edited machining program (step S11; No), the numerical controller 100 presents the operator with a list of other machining programs (step S14). When the numerical controller 100 receives the selection of a new machining program (step S15), it updates the machining program to the operation target program (step S16).
  • the numerical controller 100 of the present disclosure allows the operator to select whether to reuse the edited machining program or to use another machining program. Let When reuse is selected, the editing date and time of the file information storage section is updated with the editing date and time of the external storage device. Also, when the use of another machining program is selected, the selected machining program is set as the program to be operated. When another machining program is selected as the program to be operated, it may be determined whether or not the selected machining program has been edited.
  • FIG. 5 shows a file management system 1000 of the second disclosure.
  • the external device 200 includes a program editing section 31 and an editing date/time updating section 33 .
  • the editing date/time update unit 33 updates the editing date/time of the machining program stored in the external storage device 300 .
  • the processing program is edited by the external device 200, the editing date and time of the file information storage unit 13 is not updated. 's edit date does not match.
  • the editing date and time update unit 23 of the numerical control device 100 not only updates the editing date and time of the machining program stored in the external storage device 300, but also the file The date and time of editing in the information storage unit 13 are also updated.
  • the date and time of editing of the external storage device 300 and the date and time of editing of the file information storage unit 13 match.
  • the file information reading unit 17 reads the editing date and time and the file identification information of the operation target program from the external storage device 300 .
  • the file information comparison unit 18 compares the editing date and time of the operation target program read from the external storage device 300 and the file information storage unit 13 is compared with the date and time of editing of the operation target program stored in . If the editing dates and times of the two devices are different, it is determined that the operation target program has been edited.
  • the operation target program selection unit 19 notifies the operator that the machining program has been edited.
  • the operator reselects the edited machining program or selects another machining program as the program to be operated.
  • the file information updating section 14 updates the editing date and time of the file information storage section 13 with the editing date and time read from the external storage device 300 .
  • the editing date and time are managed not by the file system section 11 but by the editing date and time updating section 23 of the numerical controller 100 and the editing date and time updating section 33 of the external device 200 .
  • 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 the system program processed in the ROM 112 via 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 memory state is retained even when the power of the numerical controller 100 is turned 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 obtained from the machine tool, etc.) are stored. 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 tool of the machine tool converts the axis movement command from the CPU 111 into a pulse signal and outputs it to the driver 41 .
  • a driver 41 converts the pulse signal into a current to drive a servomotor of the machine tool.
  • a servo motor moves a tool and a table according to control of the numerical controller 100.
  • the file information storage unit 13 of the numerical controller 100 and the external storage device 300 store the editing date and time of the machining program.
  • the numerical control device 100 sets the editing date and time of the machining program stored in the file information storage unit 13 and the machining program stored in the external storage device 300. are updated, the two edit dates and times match.
  • the machining program stored in the external storage device 300 is edited by the external device 200, only the editing date/time of the external storage device 300 is updated. Therefore, the editing date and time of the machining program stored in the external device 200 and the editing date and time of the machining program stored in the file information storage unit 13 do not match.
  • the file information comparing unit 18 of the numerical controller 100 compares the editing date and time of the external storage device 300 with the editing date and time of the file information storage unit 13, and if the two editing dates and times are different, the operation target program is edited. I judge that.
  • the file management system of the present disclosure can identify whether or not the content of a file has been changed using the edit date and time. The reading and updating of the editing date and time is performed by the file system section in the first disclosure, and by the file information reading section in the second disclosure.
  • REFERENCE SIGNS LIST 100 numerical controller 10 operation target program storage unit 11 file system unit 12 file identification information management unit 13 file information storage unit 14 file information update unit 15 external device recognition unit 16 operation target program confirmation unit 17 file information reading unit 18 file information comparison Section 19 Operation target program selection section 20 Editing notification section 21 Editing device 22 Program editing section 23 Editing date and time updating section 111 CPU 112 ROMs 113 RAM 114 non-volatile memory

Abstract

加工プログラムのファイル識別情報及び編集日時を記憶し、運転対象に設定された加工プログラムである運転対象プログラムのファイル識別情報を記憶し、外部記憶デバイスの取り付けを認識し、前記取り付けられた外部記憶デバイスに運転対象プログラムが格納されている場合、前記外部記憶デバイスが記憶する運転対象プログラムの編集日時と、ファイル情報記憶部が記憶する運転対象プログラムの編集日時とが異なる場合、運転対象プログラムが編集されたと判定する。

Description

数値制御装置及びコンピュータが読み取り可能な記憶媒体
 本発明は、数値制御装置及びコンピュータが読み取り可能な記憶媒体に関する。
 数値制御装置のプログラムは、数値制御装置本体の他に、PCやサーバの外部装置で編集することができる。外部装置で編集したプログラムは、CF(コンパクトフラッシュ(登録商標))カードなどの外部記憶デバイスに記録する。
 特許文献1には、『駆動装置30のメモリはフラッシュメモリとする。制御ユニット10のメモリはカセット方式とし、S/W更新時には転送S/Wと30のS/Wの入ったサーボメモリ103Aを取付ける。この状態で電源を投入すると、自動的に駆動装置30のS/W更新を実行する。』と記載されている。
特許第2862051号
 数値制御装置には、最後に使用した加工プログラムを自動選択する機能を有するものがある。このような数値制御装置は、最後に使用した加工プログラムの識別情報を記憶している。電源投入時などには、オペレータが加工プログラムを選択しなくても、最後に使用された加工プログラムを、数値制御装置が自動的に選択して読み出す。加工プログラムが数値制御装置の記憶デバイスに存在する場合には、数値制御装置から加工プログラムを読み出す。加工プログラムが外部記憶デバイスに存在する場合には、外部記憶デバイスから加工プログラムを読み出す。オペレータは、電源を投入したり、外部記憶デバイスを挿入するだけで、同じ加工を継続することができる。
 しかしながら、外部記憶デバイスの加工プログラムを自動的に選択すると、意図せぬ加工が行われる可能性がある。外部記憶デバイスの加工プログラムはPCなどの外部装置で変更されていることがあり、オペレータが加工プログラムの変更に気づかないまま加工を開始するためである。
 数値制御装置の分野においては、ファイルの内容が変更されたか否かを識別する技術が望まれている。
 本開示の一態様である数値制御装置は、加工プログラムのファイル識別情報と編集日時とを記憶するファイル情報記憶部と、運転対象に設定された加工プログラムである運転対象プログラムのファイル識別情報を記憶する運転対象プログラム記憶部と、外部記憶デバイスの取り付けを認識する外部記憶デバイス認識部と、取り付けられた外部記憶デバイスに運転対象プログラムが格納されている場合、外部記憶デバイスが記憶する運転対象プログラムの編集日時と、ファイル情報記憶部が記憶する運転対象プログラムの編集日時とが異なる場合、運転対象プログラムが編集されたと判定するファイル情報比較部と、を備える。
 本開示の一態様であるコンピュータが読み取り可能な記憶媒体は、1つ又は複数のプロセッサが実行することにより、加工プログラムのファイル識別情報と編集日時とを数値制御装置に記憶させ、運転対象に設定された加工プログラムである運転対象プログラムのファイル識別情報を数値制御装置に記憶させ、外部記憶デバイスの前記数値制御装置への取り付けを認識し、取り付けられた外部記憶デバイスに運転対象プログラムが格納されている場合、外部記憶デバイスが記憶する運転対象プログラムの編集日時と、数値制御装置が記憶する運転対象プログラムの編集日時とが異なる場合、運転対象プログラムが編集されたと判定する。
 本開示の一態様である編集装置は、数値制御装置の加工プログラムを編集するプログラム編集部と、加工プログラムを編集したとき、加工プログラムの編集日時を、数値制御装置が加工プログラムに付与したファイル識別情報に関連付けて、前記数値制御装置に記憶させる。
 本発明の一態様により、ファイルの内容が変更されたか否かを判定することができる。
ファイル管理システムの概念図である。 第1の開示のファイル管理システムのブロック図である。 編集判定処理の手順を説明するフローチャートである。 編集日時及び運転対象プログラムの更新処理の手順を説明するフローチャートである。 第2の開示のファイル管理システムのブロック図である。 数値制御装置のハードウェア構成図である。
[第1の開示]
 図を参照して第1の開示のファイル管理システムについて説明する。
 図1は、本開示のファイル管理システム1000の概念図である。本開示のファイル管理システム1000は、工作機械を制御する数値制御装置100と、加工プログラムの作成/編集する機能を有する外部装置とを備える。本開示では、外部装置200をPC(パーソナルコンピュータ)として説明するが、プログラム編集機能を備えた情報処理装置であれば、PCに限定されない。数値制御装置100と、外部装置200には、CFカードのなどの外部記憶デバイス300を取り付けるコネクタが設けられている。外部装置200では、数値制御装置100の加工プログラムをPC200で作成/編集することができる。数値制御装置100は、PC200で編集された加工プログラムを読み取る。
 図2は、ファイル管理システム1000のブロック図である。数値制御装置100は、運転対象プログラム記憶部10、ファイルシステム部11、ファイル識別情報管理部12、ファイル情報記憶部13、ファイル情報更新部14、外部デバイス認識部15、運転対象プログラム確認部16、ファイル情報読取部17、ファイル情報比較部18、運転対象プログラム選択部19、編集通知部20を備える。数値制御装置100の内部には、編集装置21が取り付けられている。編集装置21は、プログラム編集部22と、編集日時更新部23を備える。
 ファイルシステム部11は、例えば、FAT(File Allocation Table)ファイルシステムであるが、これに限定されない。ファイルシステム部11は、数値制御装置100のROMやRAM(後述)のファイルやディレクトリ、及び外部記憶デバイス300のファイルやディレクトリを管理する。
 数値制御装置100への外部記憶デバイス300の取り付けが認識されると、ファイルシステム部11は、外部記憶デバイス300に記録されたファイルの管理情報を読み出す。この管理情報には、加工プログラムの編集日時が含まれる。
 ファイル識別情報管理部12は、未知の加工プログラムにユニークなファイル識別情報を付与する。未知の加工プログラムには、例えば、数値制御装置100で新たに作成したプログラム、ネットワークや外部記憶デバイス300を介して新たに取得した加工プログラムなどがある。ファイル識別情報管理部12は、ファイル識別情報とファイルの編集日時とをファイル情報記憶部13に記憶する。
 ファイル識別情報は、ファイルシステム部11が管理するファイル名とは異なるユニークな値である。ファイルシステム部11が管理するファイル名は、プログラマが個々の加工プログラムに付けた名称であり、他のファイルと重複する可能性がある。ファイル識別情報管理部12が加工プログラムに付与するファイル識別情報は、加工プログラムのファイルごとにユニークな情報であるため重複することはない。
 編集装置21は、加工プログラムの編集を受け付ける。プログラム編集部22は、加工プログラム編集画面などを表示し、オペレータからの編集指示を受け付ける。加工プログラムの編集が終了すると、ファイルシステム部11が外部記憶デバイス300の編集日時を更新し、編集日時更新部23がファイル情報記憶部13の編集日時を更新する。
 数値制御装置100の編集装置21で加工プログラムを編集した場合には、ファイル情報記憶部13の編集日時と、外部記憶デバイス300の編集日時との両方を更新するので、2つのデバイス上の編集日時が一致する。
 外部装置200は、プログラム編集部31とファイルシステム部32を備える。プログラム編集部31は、例えば、工作機械の加工プログラムを編集する専用ツールである。プログラム編集部31における加工プログラムの編集が終了すると、ファイルシステム部32は、外部記憶デバイス300の編集日時を更新する。
 外部装置200で加工プログラムを編集した場合、外部記憶デバイス300の編集日時のみが更新されるので、外部記憶デバイス300の編集日時とファイル情報記憶部13の編集日時が一致しない。
 外部記憶デバイス認識部15は、外部記憶デバイス300が数値制御装置100に取り付けられたことを認識する。外部記憶デバイス300の取り付けを認識するタイミングには、例えば、数値制御装置100の電源が投入されたときがある。数値制御装置100の起動時に外部記憶デバイス300を確認し、外部記憶デバイス300が取り付けを認識する。数値制御装置100が起動した状態で外部記憶デバイス300を取り付けることもある。工場の振動などで外部記憶デバイス300が一時的に切断され再接続することもある。
 運転対象プログラム確認部16は、オペレータが運転対象となる加工プログラムを選択すると、運転対象プログラム記憶部10に記憶する運転対象プログラムを更新する。更新の結果、数値制御装置100が最後に実行した加工プログラムのファイル識別情報が運転対象プログラム記憶部10に記憶される。
 ファイル情報読取部17は、外部記憶デバイス300からファイル識別情報を読み出す。また、ファイルシステム部11から外部記憶デバイス300が記憶する加工プログラムの編集日時を取得する。
 ファイル情報比較部18は、運転対象プログラムが外部記憶デバイス300に存在する場合、運転対象プログラムの編集日時を、ファイル情報記憶部13から読み出し、ファイル情報記憶部13に記憶する運転対象プログラムの編集日時と、外部記憶デバイス300に記憶する運転対象プログラムの編集日時とを比較する。ファイル情報記憶部13に記憶する運転対象プログラムの編集日時と、外部記憶デバイス300に記憶する編集日時が異なる場合、運転対象プログラムが編集されたと判定する。
 運転対象プログラム選択部19は、編集日時の比較結果により、加工プログラムが編集されたか否かを判定する。外部記憶デバイス300に記憶する加工プログラムの編集日時が、ファイル情報記憶部13に記憶する編集日時と異なる場合には、加工プログラムが編集されたと判定する。
 編集された加工プログラムをそのまま再生すると、オペレータが予期していない加工が行われる可能性がある。編集通知部20は、加工プログラムが編集されたことをオペレータに通知する。通知の方法には、数値制御装置100やオペレータの携帯端末への表示などがあるがこれに限定されない。
 編集通知部20は、運転対象プログラムの自動選択機能を停止してもよい。編集通知部20は、運転対象プログラムの自動選択機能を停止した状態で、オペレータからの入力を待機する。オペレータが運転対象プログラムの再使用を承認した場合に、予め設定された運転対象プログラムでの加工を開始してもよい。編集通知部20は、外部記憶デバイス300及び数値制御装置100に記憶された加工プログラムのリストを表示し、新たな加工プログラムの選択をオペレータから受け付けてもよい。
 編集通知部20は、編集された運転対象プログラムの編集日時を提示してもよい。例えば、ファイル情報記憶部13の編集日時と、外部記憶デバイス300の編集日時の少なくとも一方を表示することでオペレータの判断を補助することができる。
 ファイル情報更新部14は、ファイル情報記憶部13に記憶する運転対象プログラムの編集日時と、運転対象プログラム記憶部10に記憶する運転対象プログラムのファイル識別情報を更新する。
 ファイル情報更新部14は、(1)編集された運転対象プログラムの再使用をオペレータが選択した場合、編集された運転対象プログラムの編集日時で、ファイル情報記憶部13の編集日時を更新する。これにより、外部記憶デバイス300の編集日時と、ファイル情報記憶部13の編集日時とが一致する。(2)運転対象プログラムの変更をオペレータが選択した場合、新たに選択された運転対象プログラムのファイル識別情報で、運転対象プログラム記憶部10を更新する。
 本開示の数値制御装置100は、運転対象プログラムの編集日時を基にファイルの内容が変更されたか否かを判定し、ファイルの内容が変更された場合には、加工プログラムの自動選択機能を停止し、予期せぬ加工の開始を回避する。
 図3のフローチャートを参照して編集判定処理の手順を説明する。前提として、加工プログラムにはファイル識別情報が付与されているものとする。
 数値制御装置100に電源が投入されると(ステップS1)、数値制御装置100は、外部記憶デバイス300が取り付けられているか否かを判定する。外部記憶デバイス300が取り付けられている場合(ステップS2;Yes)、数値制御装置100は、運転対象プログラムのファイル識別情報を読み出す(ステップS3)。運転対象プログラムが数値制御装置100に存在する場合(ステップS4;No)、数値制御装置100は加工プログラムが編集されていないと判定し、ステップS8に移行し、運転を継続する場合には(ステップS8;Yes)、新たな外部記憶デバイス300の取り付けを待機する。
 加工プログラムが外部記憶デバイス300に存在する場合(ステップS4;Yes)、数値制御装置100は、外部記憶デバイス300から加工プログラムの編集日時を読み出す。次いで、数値制御装置100は、ファイル情報記憶部13から当該加工プログラムの編集日時を読み出す。数値制御装置100は、外部記憶デバイス300に記憶された運転対象プログラムの編集日時と、ファイル情報記憶部13に記憶された運転対象プログラムの編集日時とを比較する(ステップS5)。
 外部記憶デバイス300に記憶された編集日時とファイル情報記憶部13に記憶された編集日時が異なる場合(ステップS6;Yes)、数値制御装置100は、加工プログラムが編集されたと判定し、そのことをオペレータに通知する(ステップS7)。オペレータは編集された運転対象プログラムを再選択するか、他の加工プログラムを選択するか判断する。
 外部記憶デバイス300に記憶された編集日時とファイル情報記憶部13に記憶された編集日時が一致する場合(ステップS6;No)、数値制御装置100は、運転対象プログラムが編集されていないと判定する。数値制御装置100は、運転対象プログラムを用いて加工を開始する。
 数値制御装置100の電源が投入された状態で運転を継続する場合(ステップS8;Yes)、数値制御装置100は、ステップS2に移行し、外部記憶デバイス300の取り付けを監視する。数値制御装置100の運転を終了する場合(ステップS8;No)、数値制御装置100は、本処理を終了する。
 次で、図4を参照して編集日時及び運転対象プログラムの更新処理について説明する。
 運転対象プログラムが編集されたことを、数値制御装置100がオペレータに通知し、編集された運転対象プログラムの再使用をオペレータが選択した場合(ステップS11;Yes)、数値制御装置100は、編集された加工プログラムの編集日時を外部記憶デバイス300から読み出し、ファイル情報記憶部13の編集日時を更新する(ステップS12)。数値制御装置100は、編集された運転対象プログラムを外部記憶デバイス300から読み出し(ステップS13)、再使用する。
 編集された加工プログラムの再使用をオペレータが選択しなかった場合(ステップS11;No)、数値制御装置100は、他の加工プログラムのリストをオペレータに提示する(ステップS14)。数値制御装置100は、新たな加工プログラムの選択を受け付けると(ステップS15)、当該加工プログラムを運転対象プログラムに更新する(ステップS16)。
 以上説明したように、本開示の数値制御装置100は、加工プログラムが編集されたことを判定すると、編集された加工プログラムを再使用するか、他の加工プログラムを使用するかを、オペレータに選択させる。再使用が選択された場合には、外部記憶デバイスの編集日時でファイル情報記憶部の編集日時を更新する。
 また、他の加工プログラムの使用が選択された場合、選択された加工プログラムを運転対象プログラムに設定する。他の加工プログラムが運転対象プログラムに選択された場合、選択された加工プログラムが編集されているか否かを判定してもよい。
[第2の開示]
 図5は、第2の開示のファイル管理システム1000を示す。第2の開示のファイル管理システム1000では、ファイルシステム部11ではなく、編集日時更新部23が編集日時の更新を行う。第2の開示において、外部装置200は、プログラム編集部31と、編集日時更新部33とを備える。
 編集日時更新部33は、外部記憶デバイス300に記憶された加工プログラムの編集日時を更新する。外部装置200で加工プログラムを編集した場合、ファイル情報記憶部13の編集日時は更新されないため、外部記憶デバイス300に記憶された加工プログラムの編集日時と、ファイル情報記憶部13に記憶された加工プログラムの編集日時は一致しない。
 外部記憶デバイス300に記録された加工プログラムを数値制御装置100で編集する場合、数値制御装置100の編集日時更新部23は、外部記憶デバイス300に記憶された加工プログラムの編集日時だけでなく、ファイル情報記憶部13の編集日時も更新する。数値制御装置100で加工プログラムを編集した場合には、外部記憶デバイス300の編集日時と、ファイル情報記憶部13の編集日時が一致する。
 外部記憶デバイス300の取り付けが認識されると、ファイル情報読取部17は、運転対象プログラムの編集日時とファイル識別情報を、外部記憶デバイス300から読み出す。
 運転対象プログラムと同じファイル識別情報の加工プログラムが外部記憶デバイス300に記憶されている場合、ファイル情報比較部18は、外部記憶デバイス300から読み出した運転対象プログラムの編集日時と、ファイル情報記憶部13に記憶された運転対象プログラムの編集日時とを比較する。2つのデバイスの編集日時が異なる場合には、運転対象プログラムが編集されたと判定する。
 運転対象プログラム選択部19は、加工プログラムが編集されたことをオペレータに通知する。オペレータは、編集された加工プログラムを再選択するか、別の加工プログラムを運転対象プログラムとして選択する。編集された加工プログラムを再選択した場合、ファイル情報更新部14は、ファイル情報記憶部13の編集日時を、外部記憶デバイス300から読み出した編集日時で更新する。
 第2の開示のファイル管理システム1000は、編集日時の管理を、ファイルシステム部11ではなく、数値制御装置100の編集日時更新部23及び外部装置200の編集日時更新部33が行う。
 図6を参照して、工作機械を制御する数値制御装置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の各部や工作機械等から取得された各種データ(例えば、工作機械から取得した設定パラメータ等)が記憶される。不揮発性メモリ114に記憶されたプログラムや各種データは、実行時/利用時にはRAM113に展開されてもよい。また、ROM112には、各種のシステム・プログラムがあらかじめ書き込まれている。
 工作機械の工具を制御するコントローラ40は、CPU111からの軸の移動指令をパルス信号に変換しドライバ41に出力する。ドライバ41はパルス信号を電流に変換して工作機械のサーボモータを駆動する。サーボモータは、数値制御装置100の制御に従い工具やテーブルを移動する。
 以上説明したように、本開示にかかるファイル管理システム1000では、数値制御装置100のファイル情報記憶部13と、外部記憶デバイス300に加工プログラムの編集日時を記憶する。数値制御装置100上で外部記憶デバイス300の加工プログラムを編集するときは、数値制御装置100がファイル情報記憶部13に記憶された加工プログラムの編集日時と、外部記憶デバイス300に記憶された加工プログラムの編集日時とを両方更新するので、2つの編集日時が一致する。
 外部装置200で外部記憶デバイス300に記憶された加工プログラムを編集するときは、外部記憶デバイス300の編集日時のみを更新する。このため、外部装置200に記憶された加工プログラムの編集日時と、ファイル情報記憶部13に記憶された加工プログラムの編集日時とが一致しない。
 数値制御装置100のファイル情報比較部18は、外部記憶デバイス300の編集日時と、ファイル情報記憶部13の編集日時とを比較し、2つの編集日時が異なる場合には、運転対象プログラムが編集されたと判定する。本開示のファイル管理システムは、編集日時を用いてファイルの内容が変更されたか否かを識別することができる。
 なお、編集日時の読出し及び更新は、第1の開示ではファイルシステム部が行い、第2の開示ではファイル情報読取部が行う。
  100 数値制御装置
  10  運転対象プログラム記憶部
  11  ファイルシステム部
  12  ファイル識別情報管理部
  13  ファイル情報記憶部
  14  ファイル情報更新部
  15  外部デバイス認識部
  16  運転対象プログラム確認部
  17  ファイル情報読取部
  18  ファイル情報比較部
  19  運転対象プログラム選択部
  20  編集通知部
  21  編集装置
  22  プログラム編集部
  23  編集日時更新部
  111 CPU
  112 ROM
  113 RAM
  114 不揮発性メモリ

Claims (9)

  1.  加工プログラムのファイル識別情報と編集日時とを記憶するファイル情報記憶部と、
     運転対象に設定された加工プログラムである運転対象プログラムのファイル識別情報を記憶する運転対象プログラム記憶部と、
     外部記憶デバイスの取り付けを認識する外部記憶デバイス認識部と、
     前記取り付けられた外部記憶デバイスに前記運転対象プログラムが格納されている場合、前記外部記憶デバイスが記憶する運転対象プログラムの編集日時と、前記ファイル情報記憶部が記憶する運転対象プログラムの編集日時とが異なる場合、前記運転対象プログラムが編集されたと判定するファイル情報比較部と、
     を備える数値制御装置。
  2.  前記加工プログラムを格納するファイルに対し、各加工プログラムにユニークなファイル識別情報を付与するファイル識別情報管理部を備える、請求項1記載の数値制御装置。
  3.  前記加工プログラムを編集する編集部と、
     前記外部記憶デバイスに格納された加工プログラムが編集された場合、前記外部記憶デバイスが記憶する前記加工プログラムの編集日時を更新するファイルシステム部と、
     前記ファイル情報記憶部が記憶する前記加工プログラムの編集日時を更新する編集日時更新部と、を備える請求項1記載の数値制御装置。
  4.  前記加工プログラムを編集する編集部と、
     前記外部記憶デバイスに格納された加工プログラムが編集された場合、前記外部記憶デバイスが記憶する前記加工プログラムの編集日時と、前記ファイル情報記憶部が記憶する前記加工プログラムの編集日時とを、更新する編集日時更新部と、を備える請求項1記載の数値制御装置。
  5.  前記運転対象プログラムが編集されていないと判定された場合、前記運転対象プログラムを運転対象の加工プログラムとして選択する運転対象プログラム選択部を備える、請求項1記載の数値制御装置。
  6. [規則91に基づく訂正 26.05.2023]
     前記運転対象プログラムが編集されていると判定された場合、前記運転対象プログラムが編集されたことをオペレータに通知する編集通知部を備える、請求項1記載の数値制御装置。
  7.  前記編集通知部は、前記オペレータが承認するまで加工の開始を待機する、請求項6記載の数値制御装置。
  8.  前記運転対象プログラムは、当該数値制御装置が最後に実行した加工プログラムである、請求項1記載の数値制御装置。
  9.  1つ又は複数のプロセッサが実行することにより、
     加工プログラムのファイル識別情報と編集日時とを数値制御装置に記憶させ、
     運転対象に設定された加工プログラムである運転対象プログラムのファイル識別情報を前記数値制御装置に記憶させ、
     外部記憶デバイスの前記数値制御装置への取り付けを認識し、
     前記取り付けられた外部記憶デバイスに前記運転対象プログラムが格納されている場合、前記外部記憶デバイスが記憶する運転対象プログラムの編集日時と、前記数値制御装置が記憶する運転対象プログラムの編集日時とが異なる場合、前記運転対象プログラムが編集されたと判定する、
     コンピュータが読み取り可能な命令を記憶する記憶媒体。
PCT/JP2021/016229 2021-04-21 2021-04-21 数値制御装置及びコンピュータが読み取り可能な記憶媒体 WO2022224388A1 (ja)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2023515960A JPWO2022224388A1 (ja) 2021-04-21 2021-04-21
PCT/JP2021/016229 WO2022224388A1 (ja) 2021-04-21 2021-04-21 数値制御装置及びコンピュータが読み取り可能な記憶媒体
DE112021007111.4T DE112021007111T5 (de) 2021-04-21 2021-04-21 Numerische steuerungseinrichtung und computerlesbares speichermedium
CN202180096985.0A CN117157598A (zh) 2021-04-21 2021-04-21 数值控制装置及计算机可读取的存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2021/016229 WO2022224388A1 (ja) 2021-04-21 2021-04-21 数値制御装置及びコンピュータが読み取り可能な記憶媒体

Publications (2)

Publication Number Publication Date
WO2022224388A1 WO2022224388A1 (ja) 2022-10-27
WO2022224388A9 true WO2022224388A9 (ja) 2023-08-10

Family

ID=83722166

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2021/016229 WO2022224388A1 (ja) 2021-04-21 2021-04-21 数値制御装置及びコンピュータが読み取り可能な記憶媒体

Country Status (4)

Country Link
JP (1) JPWO2022224388A1 (ja)
CN (1) CN117157598A (ja)
DE (1) DE112021007111T5 (ja)
WO (1) WO2022224388A1 (ja)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08249038A (ja) * 1995-03-14 1996-09-27 Toyoda Mach Works Ltd 数値制御工作機械の制御装置
JPH1055209A (ja) * 1996-08-12 1998-02-24 Mitsubishi Electric Corp 数値制御装置における加工プログラム処理方法及び数値制御装置
JP2001350509A (ja) * 2000-06-08 2001-12-21 Fanuc Ltd ロボット制御装置
JP2010211467A (ja) * 2009-03-10 2010-09-24 Fanuc Ltd 可動部重量を推定する機能を有する工作機械を制御する数値制御装置
JP5526880B2 (ja) * 2010-03-12 2014-06-18 三菱電機株式会社 数値制御方法及びその装置
JP6378264B2 (ja) * 2016-07-29 2018-08-22 ファナック株式会社 自動バックアップ装置、自動バックアップ方法及びプログラム
JP7015260B2 (ja) * 2019-02-13 2022-02-02 ファナック株式会社 機械の制御装置及び制御方法

Also Published As

Publication number Publication date
CN117157598A (zh) 2023-12-01
DE112021007111T5 (de) 2023-12-07
JPWO2022224388A1 (ja) 2022-10-27
WO2022224388A1 (ja) 2022-10-27

Similar Documents

Publication Publication Date Title
WO2008010264A1 (fr) Contrôleur numérique
JP6457586B2 (ja) 誤選定時に誤り箇所を明示する機能を有するアンプ選定装置、アンプ選定方法、及びアンプ選定プログラム
JP2005215955A (ja) 数値制御装置
WO2022224388A9 (ja) 数値制御装置及びコンピュータが読み取り可能な記憶媒体
JP3424670B2 (ja) 制御装置、動作パラメータの設定方法及びコンピュータ読取可能な記録媒体
EP1983435A2 (en) Computer-readable recording medium for recovery of software
JP3297844B2 (ja) ダウンロードシステム及びダウンロードプログラムを記録したコンピュータ読み取り可能な記録媒体
EP1600835A2 (en) Numerical controller with reduced start-up time
CN117501239A (zh) 画面生成装置、画面生成系统以及计算机可读取的存储介质
JP2005309728A (ja) プログラムによる主軸選択機能を備えた数値制御装置
JP4347190B2 (ja) 工作機械の制御装置
JP3170154B2 (ja) Sfcプログラム開発装置
WO1997028493A1 (fr) Procede de parametrage d'une machine a commande numerique pilotee par ordinateur
JP6725567B2 (ja) 数値制御装置
JPH11149371A (ja) 情報処理装置及びその制御方法
WO2023042295A1 (ja) 画面作成装置、及びコンピュータが読み取り可能な記憶媒体
JPH0332803B2 (ja)
JPH11249715A (ja) シーケンスプログラムの自動生成方法とモーションコントローラ
WO1995031758A1 (fr) Systeme d'edition de programme sequentiel
JPH10161724A (ja) 数値制御装置
CN110780638A (zh) 数值控制装置
JPH1145103A (ja) プログラミング装置並びに割込処理記述方法、プログラマブルコントローラ、及び記録媒体
JPS62182823A (ja) 電子計算機の運転装置
JPS6348698A (ja) メモリ格納制御装置
JP2001005503A (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: 21937882

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023515960

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 18286458

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 112021007111

Country of ref document: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21937882

Country of ref document: EP

Kind code of ref document: A1