WO2013179367A1 - 数値制御装置 - Google Patents

数値制御装置 Download PDF

Info

Publication number
WO2013179367A1
WO2013179367A1 PCT/JP2012/063618 JP2012063618W WO2013179367A1 WO 2013179367 A1 WO2013179367 A1 WO 2013179367A1 JP 2012063618 W JP2012063618 W JP 2012063618W WO 2013179367 A1 WO2013179367 A1 WO 2013179367A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
identifier
basic
information
change information
Prior art date
Application number
PCT/JP2012/063618
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 PCT/JP2012/063618 priority Critical patent/WO2013179367A1/ja
Priority to TW102111650A priority patent/TW201411305A/zh
Publication of WO2013179367A1 publication Critical patent/WO2013179367A1/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/4093Numerical 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 part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • 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/35Nc in input of data, input till input file format
    • G05B2219/35532Comment, work directive, message to operator and control signals together
    • 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/36127Menu, help menu for operator, messages
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present invention relates to a numerical control device.
  • a numerical controller uses a machining program prepared in advance and controls a machine tool according to a control command output from the machining program to machine a workpiece.
  • machining program creators and machine operators are often different, and machine operators cannot always understand the intentions of machining program creators simply by looking at machining programs. Work efficiency may be reduced, and there is a possibility of erroneous operation. Therefore, as disclosed in Patent Documents 1 to 3 below, information regarding machining contents and work instructions is inserted into the machining program as text data together with a display command, and the numerical control device issues the display command during execution of the machining program. When found, the text data is output as a message to a display device.
  • Patent Document 1 when an annotation sentence in which a text is closed with an annotation symbol “()” is found during execution of the machining program, the numerical control device displays the text on the display device and processes the text. A technique for notifying machine operators of contents and work instructions is disclosed.
  • the numerical control device when a description of a symbol that is not used in an annotation sentence or a control command is found during execution of a machining program, the numerical control device includes a text included in the annotation sentence when the description is an annotation sentence.
  • the text data corresponding to the symbol acquired from the storage area is displayed on the display device, and the contents of the machining program are displayed on the machine operator.
  • Patent Document 3 information related to machining is registered in a storage area together with a corresponding number as text data, and when the numerical control device finds the number during execution of the machining program, the number corresponding to the number is stored.
  • a technique for displaying text data on a display device is disclosed.
  • the present invention has been made in view of the above, and an object of the present invention is to obtain a numerical control device capable of reducing the effort of creating data used for a message.
  • the present invention provides a numerical control device that generates a message for notifying an operator using a machining program for controlling a machine tool as an input and outputs the message to a message notification device.
  • a message material information acquisition unit that acquires a basic message serving as a template of the message and message change information indicating changes to the basic message, and the basic message
  • a derivative message generation unit configured to generate the message by applying a change based on message change information and output the message to the message notification device;
  • the numerical control device has an effect that the labor for creating data used for messages can be reduced.
  • FIG. 1 is a block diagram illustrating a configuration example of the numerical control device according to the first embodiment.
  • FIG. 2 is a flowchart showing an operation of notifying a message of the numerical control device according to the first embodiment.
  • FIG. 3 is a diagram illustrating a description example of the machining program according to the first embodiment.
  • FIG. 4 is a diagram showing a description example of a conventional machining program described by a basic message without using message change information.
  • FIG. 5 is a diagram illustrating a description example of the machining program according to the second embodiment.
  • FIG. 6 is a diagram showing a table indicating correspondence between identifiers and text data.
  • FIG. 7 is a diagram illustrating a description example of a processing program when image data is included in the basic message and message change information according to the third embodiment.
  • FIG. 8 is a diagram illustrating a table indicating correspondence between identifiers, image data, and text data.
  • FIG. 9 is a diagram illustrating an image corresponding to the image data 11 having the identifier ID11.
  • FIG. 10 is a diagram illustrating an image corresponding to the image data 12 of the identifier ID12.
  • FIG. 11 is a diagram illustrating a derived message according to the third embodiment.
  • FIG. 12 is a diagram illustrating a description example of a machining program using an internal information identifier for message change information according to the fourth embodiment.
  • FIG. 13 is a diagram illustrating a description example of a machining program according to the fifth embodiment.
  • FIG. 14 is a diagram showing a message switching table indicating correspondence between internal information identifiers and text data.
  • FIG. 15 is a diagram showing a description example of a conventional machining program described by a basic message without using message change information.
  • FIG. 16 is a flowchart showing processing for acquiring a basic message in the numerical control apparatus according to the sixth embodiment.
  • FIG. 17 is a diagram illustrating a description example of a machining program according to the sixth embodiment.
  • FIG. 18 is a diagram showing a table indicating correspondence between identifiers and text data.
  • FIG. 19 is a flowchart for performing message change information acquisition processing when a numerical calculation instruction identifier is added to message change information.
  • FIG. 19 is a flowchart for performing message change information acquisition processing when a numerical calculation instruction identifier is added to message change information.
  • FIG. 20 is a flowchart for processing a derived message generated from a basic message to which a numerical operation instruction identifier is added.
  • FIG. 21 is a diagram illustrating a description example of the machining program when a numerical operation instruction identifier is added to the message change information according to the seventh embodiment.
  • FIG. 22 is a diagram showing image data corresponding to the identifier ID26.
  • FIG. 23 is a diagram showing a derived message after the machining program is executed.
  • FIG. 24 is a diagram illustrating a description example of a machining program when a numerical operation instruction identifier is added to the basic message according to the seventh embodiment.
  • FIG. 25 is a block diagram illustrating a configuration example of the numerical control device according to the eighth embodiment.
  • FIG. 26 is a diagram illustrating a description example of a machining program according to the eighth embodiment.
  • FIG. 27 is a table showing correspondence between identifiers and text data.
  • FIG. 1 is a block diagram illustrating a configuration example of a numerical control device according to the present embodiment.
  • the numerical control device 1 includes a message notification command acquisition unit 2, a message material information acquisition unit 3, a derived message generation unit 4, and a storage unit 5, and is connected to the message notification device 6.
  • the message notification command acquisition unit 2 outputs a message notification command 21 acquired based on the input machining program.
  • the message material information acquisition unit 3 outputs the message material information 22 acquired based on the input message notification command 21.
  • the message material information 22 includes a basic message and message change information.
  • the derived message generator 4 generates a derived message 23 by adding a change based on the message change information included in the message material information 22 to the basic message included in the message material information 22 and outputs the derived message 23 to the message notification device 6.
  • the storage unit 5 is a storage area for storing acquired message information and message information in advance. Although the configuration in which the numerical control device 1 includes the storage unit 5 will be described, this is an example, and an external storage device can be substituted, and the same applies to the following embodiments.
  • the message notification device 6 is a device having a function capable of outputting a message. For example, there are a display device and a voice output device, but the present invention is not limited to these.
  • FIG. 2 is a flowchart showing an operation of notifying a message of the numerical controller according to the present embodiment.
  • FIG. 3 is a diagram showing a description example of the machining program according to the present embodiment.
  • one line starting with “# 3010” in the machining program of FIG. 3 and ending with a semicolon is a message notification command.
  • the part including the angle brackets ⁇ > written in a comma delimiter following the basic message is message change information. Note that a plurality of message change information can be described as in EX 104a and EX 105a.
  • step S12 the message material information acquisition unit 3 determines whether or not the message change information (the portion including the angle brackets ⁇ > described in a comma delimiter following the basic message) can be acquired based on the message notification command 21.
  • the message material information acquisition unit 3 proceeds to step S13 when message change information can be acquired (step S12: Yes), and proceeds to step S17 when message change information cannot be acquired (step S12: No).
  • step S13 the message material information acquisition unit 3 acquires message change information (a portion including angle brackets ⁇ > written in a comma-separated format following the basic message) based on the message notification command 21.
  • step S ⁇ b> 14 the message material information acquisition unit 3 determines whether all message change information has been acquired based on the message notification command 21. The message material information acquisition unit 3 returns to step S13 when there is unacquired message change information (step S14: No), and proceeds to step S15 when there is no unacquired message change information (step S14: Yes).
  • step S ⁇ b> 15 the message material information acquisition unit 3 outputs message material information 22 including the acquired basic message and message change information to the derived message generation unit 4.
  • step S15 the derived message generation unit 4 acquires the basic message and the message change information from the message material information 22, determines the change contents to be added to the basic message in the message change information, and based on the change contents by the message change information. Change the basic message to generate a derived message.
  • step S16 the derived message generator 4 determines whether there is unprocessed message change information. Derived message generation unit 4 returns to step S15 when there is unprocessed message change information (step S16: No), and proceeds to step S17 when there is no unprocessed message change information (step S16: Yes).
  • Changes to be added to the basic message include substitution, addition, deletion, and insertion, and the derived message generation unit 4 distinguishes them according to the description of the message change information.
  • the EX101a line in FIG. 3 replaces “fast feed” in the basic message “fast feed speed zero. Please increase the fast feed speed” with “cutting feed”, and the derived message “cutting feed speed zero. This is an example of generating "Please raise.”
  • the derived message generation unit 4 determines that the description in which two angle brackets ⁇ > are separated by a slash symbol / is a replacement in step S15.
  • the portion enclosed in angle brackets ⁇ > before the slash symbol is the content before replacement
  • the portion enclosed in angle brackets ⁇ > after the slash symbol is the content after substitution.
  • the derivation message generator 4 executes a process of adding a change in the basic message to replace the content before replacement with the content after replacement.
  • step S15 the derived message generation unit 4 executes a process of adding a change in the basic message to replace “% 1” with “fast forward speed”.
  • step S 3 is an example in which “impossible” is added to the basic message “skip coordinate reading” to generate a derived message “skip coordinate read impossible”.
  • the derived message generation unit 4 determines that the description of the angle bracket ⁇ > following the addition symbol + is added in step S15.
  • step S ⁇ b> 15 the derived message generation unit 4 executes a change process for adding the additional content after the basic message with the portion enclosed in angle brackets ⁇ > following the addition symbol + as additional content.
  • the EX104a line in FIG. 3 adds message change information for deleting “coordinate reading” to the EX103a line, adds “impossible” to the basic message “skip coordinate reading”, and deletes “coordinate reading”. This is an example of generating “cannot be skipped”.
  • Derived message generation unit 4 determines that the description of angle brackets ⁇ > following the subtraction symbol-is deleted in step S15. In step S15, the derived message generation unit 4 executes a changing process of deleting a portion that matches the deletion content in the basic message, with the portion enclosed in angle brackets ⁇ > following the subtraction symbol-as the deletion content.
  • the EX105a line in FIG. 3 adds message change information for inserting “multistage” into the EX104a line, adds “impossible” to the basic message “skip coordinate reading”, deletes “coordinate reading”, and sets “multistage” at the 0th character. ”Is inserted to generate a derived message“ cannot skip multiple stages ”.
  • the derived message generation unit 4 determines that the description of the at sign symbol @ is inserted in step S15 following the addition symbol + and the angle bracket ⁇ >.
  • the derived message generator 4 inserts the insertion content in the basic message with the portion enclosed in angle brackets ⁇ > following the addition symbol + as the insertion content and the portion following the at sign symbol @ as the insertion location. Execute the change process to be inserted.
  • step S17 the derivation message generation unit 4 outputs the derivation message generated in steps S15 and S16 to the message notification device 6.
  • step S12 the message material information acquisition unit 3 generates the derived message message 22 including the acquired basic message when proceeding to step S17. Output to unit 4.
  • step S17 the derived message generator 4 outputs the basic message acquired from the message material information 22 to the message notification device 6 as a derived message.
  • the numerical control device 1 can generate a derived message by adding a change based on the message change information acquired based on the message notification command to the basic message acquired based on the message notification command.
  • FIG. 4 is a diagram showing a description example of a conventional machining program in which a derived message generated by the message notification command shown in FIG. 3 is described as a basic message without using message change information.
  • the description of each line is independent, and a description corresponding to each line is required.
  • a common part can be reused as a basic message for message notification commands used in the past, and only a part to be changed can be described as message change information. Therefore, compared with the description example of FIG. 4, it is possible to reduce the trouble for the machining program creator to create a message notification command.
  • message notation can be unified with less effort.
  • the entire message is short and does not have many characters.
  • EX102a in FIG. 3 EX102b in FIG.
  • the message notification command can be shortened, the size of the machining program can be reduced.
  • the numerical control device can generate a new derived message using the basic message. As a result, it is possible to reduce the trouble of creating a message notification command for the machining program. In addition, message notation can be unified with less effort.
  • the size of the machining program can be reduced compared to the conventional case.
  • Embodiment 2 FIG. In the first embodiment, the basic message and the message change information are described as text data in the message notification command. In the present embodiment, a case where text data is stored in the own apparatus will be described. A different part from Embodiment 1 is demonstrated.
  • FIG. 5 is a diagram showing a description example of the machining program according to the present embodiment.
  • FIG. 6 is a diagram showing a table indicating correspondence between identifiers stored in the storage unit and text data. A combination of text data corresponding to an identifier (ID) in a message notification command (basic message, message change information) in the machining program shown in FIG. 5 is stored in the table of FIG.
  • ID an identifier
  • message notification command basic message, message change information
  • the storage unit 5 stores text data “% 1 zero. Please increase% 1”, an identifier ID1 indicating the text data, text data “skip coordinates”, and the text data.
  • the identifier ID 2 indicating the text data “unreadable” and the identifier ID 3 indicating the text data, and the text data “coordinate reading” and the identifier ID 4 indicating the text data are stored in association with each other.
  • the message material information acquisition unit 3 reads the identifier ID1 included in the basic message from the message notification command 21 in step S11, and reads the text data “% 1” corresponding to the identifier ID1 from the storage unit 5.
  • "Zero. Please increase% 1" is acquired as a basic message. The subsequent operation is the same as that in the case of EX102a in FIG.
  • the message material information acquisition unit 3 acquires “cutting feed rate” as message change information (steps S13 and S14), and the derived message generation unit 4 is included in the basic message “% 1 zero. Please increase% 1”.
  • the replacement symbol “% 1” is replaced with “cutting feed rate” to generate a derived message “no cutting feed rate. Please increase the cutting feed rate” (steps S15 and S16).
  • the message material information acquisition unit 3 reads the identifier ID1 included in the basic message from the message notification command 21 and corresponds to the identifier ID1 from the storage unit 5 in the same manner as the EX101c row. Acquire text data “% 1 zero. Please raise% 1” and use it as a basic message. The subsequent operation is the same as that in the case of EX102a in FIG.
  • the message material information acquisition unit 3 acquires “fast forward speed” as message change information (steps S13 and S14), and the derived message generation unit 4 is included in the basic message “% 1 zero. Please increase% 1”. Substitution symbol “% 1” is replaced with “rapid feed speed” to generate a derived message “fast feed speed zero. Please increase fast feed speed” (steps S15 and S16).
  • the message material information acquisition unit 3 reads the identifier ID2 included in the basic message from the message notification command 21 in step S11, and reads the text data “skip coordinates corresponding to the identifier ID2 from the storage unit 5. Is obtained as a basic message. Further, since the message change information can be acquired (step S12: Yes), the message material information acquisition unit 3 reads the first identifier ID3 included in the basic message from the message notification command 21 in step S13, and from the storage unit 5. The text data “unreadable” corresponding to the identifier ID3 is acquired and used as message change information. In step S14, the process returns to step S13.
  • step S13 the second identifier ID4 included in the basic message is read from the message notification command 21, and the text data “coordinate reading” corresponding to the identifier ID4 is obtained from the storage unit 5.
  • Message change information since the determination returns to step S13 by the determination in step S14, ⁇ multi-stage> @ 0 included in the basic message is acquired from the message notification command 21 in step S13, and is used as message change information. Then, the derived message generator 4 changes the basic message in the order of the acquired message change information.
  • the derived message generation unit 4 adds “unreadable” to the basic message “skip coordinates” to make “skip coordinates unreadable”, deletes “coordinate reading” to make “skip impossible”, and finally “Multi-stage” is inserted at the head to make “Multi-stage skip impossible” (steps S15 and S16).
  • the numerical control device stores text data in association with the identifier in the message notification command of the machining program.
  • the size of the machining program can be reduced as compared with the first embodiment.
  • conventionally there is a problem that the size of the machining program is increased by including the text data. In this embodiment, this problem can be solved.
  • the data stored in the storage unit is associated with the identifier, stored as text data, and can be reused for each basic message and message change information. It can be made smaller than before.
  • the numerical control device 1 includes the storage unit 5 that stores the text data and the identifier indicating the text data in advance has been described.
  • the present invention is not limited to this.
  • the contents stored in the storage unit 5 can be stored in an external storage device outside the numerical control device 1.
  • Embodiment 3 FIG.
  • the text data and the identifier indicating the text data are stored in advance in the storage unit 5 of the numerical control apparatus 1, but not only the text data but also image data, sound data, moving image data, and the like are stored. It is also possible to do. A different part from Embodiment 2 is demonstrated.
  • addition, deletion, and insertion can be performed by including an area to be changed in the message change information, and replacement can be performed by using a known image recognition technique.
  • the data type of the message change information and the data type of the basic message are different, the data type and basic information of the message change information can be obtained by using a known data conversion technology that converts one type of data into another type of data. It is also possible to change the data of the basic message by converting it to the message data type.
  • FIG. 7 is a diagram showing a description example of the processing program when image data is included in the basic message and message change information according to the present embodiment.
  • the image data acquired from the storage unit 5 is included in the basic message, and the text data and image data acquired from the storage unit 5 are included in the message change information.
  • FIG. 8 is a table showing the correspondence between identifiers stored in the storage unit in the device, image data, and text data.
  • Image data and text data corresponding to the identifier (ID) in the message notification command (basic message, message change information) in the machining program shown in FIG. 7 are stored in the table of FIG.
  • FIG. 9 is a diagram illustrating an image corresponding to the image data 11 having the identifier ID11.
  • FIG. 10 is a diagram showing an image corresponding to the image data 12 with the identifier ID12.
  • step S11 the message material information acquisition unit 3 reads the identifier ID11 included in the basic message from the message notification command 21, and the image corresponding to the identifier ID11 from the storage unit 5 of the numerical control device 1 with respect to EX101d in FIG. Data 11 is acquired and used as a basic message.
  • step S13 and S14 the message material information acquisition unit 3 sets the image data 12 corresponding to the identifier ID12 as the message change information, the text data corresponding to the identifier ID13 “there is a stroke end axis”, and the text corresponding to the identifier ID14.
  • FIG. 11 is a diagram showing a derived message according to the present embodiment.
  • the derived message generation unit 4 generates the image data shown in FIG. 11 as a derived message.
  • the numerical control device can generate a derivative message using not only text data but also image data, sound data, and moving image data. As a result, it is possible to notify the operator of an effective message that is more expressive than conventional ones.
  • the numerical control device 1 includes the storage unit 5 that stores data (text data, image data, sound data, moving image data) and an identifier indicating the data in advance is described.
  • the present invention is not limited to this.
  • the contents stored in the storage unit 5 can be stored in an external storage device outside the numerical control device 1.
  • Embodiment 4 FIG.
  • an internal information identifier representing internal information in the numerical control device 1 is designated as message change information, and numerical control corresponding to the internal information identifier stored in the storage unit 5 of the numerical control device 1 A case where internal information in the device 1 is acquired will be described. Different parts from the first to third embodiments will be described.
  • variable number common variable, local variable, system variable
  • parameter number of a numerical control device for example, a parameter number of a numerical control device, or a PLC (Programmable Logic Controller) device number
  • PLC Programmable Logic Controller
  • FIG. 12 is a diagram showing a description example of the machining program using the internal information identifier for the message change information according to the present embodiment.
  • the internal information identifier in the numerical control device 1 corresponding to the internal information identifier stored in the storage unit 5 of the numerical control device 1 is specified in the message change information by specifying an internal information identifier representing the internal information in the numerical control device 1.
  • the internal information identifier # 3901 described as message change information in FIG. 12 reads the number of workpieces that have been processed (the number of workpieces processed) stored in the storage unit 5 of the numerical controller 1. Is a system variable for
  • the message material information acquisition unit 3 includes the message change information from the message notification command in step S 13.
  • the internal information identifier # 3901 is read, and the value of the workpiece machining number corresponding to the internal information identifier # 3901 is acquired from the storage unit 5 and included in the message change information.
  • Other processes are the same as those in the first embodiment.
  • the numerical control device 1 can notify the operator of the number of workpiece machining as a derived message.
  • the system variable of internal information identifier # 3901 shown here is an example, and it is also possible to acquire the information state of the machine tool to be controlled in addition to the numerical controller 1 by using other system variables. is there.
  • the numerical control device can specify the internal information identifier representing the internal information in the numerical control device 1 as the message change information.
  • the state of the numerical control device and the machine tool that change from moment to moment can be included in the message, so that an operator can be notified of an effective message that is more expressive than conventional ones.
  • the text data of the annotation text in the machining program and the text data registered in advance in the storage area are displayed as messages on the display device as they are, so that a numerical control device that changes from moment to moment during execution of the machining program, There is a problem that the state of the machine tool cannot be included in the message to inform the operator.
  • the state of the numerical control device or machine tool that changes every moment during execution of the machining program can be included in the derived message, and such a problem can be solved.
  • Embodiment 5 the text data and the identifier indicating the data are stored in the storage unit 5 of the numerical controller 1 in a one-to-one relationship.
  • the basic message and message change information to be used are switched according to the value of the internal information indicated by the internal information identifier. Different parts from the first to fourth embodiments will be described.
  • FIG. 13 is a diagram showing a description example of the machining program according to the present embodiment.
  • FIG. 14 is a diagram showing a message switching table showing the correspondence between the internal information identifier and text data stored in the storage unit.
  • the internal data identifier associated with the identifier (ID) in the message notification command (basic message, message change information) in the machining program shown in FIG. 13 and the text data corresponding to the identifier (ID) are the message switching shown in FIG. Stored in the table.
  • identifier ID15 and identifier ID16 are associated with the internal information identifier # 1043 of the numerical controller 1.
  • the internal information identifier # 1043 is a parameter for switching the language displayed on the message notification device 6 by the numerical control device 1.
  • the message material information acquisition unit 3 is included in the basic message from the message notification command in step S11.
  • the value of the internal information identifier # 1043 is checked, and the text data corresponding to the value of the internal information identifier # 1043 is acquired.
  • the message material information acquisition unit 3 acquires the data D0 “Program error% 1” as a basic message, and if the internal information identifier # 1043 is 1, the data D1 “program error” % 1 ”is acquired as the basic message, and if the internal information identifier # 1043 is 2, the data D2“ process formula error% 1 ”is acquired as the basic message.
  • the message material information acquisition unit 3 When the message material information acquisition unit 3 reads the identifier ID16 included in the message change information from the message notification command and acquires the text data corresponding to the identifier ID16 from the storage unit 5 in step S13, the internal information identifier # 1043 And the text data corresponding to the value of the internal information identifier # 1043 is acquired. For example, if the internal information identifier # 1043 is 0, the message material information acquisition unit 3 acquires the data D0 “Divided by zero” as message change information, and if the internal information identifier # 1043 is 1, the data D1 “zero division” ”As message change information, and if the internal information identifier # 1043 is 2, data D2“ 0 division for denominator ”is acquired as message change information.
  • the derived message generation unit 4 sets the internal information identifier # 1043 to 0 based on the message material information (basic message and message change information) acquired by the message material information acquisition unit 3 in step S15. In the case of, a derived message of “Program error Divided by zero” is generated. When the internal information identifier # 1043 is 1, a derived message of “Program error zero percent” is generated, and when the internal information identifier # 1043 is 2. Generate a derivative message of “Short-form error”.
  • FIG. 15 is a diagram showing a description example of a conventional machining program in which a derived message generated by the message notification command shown in FIG. 13 is described as a basic message without using message change information.
  • a derivative message can be generated according to the value of the internal information identifier # 1043. Therefore, compared to the case of FIG. It can be deleted.
  • the basic message and message change information to be acquired are switched according to the value of the internal information of the numerical control device.
  • the basic message and message change information to be acquired can be changed according to the numerical controller, PLC state, parameter value, etc. that change during execution of the machining program, the numerical controller and PLC can be changed in the machining program. It is possible to reduce the trouble of creating a conditional branch for switching the message notification command according to the state, parameter value, etc., and reduce the machining program size.
  • Embodiment 6 FIG. In the present embodiment, the basic message acquired by the previous message notification command is stored. A different part from Embodiments 1-5 is demonstrated.
  • the configuration of the numerical controller 1 is the same as that of the first embodiment (see FIG. 1). However, in the numerical controller 1, the message material information acquisition unit 3 can store the basic message acquired by the previous message notification command in the storage unit 5.
  • FIG. 16 is a flowchart showing processing for obtaining a basic message in the numerical control apparatus according to the present embodiment.
  • the message material information acquisition part 3 shows the process which acquires the basic message acquired by the message notification instruction
  • step S11-a in FIG. 16 the message material information acquisition unit 3 determines whether a basic message can be acquired based on the message notification command.
  • the message material information acquisition unit 3 proceeds to step S11-b if it can be acquired (step S11-a: Yes), and proceeds to step S11-d if it cannot be acquired (step S11-a: No).
  • step S11-b the message material information acquisition unit 3 performs the same process as in step S11 of FIG.
  • step S11-c the message material information acquisition unit 3 stores the basic message acquired in step S11-b in the storage unit 5.
  • step S11-d when it is determined in step S11-a that the basic message cannot be acquired based on the message notification command (step S11-a: No), the message material information acquisition unit 3 stores the basic message in the storage unit 5. Get a basic message.
  • FIG. 17 is a diagram showing a description example of the machining program according to the present embodiment.
  • FIG. 18 is a diagram showing a table indicating correspondence between identifiers stored in the storage unit and text data. Text data corresponding to the identifier (ID) in the message notification command (basic message, message change information) in the machining program shown in FIG. 17 is stored in the table of FIG.
  • step S11-b the message material information acquisition unit 3 acquires the text data “% 1 is% 2,% 3 should be% 4.” Corresponding to the identifier ID21.
  • step S11-c the message material information acquisition unit 3 stores the text data “% 1 is% 2;% 3 should be% 4” in the storage unit 5.
  • the message material information acquisition unit 3 performs the text data “cutting feed rate” corresponding to the identifier ID22, the text data “zero” corresponding to the identifier ID23, and the text data “cutting feed rate” corresponding to the identifier ID22. , And the text data “raise” corresponding to the identifier ID24.
  • the derivation message generator 4 replaces the basic message “% 1 is% 2.% 3 should be% 4.” The derivation message “Cutting feed rate is zero”. Increase the cutting feed rate.
  • step S11-a the message material information acquisition unit 3 acquires the basic message in step S11-a because the message notification command 21 does not include the identifier of the basic message. It is determined that it cannot be performed, and the process proceeds to step S11-d.
  • step S11-d the message material information acquisition unit 3 acquires the basic message “% 1 is% 2. Please give% 3 to% 4.” Stored in the storage unit 5.
  • the message material information acquisition unit 3 executes the text data “fast-forward speed” corresponding to the identifier ID25, the text data “zero” corresponding to the identifier ID23, the text data “fast-forward speed” corresponding to the identifier ID25, and The text data “raise” corresponding to the identifier ID 24 is acquired.
  • the derived message generation unit 4 replaces the basic message “% 1 is% 2.% 3 should be% 4.”, And the derived message “Fast forward speed is zero. Please increase the speed. "
  • the machining program may include multiple basic messages. Therefore, in the numerical control device 1, for example, the message material information acquisition unit 3 stores the latest basic message in the storage unit 5. When the message material information acquisition unit 3 acquires a new basic message, the message material information acquisition unit 3 overwrites and updates the basic message stored so far, and stores the newly acquired basic message in the storage unit 5. Note that the method of overwriting as a method of storing the basic message is an example, and is not limited to this method.
  • the numerical control device stores the basic message of the previously executed message notification command.
  • the trouble of creating a message notification command can be reduced, and the size of the machining program can be reduced as compared with the conventional case.
  • Embodiment 7 FIG. In the present embodiment, a case will be described in which a numerical calculation result is included in a derived message to be generated. A different part from Embodiments 1-6 is demonstrated.
  • the configuration of the numerical controller 1 is the same as that of the first embodiment (see FIG. 1). Also, the flowchart showing the operation for notifying a message is the same as that in the first embodiment (see FIG. 2), but the details of the processing according to the present embodiment will be described with respect to the processing shown in steps S13 and S17.
  • FIG. 19 is a flowchart for performing message change information acquisition processing when a numerical operation instruction identifier is added to message change information.
  • the message material information acquisition unit 3 performs the same processing as in step S13 in FIG.
  • the message material information acquisition unit 3 determines whether a numerical operation instruction identifier is added to the acquired message change information.
  • the message material information acquisition unit 3 proceeds to step S13-c when it is added (step S13-b: Yes), and proceeds to the next step S14 when it is not added (step S13-b: No).
  • step S13-c the message material information acquisition unit 3 replaces the numerical operation expression in the message change information with the numerical operation result obtained by calculating the numerical operation expression in the message change information.
  • FIG. 20 is a flowchart for processing a derived message generated from a basic message to which a numerical operation instruction identifier is added.
  • the derived message generator 5 determines whether a numerical operation command identifier is added to the derived message. If added (step S17-a: Yes), the process proceeds to step S17-b. If not added (step S17-a: No), the process proceeds to step S17-c.
  • step 17-b the derived message generator 5 replaces the numerical operation expression in the derived message with the numerical operation result obtained by calculating the numerical operation expression in the derived message.
  • step S17-c the derived message generator 5 performs the same process as in step S17 of FIG.
  • FIG. 21 is a diagram illustrating a description example of the machining program when a numerical operation instruction identifier is added to the message change information according to the present embodiment.
  • FIG. 22 is a diagram showing image data corresponding to the identifier ID 26 of the message notification command in the processing program shown in FIG.
  • FIG. 23 is a diagram showing a derived message after the machining program shown in FIG. 21 is executed.
  • the EX201b line shown in FIG. 21 acquires the image image of FIG.
  • a reference Z 24 is a machining program showing a process of calculating a difference from the common variable # 1 storing the axis coordinates, and inserting the calculation result into the image image of FIG. 22 to generate the derivative message of FIG.
  • & C after the angle bracket ⁇ > in the message change information of EX 201b is the numerical operation instruction identifier.
  • the numerical operation instruction identifier can be written together with a description of replacement, addition, deletion, and insertion.
  • step S13-a the message material information acquisition unit 3 acquires message change information ⁇ # 5063- # 1> @ X60Y20 & C.
  • step S13-b the message material information acquisition unit 3 determines the numerical operation instruction identifier & C in the message change information and assumes that the numerical operation instruction identifier is added (step S13-b: Yes). Go to c.
  • step S13-c the message material information acquisition unit 3 discriminates the numerical formula # 5063- # 1 in the message change information, and stores the value of the system variable # 5063 and the value of the common variable # 1 from the storage unit 5.
  • the numerical calculation formula # 5063- # 1 is replaced with the calculation result 200.000 obtained by calculating the difference, and the message change information is set to ⁇ 200.000> @ X60Y20.
  • the message material information acquisition unit 3 since the numerical calculation instruction identifier & C has been processed, & C is deleted from the message change information.
  • the derivative message shown in FIG. 23 is generated.
  • FIG. 24 is a diagram showing a description example of the machining program when a numerical operation instruction identifier is added to the basic message according to the present embodiment. & C after the parentheses () in the basic message on the EX201c line is the numerical operation instruction identifier.
  • step S12 When a message notification command of EX201c is commanded, message change information cannot be acquired based on the message notification command (step S12: No in FIG. 2), so the basic message (measured tool length is # 5063- # 1) & C Is a derived message.
  • step S17-a in FIG. 20 the derived message generation unit 4 determines the numerical operation instruction identifier & C in the derived message and assumes that the numerical operation instruction identifier is added (step S17-a: Yes). Go to -b.
  • step S17-b the derived message generation unit 4 determines the numerical operation expression # 5063- # 1 in the derived message and acquires the value of the system variable # 5063 and the value of the common variable # 1 from the storage unit 5.
  • the numerical calculation formula # 5063- # 1 is replaced with the calculation result 200.000 obtained by calculating the difference, and a derived message “the measured tool length is 200.000” is generated.
  • the derived message generation unit 4 since the numerical operation instruction identifier & C has been processed, & C is deleted from the basic message.
  • the derivation message generation unit 4 notifies the generated derivation message “Measured tool length is 200.000”.
  • the numerical control device notifies the calculation result for the numerical operation instruction identifier added to the message notification command in the machining program in the derived message.
  • the calculation result of the numerical formula including the state of the changing numerical control device or PLC can be included in the derived message and notified.
  • Embodiment 8 FIG. In this embodiment, a case where a plurality of message notification devices are connected will be described. Different parts from Embodiments 1 to 7 will be described.
  • FIG. 25 is a block diagram illustrating a configuration example of the numerical control device according to the present embodiment.
  • the numerical control device 1 is different from the first embodiment (see FIG. 1) in that the derived message generation unit 4 is connected to a plurality of message notification devices 6A, 6B, and 6C. It should be noted that any of the methods in the first to seventh embodiments described so far may be used for the process of notifying the derived message in the numerical control apparatus 1.
  • FIG. 26 is a diagram showing a description example of the machining program according to the present embodiment.
  • & P after the parentheses () of the basic message in the EX301a line is a message notification format information identifier, and message notification format information is described after the at sign symbol @ following & P.
  • the message notification format information is V1, which indicates the volume when sound data is reproduced.
  • & S after the parentheses () of the basic message in the EX302a line is a message notification device selection information identifier, and the message notification device identifier is described after the at sign symbol @ after & S.
  • FIG. 27 is a table showing correspondence between identifiers stored in the storage unit 5 and text data. Data corresponding to the identifier ID31 in the message notification command (basic message) in the machining program shown in FIG. 26 is stored in the table of FIG.
  • step S11 the message material information acquisition unit 3 acquires the sound data 1 corresponding to the identifier ID31 of FIG. 27 as a basic message.
  • step S12 the message material information acquisition unit 3 cannot acquire message change information based on the message notification command in the EX301a line (step S12: No), so the basic message becomes a derived message (step S17).
  • the derived message generation unit 4 outputs the derived message to the message notification device side, when the message notification format information identifier & P is added to the derived message, the derived message generation unit 4 identifies the message notification format information after the at sign symbol @, Change the format for notifying derived messages.
  • the derived message generator 4 reproduces the sound at a specified sound volume when output to the message notification device side. Further, since there is no message notification device selection information identifier in the EX301a line, the derived message generation unit 4 determines that the type of the derived message is sound data, and a message designated in advance as a message notification device for sound data. Derived data is output to the notification device.
  • step S11 the message material information acquisition unit 3 acquires the sound data 1 corresponding to the identifier ID31 of FIG. 27 as a basic message.
  • step S12 the message material information acquisition unit 3 cannot acquire message change information based on the message notification command in the EX301a line (step S12: No), so the basic message becomes a derived message (step S17).
  • the derived message is output to the message notification device side, the derived message generation unit 4 identifies the message notification device identifier after the at sign symbol @ when the message notification device selection information identifier & S is added to the derived message.
  • the derivative message is output to the message notification device corresponding to the message notification device identifier.
  • the message notification device identifier is B, so the derived message generation unit 4 outputs the derived message to the message notification device 6B.
  • the derived message generation unit 4 includes a message notification device designated in advance as a message notification device for sound data, and a message notification device. It is also possible to output the derived message to both 6B.
  • the derived message generation unit 4 performs output to a previously specified message notification device.
  • the numerical control device 1 can change the format for notifying the derivative message. Thereby, according to the content of the produced
  • the numerical control device 1 when there are a plurality of message notification devices to be connected, it is possible to select an optimum message notification device based on the description of the message notification command in the machining program.

Landscapes

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

Abstract

工作機械を制御する加工プログラムを入力としてオペレータに通知するメッセージを生成し、前記メッセージをメッセージ通知装置(6)へ出力する数値制御装置(1)において、前記加工プログラム中のメッセージ通知指令(21)に基づいて、前記メッセージの雛形となる基本メッセージおよび前記基本メッセージに対する変更内容を示すメッセージ変更情報を取得するメッセージ材料情報取得部(3)と、前記基本メッセージに対して前記メッセージ変更情報に基づいた変更を加えて前記メッセージを生成し、当該メッセージを前記メッセージ通知装置(6)へ出力する派生メッセージ生成部(4)と、を備える。

Description

数値制御装置
 本発明は、数値制御装置に関する。
 一般に、数値制御装置は、あらかじめ作成しておいた加工プログラムを用い、前記加工プログラムから出力される制御指令に従って工作機械を制御し加工物を加工する。通常、数値制御装置では、加工プログラム作成者と機械のオペレータが異なる場合が多く、機械のオペレータは加工プログラムを見ただけでは必ずしも加工プログラム作成者の意図を理解しきれないため、加工内容の把握ができずに作業効率が低下する可能性や、作業の誤操作を起こす可能性がある。そこで、下記特許文献1~3に開示されているように、加工プログラムに加工内容や作業指示に関する情報をテキストデータとして表示指令とともに挿入し、数値制御装置が、加工プログラム実行中に前記表示指令を見つけると前記テキストデータをメッセージとして表示装置に出力することが行われている。
 具体的に、下記特許文献1には、加工プログラム実行中にテキストを注釈記号”( )”で閉じた注釈文を見つけた場合、数値制御装置が、前記テキストを表示装置上に表示し、加工内容や作業指示を機械のオペレータに知らせる技術が開示されている。
 また、下記特許文献2には、加工プログラム実行中に注釈文あるいは制御指令で使用しない記号の記述を見つけた場合、数値制御装置が、前記記述が注釈文の場合は前記注釈文に含まれるテキストデータを表示装置上に表示し、前記記述が制御指令で使用しない記号の場合は記憶領域から取得した前記記号に対応するテキストデータを表示装置上に表示して、加工プログラムの内容を機械のオペレータに知らせる技術が開示されている。
 また、下記特許文献3には、あらかじめ加工に関する情報をテキストデータとして対応する番号とともに記憶領域に登録し、数値制御装置が、加工プログラム実行中に前記番号を見つけた場合、前記番号に対応する前記テキストデータを表示装置上に表示する技術が開示されている。
特開平5-224730号公報 特開平8-30314号公報 特開平2-42510号公報
 しかしながら、上記従来の技術によれば、工作機械のオペレータに知らせたい加工に関する情報は多種多様である。そのため、各加工に関する情報について個別に対応すると、加工プログラム中の注釈文のテキストデータや記憶領域に登録するテキストデータの作成に手間がかかる、という問題があった。
 本発明は、上記に鑑みてなされたものであって、メッセージに使用するデータ作成の手間を削減可能な数値制御装置を得ることを目的とする。
 上述した課題を解決し、目的を達成するために、本発明は、工作機械を制御する加工プログラムを入力としてオペレータに通知するメッセージを生成し、前記メッセージをメッセージ通知装置へ出力する数値制御装置において、前記加工プログラム中のメッセージ通知指令に基づいて、前記メッセージの雛形となる基本メッセージおよび前記基本メッセージに対する変更内容を示すメッセージ変更情報を取得するメッセージ材料情報取得部と、前記基本メッセージに対して前記メッセージ変更情報に基づいた変更を加えて前記メッセージを生成し、当該メッセージを前記メッセージ通知装置へ出力する派生メッセージ生成部と、を備えることを特徴とする。
 本発明にかかる数値制御装置は、メッセージに使用するデータ作成の手間を削減できる、という効果を奏する。
図1は、実施の形態1に係る数値制御装置の構成例を示すブロック図である。 図2は、実施の形態1に係る数値制御装置のメッセージを通知する動作を示すフローチャートである。 図3は、実施の形態1に係る加工プログラムの記述例を示す図である。 図4は、メッセージ変更情報を使用せずに基本メッセージで記述した従来の加工プログラムの記述例を示す図である。 図5は、実施の形態2に係る加工プログラムの記述例を示す図である。 図6は、識別子とテキストデータとの対応を示すテーブルを示す図である。 図7は、実施の形態3に係る基本メッセージおよびメッセージ変更情報に画像データを含む場合の加工プログラムの記述例を示す図である。 図8は、識別子と画像データおよびテキストデータとの対応を示すテーブルを示す図である。 図9は、識別子ID11の画像データ11に対応する画像を示す図である。 図10は、識別子ID12の画像データ12に対応する画像を示す図である。 図11は、実施の形態3に係る派生メッセージを示す図である。 図12は、実施の形態4に係るメッセージ変更情報に内部情報識別子を用いた加工プログラムの記述例を示す図である。 図13は、実施の形態5に係る加工プログラムの記述例を示す図である。 図14は、内部情報識別子とテキストデータとの対応を示すメッセージ切替テーブルを示す図である。 図15は、メッセージ変更情報を使用せずに基本メッセージで記述した従来の加工プログラムの記述例を示す図である。 図16は、実施の形態6に係る数値制御装置において基本メッセージを取得する処理を示すフローチャートである。 図17は、実施の形態6に係る加工プログラムの記述例を示す図である。 図18は、識別子とテキストデータの対応を示すテーブルを示す図である。 図19は、メッセージ変更情報に数値演算指示識別子が付加された場合のメッセージ変更情報取得処理を行うフローチャートである。 図20は、数値演算指示識別子が付加された基本メッセージから生成した派生メッセージを処理するフローチャートである。 図21は、実施に形態7に係るメッセージ変更情報に数値演算指示識別子が付加された場合の加工プログラムの記述例を示す図である。 図22は、識別子ID26に対応する画像データを示す図である。 図23は、加工プログラム実行後の派生メッセージを示す図である。 図24は、実施の形態7に係る基本メッセージに数値演算指示識別子が付加された場合の加工プログラムの記述例を示す図である。 図25は、実施の形態8に係る数値制御装置の構成例を示すブロック図である。 図26は、実施の形態8に係る加工プログラムの記述例を示す図である。 図27は、識別子とテキストデータの対応を示すテーブルである。
 以下に、本発明にかかる数値制御装置の実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。
実施の形態1.
 図1は、本実施の形態に係る数値制御装置の構成例を示すブロック図である。数値制御装置1は、メッセージ通知指令取得部2と、メッセージ材料情報取得部3と、派生メッセージ生成部4と、記憶部5と、を備え、メッセージ通知装置6と接続する。メッセージ通知指令取得部2は、入力された加工プログラムに基づいて取得したメッセージ通知指令21を出力する。メッセージ材料情報取得部3は、メッセージ通知指令取得部2からメッセージ通知指令21が入力されると、入力されたメッセージ通知指令21に基づいて取得したメッセージ材料情報22を出力する。ここで、メッセージ材料情報22は、基本メッセージおよびメッセージ変更情報を含むものとする。派生メッセージ生成部4は、メッセージ材料情報22に含まれる基本メッセージに対して、メッセージ材料情報22に含まれるメッセージ変更情報に基づく変更を加えて派生メッセージ23を生成し、メッセージ通知装置6へ出力する。記憶部5は、取得したメッセージの情報やあらかじめメッセージの情報を記憶するための記憶領域である。数値制御装置1が記憶部5を備える構成について説明するが、一例であり、外部記憶装置で代用することも可能であり、以降の実施の形態についても同様とする。なお、メッセージ通知装置6は、メッセージを出力できる機能を備えている装置であり、例えば、表示装置や音声出力装置等があるが、これらに限定するものではない。
 つづいて、本実施の形態に係る数値制御装置1がオペレータに対してメッセージを通知する動作について、具体的に、加工プログラムの記述例を用いて説明する。図2は、本実施の形態に係る数値制御装置のメッセージを通知する動作を示すフローチャートである。また、図3は、本実施の形態に係る加工プログラムの記述例を示す図である。ここで、図3の加工プログラムの「#3010」で始まり、セミコロン;で終わる一行がメッセージ通知指令である。メッセージ通知指令の等号記号=に続いて記述されている丸括弧()を含む部分が基本メッセージである。また、基本メッセージに続き、カンマ区切りで記述されている山括弧<>を含む部分がメッセージ変更情報である。なお、EX104aやEX105aのように、メッセージ変更情報は複数記述することが可能である。
 以下、図2のフローチャートの各ステップに従って説明する。ステップS11では、メッセージ材料情報取得部3が、メッセージ通知指令取得部2より入力されたメッセージ通知指令21に基づいて、基本メッセージ(等号記号=に続いて記述されている丸括弧()を含む部分)を取得する。
 ステップS12では、メッセージ材料情報取得部3が、メッセージ通知指令21に基づいてメッセージ変更情報(基本メッセージに続き、カンマ区切りで記述されている山括弧<>を含む部分)を取得できるか判定する。メッセージ材料情報取得部3は、メッセージ変更情報を取得できる場合(ステップS12:Yes)はステップS13へ進み、メッセージ変更情報を取得できない場合(ステップS12:No)はステップS17へ進む。
 ステップS13では、メッセージ材料情報取得部3が、メッセージ通知指令21に基づいてメッセージ変更情報(基本メッセージに続き、カンマ区切りで記述されている山括弧<>を含む部分)を取得する。そして、ステップS14では、メッセージ材料情報取得部3が、メッセージ通知指令21に基づいてすべてのメッセージ変更情報が取得できているか判定する。メッセージ材料情報取得部3は、未取得のメッセージ変更情報がある場合(ステップS14:No)はステップS13へ戻り、未取得のメッセージ変更情報がない場合(ステップS14:Yes)はステップS15へ進む。ステップS15へ進むにあたり、メッセージ材料情報取得部3は、取得した基本メッセージおよびメッセージ変更情報を含むメッセージ材料情報22を、派生メッセージ生成部4へ出力する。
 ステップS15では、派生メッセージ生成部4が、メッセージ材料情報22から基本メッセージおよびメッセージ変更情報を取得して、メッセージ変更情報中の基本メッセージに加える変更内容を判別し、メッセージ変更情報による変更内容に基づいて基本メッセージに変更を加えて、派生メッセージを生成する。そして、ステップS16では、派生メッセージ生成部4が、未処理のメッセージ変更情報がないかどうかを判定する。派生メッセージ生成部4は、未処理のメッセージ変更情報がある場合(ステップS16:No)はステップS15へ戻り、未処理のメッセージ変更情報がない場合(ステップS16:Yes)はステップS17へ進む。
 ここで、派生メッセージ生成部4において、基本メッセージに対して、メッセージ変更情報を用いて変更を加える方法について説明する。基本メッセージに加える変更内容には、置換、追加、削除、挿入があり、派生メッセージ生成部4は、メッセージ変更情報の記述によって区別する。
 具体的に、図3のEX101a行は、基本メッセージ「早送り速度ゼロ。早送り速度を上げてください」中の「早送り」を「切削送り」で置換し、派生メッセージ「切削送り速度ゼロ。切削送り速度を上げてください」を生成する例である。派生メッセージ生成部4は、ふたつの山括弧<>をスラッシュ記号/で区切った記述をステップS15では置換と判別する。ここで、スラッシュ記号の前の山括弧<>で括った部分が置換前の内容、スラッシュ記号の後の山括弧<>で括った部分が置換後の内容である。派生メッセージ生成部4は、ステップS15において、置換前の内容を置換後の内容で置き換える変更を基本メッセージ内に加える処理を実行する。
 また、基本メッセージに置換前内容をあらかじめ置換記号として含めておき、メッセージ変更情報に変更後情報のみを記述することも可能である。図3のEX102a行は、基本メッセージ「%1ゼロ。%1を上げてください」に含まれる置換記号「%1」を「早送り速度」で置換し、派生メッセージ「早送り速度ゼロ。早送り速度を上げてください」を生成する例である。派生メッセージ生成部4は、ステップS15において、「%1」を「早送り速度」で置き換える変更を基本メッセージ内に加える処理を実行する。
 図3のEX103a行は、基本メッセージ「スキップ座標読取」に「不可」を追加し、派生メッセージ「スキップ座標読取不可」を生成する例である。派生メッセージ生成部4は、加算記号+に続けて山括弧<>の記述をステップS15では追加と判別する。派生メッセージ生成部4は、ステップS15において、加算記号+に続く山括弧<>で括った部分を追加内容として、基本メッセージの後ろに追加内容を追加する変更処理を実行する。
 図3のEX104a行は、EX103a行に「座標読取」を削除するメッセージ変更情報を追加し、基本メッセージ「スキップ座標読取」に「不可」の追加と「座標読取」の削除を行い、派生メッセージ「スキップ不可」を生成する例である。派生メッセージ生成部4は、減算記号-に続けて山括弧<>の記述をステップS15では削除と判別する。派生メッセージ生成部4は、ステップS15において、減算記号-に続く山括弧<>で括った部分を削除内容として、基本メッセージ内の削除内容に一致する部分を削除する変更処理を実行する。
 図3のEX105a行は、EX104a行に「多段」を挿入するメッセージ変更情報を追加し、基本メッセージ「スキップ座標読取」に「不可」の追加、「座標読取」の削除、0文字目に「多段」の挿入を行い、派生メッセージ「多段スキップ不可」を生成する例である。派生メッセージ生成部4は、加算記号+と山括弧<>に続いて、アットマーク記号@の記述をステップS15では挿入と判別する。派生メッセージ生成部4は、ステップS15において、加算記号+に続く山括弧<>で括った部分を挿入内容、アットマーク記号@に続く部分を挿入箇所として、基本メッセージ内の挿入箇所に挿入内容を挿入する変更処理を実行する。
 図2のフローチャートに戻って、ステップS17では、派生メッセージ生成部4が、ステップS15、S16で生成した派生メッセージをメッセージ通知装置6へ出力する。
 また、ステップS12においてメッセージ変更情報を取得できなかった場合(ステップS12:No)、ステップS17へ進むにあたり、メッセージ材料情報取得部3は、取得した基本メッセージを含むメッセージ材料情報22を、派生メッセージ生成部4へ出力する。そして、ステップS17では、派生メッセージ生成部4が、メッセージ材料情報22から取得した基本メッセージを派生メッセージとしてメッセージ通知装置6へ出力する。
 このよう、数値制御装置1では、メッセージ通知指令に基づいて取得した基本メッセージに対して、メッセージ通知指令に基づいて取得したメッセージ変更情報に基づく変更を加えることで、派生メッセージを生成することができる。
 図4は、図3に示すメッセージ通知指令により生成される派生メッセージを、メッセージ変更情報を使用せずに基本メッセージで記述した従来の加工プログラムの記述例を示す図である。各行の記載はそれぞれ独立しており、各行に対応した記載が必要である。一方、図3では、過去に使用したメッセージ通知指令に対して、共通部分を基本メッセージとして使いまわすことができ、変更する部分のみをメッセージ変更情報として記述することができる。そのため、図4の記述例と比較して、加工プログラム作成者がメッセージ通知指令を作成する手間を削減することが可能となる。また、既存のメッセージを流用できることから、メッセージ表記を少ない手間で統一することが可能となる。
 なお、図3ではメッセージ全体が短く字数も多くないが、例えば、基本メッセージが長く、繰り返し同一の用語が使用される場合には、図3のEX102aと図4のEX102bとを比較しても分かるように、メッセージ通知指令を短くできるため、加工プログラムのサイズを小さくすることも可能である。
 以上説明したように、本実施の形態によれば、数値制御装置では、基本メッセージを流用して新しい派生メッセージを生成することができる。これにより、加工プログラムのメッセージ通知指令の作成の手間を削減することができる。また、メッセージ表記を少ない手間で統一することができる。
 また、基本メッセージが長く、繰り返し同一の用語が使用される場合には、従来と比較して、加工プログラムのサイズを小さくすることができる。
実施の形態2. 
 実施の形態1では、メッセージ通知指令中に基本メッセージおよびメッセージ変更情報をテキストデータとして記述した。本実施の形態では、テキストデータを自装置内に記憶する場合について説明する。実施の形態1と異なる部分について説明する。
 図5は、本実施の形態に係る加工プログラムの記述例を示す図である。また、図6は、記憶部で記憶している識別子とテキストデータとの対応を示すテーブルを示す図である。図5に示す加工プログラム中のメッセージ通知指令(基本メッセージ、メッセージ変更情報)にある識別子(ID)に対応したテキストデータの組み合わせが、図6のテーブルに記憶されている。
 具体的に、記憶部5では、図6に示すように、テキストデータ「%1ゼロ。%1を上げてください」と前記テキストデータを示す識別子ID1、テキストデータ「スキップ座標」と前記テキストデータを示す識別子ID2、テキストデータ「読取不可」と前記テキストデータを示す識別子ID3、およびテキストデータ「座標読取」と前記テキストデータを示す識別子ID4を関連付けて記憶している。
 つづいて、本実施の形態に係る数値制御装置1がオペレータに対してメッセージを通知する動作について、具体的に、加工プログラムの記述例を用いて説明する。なお、本実施の形態に係る動作のフローチャートは実施の形態1(図2参照)と同様である。
 図5のEX101c行に対して、メッセージ材料情報取得部3が、ステップS11において、メッセージ通知指令21から基本メッセージに含まれる識別子ID1を読み取り、記憶部5から識別子ID1に対応するテキストデータ「%1ゼロ。%1を上げてください」を取得し、基本メッセージとする。以降の動作は図3のEX102aの場合と同様である。メッセージ材料情報取得部3が、メッセージ変更情報として「切削送り速度」を取得し(ステップS13、S14)、派生メッセージ生成部4が、基本メッセージ「%1ゼロ。%1を上げてください」に含まれる置換記号「%1」を「切削送り速度」で置換し、派生メッセージ「切削送り速度ゼロ。切削送り速度を上げてください」を生成する(ステップS15、S16)。
 図5のEX102c行に対して、EX101c行と同様、メッセージ材料情報取得部3が、ステップS11において、メッセージ通知指令21から基本メッセージに含まれる識別子ID1を読み取り、記憶部5から識別子ID1に対応するテキストデータ「%1ゼロ。%1を上げてください」を取得し、基本メッセージとする。以降の動作は図3のEX102aの場合と同様である。メッセージ材料情報取得部3が、メッセージ変更情報として「早送り速度」を取得し(ステップS13、S14)、派生メッセージ生成部4が、基本メッセージ「%1ゼロ。%1を上げてください」に含まれる置換記号「%1」を「早送り速度」で置換し、派生メッセージ「早送り速度ゼロ。早送り速度を上げてください」を生成する(ステップS15、S16)。
 図5のEX103c行に対して、メッセージ材料情報取得部3が、ステップS11において、メッセージ通知指令21から基本メッセージに含まれる識別子ID2を読み取り、記憶部5から識別子ID2に対応するテキストデータ「スキップ座標」を取得し、基本メッセージとする。また、メッセージ変更情報を取得できることから(ステップS12:Yes)、メッセージ材料情報取得部3が、ステップS13において、メッセージ通知指令21から基本メッセージに含まれる一番目の識別子ID3を読み取り、記憶部5から識別子ID3に対応するテキストデータ「読取不可」を取得し、メッセージ変更情報とする。ステップS14の判定でステップS13に戻るため、さらにステップS13でメッセージ通知指令21から基本メッセージに含まれる二番目の識別子ID4を読み取り、記憶部5から識別子ID4に対応するテキストデータ「座標読取」を取得し、メッセージ変更情報とする。また、ステップS14の判定でステップS13に戻るため、さらにステップS13でメッセージ通知指令21から基本メッセージに含まれる<多段>@0を取得し、メッセージ変更情報とする。そして、派生メッセージ生成部4が、取得したメッセージ変更情報の順に基本メッセージに変更を加える。具体的に、派生メッセージ生成部4は、基本メッセージ「スキップ座標」に「読取不可」を追加して「スキップ座標読取不可」とし、さらに「座標読取」を削除して「スキップ不可」とし、最後に「多段」を先頭に挿入して「多段スキップ不可」とする(ステップS15、S16)。
 以上説明したように、本実施の形態によれば、数値制御装置では、加工プログラムのメッセージ通知指令中の識別子に関連付けてテキストデータを記憶することとした。これにより、実施の形態1と比較して、加工プログラムのサイズを小さくすることができる。また、従来では、テキストデータを含めたことにより加工プログラムのサイズが大きくなるといった問題があった。本実施の形態では、この問題を解消することができる。
 また、従来では、自装置において、メッセージをそのままテキストデータとして登録する場合、登録する記憶領域に多くの容量を必要とするという問題があった。本実施の形態では、記憶部に記憶するデータを識別子と関連付けてテキストデータで記憶して、各基本メッセージやメッセージ変更情報に使い回しができるため、自装置において、テキストデータを登録する記憶領域を従来よりも小さくすることができる。
 なお、上記説明ではテキストデータおよび前記テキストデータを示す識別子をあらかじめ記憶する記憶部5を数値制御装置1内に備える場合について説明したが、これに限定するものではない。記憶部5に記憶する内容を、数値制御装置1外の外部記憶装置で記憶することも可能である。
実施の形態3.
 実施の形態2では数値制御装置1の記憶部5にテキストデータと前記テキストデータを示す識別子をあらかじめ記憶するようにしたが、前記テキストデータだけでなく、画像データ、サウンドデータ、動画データ等を記憶することも可能である。実施の形態2と異なる部分について説明する。
 例えば、画像データの場合、変更を行う領域をメッセージ変更情報に含めることで、追加、削除、挿入を行うことが可能であり、公知の画像認識技術を用いることで置換も可能である。また、サウンドデータ、動画データの場合、変更を行う時間軸をメッセージ変更情報に含めることで追加、削除、挿入を行うことが可能であり、公知の音声認識技術や動画認識技術を用いることで置換も可能である。また、メッセージ変更情報のデータ種類と基本メッセージのデータ種類が異なる場合は、ある種類のデータを別の種類のデータに変換する公知のデータ変換技術を用いることで、メッセージ変更情報のデータ種類と基本メッセージのデータ種類に変換して基本メッセージのデータに変更を加えることも可能である。
 具体的に、画像データを用いる場合の数値制御装置1の動作について説明する。図7は、本実施の形態に係る基本メッセージおよびメッセージ変更情報に画像データを含む場合の加工プログラムの記述例を示す図である。記憶部5から取得した画像データを基本メッセージに含め、記憶部5から取得したテキストデータおよび画像データをメッセージ変更情報に含めたものである。
 図8は、自装置内の記憶部で記憶している識別子と画像データおよびテキストデータとの対応を示すテーブルである。図7に示す加工プログラム中のメッセージ通知指令(基本メッセージ、メッセージ変更情報)にある識別子(ID)に対応した画像データおよびテキストデータが、図8のテーブルに記憶されている。図9は、識別子ID11の画像データ11に対応する画像を示す図である。また、図10は、識別子ID12の画像データ12に対応する画像を示す図である。
 つづいて、本実施の形態に係る数値制御装置1がオペレータに対してメッセージを通知する動作について、具体的に、加工プログラムの記述例を用いて説明する。なお、本実施の形態に係る動作のフローチャートは実施の形態1、2(図2参照)と同様である。
 図7のEX101dに対して、メッセージ材料情報取得部3が、ステップS11において、メッセージ通知指令21から基本メッセージに含まれる識別子ID11を読み取り、数値制御装置1の記憶部5から識別子ID11に対応する画像データ11を取得し、基本メッセージとする。また、メッセージ材料情報取得部3が、ステップS13、S14において、メッセージ変更情報として識別子ID12に対応する画像データ12、識別子ID13に対応するテキストデータ「ストロークエンド軸あり。」、識別子ID14に対応するテキストデータ「X(-)方向へ移動してください。」を取得する。ここで、各メッセージ変更情報には、基本メッセージの画像データに挿入する座標位置がアットマーク記号@の後に記述されている。派生メッセージ生成部4は、ステップS15、S16において、前記座標位置に従い、画像データ11に対して、画像データ12を指定された座標(X=10,Y=10)に挿入する。次に、派生メッセージ生成部4は、テキストデータ「ストロークエンド軸あり。」を画像データに変換し、指定された座標(X=40,Y=100)に挿入する。同様に、派生メッセージ生成部4は、テキストデータ「X(-)方向へ移動してください。」を画像データに変換後、指定された座標(X=40,Y=110)にする。図11は、本実施の形態に係る派生メッセージを示す図である。派生メッセージ生成部4は、派生メッセージとして図11に示す画像データを生成する。
 以上説明したように、本実施の形態によれば、数値制御装置では、テキストデータだけではなく、画像データ、サウンドデータ、動画データを用いて派生メッセージを生成できることとした。これにより、従来と比較して、表現力が高く効果的なメッセージをオペレータに通知することができる。
 なお、実施の形態3と同様、上記説明ではデータ(テキストデータ、画像データ、サウンドデータ、動画データ)および前記データを示す識別子をあらかじめ記憶する記憶部5を数値制御装置1内に備える場合について説明したが、これに限定するものではない。記憶部5に記憶する内容を、数値制御装置1外の外部記憶装置で記憶することも可能である。
実施の形態4. 
 本実施の形態では、メッセージ変更情報として、数値制御装置1内の内部情報を表す内部情報識別子を指定し、数値制御装置1の記憶部5に記憶されている、内部情報識別子に対応する数値制御装置1内の内部情報を取得する場合について説明する。実施の形態1~3と異なる部分について説明する。
 内部情報識別子は、例えば、加工プログラム内で使用する変数番号(コモン変数、ローカル変数、システム変数)や数値制御装置のパラメータ番号、PLC(Programmable Logic Controller)デバイス番号を用いることができる。
 図12は、本実施の形態に係るメッセージ変更情報に内部情報識別子を用いた加工プログラムの記述例を示す図である。メッセージ変更情報に数値制御装置1内の内部情報を表す内部情報識別子を指定し、数値制御装置1の記憶部5に記憶されている、前記内部情報識別子に対応する数値制御装置1内の内部情報をメッセージ変更情報とする。具体的に、図12においてメッセージ変更情報として記述されている内部情報識別子#3901は、数値制御装置1の記憶部5に記憶されている、加工が完了したワークの個数(ワーク加工数)を読み取るためのシステム変数である。
 数値制御装置1では、派生メッセージを作成する処理において(フローチャートは実施の形態1(図2参照)と同様)、メッセージ材料情報取得部3が、ステップS13において、メッセージ通知指令からメッセージ変更情報に含まれている内部情報識別子#3901を読み取り、記憶部5から内部情報識別子#3901に対応するワーク加工数の値を取得し、メッセージ変更情報に含める。その他の処理は実施の形態1等と同様である。これにより、数値制御装置1では、ワーク加工数を派生メッセージとしてオペレータへ通知することができる。なお、ここで示す内部情報識別子#3901のシステム変数は一例であり、他のシステム変数を用いることにより、数値制御装置1の他、制御対象の工作機械の情報の状態を取得することも可能である。
 以上説明したように、本実施の形態によれば、数値制御装置では、メッセージ変更情報として、数値制御装置1内の内部情報等を表す内部情報識別子を指定できることとした。これにより、時々刻々と変化する数値制御装置や工作機械の状態をメッセージに含めることができるので、従来と比較して表現力が高く効果的なメッセージをオペレータに通知することができる。
 また、従来では、加工プログラム中の注釈文のテキストデータや記憶領域にあらかじめ登録されたテキストデータをそのままメッセージとして表示装置上に表示するため、加工プログラム実行中に時々刻々と変化する数値制御装置や工作機械の状態をメッセージに含めてオペレータに知らせることができないという問題があった。本実施の形態では、加工プログラム実行中に時々刻々と変化する数値制御装置や工作機械の状態を派生メッセージに含めることができ、このような問題を解消することができる。
実施の形態5. 
 実施の形態2~4では、数値制御装置1の記憶部5にテキストデータ等とデータを示す識別子を1対1で関連付けて記憶していた。本実施の形態では、内部情報識別子が示す内部情報の値に応じて、使用する基本メッセージおよびメッセージ変更情報を切り替える。実施の形態1~4と異なる部分について説明する。
 図13は、本実施の形態に係る加工プログラムの記述例を示す図である。また、図14は、記憶部で記憶している内部情報識別子とテキストデータとの対応を示すメッセージ切替テーブルを示す図である。図13に示す加工プログラム中のメッセージ通知指令(基本メッセージ、メッセージ変更情報)にある識別子(ID)に関連付けられた内部情報識別子、および識別子(ID)に対応したテキストデータが、図14のメッセージ切替テーブルに記憶されている。また、図14において、識別子ID15、識別子ID16は、数値制御装置1の内部情報識別子#1043に関連づけられている。具体的に、内部情報識別子#1043は、数値制御装置1がメッセージ通知装置6に表示する言語を切替えるパラメータである。
 数値制御装置1では、派生メッセージを作成する処理において(フローチャートは実施の形態1(図2参照)と同様)、メッセージ材料情報取得部3が、ステップS11において、メッセージ通知指令から基本メッセージに含まれる識別子ID15を読み取り、記憶部5から識別子ID15に対応するテキストデータを取得する際、内部情報識別子#1043の値をチェックし、内部情報識別子#1043の値に対応するテキストデータを取得する。メッセージ材料情報取得部3は、例えば、内部情報識別子#1043が0であればデータD0「Program error %1」を基本メッセージとして取得し、内部情報識別子#1043が1であればデータD1「プログラムエラー %1」を基本メッセージとして取得し、内部情報識別子#1043が2であればデータD2「程式錯誤 %1」を基本メッセージとして取得する。
 また、メッセージ材料情報取得部3が、ステップS13において、メッセージ通知指令からメッセージ変更情報に含まれる識別子ID16を読み取り、記憶部5から識別子ID16に対応するテキストデータを取得する際、内部情報識別子#1043の値をチェックし、内部情報識別子#1043の値に対応するテキストデータを取得する。メッセージ材料情報取得部3は、例えば、内部情報識別子#1043が0であればデータD0「Divided by zero」をメッセージ変更情報として取得し、内部情報識別子#1043が1であればデータD1「ゼロ割」をメッセージ変更情報として取得し、内部情報識別子#1043が2であればデータD2「分母用0分割」をメッセージ変更情報として取得する。
 そして、数値制御装置1では、派生メッセージ生成部4が、ステップS15において、メッセージ材料情報取得部3が取得したメッセージ材料情報(基本メッセージおよびメッセージ変更情報)に基づいて、内部情報識別子#1043が0のときは「Program error Divided by zero」の派生メッセージを生成し、内部情報識別子#1043が1のときは「プログラムエラー ゼロ割」の派生メッセージを生成し、内部情報識別子#1043が2のときは「程式錯誤 分母用0分割」の派生メッセージを生成する。
 図15は、図13に示すメッセージ通知指令により生成される派生メッセージを、メッセージ変更情報を使用せずに基本メッセージで記述した従来の加工プログラムの記述例を示す図である。本実施の形態では、図13に示すように、内部情報識別子#1043の値に応じて派生メッセージを生成できることから、図15の場合と比較して、加工プログラムにおいて、条件分岐を作成する手間を削除することが可能となる。
 以上説明したように、本実施の形態によれば、数値制御装置では、取得する基本メッセージおよびメッセージ変更情報を数値制御装置の内部情報の値によって切り替えることとした。これにより、加工プログラム実行中に変化する数値制御装置やPLCの状態、パラメータ値等に応じて取得する基本メッセージおよびメッセージ変更情報を変更することができるため、加工プログラム中において数値制御装置やPLCの状態、パラメータ値等に応じてメッセージ通知指令を切り替える条件分岐を作成する手間を削減し、加工プログラムサイズを小さくすることができる。
実施の形態6. 
 本実施の形態では、以前のメッセージ通知指令で取得した基本メッセージを記憶する。実施の形態1~5と異なる部分について説明する。
 数値制御装置1の構成は実施の形態1(図1参照)等と同様である。ただし、数値制御装置1において、メッセージ材料情報取得部3は、以前のメッセージ通知指令で取得した基本メッセージを記憶部5に記憶しておくことが可能である。
 また、メッセージを通知する動作を示すフローチャートも実施の形態1(図2参照)と同様であるが、ステップS11に示す基本メッセージを取得する処理について、本実施の形態に係る処理の詳細を説明する。図16は、本実施の形態に係る数値制御装置において基本メッセージを取得する処理を示すフローチャートである。メッセージ材料情報取得部3が、メッセージ通知指令から基本メッセージを取得できなかった場合に、記憶部5に記憶した、以前実施したメッセージ通知指令で取得した基本メッセージを取得する処理を示すものである。
 図16のステップS11-aでは、メッセージ材料情報取得部3が、メッセージ通知指令に基づいて基本メッセージを取得できるか判定する。メッセージ材料情報取得部3は、取得できる場合(ステップS11-a:Yes)はステップS11-bに進み、取得できない場合(ステップS11-a:No)はステップS11-dに進む。ステップS11-bでは、メッセージ材料情報取得部3が、図2のステップS11と同様の処理を行う。ステップS11-cでは、メッセージ材料情報取得部3が、ステップS11-bで取得した基本メッセージを記憶部5に記憶しておく。ステップS11-aでメッセージ通知指令に基づいて基本メッセージを取得できないと判定した場合(ステップS11-a:No)のステップS11-dでは、メッセージ材料情報取得部3が、記憶部5に記憶してある基本メッセージを取得する。
 図17は、本実施の形態に係る加工プログラムの記述例を示す図である。また、図18は、記憶部で記憶している識別子とテキストデータの対応を示すテーブルを示す図である。図17に示す加工プログラム中のメッセージ通知指令(基本メッセージ、メッセージ変更情報)にある識別子(ID)に対応したテキストデータが、図18のテーブルに記憶されている。
 つづいて、本実施の形態に係る数値制御装置1がオペレータに対してメッセージを通知する動作について、具体的に、加工プログラムの記述例を用いて説明する。なお、本実施の形態に係る動作のフローチャートは、ステップS11以外は実施の形態1(図2参照)と同様である。
 図17のEX201a行に対してメッセージ通知指令を実施する場合、メッセージ材料情報取得部3が、ステップS11-aにおいて、メッセージ通知指令21に基本メッセージの識別子ID21があるためステップS11-bへ進む。メッセージ材料情報取得部3は、ステップS11-bにおいて、識別子ID21に対応するテキストデータ「%1が%2です。%3を%4ください。」を取得する。そして、メッセージ材料情報取得部3は、ステップS11-cにおいて、前記テキストデータ「%1が%2です。%3を%4ください。」を記憶部5に記憶する。
 以降の数値制御装置1における処理は実施の形態1と同様である。ステップS13、S14において、メッセージ材料情報取得部3が、識別子ID22に対応するテキストデータ「切削送り速度」、識別子ID23に対応するテキストデータ「ゼロ」、識別子ID22に対応するテキストデータ「切削送り速度」、および識別子ID24に対応するテキストデータ「上げて」を取得する。そして、ステップS15、S16において、派生メッセージ生成部4が、基本メッセージ「%1が%2です。%3を%4ください。」に対して置換を行い、派生メッセージ「切削送り速度がゼロです。切削送り速度を上げてください。」を生成する。
 次に、図17のEX202a行に対してメッセージ通知指令を実施する場合、メッセージ材料情報取得部3が、ステップS11-aにおいて、メッセージ通知指令21に基本メッセージの識別子がないことから基本メッセージを取得できないと判断し、ステップS11-dへ進む。メッセージ材料情報取得部3は、ステップS11-dにおいて、記憶部5に記憶されている基本メッセージ「%1が%2です。%3を%4ください。」を取得する。
 以降の数値制御装置1における処理は実施の形態1と同様である。ステップS13、S14において、メッセージ材料情報取得部3が、識別子ID25に対応するテキストデータ「早送り速度」、識別子ID23に対応するテキストデータ「ゼロ」、識別子ID25に対応するテキストデータ「早送り速度」、および識別子ID24に対応するテキストデータ「上げて」を取得する。そして、ステップS15、S16において、派生メッセージ生成部4が、基本メッセージ「%1が%2です。%3を%4ください。」に対して置換を行い、派生メッセージ「早送り速度がゼロです。早送り速度を上げてください。」を生成する。
 ここで、加工プログラムには、基本メッセージが複数含まれる場合がある。そのため、数値制御装置1では、例えば、メッセージ材料情報取得部3は、最新の基本メッセージ1つを記憶部5に記憶する。メッセージ材料情報取得部3は、新たに基本メッセージを取得した場合は、それまでに記憶していた基本メッセージを上書き更新し、新たに取得した基本メッセージを記憶部5に記憶することとする。なお、基本メッセージを記憶する方法として上書きする方法は、一例であり、この方法に限定するものではない。
 以上説明したように、本実施の形態によれば、数値制御装置では、以前実行したメッセージ通知指令の基本メッセージを記憶しておくこととした。これにより、以前に使用した基本メッセージを流用できるため、メッセージ通知指令作成の手間を削減し、また、従来と比較して、加工プログラムのサイズを小さくすることができる。
実施の形態7. 
 本実施の形態では、生成する派生メッセージに数値演算結果を含める場合について説明する。実施の形態1~6と異なる部分について説明する。
 数値制御装置1の構成は実施の形態1(図1参照)等と同様である。また、メッセージを通知する動作を示すフローチャートも実施の形態1(図2参照)と同様であるが、ステップS13およびステップS17に示す処理について、本実施の形態に係る処理の詳細を説明する。
 図19は、メッセージ変更情報に数値演算指示識別子が付加された場合のメッセージ変更情報取得処理を行うフローチャートである。図19のステップS13-aでは、メッセージ材料情報取得部3が、図2のステップS13と同様の処理を行う。ステップS13-bでは、メッセージ材料情報取得部3が、取得したメッセージ変更情報内に数値演算指示識別子が付加されているか判定する。メッセージ材料情報取得部3は、付加されている場合(ステップS13-b:Yes)はステップS13-cへ進み、付加されていない場合(ステップS13-b:No)は次のステップS14へ進む。ステップS13-cでは、メッセージ材料情報取得部3が、メッセージ変更情報内の数値演算式を計算して得られた数値演算結果で、前記メッセージ変更情報内の数値演算式を置き換える。
 また、図20は、数値演算指示識別子が付加された基本メッセージから生成した派生メッセージを処理するフローチャートである。図20のステップS17-aでは、派生メッセージ生成部5が、派生メッセージに数値演算指令識別子が付加されているか判定する。付加されている場合(ステップS17-a:Yes)はステップS17-bへ進み、付加されていない場合(ステップS17-a:No)はステップS17-cへ進む。ステップ17-bでは、派生メッセージ生成部5が、派生メッセージ内の数値演算式を計算して得られた数値演算結果で、前記派生メッセージ内の数値演算式を置き換える。ステップS17-cでは、派生メッセージ生成部5が、図2のステップS17と同様の処理を行う。
 具体的に、数値演算指令識別子が付加された場合の数値制御装置1の動作について説明する。図21は、本実施に形態に係るメッセージ変更情報に数値演算指示識別子が付加された場合の加工プログラムの記述例を示す図である。また、図22は、図21に示す加工プログラム中のメッセージ通知指令の識別子ID26に対応する画像データを示す図である。また、図23は、図21に示す加工プログラム実行後の派生メッセージを示す図である。図21に示すEX201b行は、図22の画像イメージを基本メッセージとして取得し、メッセージ変更情報としてタッチセンサに工具先端が接触したときのZ軸座標を記憶するシステム変数#5063と、基準となるZ軸座標を格納したコモン変数#1との差分を計算し、前記計算結果を図22の画像イメージ中に挿入して図23の派生メッセージを生成する処理を示す加工プログラムである。ここでは、EX201bのメッセージ変更情報の山括弧<>の後にある&Cが数値演算指示識別子である。なお、前記数値演算指示識別子は、置換、追加、削除、挿入の記述と併記可能である。
 EX201b行のメッセージ通知指令が指令された場合、図19のステップS13-aでは、メッセージ材料情報取得部3が、メッセージ変更情報<#5063-#1>@X60Y20&Cを取得する。ステップS13-bでは、メッセージ材料情報取得部3が、メッセージ変更情報内の数値演算指示識別子&Cを判別し、数値演算指示識別子が付加されているとして(ステップS13-b:Yes)、ステップS13-cへ進む。ステップS13-cでは、メッセージ材料情報取得部3が、メッセージ変更情報内の数値演算式#5063-#1を判別し、システム変数#5063の値と、コモン変数#1の値を記憶部5から取得後、差分を計算して得られた計算結果200.000で前記数値演算式#5063-#1を置き換え、メッセージ変更情報を<200.000>@X60Y20とする。ここで、メッセージ材料情報取得部3では、数値演算指示識別子&Cは処理済みのため、メッセージ変更情報から&Cを削除する。以降、数値制御装置1では、派生メッセージ生成部4が、図22に示す画像データに対して、メッセージ変更情報内の計算結果を指定された座標(X=60,Y=20)に挿入し、図23に示す派生メッセージを生成する。
 また、図24は、本実施の形態に係る基本メッセージに数値演算指示識別子が付加された場合の加工プログラムの記述例を示す図である。EX201c行の基本メッセージの丸括弧()の後にある&Cが数値演算指示識別子である。
 EX201cのメッセージ通知指令が指令された場合、メッセージ通知指令に基づいてメッセージ変更情報を取得できないため(図2におけるステップS12:No)、基本メッセージ(計測した工具長は#5063-#1です)&Cが派生メッセージとなる。図20のステップS17-aでは、派生メッセージ生成部4が、派生メッセージ内の数値演算指示識別子&Cを判別し、数値演算指示識別子が付加されているとして(ステップS17-a:Yes)、ステップS17-bへ進む。ステップS17-bでは、派生メッセージ生成部4が、派生メッセージ内の数値演算式#5063-#1を判別し、システム変数#5063の値と、コモン変数#1の値を記憶部5から取得後、差分を計算して得られた計算結果200.000で前記数値演算式#5063-#1を置き換え、派生メッセージ「計測した工具長は200.000です」を生成する。ここで、派生メッセージ生成部4では、数値演算指示識別子&Cは処理済みのため、基本メッセージから&Cを削除する。ステップS17-cでは、派生メッセージ生成部4が、生成した派生メッセージ「計測した工具長は200.000です」を通知する。
 以上説明したように、本実施の形態によれば、数値制御装置では、加工プログラム中のメッセージ通知指令に付加された数値演算指示識別子に対する計算結果を派生メッセージに含めて通知することとした。これにより、変化する数値制御装置やPLCの状態を含んだ数式の演算結果を派生メッセージに含めて通知することができる。
実施の形態8. 
 本実施の形態では、複数のメッセージ通知装置と接続する場合について説明する。実施の形態1~7と異なる部分について説明する。
 図25は、本実施の形態に係る数値制御装置の構成例を示すブロック図である。数値制御装置1において、派生メッセージ生成部4が、複数のメッセージ通知装置6A、6B、6Cと接続する点が実施の形態1(図1参照)等と異なる。なお、数値制御装置1において、派生メッセージを通知する処理については、これまでに説明した実施の形態1~7のいずれの方法を用いてもよい。
 図26は、本実施の形態に係る加工プログラムの記述例を示す図である。EX301a行の基本メッセージの丸括弧()の後にある&Pがメッセージ通知形式情報識別子であり、&Pの次のアットマーク記号@以降にメッセージ通知形式情報を記述する。EX301a行においてメッセージ通知形式情報はV1であり、これはサウンドデータを再生する際の音量を示す。また、EX302a行の基本メッセージの丸括弧()の後にある&Sがメッセージ通知装置選択情報識別子であり、&Sの次のアットマーク記号@以降にメッセージ通知装置識別子を記述する。ここでは、図25に示すメッセージ通知装置6Bに対応するメッセージ通知装置識別子をBとする。
 図27は、記憶部5で記憶している識別子とテキストデータの対応を示すテーブルである。図26に示す加工プログラム中のメッセージ通知指令(基本メッセージ)にある識別子ID31に対応したデータが、図27のテーブルに記憶されている。
 つづいて、数値制御装置1において、メッセージ通知装置6A、6B、6Cへ派生メッセージを通知する処理について説明する。一例として、実施の形態1の場合(図2のフローチャート参照)について説明する。
 EX301a行のメッセージ通知指令を実行すると、ステップS11において、メッセージ材料情報取得部3が、図27の識別子ID31に対応するサウンドデータ1を基本メッセージとして取得する。ステップS12において、メッセージ材料情報取得部3が、EX301a行のメッセージ通知指令に基づいてメッセージ変更情報を取得できないため(ステップS12:No)、基本メッセージが派生メッセージとなる(ステップS17)。派生メッセージ生成部4は、派生メッセージをメッセージ通知装置側へ出力する際、派生メッセージにメッセージ通知形式情報識別子&Pが付加されている場合、アットマーク記号@以降にあるメッセージ通知形式情報を識別し、派生メッセージを通知するときの形式を変更する。例えば、EX301a行のメッセージ通知形式情報V1はサウンドデータを再生する際の音量であるため、派生メッセージ生成部4は、メッセージ通知装置側に出力する際は指定された音量で再生する。また、EX301a行にはメッセージ通知装置選択情報識別子がないため、派生メッセージ生成部4は、派生メッセージの種類がサウンドデータであることを判別し、サウンドデータのメッセージ通知装置としてあらかじめ指定されているメッセージ通知装置へ派生データを出力する。
 また、EX302a行のメッセージ通知指令を実行すると、ステップS11において、メッセージ材料情報取得部3が、図27の識別子ID31に対応するサウンドデータ1を基本メッセージとして取得する。ステップS12において、メッセージ材料情報取得部3が、EX301a行のメッセージ通知指令に基づいてメッセージ変更情報を取得できないため(ステップS12:No)、基本メッセージが派生メッセージとなる(ステップS17)。派生メッセージ生成部4は、派生メッセージをメッセージ通知装置側へ出力する際、派生メッセージにメッセージ通知装置選択情報識別子&Sが付加されている場合、アットマーク記号@以降にあるメッセージ通知装置識別子を識別し、メッセージ通知装置識別子に対応するメッセージ通知装置へ派生メッセージを出力する。例えば、EX302a行の場合はメッセージ通知装置識別子がBのため、派生メッセージ生成部4は、派生メッセージをメッセージ通知装置6Bへ出力する。
 なお、EX303a行のようにメッセージ通知装置識別子の前に加算記号+を付加することで、派生メッセージ生成部4は、サウンドデータのメッセージ通知装置としてあらかじめ指定されているメッセージ通知装置と、メッセージ通知装置6Bの両方に派生メッセージを出力することも可能である。メッセージ通知形式情報識別子&Pおよびメッセージ通知装置選択情報識別子&Sがない場合、派生メッセージ生成部4は、あらかじめ指定されているメッセージ通知装置への出力を行う。
 以上説明したように、本実施の形態によれば、数値制御装置1では、派生メッセージを通知する際の形式を変更可能とする。これにより、生成した派生メッセージの内容に応じて、メッセージ通知装置がオペレータに対して派生メッセージを通知するときの最適な形式を選択することができる。
 また、数値制御装置1では、接続するメッセージ通知装置が複数ある場合、加工プログラム中のメッセージ通知指令の記載に基づいて、最適なメッセージ通知装置を選択することが可能である。
 1 数値制御装置
 2 メッセージ通知指令取得部
 3 メッセージ材料情報取得部
 4 派生メッセージ生成部
 5 記憶部
 6、6A、6B、6C メッセージ通知装置

Claims (11)

  1.  工作機械を制御する加工プログラムを入力としてオペレータに通知するメッセージを生成し、前記メッセージをメッセージ通知装置へ出力する数値制御装置において、
     前記加工プログラム中のメッセージ通知指令に基づいて、前記メッセージの雛形となる基本メッセージおよび前記基本メッセージに対する変更内容を示すメッセージ変更情報を取得するメッセージ材料情報取得部と、
     前記基本メッセージに対して前記メッセージ変更情報に基づいた変更を加えて前記メッセージを生成し、当該メッセージを前記メッセージ通知装置へ出力する派生メッセージ生成部と、
     を備えることを特徴とする数値制御装置。
  2.  自装置内または自装置外の記憶部において、過去のメッセージ通知指令から取得した基本メッセージが記憶されている場合に、
     前記メッセージ材料情報取得部は、前記メッセージ通知指令に基づいて基本メッセージを取得できない場合、前記記憶部から基本メッセージを取得する、
     ことを特徴とする請求項1に記載の数値制御装置。
  3.  前記メッセージ通知指令において前記基本メッセージおよび前記メッセージ変更情報が識別子の形式で記述され、自装置内または自装置外の記憶部において、前記識別子と当該識別子に対応したデータとの組み合わせが記憶されている場合に、
     前記メッセージ材料情報取得部は、前記メッセージ通知指令から前記基本メッセージおよび前記メッセージ変更情報に対応する識別子を取得し、前記記憶部から、当該識別子に対応するデータを取得して前記基本メッセージおよび前記メッセージ変更情報とする、
     ことを特徴とする請求項1に記載の数値制御装置。
  4.  前記データは、テキストデータ、サウンドデータ、動画データのうち少なくとも1つを含む、
     ことを特徴とする請求項3に記載の数値制御装置。
  5.  自装置内または自装置外の記憶部において、自装置の内部情報が記憶されている場合に、
     前記メッセージ材料情報取得部は、前記メッセージ変更情報として前記自装置の内部情報を示す内部情報識別子が指定されている場合、前記内部情報識別子に基づいて前記記憶部から取得した内部情報をメッセージ変更情報とする、
     ことを特徴とする請求項1に記載の数値制御装置。
  6.  自装置内または自装置外の記憶部において、内部情報識別子と前記内部情報識別子が示す内部情報の値に対応した前記基本メッセージとを関連付けて記述した基本メッセージ切替テーブルが記憶されている場合に、
     前記メッセージ材料情報取得部は、前記基本メッセージを取得する際、前記基本メッセージ切替えテーブルを参照し、前記内部情報の値によって取得する基本メッセージを切替える、
     ことを特徴とする請求項1に記載の数値制御装置。
  7.  自装置内または自装置外の記憶部において、内部情報識別子と前記内部情報識別子が示す内部情報の値に対応した前記メッセージ変更情報とを関連付けて記述したメッセージ変更情報切替テーブルが記憶されている場合に、
     前記メッセージ材料情報取得部は、前記メッセージ変更情報を取得する際、前記メッセージ変更情報切替えテーブルを参照し、前記内部情報の値によって取得するメッセージ変更情報を切替える、
     ことを特徴とする請求項1に記載の数値制御装置。
  8.  前記メッセージ変更情報に数値演算指示識別子が付加されている場合、
     前記メッセージ材料情報取得部は、前記メッセージ変更情報内の数値演算式を計算して得られた数値演算結果をメッセージ変更情報とする、
     ことを特徴とする請求項1に記載の数値制御装置。
  9.  前記基本メッセージに数値演算指示識別子が付加されている場合、
     前記派生メッセージ生成部は、前記基本メッセージ内の数値演算式を計算して得られた数値演算結果を用いて派生メッセージを生成する、
     ことを特徴とする請求項1に記載の数値制御装置。
  10.  前記基本メッセージにメッセージ通知形式情報識別子が付加されている場合、
     前記派生メッセージ生成部は、前記メッセージ通知形式情報識別子に基づいて、前記メッセージ通知装置が前記派生メッセージを通知するときの形式を変更する、
     ことを特徴とする請求項1に記載の数値制御装置。
  11.  複数のメッセージ通知装置と接続している場合に、
     前記派生メッセージ生成部は、前記基本メッセージにメッセージ通知装置選択情報識別子が付加されているときは、当該メッセージ通知装置選択情報識別子に基づいて、前記派生メッセージの出力先となるメッセージ通知装置を切り替え、前記基本メッセージに前記メッセージ通知装置選択情報識別子が付加されていないときは、前記派生メッセージの種類に応じて出力先となるメッセージ通知装置を切り替える、
     ことを特徴とする請求項1に記載の数値制御装置。
PCT/JP2012/063618 2012-05-28 2012-05-28 数値制御装置 WO2013179367A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/JP2012/063618 WO2013179367A1 (ja) 2012-05-28 2012-05-28 数値制御装置
TW102111650A TW201411305A (zh) 2012-05-28 2013-04-01 數値控制裝置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2012/063618 WO2013179367A1 (ja) 2012-05-28 2012-05-28 数値制御装置

Publications (1)

Publication Number Publication Date
WO2013179367A1 true WO2013179367A1 (ja) 2013-12-05

Family

ID=49672622

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/063618 WO2013179367A1 (ja) 2012-05-28 2012-05-28 数値制御装置

Country Status (2)

Country Link
TW (1) TW201411305A (ja)
WO (1) WO2013179367A1 (ja)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0242510A (ja) * 1988-08-03 1990-02-13 Fanuc Ltd 加工情報表示方式
JPH05224730A (ja) * 1992-02-10 1993-09-03 Fanuc Ltd Nc表示装置
JPH0830314A (ja) * 1994-07-15 1996-02-02 Fanuc Ltd 数値制御装置
JPH10293748A (ja) * 1997-03-28 1998-11-04 Sun Microsyst Inc メッセージ追跡の方法およびシステム
JP2004302797A (ja) * 2003-03-31 2004-10-28 Toshiba Corp 文書作成支援装置およびメッセージ作成支援装置および文書作成支援方法およびメッセージ作成支援方法
JP2009223354A (ja) * 2008-03-13 2009-10-01 Fanuc Ltd アラーム情報を表示する機能を有する数値制御装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0242510A (ja) * 1988-08-03 1990-02-13 Fanuc Ltd 加工情報表示方式
JPH05224730A (ja) * 1992-02-10 1993-09-03 Fanuc Ltd Nc表示装置
JPH0830314A (ja) * 1994-07-15 1996-02-02 Fanuc Ltd 数値制御装置
JPH10293748A (ja) * 1997-03-28 1998-11-04 Sun Microsyst Inc メッセージ追跡の方法およびシステム
JP2004302797A (ja) * 2003-03-31 2004-10-28 Toshiba Corp 文書作成支援装置およびメッセージ作成支援装置および文書作成支援方法およびメッセージ作成支援方法
JP2009223354A (ja) * 2008-03-13 2009-10-01 Fanuc Ltd アラーム情報を表示する機能を有する数値制御装置

Also Published As

Publication number Publication date
TW201411305A (zh) 2014-03-16

Similar Documents

Publication Publication Date Title
JP5612677B2 (ja) 加工ユニットの動作を表示し、ユーザ入力から処理データを生成する仮想工作機械
JP5905159B2 (ja) 数値制御プログラム編集装置、数値制御プログラム編集方法およびプログラム
CN106843141B (zh) 数值控制装置
JP5936781B1 (ja) 数値制御装置、nc加工装置、nc加工方法およびシミュレーション装置
JPWO2014155723A1 (ja) 数値制御装置
JP5960189B2 (ja) 加工サイクル生成機能を有する数値制御装置およびプログラム編集方法
JP6185408B2 (ja) Ncプログラム生成、編集装置
JP6479275B1 (ja) 加工プログラム修正装置および加工プログラム修正方法
JP2015231640A (ja) ロボット動作経路チェック装置、ロボットシステム、ロボット動作経路チェック方法、プログラム及び記録媒体
JPWO2014136185A1 (ja) プログラム開発支援装置およびその方法
JP2021043771A (ja) 情報処理装置
JP2008142788A (ja) 動作プログラム作成支援方法および動作プログラム作成装置。
WO2013179367A1 (ja) 数値制御装置
JP2015079491A (ja) 加工データ演算装置および加工データ演算プログラム
JP2019159478A (ja) 制御装置、データ作成装置、制御方法及び制御プログラム
JP6611227B2 (ja) Nc機械制御システム
JP2008129922A (ja) 制御プログラム生成方法及び制御プログラム生成装置
US20150370547A1 (en) Program editing device, program editing method and program editing program
JP2000039909A (ja) 数値制御情報作成装置
JP6219866B2 (ja) 表示機能付き数値制御装置および表示プログラム
TWI709908B (zh) 在plc編輯環境中與其他軟體協作之方法、程式產品、電腦可讀取媒體
JP5962057B2 (ja) 3次元形状作成支援プログラム,方法及び装置
JP2020098428A (ja) 数値制御装置
JP6557036B2 (ja) シミュレーション装置
JPH09258808A (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: 12877908

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12877908

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP