WO2014167677A1 - 数値制御装置、情報連携システムおよび情報連携プログラム - Google Patents

数値制御装置、情報連携システムおよび情報連携プログラム Download PDF

Info

Publication number
WO2014167677A1
WO2014167677A1 PCT/JP2013/060850 JP2013060850W WO2014167677A1 WO 2014167677 A1 WO2014167677 A1 WO 2014167677A1 JP 2013060850 W JP2013060850 W JP 2013060850W WO 2014167677 A1 WO2014167677 A1 WO 2014167677A1
Authority
WO
WIPO (PCT)
Prior art keywords
numerical control
control data
information
data
command
Prior art date
Application number
PCT/JP2013/060850
Other languages
English (en)
French (fr)
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 KR1020157030842A priority Critical patent/KR101703466B1/ko
Priority to DE112013006836.2T priority patent/DE112013006836B4/de
Priority to US14/766,890 priority patent/US10108179B2/en
Priority to PCT/JP2013/060850 priority patent/WO2014167677A1/ja
Priority to JP2013541538A priority patent/JP5512051B1/ja
Priority to CN201380075465.7A priority patent/CN105103067B/zh
Publication of WO2014167677A1 publication Critical patent/WO2014167677A1/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/414Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller
    • 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/33Director till display
    • G05B2219/33099Computer numerical control [CNC]; Software control [SWC]

