Numerical control device
11372393 · 2022-06-28
Assignee
Inventors
Cpc classification
G05B19/408
PHYSICS
International classification
Abstract
A numerical control device for a machine tool including a key-in buffer storage unit storing a key-input character, a function abbreviation storage unit storing a function abbreviation and a correspondence relationship between the function abbreviation and a program code, a function abbreviation candidate display unit retrieving a function abbreviation candidate from the number of characters matched between a character and the function abbreviation, a function abbreviation character string complementing unit complementing a character before key-input of the function abbreviation candidate when the key-input character is a part of the function abbreviation candidate and the number of the function abbreviation candidates is one and returning the complemented function abbreviation candidate to the key-in buffer storage unit, and a function abbreviation-code conversion unit converting a character string indicating the function abbreviation candidate returned to the key-in buffer storage unit after the complement into a program code based on the correspondence relationship.
Claims
1. A numerical control device for machine tool comprising: a control unit; and a storage unit, wherein the storage unit includes a key-in buffer storage unit storing a key-input character, and a function abbreviation storage unit storing a function abbreviation and a correspondence relationship between the function abbreviation and a program code, and the control unit includes an input processing unit storing the key-input character in the key-in buffer storage unit, a function abbreviation candidate display unit retrieving a function abbreviation candidate from a number of characters matched between a character stored in the key-in buffer storage unit and the function abbreviation stored in the function abbreviation storage unit, a function abbreviation character string complementing unit complementing a character before key-input of the function abbreviation candidate when the key-input character is a part of the function abbreviation candidate and a number of the function abbreviation candidates is one and returning the complemented function abbreviation candidate to the key-in buffer storage unit, and a function abbreviation-code conversion unit converting a character string indicating the function abbreviation candidate returned to the key-in buffer storage unit after the complement into a program code based on the correspondence relationship.
2. The numerical control device according to claim 1, wherein the function abbreviation storage unit stores a correspondence relationship between a command of another manufacturer and a function abbreviation.
3. A numerical control device for a machine tool comprising: a control unit; and a storage unit, wherein the storage unit includes a program storage unit storing a program, and a function abbreviation storage unit storing a function abbreviation and a correspondence relationship between the function abbreviation and a program code, and the control unit includes a code-function abbreviation conversion unit selecting whether the program is displayed using any of the program code and the function abbreviation, and then, when the program is displayed using the function abbreviation, converting the program code in the program into the function abbreviation based on the correspondence relationship, a display preprocessing display unit selecting a part other than the program code in the program as a word to be displayed as it is on a display device and, when the program code is not converted, selecting the program code as the word to be displayed on the display device and, when the program code is converted into the function abbreviation, selecting the function abbreviation after conversion as the word to be displayed on the display device, and a program display unit displaying the word selected by the display preprocessing display unit on the display device.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DETAILED DESCRIPTION OF THE INVENTION
(11) Hereinafter, an embodiment of the present invention is described by referring to
1 Configuration of Embodiment
(12)
(13) The numerical control device 10 is a device for controlling the machine tool 20 to thereby cause the machine tool 20 to perform a predetermined operation. For example, the numerical control device 10 controls a spindle and a drive shaft of the machine tool 20 according to a processing program.
(14) The machine tool 20 is a machine tool performing predetermined processing, such as machining, to workpieces, such as components, based on an operation command output by the numerical control device 10.
(15)
(16) The storage unit 100 includes a key-in buffer storage unit 101, a function abbreviation storage unit 102, and a program storage unit 103.
(17) The key-in buffer storage unit 101 stores a character input into a key-in buffer displayed on the display unit 170 described later.
(18) The function abbreviation storage unit 102 stores function abbreviations and a correspondence relationship between the function abbreviations and program codes.
(19) Although the G codes are illustrated as the program codes in the example of
(20) Further, the function abbreviation storage unit 102 may also store, in addition to the correspondence relationship between the G codes and the function abbreviations as illustrated in
(21) The program storage unit 103 stores a program after the function abbreviations are converted into codes by a function abbreviation-code conversion unit 154 described later.
(22) The control unit 150 has a CPU, a ROM, a RAM, a CMOS memory, and the like, which are communicatively configured to each other through a bus and are known to a person skilled in the art.
(23) The CPU is a processor which entirely controls the numerical control device 10. The CPU is configured to read a system program and an application program stored in the ROM through a bus to control the entire numerical control device 10 according to the system program and the application program to thereby cause the control unit 150 to realize functions of an input processing unit 151, a function abbreviation candidate display unit 152, a function abbreviation character string complementing unit 153, a function abbreviation-code conversion unit 154, a code-function abbreviation conversion unit 155, a program registration unit 156, a display preprocessing display unit 157, and a program display unit 158 as illustrated in
(24) The input processing unit 151 stores a character key-input into the key-in buffer displayed on the display unit 170 described later in the key-in buffer storage unit 101.
(25) The function abbreviation candidate display unit 152 retrieves a function abbreviation candidate from data stored in the function abbreviation storage unit 102 based on the number of characters matched between the character stored in the key-in buffer storage unit 101 and the function abbreviations stored in the function abbreviation storage unit 102, and then displays the function abbreviation candidate on the display unit 170 described later.
(26)
(27) When the character key-input into the key-in buffer is a part of the function abbreviation candidate and the number of the function abbreviation candidates retrieved by the function abbreviation candidate display unit 152 is one, the function abbreviation character string complementing unit 153 complements a character string before key-input of the function abbreviation candidate and returns the complemented character string to the key-in buffer storage unit 101. In more detail, a function abbreviation candidate word is passed from the function abbreviation candidate display unit 152 to the function abbreviation character string complementing unit 153, and then the function abbreviation character string complementing unit 153 determines whether a character string is complemented to the word. When the number of the function abbreviation candidates is one, a complement key is pressed by an end user of the numerical control device 10, so that a character string is complemented when the function abbreviation is incomplete.
(28)
(29) Hereinafter, the function abbreviation candidate display unit 152 and the function abbreviation character string complementing unit 153 are also collectively referred to as a “function abbreviation candidate retrieval unit”.
(30) After the character string is complemented by the function abbreviation character string complementing unit 153, the function abbreviation-code conversion unit 154 converts the character string illustrating the function abbreviation candidate returned to the key-in buffer storage unit 101 into a program code using the correspondence relationship between the program codes and the function abbreviation candidates stored in the function abbreviation storage unit 102. In this embodiment, as an example, when an INPUT key is pressed, the function abbreviation-code conversion unit 154 determines whether the character string input into the key-in buffer storage unit 101 is a function abbreviation word, and then, when the character string is the function abbreviation word, converts the function abbreviation into a program code.
(31)
(32) The code-function abbreviation conversion unit 155 selects whether a program is displayed using any of the program codes and the function abbreviations, and then, when the program is displayed using the function abbreviations, converts the program codes into the function abbreviations using the correspondence relationship between the program codes and the function abbreviations stored in the function abbreviation storage unit 102.
(33) The program registration unit 156 registers the program in which the function abbreviations are converted into the codes by the function abbreviation-code conversion unit 154 in the program storage unit 103.
(34) The display preprocessing display unit 157 selects a word to be displayed on the display unit 170 from a word contained in the program registered in the program storage unit 103 or a word to be input. In more detail, the display preprocessing display unit 157 selects a part other than the program code in the program as a word to be displayed as it is on the display unit 170 and, when the program code is not converted into the function abbreviation, selects the program code as the word to be displayed on the display unit 170 and, when the program code is converted into the function abbreviation by the code-function abbreviation conversion unit 155, selects the function abbreviation after conversion as the word to be displayed on the display unit 170.
(35) The program display unit 158 displays the program on the display unit 170 described later based on the word selected by the display preprocessing display unit 157.
(36)
(37) In the example illustrated in
(38) The display unit 170 is a device displaying the key-in buffer, the function abbreviation candidate, the program, and the like and may contain a CRT (Cathode Ray Tube), an LCD (Liquid Crystal Display), or the like, for example. In that case, input devices, such as a keyboard, a mouse, a controller, and various buttons, such as a switch button, for example, operable to the display position of the display unit 170 may be provided separately from the display unit 170.
2 Operation of Embodiment
(39)
(40) Referring to
(41) In Step S2, when the sign of “¥” is attached to the character string key-input into the key-in buffer (S2: YES), the processing shifts to Step S3. When the sign of “¥” is not attached (S2: NO), the processing shifts to Step S8.
(42) In Step S3, the function abbreviation candidate retrieval unit retrieves a function abbreviation candidate from the number of characters matched between the function abbreviation and a target word key-input into the key-in buffer.
(43) In Step S4, the function abbreviation candidate display unit 152 displays the function abbreviation candidate on a prediction unit.
(44) In Step S5, when the number of the function abbreviation candidates displayed on the prediction unit is one (S5: YES), the processing shifts to Step S6. Otherwise (S5: NO), the processing shifts to Step S8.
(45) In Step S6, when the end user of the numerical control device 10 presses the complement key (S6: YES), the processing shifts to Step S7. When the end user does not press the complement key (S6: NO), the processing shifts to Step S8.
(46) In Step S7, the function abbreviation character string complementing unit 153 complements all characters of the function abbreviation in the key-in buffer.
(47) In Step S8, the input processing unit 151 stores the characters displayed on the key-in buffer in the key-in buffer storage unit 101 as input processing.
(48) Referring to
(49) In Step S12, the control unit 150 acquires a character string in the key-in buffer.
(50) In Step S13, the function abbreviation-code conversion unit 154 converts function abbreviations or commands of other manufacturers into the program codes.
(51) In Step S14, the program registration unit 156 registers a program after the function abbreviations or the commands of other manufacturers are converted into the program codes in the program storage unit 103.
(52) Referring to
(53) In Step S22, when the function abbreviations or the commands of other manufacturers are displayed (S22: YES), the processing shifts to Step S23. Otherwise (S22: NO), the processing shifts to Step S24.
(54) In Step S23, the code-function abbreviation conversion unit 155 converts the program codes into the function abbreviations or the commands of other manufacturers.
(55) In Step S24, the program display unit 158 displays the program after the program codes are converted into the function abbreviations or the commands of other manufacturers on the display unit 170.
3 Effects Exhibited by Embodiment
(56) The numerical control device 10 of this embodiment enables editing of a program after it is confirmed whether the function is desired by confirming prediction candidates of the function abbreviations.
(57) Further, the numerical control device 10 of this embodiment enables input without time and effort even in a case of a long function abbreviation.
(58) Further, the numerical control device 10 of this embodiment enables intuitive grasp of functions by displaying the program codes, such as the G codes or the M codes, by the function abbreviations.
(59) Further, the numerical control device 10 of this embodiment also enables reverse conversion from the function abbreviations to the program code, such as the G codes or the M codes, and thus there is no impediment for an end user who is accustomed to the indication of the G codes or the M codes.
(60) Further, the numerical control device 10 of this embodiment enables the registration of a program after function abbreviations of other manufacturers are converted into the program codes, such as the G codes or the M codes.
(61) Due to these operational effects, an end user of the numerical control device 10 can easily create a processing program.
(62) Although the embodiment described above is a preferable embodiment of the present invention, the scope of the present invention is not limited to the embodiment described above. The embodiment can be implemented in variously altered forms without deviating from the gist of the present invention.
(63) In the embodiment described above, the function abbreviation character string complementing unit 153 complements a character before key-input of the function abbreviation candidate in the key-in buffer storage unit 101 and the function abbreviation-code conversion unit 154 converts the character string illustrating the function abbreviation into the program code after the complement using the correspondence relationship between the program codes and the function abbreviation candidates stored in the function abbreviation storage unit 102 but the present invention is not limited thereto.
(64) For example, when a function abbreviation candidate is narrowed down to one candidate with an increase in the number of characters stored in the key-in buffer storage unit 101, the function abbreviation-code conversion unit 154 may automatically complement a character string before key-input of the function abbreviation candidate and convert the character string illustrating the function abbreviation candidate into the program code.
EXPLANATION OF REFERENCE NUMERALS
(65) 1 numerical control system 10 numerical control device 20 machine tool 100 storage unit 101 key-in buffer storage unit 102 function abbreviation storage unit 103 program storage unit 150 control unit 151 input processing unit 152 function abbreviation candidate display unit 153 function abbreviation character string complementing unit 154 function abbreviation-code conversion unit 155 code-function abbreviation conversion unit 156 program registration unit 157 display preprocessing display unit 158 program display unit 170 display unit