Numerical control device
By introducing a key input buffer and a function abbreviation storage unit into the numerical control device, efficient input and conversion of function abbreviations are achieved, solving the problems of G-code being difficult to remember and cumbersome to input, and improving program editing efficiency and cross-manufacturer compatibility.
Patent Information
- Application Number
- CN202011239223.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-11-11
- Filing Date
- 2020-11-09
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2040-11-09
AI Technical Summary
In numerical control devices, G-code is difficult to remember and cumbersome to input, which increases program development time. Furthermore, different manufacturers have different instruction code specifications, resulting in low development efficiency.
The system uses a key input buffer to store characters, and a function abbreviation storage unit to store the correspondence between function abbreviations and program codes. Through an input processing unit, a function abbreviation candidate display unit, a function abbreviation string supplementation unit, and a function abbreviation code conversion unit, efficient input and conversion of function abbreviations are achieved.
It enables efficient input of function abbreviations, simplifies program editing, improves development efficiency, supports the conversion of instruction codes from different manufacturers, and reduces the input burden.
Smart Images

Figure CN112783093B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to a numerical control device. BACKGROUND
[0002] G codes used in a numerical control device are expressed in the same form of address + value, and thus are difficult for end users of the numerical control device to remember, and are burdensome. In addition, in the case where the desired G code is not known, the program making time increases, and thus there is a demand for an intuitive instruction method.
[0003] In this regard, in the technology related to program editing of a machine tool, a technology is known in which, when the first character of an instruction code is input, a list of candidates of instruction codes that match the character and an explanation are displayed, and the instruction code is inserted into the program by selecting from there (for example, refer to Patent Literature 1).
[0004] In addition, a technology is known in which, by making the output information of different kinds of devices interchangeable, and making the input and output information of different kinds of software design tools interchangeable, efficient development is possible (for example, refer to Patent Literature 2).
[0005] Further, a technology is known in which, even in the case where the specifications of instruction codes differ among manufacturers, by using a conversion table, it is possible to convert to one's own instruction code, and to generate each machining program from a single machining program that controls a plurality of CNCs of different specifications respectively (for example, refer to Patent Literature 3).
[0006] Patent Literature 1: Japanese Patent Application Publication No. 2015-207147
[0007] Patent Literature 2: Japanese Patent Application Publication No. 2015-179481
[0008] Patent Literature 3: Japanese Patent Application Publication No. H10-320027 SUMMARY
[0009] In the field of numerical control devices, in the conventional instruction method, it is necessary to input the function abbreviation without a key, and in the case where the function abbreviation is longer than the G code, there is a problem that the input is troublesome.
[0010] Therefore, it is desirable to execute a numerical control device that can efficiently and easily input the function abbreviation corresponding to the G code or the like when editing the machining program composed of the G code or the like.
[0011] An object of the present application is to provide a numerical control device that can efficiently and easily input a function abbreviation.
[0012] One embodiment of the present disclosure is a numerical control device of a machine tool including a control section and a storage section, the storage section including a key input buffer storage section that stores characters of a key input and a function abbreviation storage section that stores function abbreviations and a correspondence relationship between the function abbreviations and program codes, the control section including an input processing section that stores the characters of the key input in the key input buffer storage section, a function abbreviation candidate display section that searches for a function abbreviation candidate in accordance with a number of characters that match the function abbreviations stored in the function abbreviation storage section among the characters stored in the key input buffer storage section, a function abbreviation string supplement section that, when the characters of the key input are a part of the function abbreviation candidate and the function abbreviation candidate is one, supplements characters that have not been input in the function abbreviation candidate and returns to the key input buffer storage section, and a function abbreviation code conversion section that converts a string representing the function abbreviation candidate returned to the key input buffer storage section into a program code on the basis of the correspondence relationship.
[0013] According to this embodiment, a function abbreviation can be efficiently and easily input. BRIEF DESCRIPTION OF DRAWINGS
[0014] Figure 1 FIG. 1 is a block diagram of a numerical control system according to one embodiment.
[0015] Figure 2 FIG. 2 is a functional block diagram of a numerical control device according to one embodiment.
[0016] Figure 3 FIG. 3 is a table showing an example of a correspondence relationship between program codes and function abbreviations stored in a function abbreviation storage section of the numerical control device according to one embodiment.
[0017] Figure 4A FIG. 4 is an example of a display of a key input buffer and a prediction section in a display section of the numerical control device according to one embodiment.
[0018] Figure 4B FIG. 5 is an example of a supplement of a string of the key input buffer displayed in the display section of the numerical control device according to one embodiment.
[0019] Figure 4C FIG. 6 is an example of a conversion when a function abbreviation of the numerical control device according to one embodiment is registered in a program storage section.
[0020] Figure 4D FIG. 7 is an example of a display of a program displayed in the display section of the numerical control device according to one embodiment.
[0021] Figure 5 FIG. 8 is a flowchart showing an operation of the numerical control device according to one embodiment.
[0022] Figure 6 is a flowchart showing the operation of the numerical control device of one embodiment.
[0023] Figure 7 is a flowchart showing the operation of the numerical control device of one embodiment. DETAILED DESCRIPTION
[0024] Hereinafter, the Figures 1-7 An embodiment of the present application will be described.
[0025] (1. Structure of the embodiment)
[0026] Figure 1 is a whole structure diagram of the numerical control system 1 of the present embodiment. The numerical control system 1 is provided with a numerical control device 10 and a machine tool 20. The numerical control device 10 and the machine tool 20 are in a one-to-one combination and are connected in a communicable manner. Further, the numerical control device 10 and the machine tool 20 can be directly connected via a connection interface, or can be connected via a network such as a LAN (Local Area Network).
[0027] The numerical control device 10 is a device for causing the machine tool 20 to perform a predetermined operation by controlling the machine tool 20. For example, the numerical control device 10 controls the spindle and the drive shaft of the machine tool 20 in accordance with a machining program.
[0028] The machine tool 20 is a machine tool that performs a predetermined machining such as cutting of a workpiece such as a member based on an operation instruction output from the numerical control device 10.
[0029] Figure 2 is a functional block diagram of the numerical control device 10. The numerical control device 10 is provided with a storage section 100, a control section 150, and a display section 170.
[0030] The storage section 100 is provided with a key-in buffer storage section 101, a function abbreviation storage section 102, and a program storage section 103.
[0031] The key-in buffer storage section 101 stores characters input to a key-in buffer displayed in the display section 170 described later.
[0032] The function abbreviation storage section 102 stores function abbreviations and the correspondence between the function abbreviations and program codes. Figure 3 is an example of the correspondence between the program codes stored in the function abbreviation storage section 102 and the function abbreviations. As shown in Figure 3As shown, the program uses codes to correspond to function abbreviations, but this correspondence is not limited to a one-to-one relationship. For example, when "POS" is entered into the key input buffer as a function abbreviation and "RAPID" is entered, it is converted to the G code "G00" respectively.
[0033] In addition, Figure 3 In the example, G code is shown as program code, but it is not limited to this; for example, it could also be M code or other codes. Additionally, in Figure 3 The table lists the functions corresponding to each G code and function abbreviation, as well as the English descriptions of the functions, but these items are not mandatory.
[0034] In addition, the storage unit 102 (functionally abbreviated as storage section 102) Figure 3 In addition to the correspondence between G codes and function abbreviations shown, it can also store the correspondence between other company instructions and function abbreviations.
[0035] The program storage unit 103 stores the program after the function abbreviation has been converted into code by the function abbreviation code conversion unit 154 (described later).
[0036] The control unit 150 includes a CPU, ROM, RAM, CMOS memory, etc., which are configured to communicate with each other via a bus, as is known to those skilled in the art.
[0037] The CPU is the processor that controls the numerical control device 10 as a whole. The CPU reads the system program and application program stored in the ROM via the bus, and controls the numerical control device 10 according to the system program and application program, thereby... Figure 2 As shown, the control unit 150 is configured to perform the functions of the input processing unit 151, the function abbreviation candidate display unit 152, the function abbreviation string supplementation unit 153, the function abbreviation code conversion unit 154, the code function abbreviation conversion unit 155, the program registration unit 156, the display preprocessing display unit 157, and the program display unit 158.
[0038] The input processing unit 151 stores the characters that are key-inputted into the key input buffer displayed on the display unit 170 (described later) in the key input buffer storage unit 101.
[0039] The function abbreviation candidate display unit 152 searches for function abbreviation candidates from the data stored in the function abbreviation storage unit 102 based on the number of characters that match the function abbreviations stored in the key input buffer storage unit 101 and the function abbreviations stored in the function abbreviation storage unit 102, and displays them on the display unit 170 described later.
[0040] Figure 4A This is an example of a display unit 152 that indicates a function abbreviation. For example...Figure 4A As shown, when "¥C" is input to the key input buffer, based on the number of characters coinciding with "C", the function abbreviation candidates stored in the function abbreviation storage section 102 are searched, and in the display section 170, the prediction section located near the key input buffer is displayed. In Figure 4A In the example shown, the three function abbreviation candidates of "¥CUT¥", "¥CIRCLE¥", and "¥CCIRCLE¥" are displayed in the prediction section.
[0041] The function abbreviation string supplement section 153 supplements the string of characters for which key input has not been performed in the function abbreviation candidate in the case where the character input to the key input buffer is a part of the function abbreviation candidate, and the function abbreviation candidate searched by the function abbreviation candidate display section 152 is one, and returns to the key input buffer storage section 101. In more detail, the function abbreviation candidate word is passed from the function abbreviation candidate display section 152 to the function abbreviation string supplement section 153, and it is determined whether or not the string is supplemented for the word. In the case where the function abbreviation candidate is one, in the case where the final user of the numerical control device 10 presses the supplement key, and further in the case where the function abbreviation is not completed, the string is supplemented.
[0042] Figure 4B An example of the supplement performed by the function abbreviation string supplement section 153 is shown. As shown, when "¥CI" is input to the key input buffer, based on the number of characters coinciding with "CI", "CIRCLE" is displayed as the only function abbreviation candidate. In this way, in the case where the character for which key input has not been performed in the function abbreviation is "RCLE¥", by pressing the supplement key, "RCLE¥" is automatically added to the key input buffer and the key input buffer storage section 101, and thus the supplement processing is performed. Figure 4B
[0043] In addition, hereinafter, the function abbreviation candidate display section 152 and the function abbreviation string supplement section 153 are collectively referred to as the "function abbreviation candidate search section".
[0044] The function abbreviation code conversion section 154 converts the string representing the function abbreviation candidate returned to the key input buffer storage section 101 into a program code using the correspondence between the program code stored in the function abbreviation storage section 102 and the function abbreviation candidate, on the basis of the supplement of the string by the function abbreviation string supplement section 153. In the present embodiment, as an example, if the INPUT key is pressed, the function abbreviation code conversion section 154 determines whether or not the string input to the key input buffer storage section 101 is a function abbreviation word, and if it is a function abbreviation word, the function abbreviation is converted into a program code.
[0045] Figure 4C This represents a conversion example performed by the function abbreviation code conversion unit 154. When the key input buffer displays "¥CIRCLE¥", pressing the INPUT key converts it to the G code "G02".
[0046] The code-function abbreviation conversion unit 155 selects whether to use program code or function abbreviation to display the program. When displaying the program using function abbreviation, it uses the correspondence between program code and function abbreviation stored in function abbreviation storage unit 102 to convert the program code into function abbreviation.
[0047] The program registration unit 156 registers programs whose function abbreviations have been converted into codes by the function abbreviation code conversion unit 154 in the program storage unit 103.
[0048] The display preprocessing display unit 157 selects a word to be displayed on the display unit 170 from the words contained in the program registered in the program storage unit 103 or the words entered.
[0049] More specifically, the display preprocessing display unit 157 directly selects the parts of the program other than the program code as words to be displayed on the display unit 170. If the program code is not converted into a function abbreviation, the program code is selected as words to be displayed on the display unit 170. If the program code is converted into a function abbreviation by the code function abbreviation conversion unit 155, the converted function abbreviation is selected as words to be displayed on the display unit 170.
[0050] The program display unit 158 displays the program on the display unit 170, which will be described later, based on the word selected by the display preprocessing display unit 157.
[0051] Figure 4D This illustrates an example of switching between the preprocessing display unit 157 and the program display unit 158. In the display unit 170, the program is displayed in a state where the program code is converted into a function abbreviation by pressing the "Abbreviation On (ON)" button, and in a state where the function abbreviation is converted into program code by pressing the "Abbreviation Off (OFF)" button.
[0052] exist Figure 4D In the example shown, pressing the "Abbreviation On" key displays only the G-code positions in programs using G-code, where they are converted to function abbreviations; the display of other strings remains unchanged. Similarly, pressing the "Abbreviation Off" key displays only the function abbreviation positions in programs using function abbreviations, where they are converted to G-codes; the display of other strings remains unchanged.
[0053] The display section 170 is a device that displays the key input buffer, the function abbreviation candidates, the program, and the like, and can be constituted by, for example, a CRT (Cathode Ray Tube), an LCD (Liquid Crystal Display), or the like. In this case, an input device such as a keyboard, a mouse, a controller, various buttons such as a switch button, or the like that can operate the display position of the display section 170 can be provided separately from the display section 170.
[0054] (2. Action of the Embodiment)
[0055] Figures 5-7 is a flowchart showing the action of the numerical control device 10. More specifically, Figure 5 is a flowchart when the function abbreviation is displayed / supplemented. Figure 6 is a flowchart when the program is registered. Figure 7 is a flowchart when the display of the program is switched.
[0056] Referring to Figure 5 When the function abbreviation is displayed / supplemented, in step S1, the end user of the numerical control device 10 keys in a character string to the key input buffer.
[0057] In step S2, when the character string keyed in to the key input buffer is attached with the symbol of "¥" (S2: YES), the processing is transferred to step S3. When the character string is not attached with the symbol of "¥" (S2: NO), the processing is transferred to step S8.
[0058] In step S3, the function abbreviation candidate search section searches for the function abbreviation candidate in accordance with the number of characters that match the object word keyed in to the key input buffer.
[0059] In step S4, the function abbreviation candidate display section 152 displays the function abbreviation candidate in the prediction section.
[0060] In step S5, when the function abbreviation candidate displayed on the prediction section is one (S5: YES), the processing is transferred to step S6. In other cases (S5: NO), the processing is transferred to step S8.
[0061] In step S6, when the end user of the numerical control device 10 has pressed the supplement key (S6: YES), the processing is transferred to step S7. When the end user has not pressed the supplement key (S6: NO), the processing is transferred to step S8.
[0062] In step S7, the function abbreviation character supplement section 153 supplements all the characters of the function abbreviation to the key input buffer.
[0063] In step S8, the input processing section 151 stores the character displayed on the key input buffer in the key input buffer storage section 101 as input processing.
[0064] Referring to Figure 6 At the time of registration of the program, in step S11, in a case where the end user of the numerical control device 10 presses the INPUT key (S11: YES), the processing is transferred to step S12. In a case where the end user of the numerical control device 10 does not press the INPUT key (S11: NO), the processing is transferred to step S14.
[0065] In step S12, the control section 150 acquires the string of the key input buffer.
[0066] In step S13, the function abbreviation code conversion section 154 converts the function abbreviation or the other company instruction into the program code.
[0067] In step S14, the program registration section 156 registers the program in which the function abbreviation or the other company instruction is converted into the program code in the program storage section 103.
[0068] Referring to Figure 7 At the time of switching the display of the program, in step S21, the code function abbreviation conversion section 155 acquires the program code from the program storage section 103.
[0069] In step S22, in a case where the function abbreviation or the other company instruction is displayed (S22: YES), the processing is transferred to step S23. In a case other than this (S22: NO), the processing is transferred to step S24.
[0070] In step S23, the code function abbreviation conversion section 155 converts the program code into the function abbreviation or the other company instruction.
[0071] In step S24, the program display section 158 displays the program in which the program code is converted into the function abbreviation or the other company instruction on the display section 170.
[0072] (3. Effects of the Embodiments)
[0073] According to the numerical control device 10 of the present embodiment, by confirming the predicted candidate of the function abbreviation, it is possible to perform the program editing on the basis of confirmation of the desired function.
[0074] Further, according to the numerical control device 10 of the present embodiment, even in a case of a long function abbreviation, it is possible to input without trouble.
[0075] In addition, according to the numerical control device 10 of the present embodiment, the function can be intuitively grasped by displaying the program code such as the G code and the M code in the function abbreviation.
[0076] In addition, according to the numerical control device 10 of the present embodiment, the function can be intuitively grasped by displaying the program code such as the G code and the M code in the function abbreviation.
[0077] In addition, according to the numerical control device 10 of the present embodiment, the function can be intuitively grasped by displaying the program code such as the G code and the M code in the function abbreviation.
[0078] By these effects, the production of the machining program becomes easy for the end user of the numerical control device 10.
[0079] The above-described embodiment is a preferred embodiment of the present application, but the scope of the present application is not limited to the above-described embodiment, and the present application can be implemented in various modified ways without departing from the spirit of the present application.
[0080] In the above-described embodiment, the function abbreviation string supplementing section 153 supplements the characters in the function abbreviation candidate that have not been subjected to the key input to the key input buffer storage section 101, and after the supplement, the function abbreviation code converting section 154 converts the string indicating the function abbreviation to the program code using the correspondence between the program code stored in the function abbreviation storage section 102 and the function abbreviation candidate, but it is not limited thereto.
[0081] For example, the function abbreviation code converting section 154 can also automatically supplement the string in the function abbreviation candidate that has not been subjected to the key input and convert the string indicating the function abbreviation candidate to the program code in a case where the function abbreviation candidate is reduced to one as the number of characters stored in the key input buffer storage section 101 increases.
[0082] Symbol Explanation
[0083] 1 Numerical control system
[0084] 10 Numerical control device
[0085] 20 Machine tool
[0086] 100 Storage section
[0087] 101 Key input buffer storage section
[0088] 102 Function abbreviation storage section
[0089] 103 Program storage section
[0090] 150 control section
[0091] 151 input processing section
[0092] 152 function abbreviation candidate display section
[0093] 153 function abbreviation string supplement section
[0094] 154 function abbreviation code conversion section
[0095] 155 code function abbreviation conversion section
[0096] 156 program registration section
[0097] 157 display preprocessing display section
[0098] 158 program display section
[0099] 170 display section
Claims
1. A numerical control device of a machine tool, characterized by comprising: a control section and a storage section, the storage section includes: a key input buffer storage section that stores characters that constitute a function abbreviation as an abbreviation of a function that constitutes a code for a program; and a function abbreviation storage section that stores the function abbreviation and a correspondence relation between the function abbreviation and the code for a program, the control section includes: an input processing section that stores characters that constitute the function abbreviation of the key input in the key input buffer storage section; a function abbreviation candidate display section that searches for a function abbreviation candidate in accordance with the number of characters that constitute the function abbreviation stored in the key input buffer storage section and that coincide with the function abbreviation stored in the function abbreviation storage section; a function abbreviation string supplement section that supplements characters that have not been input in the function abbreviation candidate and returns to the key input buffer storage section in a case where the characters of the key input are a part of the function abbreviation candidate and the function abbreviation candidate is one; and a function abbreviation code conversion section that converts a string that represents the function abbreviation candidate returned to the key input buffer storage section into a code for a program on the basis of the correspondence relation on the basis of the string that represents the function abbreviation word stored in the key input buffer storage section or the supplement.
2. The numerical control device according to claim 1, characterized in that the function abbreviation storage section stores a correspondence relation between a function abbreviation of another company and the function abbreviation.
3. A numerical control device of a machine tool, characterized by comprising: a control section and a storage section, the storage section includes: a program storage section that stores a program recorded by a code for a program; and a function abbreviation storage section that stores a function abbreviation that is an abbreviation of a function of the code for a program and a correspondence relation between the function abbreviation and the code for a program, the control section includes: a code function abbreviation conversion section that selects which one of the code for a program and the function abbreviation to use to display the program recorded by the code for a program, and, in a case where the function abbreviation is used to display, converts the code for a program in the program into the function abbreviation on the basis of the correspondence relation; a display preprocessing display section that selects, in the program recorded by the code for a program, a character other than the code for a program to be directly displayed on a display device, selects the code for a program to be displayed on the display device in a case where the code for a program is not converted, and selects a converted function abbreviation to be displayed on the display device in a case where the code for a program is converted into the function abbreviation by the code function abbreviation conversion section; and a program display section that displays a character selected by the display preprocessing display section on the display device.
Citation Information
Patent Citations
Operation design device and operation design program
JP2015179481A
Numerical controller
JP1995302107A
Numerical controller
JP1998320027A
Sentence processor
JP1999338857A
Machine tool, program editing method, and control program
JP2015207147A