Definitions

  • This invention relates to a numerical control device, an information linkage system, and an information linkage program.
  • a numerical control (NC) device generally includes an NC control unit, a command unit mainly composed of an NC operation panel, a drive unit composed of a servo amplifier, a spindle amplifier, a motor or a detector. , Is composed of.
  • a CNC (Computerized NC) device that incorporates a high-performance dedicated microcomputer and can realize complicated and advanced control with high reliability is also used as one of the NC devices.
  • the NC unit can also perform sequence control by input signals from sensors, switches, etc. installed in machine tools.
  • the object of control is operation around the machine such as tool change or chip removal.
  • An NC device that describes a series of machining operations is called NC programming. This represents a tool path or machining conditions necessary for the machining in the form of a command to the NC device.
  • This NC program can be downloaded from an external program automatic generation device to the NC device, or directly input from the NC operation panel.
  • NC devices are used in fields where higher speed and higher accuracy control is required, which cannot be realized by a system constructed by combining a general-purpose sequencer and a general-purpose servo.
  • Such an NC apparatus has a high real-time property of performing a high-speed response of 0.5 ms or less in a servo system, and can perform highly accurate control capable of 0.1 ⁇ m level control. It has a stable characteristic that enables advanced servo acceleration / deceleration control that does not cause vibration while performing high real-time performance and high-precision control.
  • Patent Document 1 discloses a system having a structure in which a FA (Factory Automation) network having a programmable controller, a data file storing data acquired from the programmable controller, and a user application are connected via a data management device. It is disclosed.
  • the data management device functions as middleware between the programmable controller, the data file, and the user application that performs processing of storing data collected from a plurality of PLCs in a data file or notifying the user application.
  • Patent Document 1 a database that stores data of machine tools / control devices on the FA network side and data that is a dedicated information processing terminal for storing data of machine tools / control devices in the database.
  • a management device and middleware for exchanging data between the programmable controller and the database in the data management device are required.
  • the installation area of the system increases, the maintenance cost of the dedicated information processing terminal increases, and there is a problem that the operation of the system becomes expensive.
  • the present invention has been made in view of the above, and a numerical control device and an information linkage system capable of suppressing maintenance costs without requiring a dedicated information processing terminal and middleware for storing processing device data in a database.
  • the purpose is to obtain an information collaboration program.
  • a numerical control device includes a processing unit that processes a workpiece, a data memory that stores numerical control data used when processing the workpiece, and the Numerical control device having a control unit for performing calculation using data in the data memory and controlling the machining unit, and numerical control data storage for storing data including numerical control data used in the numerical control device as a database
  • the numerical control device used in an information linkage system that is connected via a network and performs information linkage of the numerical control data between the numerical control device and the numerical control data storage device, Numerical control data collecting means for collecting the numerical control data from the data memory, and the number stored in the numerical control data storage device
  • An information linkage command generating means for generating an information linkage command for accessing the database in the numerical control data storage device so that data corresponding to the control device matches the collected numerical control data; and the information linkage command Information linkage command transmission means for transmitting the information to the numerical control data storage device.
  • the numerical control data in the data memory of the numerical control device is collected, and the information linkage command for updating the data in the numerical control data storage device with the collected numerical control data is generated and transmitted. Therefore, the numerical control data of the numerical control device can be stored in the numerical control storage device without preparing a dedicated information processing terminal having dedicated middleware outside the numerical control device. As a result, the installation area of the entire system can be reduced, and the maintenance cost can be reduced.
  • FIG. 1 is a diagram schematically showing an example of the configuration of the information cooperation system according to this embodiment.
  • FIG. 2 is a block diagram schematically showing an example of the functional configuration of the information cooperation system according to this embodiment.
  • FIG. 3 is a diagram illustrating an example of a data structure of the information cooperation project.
  • FIG. 4 is a diagram illustrating an example of the data structure of the information cooperation connection target setting.
  • FIG. 5 is a diagram illustrating an example of a data structure of NC data collection timing setting.
  • FIG. 6 is a diagram illustrating an example of the data structure of the information linkage command setting.
  • FIG. 7 is a diagram illustrating an example of the data structure of the collected NC data editing method setting.
  • FIG. 8 is a diagram illustrating an example of a data structure of information cooperation timing setting.
  • FIG. 1 is a diagram schematically showing an example of the configuration of the information cooperation system according to this embodiment.
  • FIG. 2 is a block diagram schematically showing an example of the functional configuration of the information cooperation system
  • FIG. 9 is a diagram illustrating an example of the data structure of the update NC data editing method setting.
  • FIG. 10 is a diagram illustrating an example of a data structure of collected NC data.
  • FIG. 11 is a diagram illustrating an example of the data structure of the NC data for update.
  • FIG. 12 is a flowchart illustrating an example of a procedure in the information cooperation task in the information cooperation process from the processing machine to the database server in the information cooperation system.
  • FIG. 13 is a sequence diagram illustrating an example of a procedure for information cooperation between the NC device and the database server.
  • FIG. 14 is a flowchart illustrating an example of a procedure in the information cooperation task in the information cooperation process from the database server to the processing machine in the information cooperation system.
  • FIG. 1 is a diagram schematically showing an example of the configuration of the information linkage system according to this embodiment.
  • the information linkage system uses a CNC device 20A, which is an NC device, or processing machines 10B, 10C incorporating the NC device, and data (hereinafter referred to as NC data) used in the CNC device 20A or the processing machines 10B, 10C in a database.
  • a database server 100 to be managed is connected via a network 150.
  • the NC data is data in accordance with a specific theme related to the NC device, and can be exemplified by machining information in the NC device.
  • a laser processing machine 10B that processes a workpiece with a laser an electric discharge machine 10C that processes a workpiece by electric discharge, or the like can be used.
  • the laser processing machine 10B is a machine tool developed for the purpose of performing machining that is impossible even with the use of conventional blades or cutting tools by using laser light for cutting or cutting.
  • the laser beam machine 10B includes a drive unit 60B that processes a workpiece and a command unit 20B that gives an instruction to the drive unit 60B according to the NC program.
  • the electric discharge machine 10C is a machine tool that employs a machining method that removes a part of the surface of the workpiece by arc discharge repeatedly generated in a short cycle between the electrode and the workpiece. By using an electric discharge machine, it is possible to cut out complex contours from hard metal, extremely hard steel, titanium, carbide, etc. that could not be processed by conventional machining techniques.
  • the electric discharge machine 10C includes a drive unit 60C that processes a workpiece and a command unit 20C that gives an instruction to the drive unit 60C according to the NC program.
  • These laser processing machine 10B and electric discharge machine 10C incorporate command units 20B and 20C, which are NC devices, and precisely control the movement of the processing unit (tool) to realize fine processing.
  • command units 20B and 20C which are NC devices, and precisely control the movement of the processing unit (tool) to realize fine processing.
  • this embodiment can be applied to any NC machine that is incorporated in a processing machine and that precisely controls the movement of the tool and realizes fine processing.
  • a database server (denoted as a DB server in the figure) 100 is a server having a database inside and operating a database management system.
  • the database server 100 performs processing such as database search in response to a request from a client and returns a processing result.
  • This embodiment relates to the database server 100, but is not limited to this.
  • Various servers currently in use often take the form of information management with a built-in database. Therefore, even if the name is not a database server, it may be related to this embodiment as long as the server has a database installed therein.
  • a File server 110 for example, a File server 110, an FTP (File Transfer Protocol) server 120, a Web server 130, App.
  • An (application) server 140 can be exemplified.
  • the file server 110 is a server installed to share files on a network such as a LAN (Local Area Network) or a WAN (Wide Area Network).
  • the FTP server 120 is a server that transmits and receives files using FTP.
  • the Web server 130 exchanges information using HTTP (HyperText Transfer Protocol) which is a kind of communication protocol.
  • HTTP HyperText Transfer Protocol
  • the web server 130 is one of the essential elements in building a website.
  • the application server 140 is a server that plays a role of executing an application layer program in a three-layer model in which a business system is divided into a presentation layer, an application layer, and a data layer.
  • FIG. 2 is a block diagram schematically showing an example of the functional configuration of the information linkage system according to this embodiment.
  • the information cooperation system has a configuration in which the processing machine 10 and the database server 100 that is a numerical control data storage device are connected via a network.
  • the database server 100 includes an information cooperation command transmission / reception unit 101, a database storage unit 102, and a database management unit (denoted as DBMS in the drawing) 103.
  • the information linkage command transmission / reception unit 101 has a database stored in the database storage unit 102 and an NC device or a processing machine 10 incorporating the NC device (command unit 20) (hereinafter collectively referred to as a processing machine).
  • An information cooperation command for coordinating the NC information is transmitted to and received from the processing machine 10.
  • the database storage unit 102 stores NC information inherent in the processing machine 10 such as an NC control machine tool, a laser processing machine 10B, or an electric discharge machine 10C connected to a network in a database format. NC information in the database is linked with the processing machine 10.
  • the database management unit 103 performs processing for an access request for the database in the database storage unit 102.
  • the processing machine 10 includes a command unit 20 and a drive unit 60 that is a processing unit.
  • the drive unit 60 includes a spindle motor 61 that rotates the spindle controlled by the spindle amplifier 62, a spindle amplifier 62 that rotates the spindle by driving the spindle motor 61, and a position and speed of a tool or the like by the servo amplifier 64.
  • Servo motor 63 that performs control
  • servo amplifier 64 that drives servo motor 63, limit switch, sensor, and other switches 65 that are input signal generation units that acquire the device state of processing machine 10, and command unit 20 And contactors, solenoids, lamps, etc. 66 that are operating parts operated by instructions.
  • the command unit 20 includes an NC control unit 30, an NC operation panel 50, and a program creation device 55.
  • the NC operation panel 50 includes a display for displaying information for operating the NC control unit 30 and operation keys for giving instructions to the NC control unit 30.
  • the program creation device 55 creates a machining program (NC program) that expresses a tool path or machining conditions necessary for machining by the machining machine in the form of a command to the control unit 30.
  • the machining program can be downloaded from the program creation device 55 to the control unit 30, or can be created by inputting directly from the NC operation panel 50 and introduced into the NC control unit 30.
  • the NC control unit 30 is an operation panel I that is a communication interface between the CPU 31, the memory 32, an external I / F 33 that is a communication interface between external devices such as a program creation device 55, and the NC operation panel 50.
  • / F34 and a spindle control I / F 35 that is a communication interface between the spindle amplifier 62, a servo control I / F 36 that is a communication interface between the servo amplifier 64, a limit switch, a sensor, and other switches 65
  • a digital input I / F 37 which is a communication interface between the contactor, solenoid, lamp and others 66.
  • NC program necessary for machining
  • NC data used for computation by the machining program or output as a result of the computation and NC data that links information between the database server 100 And are stored.
  • NC data are stored in a volatile memory or a non-volatile memory, depending on the application.
  • the memory 32 stores an information cooperation program for performing information cooperation with the database server 100.
  • a mechanism for performing information collaboration with the database server 100 is implemented as a new task (hereinafter referred to as an information collaboration task) inside the NC device (command unit 20), and these are implemented in the processing machine 10. Realized by mounting.
  • the information cooperation task includes an information cooperation project 71, an NC data collection unit 72 that is a numerical control data collection unit, an NC data collection timing management unit 73, a clock information management unit 74, an information cooperation command management unit 75, and numerical values.
  • Collected NC data storage unit 76 that is a control data storage unit, collected NC data editing method setting management unit 77, a collected NC data editing unit 78 that is a numerical control data editing unit, and an information link command that is an information link command generation unit
  • Accumulation unit 86, update NC data editing method setting management unit 87, and update as numerical control data editing means for updating Has a NC data editing unit 88, an NC data updating unit 89 is a numerical control data updating means.
  • the information cooperation project 71 records operation setting information of each processing unit when the information cooperation task 70 is executed when the NC apparatus performs information cooperation with the database server 100. This setting information is set by an operator, for example, from the NC operation panel 50 or an external device. Each processing unit executes processing with reference to the information cooperation project 71.
  • FIG. 3 is a diagram showing an example of the data structure of the information cooperation project.
  • the information linkage project 71 includes an information linkage setting ID 711, an information linkage setting 712, an information linkage connection target setting 713, an NC data collection timing setting 714, an information linkage command setting 715, a collected NC data editing method setting 716, an information linkage timing setting 717, An update NC data editing method setting 718 is included.
  • the information cooperation setting ID 711 is information for identifying the information cooperation project 71.
  • the information cooperation setting ID 711 includes a serial number 7111, an information cooperation setting ID name setting 7112, an information cooperation setting name character number 7113, and an information cooperation setting name 7114.
  • the serial number 7111 uniquely identifies (numerically and numerically identifies) a plurality of information linkage projects 71-1, 71-2,..., 71-n, 1, 2,. ⁇ Numbers such as n are added.
  • the serial number 7111 is an example, and any number can be used as long as it can be uniquely identified.
  • the information cooperation setting ID name setting 7112 manages the presence / absence of a name set in the information cooperation project 71 specified by the information cooperation setting ID 711. For example, “0” is input when there is no information cooperation setting ID name, and “1” is input when there is an information cooperation setting ID name.
  • the information linkage setting name character count 7113 is input with the number of characters of the name of the information linkage project 71 set by the operator when there is an information linkage setting ID name.
  • the information cooperation setting name 7114 is input with the name of the information cooperation project 71 set by the operator when there is an information cooperation setting ID name. Note that the information cooperation setting ID name setting 7112, the information cooperation setting name number of characters 7113, and the information cooperation setting name 7114 are introduced to facilitate the management of the information cooperation project 71 by the operator, and as necessary. Provided.
  • the information linkage setting 712 is information that specifies whether or not the information linkage project 71 is caused to function and the processing machine 10 (command unit 20) and the database server 100 are actually linked. For example, “0” is input when information is not linked, and “1” is input when information is linked.
  • the information cooperation project 71 can be managed by the information cooperation setting ID 711, a plurality of information cooperation projects 71-1 to 71-n can be configured.
  • “1” for information linkage is applied, but whether or not information linkage is performed depends on the system requirements. Therefore, the information linkage setting 712 can easily switch between valid / invalid of the setting. it can.
  • the information cooperation connection target setting 713 is information for designating logical identification information of a database in which the processing machine 10 according to this embodiment performs information cooperation, and is managed by the information cooperation connection management unit 82.
  • FIG. 4 is a diagram illustrating an example of the data structure of the information cooperation connection target setting.
  • the information linkage connection target setting 713 includes a designation presence / absence 301 for determining whether or not to designate a connection target for information linkage, and database connection information 302 when a connection target for information linkage is designated.
  • location information such as an IP (Internet Protocol) address or URL (Uniform Resource Locator), a port number used for connection, a user name for ensuring security, a password, and the like are set.
  • the NC data collection timing setting 714 is information for designating the timing at which the processing machine 10 according to this embodiment collects NC data stored in the memory 32 in the NC control unit 30.
  • FIG. 5 is a diagram illustrating an example of a data structure of NC data collection timing setting. Depending on the contents of this NC data collection timing setting 714, the processing machine 10 gives an opportunity to collect NC data. Then, based on the contents set in the NC data collection timing setting 714, the information cooperation task operates to check the contents of the designated NC data.
  • an on-time collection 311, a periodic collection 312, a value monitoring collection 313, and a system startup collection 314 are provided.
  • the scheduled collection 311 sets whether or not to collect NC data to be linked when information changes from false to true when the designated date / time or day of the week matches the current date / time or day of the week.
  • details such as date and time are set.
  • the state when the designated date / time or day of the week is reached is “true”, and the state other than that, that is, the state before or after the designated date / time or day of the week is “false”.
  • the periodic collection 312 repeats true and false at a specified cycle interval (for example, in seconds), and sets whether or not to collect NC data when changing from false to true.
  • details such as the cycle are set.
  • the value monitoring collection 313 monitors the value of the signal specified in the “command signal” item in the cycle set by the value monitoring cycle, and sets whether or not to collect NC data when the condition is satisfied. To do.
  • information such as the type of signal to be monitored, the condition to be satisfied by the signal, and the cycle for monitoring the signal are set. For example, if the state matched with the specified signal establishment condition is “true” and “false” before and after the “true” state where the specified signal condition is not satisfied, The value of a certain signal is monitored, and NC data is collected when it changes from “false” to “true”.
  • the value monitoring cycle refers to a cycle in which the information cooperation task 70 monitors the value of the memory 32 in the NC control unit 20.
  • This value monitoring cycle is the same as the collection interval of the fixed-cycle collection 312.
  • the value monitoring cycle (setting) is for reading another value of the memory 32 in the NC control unit 20 (a value to be stored in the database server 100) with a certain signal storing a certain value as a trigger.
  • the signal state that is, the value
  • the system startup collection 314 is for setting whether or not to collect NC data when the processing machine 10 of the information linkage system is activated.
  • the information cooperation command setting 715 is information for specifying the type of communication command used when the processing machine 10 according to this embodiment performs information cooperation with the database, and is managed by the information cooperation command management unit 75.
  • communication commands differ depending on the type of database to be connected, in recent years, since a database is generally operated using SQL, in this embodiment, an SQL command is given as an example. Specifically, a table name in the database server 100 that performs information cooperation and an item in the table name are designated.
  • FIG. 6 is a diagram showing an example of the data structure of the information linkage command setting.
  • the types of SQL commands include “INSERT” 321 for instructing addition of data in the database, “UPDATE” 322 for instructing update of data in the database, “DELETE” 323 for instructing deletion of data in the database, and A “SELECT” 324 for instructing acquisition of data in the database is included.
  • the information linkage command setting 715 corresponds to each of the commands 321 to 322, the table name in the database server for information linkage, the column name in the record indicating the record name in the table for information linkage, and the column name in the record in the table. NC data source name indicating the record name in the NC data to be included.
  • INSERT a table name (table name) into which a data string is to be inserted, a column name in the table, and a data string corresponding to the column name are set.
  • UPDATE a table name for updating the data string, a column name in the table, a data string corresponding to the column name, and an extraction condition for the record to be updated are set.
  • DELETE a table name in which a record to be deleted exists and an extraction condition for the record to be deleted are set.
  • SELECT a table name in which a record to be read will exist, and an extraction condition and a rearrangement condition for the record to be read are set.
  • the collected NC data editing method setting 716 sets whether or not it is necessary to edit the NC data collected before the processing machine 10 according to this embodiment cooperates with the database server 100, and when editing is necessary, This is information for setting the editing method (program), and is managed by the collected NC data editing method setting management unit 77.
  • FIG. 7 is a diagram illustrating an example of the data structure of the collected NC data editing method setting. As shown in this figure, the collected NC data editing method setting 716 includes a designation presence / absence 331 for designating presence / absence of editing before information linkage, and an operation for designating a program name as the editing method when editing is designated. And method designation 332.
  • the information cooperation timing setting 717 is information for designating the timing at which the processing machine 10 according to this embodiment cooperates with the database server 100, and is managed by the information cooperation timing management unit 81.
  • FIG. 8 is a diagram illustrating an example of a data structure of information cooperation timing setting. Depending on the setting contents of the information cooperation timing setting 717, the processing machine 10 gives an opportunity for information cooperation with the database server 100. Then, according to the contents of the information cooperation timing setting 717, the information cooperation task 70 operates, and information cooperation is performed between the processing machine 10 and the database server 100.
  • the on-time collection 341, the periodic collection 342, the value monitoring collection 343, the system startup collection 344, and the NC data collection timing 345 are provided.
  • the periodic collection 341, the periodic collection 342, the value monitoring collection 343, and the system startup collection 344 are the same as the NC data collection timing setting 714 in FIG.
  • the same 345 as the NC data collection timing is selected when there is no need to change the NC data collection timing setting 714 and the information link timing.
  • the update NC data editing method setting 718 is performed after the processing machine 10 according to this embodiment extracts NC data (hereinafter referred to as update NC data) set in the processing machine 10 from the database server 100, and then the processing machine. 10 is information for setting the necessity of editing before the update NC data is expanded and the editing method (program) when editing is necessary, and is managed by the updating NC data editing method setting management unit 87.
  • the FIG. 9 is a diagram illustrating an example of the data structure of the update NC data editing method setting. As shown in this figure, the update NC data editing method setting 718 extracts the update NC data from the database server 100 and then expands the update NC data to the processing machine 10 (the memory 32 of the NC control unit 30). There is a designation presence / absence 351 for designating the presence / absence of editing before the operation, and a calculation method designation 352 for designating a program name as an editing method when editing is designated.
  • NC data collection unit 72 determines that the timing for collecting NC data has been established based on the contents of the NC data collection timing setting 714 of the information cooperation project 71, the current date and time information, the periodic interrupt interval, and the like. Then, NC data is collected from the memory 32 of the processing machine 10 (NC control unit 30) according to the content of “data source name in NC” which is the extraction target of the information cooperation command setting 715. For example, referring to the command “INSERT” of the information linkage command setting 715 in FIG. 6, “operation history—operator”, “movement history—operation time”, and “operation history—work current” as the “NC data source name”. Since “location” is registered, data corresponding to these source names is collected.
  • the NC data collection timing management unit 73 manages the NC data collection timing setting 714 in the information cooperation project 71. Specifically, in order to generate the NC data collection timing setting 714, a setting screen is displayed on the display unit of the NC operation panel 50, and information input via the operation keys on the setting screen by the operator is information-linked. Save as the NC data collection timing setting 714 of the project 71.
  • the clock information management unit 74 manages information related to time. As information managed in time, for example, current date and time information, count information when periodically interrupting, and the like can be exemplified. Then, the information is notified to the NC data collection unit 72 and the information cooperation timing management unit 81.
  • the information cooperation command management unit 75 manages the information cooperation command setting 715 in the information cooperation project 71.
  • the information cooperation command setting 715 includes a use condition of a command used when information cooperation is performed between NC data in the memory 32 of the processing machine 10 and data in the database server 100. Including.
  • Such information cooperation command setting 715 is input by the user, and the information cooperation command management unit 75 manages setting contents input by the user.
  • the collected NC data accumulation unit 76 stores (accumulates) the NC data in the memory 32 of the processing machine 10 collected by the NC data collection unit 72.
  • this collected NC data is also referred to as collected NC data.
  • FIG. 10 is a diagram illustrating an example of a data structure of collected NC data.
  • the collected NC data has a table structure, and corresponds to the table name and column name in the database server 100 for information linking with the data source name in the memory 32 of the processing machine 10 based on the information linking command setting 715. It has a storage area.
  • “information linkage setting ID” 711, “table name in database” which is the name of the database table in the database server 100 to be linked, and “in NC” which is an item extracted from the NC data in the processing machine 10.
  • Data source name ”and“ column name in record ” which is an item in the database server 100 corresponding to“ data source name in NC ”.
  • data corresponding to “column name in record” is not extracted.
  • the serial number is stored as the information linkage setting ID 711, the table name of the database to be collected is “Sound”, and the data source names of the collection target are “operation history—operator”, “operation history—operation time”, and “ Data of “operation history—workpiece current position” is extracted.
  • the collected NC data editing method setting management unit 77 manages the collected NC data editing method in the information cooperation project 71. Specifically, as shown in FIG. 7, editing contents to be set for the collected NC data are set based on an input from the user.
  • the collected NC data editing unit 78 based on the contents of the collected NC data editing method setting 716, when editing is specified in the collected NC data editing method setting 716 by the user or system setting, Edit the collected NC data stored in.
  • the collected NC data is edited according to the program designated by the calculation method designation 332 of the collected NC data editing method setting 716 in FIG.
  • the collected NC data editing unit 78 edits the storage area corresponding to the “column name in record” of the NC data in the collected NC data storage unit 76. That is, the edited data stored in “data source name in NC” is stored in “column name in record”.
  • the storage area having the same name as the “in-NC data source name” is not set as a target space for the editing function so that the NC data collection unit 72 can store data at any time.
  • the information cooperation command generation unit 79 generates an information cooperation command based on the information cooperation command setting 715 in the information cooperation project 71.
  • the information cooperation command generation unit 79 passes the generated information cooperation command to the information cooperation command transmission unit 84, and passes the copied information cooperation command to the information cooperation command saving unit 80.
  • the information linkage command saving unit 80 passes a copy of the information linkage command generated by the information linkage command generation unit 79 to the information linkage command saving unit 80 to prepare for data retransmission when a communication abnormality occurs.
  • the information collaboration timing management unit 81 determines whether it is the timing of information collaboration based on the information collaboration connection target setting in the information collaboration project 71 and the clock information from the clock information management unit 74, and sets the timing of information collaboration. When it becomes, it notifies the information cooperation command transmission part 84 that it became the timing of information cooperation.
  • the information cooperation connection management unit 82 manages the information cooperation connection target setting 713 in the information cooperation project 71.
  • the information collaboration command transmission / reception unit 83 includes an information collaboration command transmission unit 84 that is an information collaboration command transmission unit, and an information collaboration command reception unit 85 that is an information collaboration command reception unit.
  • the information cooperation command transmission unit 84 stores the information cooperation command transmission unit 84 in the database of the database server 100 connected to the network based on the information cooperation connection setting in the information cooperation project 71.
  • generation part 79 is transmitted.
  • the information cooperation command receiving unit 85 receives an information cooperation command (for example, a response to the “SELECT” command received from the database server 100) from the database server 100, and changes the NC data in the memory 32 associated with the information cooperation command.
  • NC data to be stored in the update NC data storage unit 86 In order for the NC device to cooperate with the database server 100, the NC device and the database server 100 need to be logically connected.
  • the NC data received from the database server in order to update the NC data in the memory 32 is also referred to as update NC data.
  • the update NC data storage unit 86 stores the update NC data acquired from the database server 100.
  • the update NC data is NC data used for control in the processing machine 10 and is information for updating the NC data currently stored.
  • FIG. 11 is a diagram illustrating an example of the data structure of the NC data for update.
  • the NC data for update has a table structure, and based on the information linkage command setting 715, the data name for information linkage in the processing machine 10, the table name and the data name in the database server 100 to be linked to information, Has a storage area corresponding to.
  • the information linkage setting ID 711 the “table name in database” in the database server 100 to be linked, the “data source name in NC” that is an item of data to be linked in the processing machine 10, and the data in the database server 100 And “column name in record” which is an item corresponding to “data source name in NC”.
  • a serial number is stored as the information linkage setting ID 711, and the column names in the records “workschwetz”, “kakouhouho”, and “kakoujunban” from the table name in the database named “chushutsu” The case where the data of is extracted is shown.
  • the updating NC data editing method setting management unit 87 manages the updating NC data editing method setting 718. Specifically, as shown in FIG. 9, the contents of editing performed on the update NC data acquired from the database server 100 are managed based on the input by the user.
  • the update NC data editing unit 88 based on the content of the update NC data editing method setting 718, when editing is specified in the update NC data editing method setting 718 by the user or system setting, Edit the update NC data stored in the data storage unit 86.
  • the NC data for update is edited according to the program designated by the calculation method designation in the NC data editing method setting for updating 718 of FIG.
  • the update NC data editing unit 88 can edit the storage area corresponding to the “NC data source name” of the update NC data in the update NC data storage unit 86. That is, the edited data stored in “column name in record” is stored in “data source name in NC”. Since the data in the NC device cannot be directly edited, processing is performed using the storage space of the update NC data storage unit 86. Further, the storage area corresponding to “column name in record” is not subject to the editing function by the update NC data editing unit 88 so that the SELECT response may be received at any time.
  • the NC data updating unit 89 uses the NC data for updating in the NC data accumulating unit 86 for updating based on the current date and time information and the periodic interrupt interval, and the like in the memory 32 of the processing machine 10 (NC control unit 30). Update the data.
  • FIG. 12 is a flowchart illustrating an example of a procedure in the information cooperation task in the information cooperation process from the processing machine to the database server in the information cooperation system.
  • the NC data collection unit 72 determines whether the collection timing specified by the NC data collection timing setting 714 has come (step S11). If it is not the collection timing (No in step S11), the process waits until the collection timing is reached. Further, when the collection timing is reached (Yes in step S11), the NC data collection unit 72 collects NC data from the memory 32 (data memory) of the NC control unit 30 and collects the collected NC data storage unit 76. (Step S12).
  • step S13 it is determined whether or not editing of collected NC data is set in the collected NC data editing method setting 716 (step S13). If editing is set (Yes in step S13), the collected NC data is edited based on the contents of the collected NC data editing method setting 716 (step S14). Thereafter, or when editing is not set in step S13 (in the case of No in step S13), the information linkage command generation unit 79 is stored in the collected NC data accumulation unit 76 based on the information linkage command setting 715. An information cooperation command for transmitting the collected NC data to the database server 100 (information cooperation) is generated (step S15). When registering new collected NC data in the database server 100, the “INSERT” command is used. When updating part of the collected NC data, the “UPDATE” command is used to delete the collected NC data. If so, use the “DELETE” instruction.
  • the information cooperation command generation unit 79 passes the generated information cooperation command to the information cooperation command transmission unit 84, copies the generated information cooperation command, and passes it to the information cooperation command saving unit 80 (step S16). This is to prepare for data retransmission when a communication abnormality occurs between the processing machine 10 and the database server 100.
  • the information cooperation command transmission unit 84 determines whether the information cooperation timing specified by the information cooperation timing setting 717 has come (step S17). If it is not the information cooperation timing (No in step S17), the system waits until the information cooperation timing is reached. Further, when the information cooperation timing is reached (Yes in step S17), the information cooperation command transmission unit 84 transmits the information cooperation command to the database server 100 (step S18) and performs information cooperation. Thus, the information linkage process for reflecting the NC data of the processing machine 10 on the database server 100 is completed.
  • FIG. 13 is a sequence diagram illustrating an example of a procedure for information cooperation between the NC device and the database server.
  • FIG. 13A illustrates a normal processing procedure
  • FIG. 13B illustrates a process when a failure occurs. The procedure is shown. The following processing is performed by the information cooperation command transmission unit 84 in the information cooperation command transmission / reception unit 83 of the information cooperation task 70.
  • the processing machine 10 transmits a transaction start request to the database server 100 (SQ21).
  • the SQL statement that is the information cooperation command shown in step S18 of FIG. 12 is transmitted (executed) (SQ22).
  • the change process is determined to be a valid result, and a commit process is performed to reflect it in the database (SQ23). Normally, the processing from the transaction start request to the commit is repeatedly executed.
  • a DB close process for releasing a session established between the NC device and the database server 100 when the system is terminated is performed (SQ31).
  • FIG. 14 is a flowchart showing an example of a procedure in the information cooperation task in the information cooperation process from the database server to the processing machine in the information cooperation system.
  • the processing machine 10 transmits an information linkage command for extracting update NC data to the database server 100 (step S31).
  • This update NC data acquisition request uses a “SELECT” command for data extraction.
  • the details of the procedure up to the transmission of the update NC data acquisition request are the same as the procedure described with reference to FIG.
  • the database server 100 When the database server 100 receives the information linkage command including the update NC data acquisition request, the database server 100 extracts the update NC data according to the information linkage command and transmits it to the processing machine 10 via the information linkage command transmission / reception unit 83. To do.
  • the information link command transmission / reception unit 83 of the information link task 70 of the processing machine 10 stores the update NC data in the update NC data storage unit 86 (step S33).
  • the update NC data editing unit 88 determines whether or not the update NC data editing is set in the update NC data editing method setting 718 (step S34). If editing has been set (Yes in step S34), the updating NC data editing unit 88 edits the updating NC data based on the contents of the updating NC data editing method setting 718 (step S35). ). After that, or when editing is not set in step S34 (No in step S34), the NC data update unit 89 refers to the clock information and updates stored in the update NC data storage unit 86. The contents of the memory 32 of the processing machine 10 are updated with the NC data for use (step S36). Thus, the NC data update process for the processing machine 10 is completed.
  • the information cooperation method in the processing machine 10 (NC apparatus) mentioned above can be comprised as a program which stored the processing procedure. And it is realizable by making this program run with the above-mentioned processing machine 10 (NC apparatus).
  • This program also includes hard disks, SSD (Solid State Drive), floppy (registered trademark) disks, CD (Compact Disk) -ROM, MO (Magneto-Optical disk), DVD (Digital Versatile Disk or Digital Video Disk), etc. It is recorded on a computer-readable recording medium. In this case, it may be read from the recording medium by the processing machine 10 (NC device), or read from the recording medium by an information processing terminal such as an engineering tool connected to the processing machine 10 (NC device). May be installed in the processing machine 10 (NC device) via a network and read by the processing machine 10 (NC device).
  • This program can also be distributed through a network (communication line) such as the Internet.
  • NC device a function of collecting NC data in the memory 32 of the processing machine 10 (NC device), generating and transmitting an information linkage command for updating data in the database server 100 with the collected NC data
  • the NC control unit 30 of the processing machine 10 has a function of updating the NC data in the memory 32 of the processing machine 10 (NC device) with the NC data for update acquired from the database server 100 according to the instruction of the information linkage command. It was. Accordingly, the NC data of the processing machine 10 can be stored in the database server 100 without preparing a dedicated information processing terminal having dedicated middleware outside the processing machine 10. As a result, the installation area of the entire system can be reduced, and the cost for operating and maintaining the system can be reduced.
  • the processing machine 10 can actively cooperate with the database server 100.
  • the processing machine 10 can actively cooperate with the database server 100.
  • the numerical control device is useful for a system that links NC information with a database server connected via a telecommunication line.

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)
  • General Factory Administration (AREA)

Abstract

 駆動部(60)、データメモリおよび指令部(20)を有する加工機(10)と、前記加工機(10)で使用されるNCデータをデータベースとして格納するデータベースサーバ(100)と、がネットワークを介して接続され、前記加工機(10)と前記データベースサーバ(100)との間で前記NCデータの情報連携を行う情報連携システムで使用される前記加工機(10)であって、前記NCデータを前記データメモリから収集するNCデータ収集部(72)と、前記データベースサーバ(100)中の当該加工機(10)に対応するデータを、収集した前記NCデータに一致させるように、前記データベースサーバ(100)内の前記データベースへアクセスする情報連携コマンドを生成する情報連携コマンド生成部(79)と、前記情報連携コマンドを前記データベースサーバ(100)に送信する情報連携コマンド送信部(84)と、を備える。

Description

数値制御装置、情報連携システムおよび情報連携プログラム
 この発明は、数値制御装置、情報連携システムおよび情報連携プログラムに関するものである。
 数値制御(Numerical Control:以下、NCという)装置は、一般にNC制御ユニットと、NC操作パネルを中心に構成される指令部と、サーボアンプ、主軸アンプ、モータまたは検出器で構成される駆動部と、から構成されている。現在では、高性能の専用マイクロコンピュータを内蔵し、複雑で高度な制御を高い信頼性で実現することができるCNC(Computerized NC)装置もNC装置の一つとして使用されている。
 NC装置は、工作機械に設置されたセンサ、スイッチ等からの入力信号により、シーケンス制御を行うことも可能である。制御の対象は、工具交換または切粉排除など機械周辺の動作である。NC装置に対して、一連の加工動作を記述したものをNCプログラミングと呼ぶ。これは、その加工に必用な工具経路または加工条件などをNC装置への命令という形で表したものである。このNCプログラムは、外部のプログラム自動生成装置からNC装置へとダウンロードしたり、NC操作パネルから直接入力したりすることもできる。
 一般にNC装置は、汎用シーケンサや汎用サーボを組み合わせて構築したシステムでは実現できない、より高速で高精度な制御が要求される分野で利用される。このようなNC装置は、サーボ系で0.5ms以下の高速な応答を行う高いリアルタイム性を有し、0.1μmレベルの制御が可能である高精度な制御を行うことができる。高いリアルタイム性と高精度な制御を行いながら、振動を起こさない高度なサーボ加減速制御が可能という安定した特性も有する。また、機械の剛性的な要因で発生するバックラッシュ、ねじれ、たわみ、伸縮などに対応した機械に対する補正制御が可能であり、回転中の加工物の回転を止めることなく他の加工エリアに移動するような一つの加工物に対して複数の歯車で同時に加工できる同期制御も可能である。
 近年では、工場内においては生産状況等の変更に即応するために、各生産設備における生産に関する情報の変化に対し、その参照や評価を即座に行うことが重要になってきている。したがって、工作機械においても加工状況の変化に即応して、加工情報の参照や評価を正確に、即座に行うことが求められている。そのため、加工情報通信機能を有するNC装置が、提案されている(たとえば、特許文献1参照)。
 特許文献1には、プログラマブルコントローラを有するFA(Factory Automation)ネットワークと、プログラマブルコントローラから取得したデータを格納するデータファイルと、ユーザアプリケーションと、が、データ管理装置を介して接続された構造のシステムが開示されている。データ管理装置は、複数のPLCから収集したデータをデータファイルに格納したり、ユーザアプリケーションに通知したりする処理を行う、プログラマブルコントローラとデータファイルおよびユーザアプリケーションとの間のミドルウェアとして機能する。
特許第3580347号公報
 しかしながら、上記特許文献1の技術においては、FAネットワーク側の工作機械/制御機器のデータを格納するデータベースと、工作機械/制御機器のデータをデータベースに格納するための専用の情報処理端末であるデータ管理装置と、このデータ管理装置でプログラマブルコントローラとデータベースとの間のデータのやり取りなどを行うためのミドルウェアと、が必要となる。これによって、システムの設置面積が増大し、専用の情報処理端末のメンテナンス費用が増え、システムの運営が高コストになってしまうという問題点があった。
 この発明は上記に鑑みてなされたもので、加工装置のデータをデータベースに格納するための専用の情報処理端末とミドルウェアを必要とせずに、メンテナンス費用を抑えることができる数値制御装置、情報連携システムおよび情報連携プログラムを得ることを目的とする。
 上記目的を達成するため、この発明にかかる数値制御装置は、被加工物に対して加工を施す加工部、前記被加工物の加工の際に利用する数値制御データを記憶するデータメモリ、および前記データメモリ中のデータを用いて演算を行い、前記加工部を制御する制御部を有する数値制御装置と、前記数値制御装置で使用される数値制御データを含むデータをデータベースとして格納する数値制御データ格納装置と、がネットワークを介して接続され、前記数値制御装置と前記数値制御データ格納装置との間で前記数値制御データの情報連携を行う情報連携システムで使用される前記数値制御装置であって、前記数値制御データを前記データメモリから収集する数値制御データ収集手段と、前記数値制御データ格納装置に格納されている当該数値制御装置に対応するデータを、収集した前記数値制御データに一致させるように、前記数値制御データ格納装置内の前記データベースへアクセスする情報連携コマンドを生成する情報連携コマンド生成手段と、前記情報連携コマンドを前記数値制御データ格納装置に送信する情報連携コマンド送信手段と、を備えることを特徴とする。
 この発明によれば、数値制御装置のデータメモリ中の数値制御データを収集し、収集した数値制御データで数値制御データ格納装置中のデータを更新する情報連携コマンドを生成し、送信するようにしたので、専用のミドルウェアを有する専用の情報処理端末を数値制御装置の外部に用意することなく、数値制御装置の数値制御データを数値制御格納装置に格納することができる。その結果、システム全体の設置面積を小さくすることができ、メンテナンス費用を抑えることができるという効果を有する。
図1は、この実施の形態による情報連携システムの構成の一例を模式的に示す図である。 図2は、この実施の形態による情報連携システムの機能構成の一例を模式的に示すブロック図である。 図3は、情報連携プロジェクトのデータ構造の一例を示す図である。 図4は、情報連携接続対象設定のデータ構造の一例を示す図である。 図5は、NCデータ収集タイミング設定のデータ構造の一例を示す図である。 図6は、情報連携コマンド設定のデータ構造の一例を示す図である。 図7は、収集NCデータ編集方法設定のデータ構造の一例を示す図である。 図8は、情報連携タイミング設定のデータ構造の一例を示す図である。 図9は、更新用NCデータ編集方法設定のデータ構造の一例を示す図である。 図10は、収集NCデータのデータ構造の一例を示す図である。 図11は、更新用NCデータのデータ構造の一例を示す図である。 図12は、情報連携システムでの加工機からデータベースサーバへの情報連携処理の際の情報連携タスクにおける手順の一例を示すフローチャートである。 図13は、NC装置とデータベースサーバとの間の情報連携の手順の一例を示すシーケンス図である。 図14は、情報連携システムでのデータベースサーバから加工機への情報連携処理の際の情報連携タスクにおける手順の一例を示すフローチャートである。
 以下に添付図面を参照して、この発明にかかる数値制御装置、情報連携システムおよび情報連携プログラムの好適な実施の形態を詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。
 図1は、この実施の形態による情報連携システムの構成の一例を模式的に示す図である。情報連携システムは、NC装置であるCNC装置20AまたはNC装置を組み込んだ加工機10B,10Cと、CNC装置20Aまたは加工機10B,10Cで使用されるデータ(以下、NCデータという)などをデータベースで管理するデータベースサーバ100と、がネットワーク150を介して接続される構成を有する。なお、NCデータは、NC装置に関する特定のテーマに沿ったデータであり、NC装置における加工情報などを例示することができる。
 加工機として、被加工物をレーザで加工するレーザ加工機10B、被加工物を放電によって加工する放電加工機10Cなどを用いることができる。
 レーザ加工機10Bは、レーザ光を切削または切断加工に利用することで、従来の刃物や切削器具を用いても不可能な機械加工を行う用途で開発された工作機械である。レーザ加工機10Bは、被加工物に対して加工を行う駆動部60Bと、NCプログラムにしたがって駆動部60Bに指示を与える指令部20Bと、を有する。
 放電加工機10Cは、電極と被加工物との間に短い周期で繰り返し発生されるアーク放電によって被加工物表面の一部を除去する機械加工方法を採用した工作機械である。放電加工機を利用することで、従来の機械加工技術では加工できなかった硬い金属、極めて硬い鋼鉄、チタンまたは炭化物などから複雑な輪郭を切り出すことができる。放電加工機10Cは、被加工物に対して加工を行う駆動部60Cと、NCプログラムにしたがって駆動部60Cに指示を与える指令部20Cと、を有する。
 これらのレーザ加工機10Bと放電加工機10Cは、内部にNC装置である指令部20B,20Cを組み込んで、加工部(工具)の動きを精密に制御し、微細加工を実現している。なお、これらは例示であり、加工機がこれに限定されるものではない。たとえば、加工機内部に組み込んだNC装置で、工具の動きを精密に制御し、微細加工を実現している加工機であれば、この実施の形態を適用することができる。
 データベースサーバ(図では、DBサーバと表記)100は、データベースを内部に持ち、データベース管理システムが動作しているサーバのことである。データベースサーバ100は、クライアントからのリクエストなどに対してデータベースの検索などの処理を行い、処理結果を返す。この実施の形態は、データベースサーバ100に関するものであるが、これに限られるものではない。現在使用されている様々なサーバは、内部にデータベースを搭載して情報管理している形態をとるものが多い。そのため、名称がデータベースサーバでなくても、内部にデータベースを搭載しているサーバであれば、この実施の形態に関わる可能性がある。データベースサーバ100のほかに、たとえばFileサーバ110、FTP(File Transfer Protocol)サーバ120、Webサーバ130、App.(アプリケーション)サーバ140などを例示することができる。
 ここで、Fileサーバ110は、LAN(Local Area Network)やWAN(Wide Area Network)などのネットワーク上で、ファイルを共有するために設置されるサーバである。FTPサーバ120は、FTPを使用してファイルの送受信を行うサーバのことである。Webサーバ130は、通信プロトコルの一種であるHTTP(HyperText Transfer Protocol)を用いて情報のやり取りをしている。クライアントであるWebブラウザからリクエストを受けると、リクエストに応じたHTML(HyperText Markup Language)文書や画像などの情報を送信する。Webサーバ130は、Webサイトの構築における必須要素の一つである。アプリケーションサーバ140は、業務用のシステムを、プレゼンテーション層、アプリケーション層、データ層の3つに分けて構成する3階層モデルにおいて、アプリケーション層のプログラムを実行する役割を担うサーバのことである。
 図2は、この実施の形態による情報連携システムの機能構成の一例を模式的に示すブロック図である。上記したように、情報連携システムは、加工機10と、数値制御データ格納装置であるデータベースサーバ100と、がネットワークを介して接続された構成を有する。
 データベースサーバ100は、情報連携コマンド送受信部101と、データベース格納部102と、データベース管理部(図中では、DBMSと表記)103と、を有する。情報連携コマンド送受信部101は、データベース格納部102中のデータベースと、NC装置またはNC装置(指令部20)が組み込まれた加工機10(以下、これらをまとめて加工機という)が保持するある特定のNC情報を連携させる情報連携コマンドを、加工機10との間で送受信する。
 データベース格納部102は、ネットワークに接続されるNC制御工作機械、レーザ加工機10Bまたは放電加工機10Cなどの加工機10に内在するNC情報をデータベースの形式で格納している。データベース中のNC情報は、加工機10との間で情報連携される。データベース管理部103は、データベース格納部102のデータベースに対するアクセス要求に対する処理を行う。
 加工機10は、指令部20と、加工部である駆動部60と、を有する。駆動部60は、主軸アンプ62により制御される主軸を回転駆動する主軸モータ61と、主軸モータ61を駆動させることにより主軸を回転させる主軸アンプ62と、サーボアンプ64により工具などの位置や速度の制御を行うサーボモータ63と、サーボモータ63を駆動するサーボアンプ64と、加工機10の装置状態を取得する入力信号生成部であるリミットスイッチ、センサ、その他スイッチ類65と、指令部20からの指示によって動作する動作部であるコンタクタ、ソレノイド、ランプ他66と、を有する。
 指令部20は、NC制御ユニット30と、NC操作パネル50と、プログラム作成装置55と、を有する。NC操作パネル50は、NC制御ユニット30を操作する情報を表示するための表示器と、NC制御ユニット30に対して指示を与える操作キーと、を有する。プログラム作成装置55は、加工機での加工に必要な工具経路または加工条件などを制御ユニット30への命令という形で表現した加工プログラム(NCプログラム)を作成する。加工プログラムは、プログラム作成装置55から制御ユニット30にダウンロードされたり、またはNC操作パネル50から直接入力することによって作成され、NC制御ユニット30に導入したりすることができる。
 NC制御ユニット30は、CPU31と、メモリ32と、プログラム作成装置55などの外部機器との間の通信インタフェースである外部I/F33と、NC操作パネル50との間の通信インタフェースである操作パネルI/F34と、主軸アンプ62との間の通信インタフェースである主軸制御I/F35と、サーボアンプ64との間の通信インタフェースであるサーボ制御I/F36と、リミットスイッチ、センサ、その他スイッチ類65との間の通信インタフェースであるディジタル入力I/F37と、コンタクタ、ソレノイド、ランプ他66との間の通信インタフェースであるディジタル出力I/F38と、を有する。
 メモリ32には、加工を行うに当たって必要な加工プログラム(NCプログラム)と、加工プログラムによる演算で使用したり、演算の結果出力されたりするデータと、データベースサーバ100との間で情報連携するNCデータと、が格納される。これらのデータは、それぞれ用途に応じて、揮発性のメモリまたは不揮発性のメモリに格納される。
 また、このメモリ32には、データベースサーバ100との間で情報連携を行う情報連携プログラムが格納されている。この実施の形態では、データベースサーバ100との間で情報連携を行う仕組みが、NC装置(指令部20)内部に新たなタスク(以下、情報連携タスクという)として実装され、それらを加工機10に搭載することで実現される。
 情報連携タスクは、情報連携プロジェクト71と、数値制御データ収集手段であるNCデータ収集部72と、NCデータ収集タイミング管理部73と、時計情報管理部74と、情報連携コマンド管理部75と、数値制御データ蓄積手段である収集NCデータ蓄積部76と、収集NCデータ編集方法設定管理部77と、数値制御データ編集手段である収集NCデータ編集部78と、情報連携コマンド生成手段である情報連携コマンド生成部79と、情報連携コマンド退避部80と、情報連携タイミング管理部81と、情報連携接続管理部82と、情報連携コマンド送受信部83と、更新用数値制御データ蓄積手段である更新用NCデータ蓄積部86と、更新用NCデータ編集方法設定管理部87と、更新用数値制御データ編集手段である更新用NCデータ編集部88と、数値制御データ更新手段であるNCデータ更新部89と、を有する。
 情報連携プロジェクト71は、NC装置がデータベースサーバ100との間で情報連携を行うに際し、情報連携タスク70が実行されるにあたっての各処理部の動作の設定情報を記録している。この設定情報は、作業者によって、たとえばNC操作パネル50または外部装置から設定される。各処理部は、この情報連携プロジェクト71を参照して、処理を実行する。
 図3は、情報連携プロジェクトのデータ構造の一例を示す図である。情報連携プロジェクト71は、情報連携設定ID711、情報連携設定712、情報連携接続対象設定713、NCデータ収集タイミング設定714、情報連携コマンド設定715、収集NCデータ編集方法設定716、情報連携タイミング設定717および更新用NCデータ編集方法設定718を含む。
 情報連携設定ID711は、情報連携プロジェクト71を識別する情報である。情報連携設定ID711は、シリアル番号7111と、情報連携設定ID名称設定7112と、情報連携設定名称文字数7113と、情報連携設定名称7114と、を含む。シリアル番号7111は、複数存在する情報連携プロジェクト71-1,71-2,・・・,71-nを一意に識別(番号的、数値的に特定)するものであり、1,2,・・・,nなどの番号が付される。なお、シリアル番号7111は一例であり、一意に識別できるものであれば、どのようなものでもよい。
 情報連携設定ID名称設定7112は、情報連携設定ID711で特定される情報連携プロジェクト71に設定する名称の有無を管理する。たとえば情報連携設定ID名称なしの場合には「0」が入力され、情報連携設定ID名称ありの場合には「1」が入力される。情報連携設定名称文字数7113は、情報連携設定ID名称ありの場合に、作業者によって設定された情報連携プロジェクト71の名称の文字数が入力される。情報連携設定名称7114は、情報連携設定ID名称ありの場合に、作業者によって設定された情報連携プロジェクト71の名称が入力される。なお、情報連携設定ID名称設定7112と情報連携設定名称文字数7113と情報連携設定名称7114とは、作業者による情報連携プロジェクト71の管理をしやすくするために導入されるものであり、必要に応じて設けられる。
 情報連携設定712は、情報連携プロジェクト71を機能させて、実際に加工機10(指令部20)とデータベースサーバ100とを情報連携させるかどうかを指定する情報である。たとえば情報連携しない場合には「0」が入力され、情報連携する場合には「1」が入力される。この例では、情報連携設定ID711で情報連携プロジェクト71を管理できるようにしたので、複数の情報連携プロジェクト71-1~71-nを構成することができる。この実施の形態による加工機10では、システムの要求に応じた情報連携設定712を設定することで、どの情報連携プロジェクト71-1~71-nを機能させるかを指定できる。また、通常利用時は、情報連携する「1」が適用されるが、情報連携するかしないかは、システム要件によって異なるので、この情報連携設定712によって容易に設定の有効/無効を切り替えることができる。
 情報連携接続対象設定713は、この実施の形態による加工機10が、情報連携するデータベースの論理的な識別情報を指定する情報であり、情報連携接続管理部82によって管理される。図4は、情報連携接続対象設定のデータ構造の一例を示す図である。情報連携接続対象設定713は、情報連携の接続対象の指定の有無を決める指定有無301と、情報連携の接続対象の指定がある場合のデータベース接続情報302と、を有する。データベース接続情報302には、IP(Internet Protocol)アドレスまたはURL(Uniform Resource Locator)などのロケーション情報、接続に利用するポート番号、セキュリティを確保するためのユーザ名、パスワードなどが設定される。
 NCデータ収集タイミング設定714は、この実施の形態による加工機10が、NC制御ユニット30内のメモリ32に記憶されているNCデータを収集するタイミングを指定する情報であり、NCデータ収集タイミング管理部73によって管理される。図5は、NCデータ収集タイミング設定のデータ構造の一例を示す図である。このNCデータ収集タイミング設定714の内容によって、加工機10がNCデータを収集するきっかけを与える。そして、このNCデータ収集タイミング設定714で設定された内容に基づいて、情報連携タスクが動作し、指定されたNCデータの内容を確認する。
 図5の例では、NCデータ収集タイミング設定714として、定刻収集311、定周期収集312、値監視収集313、およびシステム立ち上がり時収集314が設けられている。定刻収集311は、指定した日時または曜日と現在の日時または曜日が一致した場合に偽から真に変化したときに情報連携すべきNCデータの収集を行うか否かを設定するものであり、定刻にNCデータの収集を行う場合には、日時などの詳細が設定される。ここで、指定した日時または曜日になった状態が「真」であり、それ以外、すなわち指定した日時または曜日よりも前または後の状態が「偽」である。また、定周期収集312は、指定周期間隔(単位はたとえば秒)で真と偽を繰り返し、偽から真に変化したときにNCデータの収集を行うか否かを設定するものであり、所定の周期でNCデータの収集を行う場合には、周期などの詳細が設定される。
 値監視収集313は、値監視周期で設定された周期で、「指令信号」の項目で指定された信号の値を監視し、条件が成立したときにNCデータの収集を行うか否かを設定するものである。ある信号指令をトリガとしてNCデータの収集を行う場合には、監視する信号の種類と、その信号が満たすべき条件と、その信号を監視する周期などの情報が設定される。たとえば、指定した信号成立条件にマッチングした状態が「真」であり、指定した信号条件が成立していない「真」の状態になる前および後は「偽」であるとすると、指定した周期である信号の値を監視し、「偽」から「真」に変化したときにNCデータの収集を行う。ここで、値監視周期とは、情報連携タスク70がNC制御ユニット20内のメモリ32の値を監視する周期のことをいう。この値監視周期は、定周期収集312の収集間隔と同じ周期であるが、定周期収集312の設定の場合と異なり、信号の指定がない。すなわち、値監視周期(の設定)は、ある値を格納しているある信号をトリガにして、NC制御ユニット20内のメモリ32の他の値(データベースサーバ100に格納するべき値)を読み出すための値を格納しているある信号を監視するための周期である。そして、値を認識するための時間間隔(=周期)が、値監視周期となる。なお、信号の状態(すなわち値)は変化することもあれば、変化しないこともある。システム立ち上がり時収集314は、情報連携システムの加工機10が起動したときにNCデータの収集を行なうか否かを設定するものである。
 情報連携コマンド設定715は、この実施の形態による加工機10が、データベースと情報連携するときに使用する通信コマンドの種別を指定する情報であり、情報連携コマンド管理部75によって管理される。接続するデータベースの種別によって、通信コマンドは異なってくるが、近年では、データベースといえば、概ねSQLを利用して操作することから、この実施の形態では、SQLコマンドを例に挙げている。具体的には、情報連携を行うデータベースサーバ100中の表名と、その中の項目と、を指定する。
 図6は、情報連携コマンド設定のデータ構造の一例を示す図である。SQLコマンドの種別としては、データベース中のデータの追加を指示する「INSERT」321、データベース中のデータの更新を指示する「UPDATE」322、データベース中のデータの削除を指示する「DELETE」323、およびデータベース中のデータの取得を指示する「SELECT」324が挙げられる。情報連携コマンド設定715には、それぞれのコマンド321~322と、情報連携するデータベースサーバ中の表名、情報連携する表内のレコード名を示すレコード内カラム名、表内のレコード内カラム名に対応するNCデータ中のレコード名を示すNC内データソース名などを含む。
 たとえば「INSERT」321では、データ列を挿入すべき表の名前(表名)と、表内のカラム名と、カラム名に対応したデータ列と、が設定される。「UPDATE」322では、データ列を更新すべき表名と、表内のカラム名と、カラム名に対応したデータ列と、更新すべきレコードの抽出条件と、が設定される。「DELETE」323では、削除すべきレコードが存在するであろう表名と、削除すべきレコードの抽出条件と、が設定される。「SELECT」では、読み出すべきレコードが存在するであろう表名と、読み出すべきレコードの抽出条件および並び替え条件が設定される。
 収集NCデータ編集方法設定716は、この実施の形態による加工機10がデータベースサーバ100と情報連携する前に収集したNCデータの編集を行う必要性の有無を設定し、編集が必要な場合は、編集方法(プログラム)を設定する情報であり、収集NCデータ編集方法設定管理部77によって管理される。図7は、収集NCデータ編集方法設定のデータ構造の一例を示す図である。この図に示されるように、収集NCデータ編集方法設定716は、情報連携する前の編集の有無を指定する指定有無331と、編集を指定する場合にその編集方法であるプログラム名を指定する演算方法指定332と、を有する。
 情報連携タイミング設定717は、この実施の形態による加工機10が、データベースサーバ100と情報連携するタイミングを指定する情報であり、情報連携タイミング管理部81によって管理される。図8は、情報連携タイミング設定のデータ構造の一例を示す図である。この情報連携タイミング設定717の設定内容によって、加工機10がデータベースサーバ100と情報連携するきっかけを与える。そして、この情報連携タイミング設定717の内容にしたがって、情報連携タスク70が動作し、加工機10とデータベースサーバ100との間で情報連携がなされる。
 図8の例では、情報連携タイミング設定717として、定刻収集341、定周期収集342、値監視収集343、システム立ち上がり時収集344およびNCデータ収集タイミングと同じ345が設けられている。定刻収集341、定周期収集342、値監視収集343およびシステム立ち上がり時収集344は、図6のNCデータ収集タイミング設定714と同じであるので、その説明を省略する。また、NCデータ収集タイミングと同じ345は、NCデータ収集タイミング設定714と情報連携タイミングを変える必要がない場合に選択される。
 更新用NCデータ編集方法設定718は、この実施の形態による加工機10が、データベースサーバ100から加工機10に設定するNCデータ(以下、更新用NCデータという)の抽出を行った後、加工機10に更新用NCデータを展開する前の編集の必要性と、編集が必要な場合に編集方法(プログラム)と、を設定する情報であり、更新用NCデータ編集方法設定管理部87によって管理される。図9は、更新用NCデータ編集方法設定のデータ構造の一例を示す図である。この図に示されるように、更新用NCデータ編集方法設定718は、データベースサーバ100から更新用NCデータを抽出した後、加工機10(NC制御ユニット30のメモリ32)に更新用NCデータを展開する前の編集の有無を指定する指定有無351と、編集を指定する場合にその編集方法であるプログラム名を指定する演算方法指定352と、を有する。
 再び図2に戻り、情報連携タスクを構成する処理部について説明する。NCデータ収集部72は、情報連携プロジェクト71のNCデータ収集タイミング設定714の内容と、現在日時情報および定周期割り込み間隔等と、に基づき、NCデータを収集するタイミングが成立したと判断した場合に、情報連携コマンド設定715の抽出対象である「NC内データソース名」の内容に従い、加工機10(NC制御ユニット30)のメモリ32から、NCデータを収集する。たとえば、図6の情報連携コマンド設定715のコマンド「INSERT」を参照すると、「NC内データソース名」として、「操作履歴-操作者」、「移動履歴-動作時間」および「稼働履歴-ワーク現在位置」が登録されているので、これらのソース名に対応するデータの収集を行う。
 NCデータ収集タイミング管理部73は、情報連携プロジェクト71中のNCデータ収集タイミング設定714を管理する。具体的には、NCデータ収集タイミング設定714を生成するために、NC操作パネル50の表示器に設定画面を表示し、その設定画面に作業者によって操作キーを介して入力された値を情報連携プロジェクト71のNCデータ収集タイミング設定714として保存する。
 時計情報管理部74は、時間に関する情報を管理する。時間に管理する情報として、たとえば現在日時情報、周期的に割込みを行う際のカウント情報などを例示することができる。そして、これらの情報をNCデータ収集部72と情報連携タイミング管理部81に通知する。
 情報連携コマンド管理部75は、情報連携プロジェクト71中の情報連携コマンド設定715を管理する。図6に示されるように、情報連携コマンド設定715は、加工機10のメモリ32中のNCデータとデータベースサーバ100中のデータとの間の情報連携を行う際に使用するコマンドの使用条件などを含む。このような情報連携コマンド設定715は、ユーザによって入力され、情報連携コマンド管理部75は、ユーザによって入力された設定内容を管理する。
 収集NCデータ蓄積部76は、NCデータ収集部72によって収集された加工機10のメモリ32内のNCデータを格納(蓄積)する。なお、以下では、この収集されたNCデータのことを収集NCデータともいう。図10は、収集NCデータのデータ構造の一例を示す図である。収集NCデータは、表構造を有し、情報連携コマンド設定715に基づいて、加工機10のメモリ32内のデータソース名と情報連携するためのデータベースサーバ100内の表名およびカラム名に相当する記憶領域を有する。ここでは、「情報連携設定ID」711と、連携するデータベースサーバ100内のデータベースの表の名称である「データベース内表名」と、加工機10内のNCデータから抽出する項目である「NC内データソース名」と、「NC内データソース名」に対応するデータベースサーバ100内の項目である「レコード内カラム名」と、を有する。加工機10からNCデータを収集する際には、「レコード内カラム名」に対応するデータは抽出されない。情報連携設定ID711として、シリアル番号が格納され、収集対象のデータベースの表名は「ソウニュウ」であり、収集対象のデータソース名が「操作履歴-操作者」、「稼働履歴-動作時間」および「稼働履歴-ワーク現在位置」であるデータが抽出される。
 収集NCデータ編集方法設定管理部77は、情報連携プロジェクト71中の収集NCデータ編集方法を管理する。具体的には、図7に示されるように収集NCデータに対して行う編集の内容の設定をユーザからの入力に基づいて行う。
 収集NCデータ編集部78は、ユーザまたはシステムの設定によって収集NCデータ編集方法設定716で編集が指定されている場合に、収集NCデータ編集方法設定716の内容に基づいて、収集NCデータ蓄積部76に蓄積された収集NCデータに対して編集を行う。たとえば、図7の収集NCデータ編集方法設定716の演算方法指定332で指定されたプログラムにしたがって、収集NCデータに対して編集を行う。これによって、収集NCデータ編集部78は、収集NCデータ蓄積部76中のNCデータの「レコード内カラム名」に相当する記憶領域を編集する。つまり、「NC内データソース名」に格納されるデータを編集したものが「レコード内カラム名」に格納される。なお、「NC内データソース名」と同名の記憶領域は、NCデータ収集部72がいつでもデータを格納できるように編集機能の対象空間とはしていない。
 情報連携コマンド生成部79は、情報連携プロジェクト71中の情報連携コマンド設定715に基づいて、情報連携コマンドを生成する。情報連携コマンド生成部79は、生成した情報連携コマンドを情報連携コマンド送信部84に渡し、コピーした情報連携コマンドを情報連携コマンド退避部80に渡す。
 情報連携コマンド退避部80は、情報連携コマンド生成部79で生成された情報連携コマンドのコピーを情報連携コマンド退避部80に渡し、通信異常発生時のデータ再送に備える。
 情報連携タイミング管理部81は、情報連携プロジェクト71中の情報連携接続対象設定と時計情報管理部74からの時計情報とに基づいて、情報連携のタイミングになったかを判定し、情報連携のタイミングになった場合には、情報連携コマンド送信部84に対して情報連携のタイミングになったことを通知する。情報連携接続管理部82は、情報連携プロジェクト71中の情報連携接続対象設定713を管理する。
 情報連携コマンド送受信部83は、情報連携コマンド送信手段である情報連携コマンド送信部84と、情報連携コマンド受信手段である情報連携コマンド受信部85と、を有する。情報連携コマンド送信部84は、情報連携タイミング管理部81から通知される情報連携のタイミングになると、情報連携プロジェクト71中の情報連携接続設定に基づいて、ネットワークに接続されるデータベースサーバ100のデータベースに対して、情報連携コマンド生成部79で生成された情報連携コマンドを送信する。情報連携コマンド受信部85は、データベースサーバ100からの情報連携コマンド(たとえばデータベースサーバ100から受信した「SELECT」コマンドに対する応答)を受信し、その情報連携コマンドに付随するメモリ32内のNCデータを変更するためのNCデータを更新用NCデータ蓄積部86に蓄積する。なお、NC装置がデータベースサーバ100と連携するためには、NC装置とデータベースサーバ100が論理的に接続されている必要がある。また、以下では、メモリ32内のNCデータを更新するために、データベースサーバから受信したNCデータを、更新用NCデータともいう。
 更新用NCデータ蓄積部86は、データベースサーバ100から取得した更新用NCデータを格納する。更新用NCデータは、加工機10での制御に使用されるNCデータであり、現在格納されているNCデータを更新するための情報である。図11は、更新用NCデータのデータ構造の一例を示す図である。更新用NCデータは、表構造を有し、情報連携コマンド設定715に基づいて、加工機10内の情報連携するデータ名と、情報連携する対象のデータベースサーバ100中の表名およびデータ名と、に相当する記憶領域を有する。ここでは、情報連携設定ID711と、連携するデータベースサーバ100内の「データベース内表名」と、加工機10内の情報連携するデータの項目である「NC内データソース名」と、データベースサーバ100内の「NC内データソース名」に対応した項目である「レコード内カラム名」と、を有する。図11の例では、情報連携設定ID711として、シリアル番号が格納され、「チュウシュツ」という名のデータベース内表名から、「ワークシュベツ」、「カコウホウホウ」および「カコウジュンバン」というレコード内カラム名のデータが抽出される場合が示されている。
 更新用NCデータ編集方法設定管理部87は、更新用NCデータ編集方法設定718を管理する。具体的には、図9に示されるようにデータベースサーバ100から取得した更新用NCデータに対して行う編集の内容をユーザによる入力に基づいて管理する。
 更新用NCデータ編集部88は、ユーザまたはシステムの設定によって更新用NCデータ編集方法設定718で編集が指定されている場合に、更新用NCデータ編集方法設定718の内容に基づいて、更新用NCデータ蓄積部86に蓄積された更新用NCデータに対して編集を行う。たとえば、図9の更新用NCデータ編集方法設定718の演算方法指定で指定されたプログラムにしたがって、更新用NCデータに対して編集を行う。このとき、更新用NCデータ編集部88は、更新用NCデータ蓄積部86中の更新用NCデータの「NC内データソース名」に相当する記憶領域を編集することができる。つまり、「レコード内カラム名」に格納されるデータを編集したものが「NC内データソース名」に格納される。なお、NC装置内のデータを直接編集する訳にはいかないので、更新用NCデータ蓄積部86の記憶空間を活用して処理を行う。また、「レコード内カラム名」に相当する記憶領域は、いつSELECT応答を受信してもよいように、更新用NCデータ編集部88による編集機能の対象とはしない。
 NCデータ更新部89は、現在日時情報および定周期割込み間隔等に基づいて、更新用NCデータ蓄積部86の更新用NCデータを用いて、加工機10(NC制御ユニット30)のメモリ32のNCデータを更新する。
 つぎに、このような構成のNC装置での情報連携処理について説明する。図12は、情報連携システムでの加工機からデータベースサーバへの情報連携処理の際の情報連携タスクにおける手順の一例を示すフローチャートである。まず、NCデータ収集部72は、NCデータ収集タイミング設定714で規定される収集タイミングになったかを判定する(ステップS11)。収集タイミングではない場合(ステップS11でNoの場合)には、収集タイミングとなるまで待ち状態となる。また、収集タイミングとなった場合(ステップS11でYesの場合)には、NCデータ収集部72は、NC制御ユニット30のメモリ32(データメモリ)からNCデータを収集し、収集NCデータ蓄積部76に格納する(ステップS12)。
 ついで、収集NCデータ編集方法設定716で収集NCデータの編集が設定されているかを判定する(ステップS13)。編集が設定されている場合(ステップS13でYesの場合)には、収集NCデータ編集方法設定716の内容に基づいて収集NCデータを編集する(ステップS14)。その後、またはステップS13で編集が設定されていない場合(ステップS13でNoの場合)には、情報連携コマンド生成部79は、情報連携コマンド設定715に基づいて、収集NCデータ蓄積部76に格納された収集NCデータをデータベースサーバ100に送信(情報連携)するための情報連携コマンドを生成する(ステップS15)。新たな収集NCデータをデータベースサーバ100に登録する場合には、「INSERT」命令を使用し、収集NCデータの一部を更新する場合には、「UPDATE」命令を使用し、収集NCデータを削除する場合には、「DELETE」命令を使用する。
 情報連携コマンド生成部79は、生成した情報連携コマンドを情報連携コマンド送信部84に渡すとともに、生成した情報連携コマンドをコピーし、情報連携コマンド退避部80に渡す(ステップS16)。これは、加工機10とデータベースサーバ100との間で通信異常が発生した場合のデータ再送に備えるためである。
 ついで、情報連携コマンド送信部84は、情報連携タイミング設定717で規定される情報連携タイミングになったかを判定する(ステップS17)。情報連携タイミングでない場合(ステップS17でNoの場合)には、情報連携タイミングとなるまで待ち状態となる。また、情報連携タイミングとなった場合(ステップS17でYesの場合)には、情報連携コマンド送信部84は、情報連携コマンドをデータベースサーバ100に対して送信し(ステップS18)、情報連携を行う。以上で、加工機10のNCデータをデータベースサーバ100へ反映する情報連携処理が終了する。
 図13は、NC装置とデータベースサーバとの間の情報連携の手順の一例を示すシーケンス図であり、(a)は通常の処理手順を示しており、(b)は障害が発生した場合の処理手順を示している。なお、以下に示す処理は、情報連携タスク70の情報連携コマンド送受信部83内の情報連携コマンド送信部84によって行われる。
 最初に通常の処理手順について図13(a)を参照しながら説明する。まず、システムが起動されると、加工機10とデータベースサーバ100との間でセッションを確保する処理が行われる。具体的には、NC装置の情報連携コマンド送受信部83は、情報連携接続対象設定713の設定内容にしたがって、接続すべきデータベースサーバ100を認識し、データベースを開くDBオープン処理を行う(SQ11)。
 ついで、情報連携コマンドの送信を開始するために、加工機10はデータベースサーバ100に対してトランザクション開始要求を送信する(SQ21)。その後に、図12のステップS18で示した情報連携コマンドであるSQL文を送信(実行)する(SQ22)。全てのSQL文を送信し終え、トランザクション処理によるデータの変更処理が正常に終了した場合に、その変更処理を有効な結果と確定し、データベースに反映するコミット処理を行う(SQ23)。なお、通常は、トランザクション開始要求からコミットまでの処理を繰り返し実行する。
 そして、システム終了時にNC装置とデータベースサーバ100との間で確立されたセッションを開放するDBクローズ処理が行われる(SQ31)。
 以上によって、情報連携コマンドによる情報連携処理が終了し、NC装置とデータベースサーバ100との間で情報連携される。
 つぎにSQL文実行処理中に異常発生した場合の処理手順について図13(b)を参照しながら説明する。図13(a)で説明したように、トランザクション開始要求が出され、正常にSQL文が実行されている状態にあるものとする(SQ22(n-1))。その後、SQL文の実行中に何らかの障害が発生すると(SQ22(n))、それまでの変更処理を無効なものとし、トランザクションが実行される前の状態に戻すロールバック処理が行われる(SQ25)。これによって、データベースサーバ100のデータベースは、元の状態に戻される。
 図14は、情報連携システムでのデータベースサーバから加工機への情報連携処理の際の情報連携タスクにおける手順の一例を示すフローチャートである。まず、加工機10は、更新用NCデータの抽出を行う情報連携コマンドをデータベースサーバ100に対して送信する(ステップS31)。なお、この更新用NCデータの取得要求は、データ抽出を行う「SELECT」命令を使用する。また、この更新用NCデータの取得要求を送信するまでの手順の詳細は、図11で説明した手順と同様であるのでその説明を省略する。
 データベースサーバ100は、更新用NCデータの取得要求を含む情報連携コマンドを受信すると、その情報連携コマンドにしたがって更新用NCデータの抽出を行い、情報連携コマンド送受信部83を介して加工機10に送信する。
 加工機10の情報連携タスク70の情報連携コマンド送受信部83は、更新用NCデータを受信すると(ステップS32)、更新用NCデータ蓄積部86に格納する(ステップS33)。ついで、更新用NCデータ編集部88は、更新用NCデータ編集方法設定718で更新用NCデータの編集が設定されているかを判定する(ステップS34)。編集が設定されている場合(ステップS34でYesの場合)には、更新用NCデータ編集部88は、更新用NCデータ編集方法設定718の内容に基づいて更新用NCデータを編集する(ステップS35)。その後、またはステップS34で編集が設定されていない場合(ステップS34でNoの場合)には、NCデータ更新部89は、時計情報を参照して、更新用NCデータ蓄積部86に格納された更新用NCデータで、加工機10のメモリ32の内容を更新する(ステップS36)。以上によって、加工機10へのNCデータの更新処理が終了する。
 なお、上述した加工機10(NC装置)での情報連携方法は、その処理手順を格納したプログラムとして構成することができる。そして、このプログラムを上記した加工機10(NC装置)で実行させることによって実現することができる。また、このプログラムは、ハードディスク、SSD(Solid State Drive)、フロッピー(登録商標)ディスク、CD(Compact Disk)-ROM、MO(Magneto-Optical disk)、DVD(Digital Versatile DiskまたはDigital Video Disk)などのコンピュータで読取可能な記録媒体に記録される。この場合、加工機10(NC装置)によって記録媒体から読み出されるようにしてもよいし、加工機10(NC装置)に接続されたエンジニアリングツールなどの情報処理端末で記録媒体から読み出され、それをネットワークを介して加工機10(NC装置)にインストールして加工機10(NC装置)によって読み出されるようにしてもよい。また、このプログラムは、インタネットなどのネットワーク(通信回線)を介して配布することもできる。
 この実施の形態では、加工機10(NC装置)のメモリ32中のNCデータを収集し、収集したNCデータでデータベースサーバ100中のデータを更新する情報連携コマンドを生成し、送信する機能と、情報連携コマンドの指示によってデータベースサーバ100から取得した更新用NCデータで、加工機10(NC装置)のメモリ32中のNCデータを更新する機能と、を加工機10のNC制御ユニット30に持たせた。これによって、専用のミドルウェアを有する専用の情報処理端末を加工機10の外部に用意することなく、加工機10のNCデータをデータベースサーバ100に格納することができる。その結果、システム全体の設置面積を小さくすることができ、システムの運営および維持にかかるコストを低減することができるという効果を有する。
 また、データベースサーバ100へのアクセスを含む情報連携する処理を情報連携プロジェクト71で設定するようにしたので、データベースサーバ100から情報を取得する際に必要なプログラミングの専門用語を作業者が使用してプログラムを作成することがない。その結果、複雑なプログラム作成装置が不要になるという効果も有する。
 さらに、上記機能を加工機10のNC制御ユニット30上で専用タスク化したので、加工機10から能動的にデータベースサーバ100と連携することができる。また、専用タスク化し、システム性能に応じた優先度および動作周期を選択することで、加工精度に影響を与えないようにデータベースサーバ100との情報連携を行うことができるという効果を有する。
 以上のように、この発明にかかる数値制御装置は、電気通信回線を介して接続されるデータベースサーバとNC情報を連携させるシステムに有用である。
 10 加工機、10B レーザ加工機、10C 放電加工機、20 指令部、20A CNC装置、20B,20C 指令部、30 NC制御ユニット、31 CPU、32 メモリ、50 NC操作パネル、55 プログラム作成装置、60,60B,60C 駆動部、70 情報連携タスク、71 情報連携プロジェクト、72 NCデータ収集部、73 NCデータ収集タイミング管理部、74 時計情報管理部、75 情報連携コマンド管理部、76 収集NCデータ蓄積部、77 収集NCデータ編集方法設定管理部、78 収集NCデータ編集部、79 情報連携コマンド生成部、80 情報連携コマンド退避部、81 情報連携タイミング管理部、82 情報連携接続管理部、83 情報連携コマンド送受信部、84 情報連携コマンド送信部、85 情報連携コマンド受信部、86 更新用NCデータ蓄積部、87 更新用NCデータ編集方法設定管理部、88 更新用NCデータ編集部、89 NCデータ更新部、100 データベースサーバ、101 情報連携コマンド送受信部、102 データベース格納部、103 データベース管理部。

Claims (12)

  1.  被加工物に対して加工を施す加工部、前記被加工物の加工の際に利用する数値制御データを記憶するデータメモリ、および前記データメモリ中のデータを用いて演算を行い、前記加工部を制御する制御部を有する数値制御装置と、前記数値制御装置で使用される数値制御データを含むデータをデータベースとして格納する数値制御データ格納装置と、がネットワークを介して接続され、前記数値制御装置と前記数値制御データ格納装置との間で前記数値制御データの情報連携を行う情報連携システムで使用される前記数値制御装置であって、
     前記数値制御データを前記データメモリから収集する数値制御データ収集手段と、
     前記数値制御データ格納装置に格納されている当該数値制御装置に対応するデータを、収集した前記数値制御データに一致させるように、前記数値制御データ格納装置内の前記データベースへアクセスする情報連携コマンドを生成する情報連携コマンド生成手段と、
     前記情報連携コマンドを前記数値制御データ格納装置に送信する情報連携コマンド送信手段と、
     を備えることを特徴とする数値制御装置。
  2.  前記数値制御データ格納装置の前記データベースから、当該数値制御装置の数値制御データを更新する更新用数値制御データを抽出する前記情報連携コマンドに対する応答を受信する情報連携コマンド受信手段と、
     受信した前記応答に含まれる前記更新用数値制御データで、前記データメモリに記憶されている前記数値制御データの更新を行う数値制御データ更新手段と、
     をさらに含むことを特徴とする請求項1に記載の数値制御装置。
  3.  前記数値制御データ収集手段は、前記数値制御データを前記データメモリ中から収集するタイミングを規定した数値制御データ収集タイミング設定情報に基づいて前記数値制御データの収集を行うことを特徴とする請求項1に記載の数値制御装置。
  4.  前記情報連携コマンド送信手段は、前記情報連携コマンドを送信するタイミングを規定した情報連携タイミング設定情報に基づいて前記数値制御データを前記数値制御データ格納装置に送信することを特徴とする請求項1に記載の数値制御装置。
  5.  前記数値制御データ収集手段で収集された前記数値制御データを蓄える数値制御データ蓄積手段と、
     前記数値制御データ蓄積手段に蓄えられた前記数値制御データを所定の条件にしたがって編集する数値制御データ編集手段と、
     をさらに備え、
     前記情報連携コマンド送信手段は、前記編集された数値制御データを送信することを特徴とする請求項1に記載の数値制御装置。
  6.  前記情報連携コマンド受信手段で受信された前記応答に含まれる前記更新用数値制御データを蓄える更新用数値制御データ蓄積手段と、
     前記更新用数値制御データ蓄積手段に蓄えられた前記更新用数値制御データを所定の条件にしたがって編集する更新用数値制御データ編集手段と、
     をさらに備え、
     前記数値制御データ更新手段は、前記編集された更新用数値制御データで、前記データメモリに記憶されている前記数値制御データの更新を行うことを特徴とする請求項2に記載の数値制御装置。
  7.  被加工物に対して加工を施す加工部、前記被加工物の加工の際に利用する数値制御データを記憶するデータメモリ、および前記データメモリ中のデータを用いて演算を行い、前記加工部を制御する制御部を有する数値制御装置と、前記数値制御装置で使用される数値制御データを含むデータをデータベースとして格納する数値制御データ格納装置と、がネットワークを介して接続され、前記数値制御装置と前記数値制御データ格納装置との間で前記数値制御データの情報連携を行う情報連携システムであって、
     前記数値制御装置は、
     前記数値制御データを前記データメモリから収集する数値制御データ収集手段と、
     前記数値制御データ格納装置に格納されている当該数値制御装置に対応するデータを、収集した前記数値制御データに一致させるように、前記数値制御データ格納装置内の前記データベースへアクセスする情報連携コマンドを生成する情報連携コマンド生成手段と、
     前記情報連携コマンドを前記数値制御データ格納装置に送信する情報連携コマンド送信手段と、
     を備えることを特徴とする情報連携システム。
  8.  被加工物に対して加工を施す加工部、前記被加工物の加工の際に利用する数値制御データを記憶するデータメモリ、および前記データメモリ中のデータを用いて演算を行い、前記加工部を制御する制御部を有する数値制御装置と、前記数値制御装置で使用される数値制御データを含むデータをデータベースとして格納する数値制御データ格納装置と、がネットワークを介して接続される情報連携システムで、前記数値制御装置と前記数値制御データ格納装置との間で前記数値制御データの情報連携を行う情報連携プログラムであって、
     前記数値制御装置に、
     前記数値制御データを前記データメモリから収集する数値制御データ収集手順と、
     前記数値制御データ格納装置に格納されている当該数値制御装置に対応するデータを、収集した前記数値制御データに一致させるように、前記数値制御データ格納装置内の前記データベースへアクセスする情報連携コマンドを生成する情報連携コマンド生成手順と、
     前記情報連携コマンドを前記数値制御データ格納装置に送信する情報連携コマンド送信手順と、
     を実行させることを特徴とする情報連携プログラム。
  9.  前記数値制御装置に、
     前記数値制御データ格納装置の前記データベースから、当該数値制御装置の数値制御データを更新する更新用数値制御データを抽出する前記情報連携コマンドに対する応答を受信する情報連携コマンド受信手順と、
     受信した前記応答に含まれる前記更新用数値制御データで、前記データメモリに記憶されている前記数値制御データの更新を行う数値制御データ更新手順と、
     をさらに実行させることを特徴とする請求項8に記載の情報連携プログラム。
  10.  前記数値制御データ収集手順では、前記数値制御データを前記データメモリ中から収集するタイミングを規定した数値制御データ収集タイミング設定情報に基づいて前記数値制御データの収集を行い、
     前記情報連携コマンド送信手順では、前記情報連携コマンドを送信するタイミングを規定した情報連携タイミング設定情報に基づいて前記数値制御データを前記数値制御データ格納装置に送信することを特徴とする請求項8に記載の情報連携プログラム。
  11.  前記数値制御装置に、前記数値制御データ収集手順の後で前記情報連携コマンド生成手順の前に、数値制御データ収集手順で取得した前記数値制御データを所定の条件にしたがって編集する数値制御データ編集手順をさらに実行させ、
     前記情報連携コマンド送信手順では、前記編集された数値制御データを送信することを特徴とする請求項8に記載の情報連携プログラム。
  12.  前記数値制御装置に、前記情報連携コマンド受信手順の後で前記数値制御データ更新手順の前に、前記情報連携コマンド受信手順で受信した前記応答に含まれる前記更新用数値制御データを所定の条件にしたがって編集する更新用数値制御データ編集手順をさらに実行させ、
     前記数値制御データ更新手順では、前記編集された更新用数値制御データで、前記データメモリに記憶されている前記数値制御データの更新を行うことを特徴とする請求項9に記載の情報連携プログラム。
PCT/JP2013/060850 2013-04-10 2013-04-10 数値制御装置、情報連携システムおよび情報連携プログラム WO2014167677A1 (ja)

Priority Applications (6)

Application Number Priority Date Filing Date Title
KR1020157030842A KR101703466B1 (ko) 2013-04-10 2013-04-10 수치 제어 장치, 정보 제휴 시스템 및 정보 제휴 프로그램이 기록된 컴퓨터로 판독 가능한 매체
DE112013006836.2T DE112013006836B4 (de) 2013-04-10 2013-04-10 Numerische Steuerungsvorrichtung und lnformationskoordinationssystem
US14/766,890 US10108179B2 (en) 2013-04-10 2013-04-10 Numerical control device, information coordination system, and information coordination program
PCT/JP2013/060850 WO2014167677A1 (ja) 2013-04-10 2013-04-10 数値制御装置、情報連携システムおよび情報連携プログラム
JP2013541538A JP5512051B1 (ja) 2013-04-10 2013-04-10 数値制御装置、情報連携システムおよび情報連携プログラム
CN201380075465.7A CN105103067B (zh) 2013-04-10 2013-04-10 数控装置、信息协同系统以及信息协同方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2013/060850 WO2014167677A1 (ja) 2013-04-10 2013-04-10 数値制御装置、情報連携システムおよび情報連携プログラム

Publications (1)

Publication Number Publication Date
WO2014167677A1 true WO2014167677A1 (ja) 2014-10-16

Family

ID=51031148

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2013/060850 WO2014167677A1 (ja) 2013-04-10 2013-04-10 数値制御装置、情報連携システムおよび情報連携プログラム

Country Status (6)

Country Link
US (1) US10108179B2 (ja)
JP (1) JP5512051B1 (ja)
KR (1) KR101703466B1 (ja)
CN (1) CN105103067B (ja)
DE (1) DE112013006836B4 (ja)
WO (1) WO2014167677A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019507931A (ja) * 2016-03-03 2019-03-22 デッケル マホ プフロンテン ゲーエムベーハーDECKEL MAHO Pfronten GmbH 数値制御工作機械と共に使用するためのデータ記憶装置

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107077452B (zh) * 2014-10-02 2021-10-01 保罗·A·扬内洛 用于生产控制和质量控制的便携式设备和方法
WO2016054385A1 (en) 2014-10-02 2016-04-07 Iannello Paul A Portable device and method for production control and quality control
JP6430926B2 (ja) * 2015-12-24 2018-11-28 ファナック株式会社 工作機械を制御する数値制御装置、方法、およびコンピュータプログラム
US11826865B2 (en) 2018-06-15 2023-11-28 Mitsubishi Electric Corporation Machine tool machining dimensions prediction device, machine tool equipment abnormality determination device, machine tool machining dimensions prediction system, and machine tool machining dimensions prediction method
EP3845983B1 (en) * 2018-08-31 2023-12-27 Kabushiki Kaisha Yaskawa Denki Industrial equipment control device and industrial equipment data collecting system
CN112955830A (zh) * 2018-10-31 2021-06-11 株式会社牧野铣床制作所 加工支援系统
CN113826077B (zh) * 2019-05-17 2023-05-02 三菱电机株式会社 数据处理装置、数据处理系统、数据处理方法及非暂时性记录介质
CN115167317B (zh) * 2022-08-04 2024-05-14 中国核动力研究设计院 一种用于核电厂安全级dcs的维护方法、系统及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002023812A (ja) * 2000-07-05 2002-01-25 Mitsubishi Materials Corp 自動制御システムおよび自動制御方法
JP2009175793A (ja) * 2008-01-21 2009-08-06 Nakamura Tome Precision Ind Co Ltd 工作機械の異常復旧支援システム及び支援方法
JP4593142B2 (ja) * 2003-09-25 2010-12-08 ハイデルベルガー ドルツクマシーネン アクチエンゲゼルシヤフト 被加工物をコンピュータ制御で製造するシステムおよび製造される被加工物を測定する方法
JP2012108642A (ja) * 2010-11-16 2012-06-07 Fuji Electric Co Ltd データ収集システム、データ収集システムの異常要因判定方法

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6026619B2 (ja) 1981-06-25 1985-06-25 工業技術院長 有機質粘結剤を使用した鋳型の洗われ防止方法
FR2614481B1 (fr) 1987-02-13 1990-08-31 Pk I Procede de commande d'un moteur asynchrone et entrainement electrique mettant ce procede en application
JP3150793B2 (ja) 1992-09-28 2001-03-26 オークマ株式会社 加工情報通信機能を有する数値制御装置
US6233538B1 (en) * 1997-09-11 2001-05-15 Amada America, Inc. Apparatus and method for multi-purpose setup planning for sheet metal bending operations
JP3338373B2 (ja) 1998-06-05 2002-10-28 株式会社アマダ 板金加工統合支援システム
JP3580347B2 (ja) 1998-07-17 2004-10-20 オムロン株式会社 データ管理方法、データ管理装置及びそれらの記録媒体
DE10034079A1 (de) 2000-07-13 2002-01-24 Heidenhain Gmbh Dr Johannes Vorrichtung und Verfahren zur Steuerung einer Werkzeugmaschine
US7395122B2 (en) * 2001-07-13 2008-07-01 Siemens Aktiengesellschaft Data capture for electronically delivered automation services
JP4727866B2 (ja) 2001-08-28 2011-07-20 株式会社アマダ 板金加工情報連携方法及びそのシステム
US7467018B1 (en) * 2002-11-18 2008-12-16 Rockwell Automation Technologies, Inc. Embedded database systems and methods in an industrial controller environment
JP2004199670A (ja) * 2002-12-04 2004-07-15 Omron Corp データ収集装置及びデータ収集システム
JP2005202831A (ja) 2004-01-19 2005-07-28 Murata Mach Ltd 工作機械保守システム
JP2005284804A (ja) 2004-03-30 2005-10-13 Matsushita Electric Ind Co Ltd 産業用ロボット
JP4472557B2 (ja) 2005-03-01 2010-06-02 三菱電機株式会社 プログラム作成装置
JP2007249313A (ja) 2006-03-14 2007-09-27 Yaskawa Electric Corp モニタリング装置
JP5208377B2 (ja) * 2006-05-25 2013-06-12 株式会社日立産機システム 電動機駆動装置及び電動機駆動方法
JP4885049B2 (ja) 2007-04-24 2012-02-29 株式会社ジェイテクト 加工支援システム、それに適用する統合サーバおよび統合サーバプログラム
JP5951200B2 (ja) 2010-09-09 2016-07-13 Dmg森精機株式会社 加工関連データ処理システム
SI2494475T1 (sl) * 2010-11-25 2020-02-28 Komet Group Gmbh Strežnik računalniške mreže
CN102650869A (zh) * 2012-05-08 2012-08-29 重庆大学 一种机床装备云制造服务接入终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002023812A (ja) * 2000-07-05 2002-01-25 Mitsubishi Materials Corp 自動制御システムおよび自動制御方法
JP4593142B2 (ja) * 2003-09-25 2010-12-08 ハイデルベルガー ドルツクマシーネン アクチエンゲゼルシヤフト 被加工物をコンピュータ制御で製造するシステムおよび製造される被加工物を測定する方法
JP2009175793A (ja) * 2008-01-21 2009-08-06 Nakamura Tome Precision Ind Co Ltd 工作機械の異常復旧支援システム及び支援方法
JP2012108642A (ja) * 2010-11-16 2012-06-07 Fuji Electric Co Ltd データ収集システム、データ収集システムの異常要因判定方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019507931A (ja) * 2016-03-03 2019-03-22 デッケル マホ プフロンテン ゲーエムベーハーDECKEL MAHO Pfronten GmbH 数値制御工作機械と共に使用するためのデータ記憶装置

Also Published As

Publication number Publication date
DE112013006836T5 (de) 2015-11-26
CN105103067A (zh) 2015-11-25
US20150370243A1 (en) 2015-12-24
US10108179B2 (en) 2018-10-23
CN105103067B (zh) 2017-04-05
JP5512051B1 (ja) 2014-06-04
KR101703466B1 (ko) 2017-02-06
DE112013006836B4 (de) 2019-04-11
KR20150134418A (ko) 2015-12-01
JPWO2014167677A1 (ja) 2017-02-16

Similar Documents

Publication Publication Date Title
JP5512051B1 (ja) 数値制御装置、情報連携システムおよび情報連携プログラム
JP4462449B2 (ja) 制御システム設定装置
JP5875737B1 (ja) 情報連携支援装置、情報連携支援プログラム
JP6150903B2 (ja) 加工情報管理装置および工具経路生成装置
JP3827951B2 (ja) Nc加工におけるncプログラムの最適化方法及び装置
CN101489718A (zh) 数控装置
JP2005327263A (ja) 制御システム設定装置
JP6761004B2 (ja) 工具管理システム、工具管理装置及び工具管理方法
JP4490634B2 (ja) 生産設備情報管理システム、生産設備情報管理方法、及びプログラム
US11340590B2 (en) Data collection system, data collection method, and information storage medium
WO2022030402A1 (ja) 制御装置およびプログラム
US20220342381A1 (en) Managing a machine tool method, for example method of mapping toolpath data and machine code, a control device, and a machine tool
JPH0643920A (ja) 工具管理方式
JP2012048471A (ja) 数値制御装置およびマクロプログラム実行方法
JP3614091B2 (ja) ジョブスケジュール運用管理装置及びジョブスケジュール運用管理方法並びにプログラム記録媒体
JP2022158229A (ja) プログラマブルロジックコントローラシステム
JP2024073818A (ja) 制御システムおよび情報処理方法
JPH10149211A (ja) Ncデータ管理システム
JP3331600B2 (ja) 生産計画管理装置
JPH11327622A (ja) Ncデータ作成方法
JP2001034317A (ja) 実績管理装置
JPH07108437A (ja) 機械加工のデータ管理方法

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201380075465.7

Country of ref document: CN

ENP Entry into the national phase

Ref document number: 2013541538

Country of ref document: JP

Kind code of ref document: A

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

Ref document number: 13881817

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14766890

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 1120130068362

Country of ref document: DE

Ref document number: 112013006836

Country of ref document: DE

ENP Entry into the national phase

Ref document number: 20157030842

Country of ref document: KR

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 13881817

Country of ref document: EP

Kind code of ref document: A1