CN115454260A - Character input method of numerical control system - Google Patents

Character input method of numerical control system Download PDF

Info

Publication number
CN115454260A
CN115454260A CN202211102012.6A CN202211102012A CN115454260A CN 115454260 A CN115454260 A CN 115454260A CN 202211102012 A CN202211102012 A CN 202211102012A CN 115454260 A CN115454260 A CN 115454260A
Authority
CN
China
Prior art keywords
character
key
numerical control
control system
definition
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202211102012.6A
Other languages
Chinese (zh)
Inventor
王维杰
张东卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Dafeng Cnc Technology Co ltd
Original Assignee
Nanjing Dafeng Cnc Technology Co ltd
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 Nanjing Dafeng Cnc Technology Co ltd filed Critical Nanjing Dafeng Cnc Technology Co ltd
Priority to CN202211102012.6A priority Critical patent/CN115454260A/en
Publication of CN115454260A publication Critical patent/CN115454260A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • 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/409Numerical 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 using manual data input [MDI] or by using control panel, e.g. controlling functions with the panel; characterised by control panel details or by setting parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Automation & Control Theory (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention relates to a character input method of a numerical control system, which comprises the following steps: when the key is pressed, judging the mode of pressing the key, and judging whether the key is clicked or pressed for a long time; and a second step of analysis: in a certain time, analyzing the number of the defined characters of the keys and the clicking condition to determine output characters; the third step shows that: a character and a definition corresponding to the character are displayed in an input area of a display device. The invention provides an efficient character input mode of a numerical control system, which achieves the purpose of switching characters by clicking keys for multiple times or pressing keys for a long time in a short time, outputs corresponding characters in the numerical control system, can quickly output double-definition or triple-definition characters and greatly improves the character output efficiency.

Description

Character input method of numerical control system
Technical Field
The invention relates to the technical field of numerical control systems, in particular to a character input method of a numerical control system.
Background
The operation panel of the numerical control machine is a tool for interaction between an operator and a numerical control machine (system), and mainly comprises a display device, an NC keyboard, an MCP, a status lamp, a handheld unit and the like. The key part is classified more, including 26 English letters, 10 numeric characters, mathematical operation symbols and other functional keys. In a limited space, in order to maintain the aesthetic appearance, cost and compact structure of the key layout of the system panel, besides the functional keys, a single key usually has the meaning of a plurality of characters.
At present, when a program is manually input or modified by a domestic and foreign numerical control system, when other characters corresponding to keys are required to be switched, two modes are mainly adopted: firstly, a character conversion key is required to be pressed to enter a character switching mode, and the character switching mode is switched out after characters are input; and secondly, pressing the corresponding key while pressing the character conversion key to obtain the corresponding switching character.
The existing character switching mode needs to use a character conversion key, is not beneficial to operation of a novice, often causes input errors of program codes due to forgetting to press the character conversion key or forgetting to recover a character conversion mode, especially needs to frequently switch the character conversion mode when a macro program is compiled, increases programming difficulty, has high code error rate, and shows obvious performance when only a single-hand program input can be carried out under some special conditions.
If the numerical control system is provided with an additional auxiliary input sub-panel, the user experience can be improved, but the manufacturing cost is increased, and the installation structure of the numerical control panel of the machine tool needs to be modified.
Disclosure of Invention
The invention aims to provide a character input method of a numerical control system, which achieves the purpose of switching characters by clicking a key for multiple times or pressing the key for a long time in a short time so as to solve the problems in the prior art.
In order to achieve the purpose, the technical scheme of the invention is as follows:
a character input method of a numerical control system comprises the following steps:
the first step of judgment: when the key is pressed, judging the mode of pressing the key, and judging whether the key is clicked or pressed for a long time;
and a second step of analysis: in a certain time, analyzing the number of the defined characters of the keys and the clicking condition to determine output characters;
the third step shows that: a character and a definition corresponding to the character are displayed in an input area of a display device.
In the above scheme, in the first step of judgment, the corresponding analysis logic is executed according to the manner of pressing the key in the judgment step.
In the above scheme, in the second step of analysis, if the key does not have multiple definitions, the unique character, that is, the first defined character, is directly output without judging the key pressing mode.
In the above scheme, in the second step of analysis, the key has a plurality of definitions, the key pressing mode is single-click, and if no key operation is performed within the specified character switching time, the first defined character is displayed.
In the above scheme, in the second step of analysis, the key has a plurality of definitions, and the key pressing mode is long pressing, the last defined character is directly displayed, if two definitions exist, the second defined character is displayed, and if three definitions exist, the third defined character is displayed.
In the scheme, in the second step of analysis, the key has a plurality of definitions, the key pressing mode is single click, and key operation is carried out within the specified character switching time; if the key is different from the previous key, directly outputting a first definition character; if the character switching time is the same as the first definition character, switching to a second definition character, and resetting the character switching time; if the key operation is not carried out or other keys are pressed within a certain time, displaying a second defined character; if the same key is pressed again, the first defined character is directly displayed.
In the above scheme, in the second step of analysis, when the display character is switched to the second definition character, the corresponding character switching time is reduced, and then timing is performed again.
In the above scheme, in the third step of displaying, when the current background is within the defined switching time, the corresponding character displays the background with the distinguishing features existing in the current background.
Compared with the prior art, the invention has the beneficial effects that: the invention provides an efficient character input mode of a numerical control system, which achieves the purpose of switching characters by clicking keys for multiple times or pressing keys for a long time in a short time, outputs corresponding characters in the numerical control system, can quickly output double-definition or triple-definition characters, greatly improves the character output efficiency, reduces the programming difficulty, improves the user experience and saves the manufacturing cost.
Drawings
The disclosure of the present invention is illustrated with reference to the accompanying drawings. It is to be understood that the drawings are designed solely for the purposes of illustration and not as a definition of the limits of the invention. In the drawings, like reference numerals are used to refer to like parts. Wherein:
FIG. 1 is a schematic diagram of a character input operation in accordance with the present invention;
FIG. 2 is a schematic diagram of another character input operation process in accordance with the present invention;
FIG. 3 is a schematic flow chart of the present invention;
FIG. 4 is a schematic view of a process for analyzing a single-click logic according to the present invention;
FIG. 5 is a schematic flow chart of the present invention when analyzing the long-pressed logic of the key.
The reference numbers in the figures: 10-simplified numerical control system operation panel; 12-a display device; 13-character switching status format; 14-key input area; 15-single definition character key; 16-double definition character keys; 17-three definition character keys.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement purposes and the effects of the invention easy to understand, the invention is further explained in detail with the attached drawings. These drawings are simplified schematic diagrams each illustrating only the basic structure of the present invention in a schematic manner, and thus show only the constitution related to the present invention.
According to the technical scheme of the invention, a person skilled in the art can put forth various alternative structural modes and implementation modes without changing the spirit of the invention. Therefore, the following detailed description and the accompanying drawings are merely illustrative of the technical aspects of the present invention, and should not be construed as all of the present invention or as limitations or limitations on the technical aspects of the present invention.
The technical solution of the present invention is further described in detail with reference to the accompanying drawings and embodiments.
Embodiment 1, as shown in fig. 3 to 5, a character input method of a numerical control system includes the following steps:
the first step is judgment: when a key is pressed, the manner of pressing the key is determined, and whether the key is clicked or pressed for a long time is determined. And executing corresponding analysis logic according to the key pressing mode in the judging step, wherein the analysis logic is divided into key clicking logic and key long pressing logic, the key clicking logic refers to fig. 4, and the key long pressing logic refers to fig. 5.
And a second step of analysis: and analyzing the number of the defined characters of the keys and the clicking condition within a certain time to determine the output characters.
If the key does not have a plurality of definitions, the unique character, namely the first definition character, is directly output without judging the pressing mode of the key.
The key has a plurality of definitions, the key pressing mode is single click, and the first defined character is displayed if the key operation is not carried out within the specified character switching time.
The key has a plurality of definitions, and the pressing mode of the key is long pressing, the last defined character is directly displayed, if two definitions exist, the second defined character is displayed, and if three definitions exist, the third defined character is displayed.
The key has a plurality of definitions, the key pressing mode is single click, and key operation is carried out within the specified character switching time; if the key is different from the previous key, directly outputting a first defined character; if the character is the same as the first definition character, switching to a second definition character, and resetting character switching time; if the key operation is not carried out or other keys are pressed within a certain time, displaying a second defined character; if the same key is pressed again, the first defined character is directly displayed.
When the display character is switched to the second definition character, the corresponding character switching time is shortened, and then the time is counted again, so that the character input efficiency is improved.
The third step shows that: a character and a definition corresponding to the character are displayed in an input area of a display device. When the current background is in the defined switching time, the corresponding character displays the background with the distinguishing characteristics with the current background, so that the operability is improved. For example, when the current background is white, and the character is switched, the background of the character is in a shadow mode, a diagonal mode, or a skip mode.
Embodiment 2, as shown in fig. 1 and 2, a character input method of a numerical control system, 10 is a simplified numerical control system operation panel, and includes a display device 12 and a key input area 14, wherein the key input area 14 is provided with a single-character-definition key 15, a double-character-definition key 16, and a three-character-definition key 17, the display device 12 displays a character switching state format 13 in a switching state, and the character switching state is one of the two, and is not limited to this format during implementation.
When the operator defines the character by pressing the single, the corresponding character is directly displayed or the function corresponding to the character is executed, and the character switching state is not entered.
If the operator presses a double-definition character, e.g. the key "O E ", a character" O "with a background of character switching status, as shown at 13, will appear in the display area and this status will last for a period of time beyond which the character will exit the character switching status. When in the character switching state, when pressing other character keys, the character is directly determined as the current display character, if the key is pressed again, the displayed character 'O' is switched to the character 'E', the character switching time is reset and the time is shortened, if the time is exceeded or other character keys are pressed, the character 'E' is directly displayed, and if the character key is pressed again, the character 'O' is directly displayed.
If the operator needs to input "X In the program, as shown in FIG. 2, the character "X" and the character ">" are in the same key, and the key "X" can be pressed three times by clicking the key "X" continuously ", output the character" X ", and click the key" X "twice consecutively ", output character" > ", no pause is needed during clicking, and no other keys are needed to be pressed, thus greatly improving the programming efficiency; if the program of 'X' needs to be input, the 'X' key needs to be clicked twice ", wait for the character switching state to disappear, and then click the key" X ", the corresponding program can be obtained because the character switching state time in the second character state is reduced and is not availableThe efficiency of the program's writing and transmission is reduced.
The character X is output by continuously clicking the three times of keys X, only one mode of quickly outputting the character X is adopted, and in the normal application, the character X can be directly output when the switching time is over or other keys are pressed.
The operator can directly input the last character of the multi-definition character by pressing the character key for a long time, such as the three-definition character key 17, and can display the second character of the double-definition key by pressing the key for a long time ("," directly display the character ",").
FIG. 3 is a flow chart of a character input method according to an embodiment of the invention. In step S1, a key on the numerical control system is pressed to input a character or execute a function. In the determination step S2, the manner in which the key is pressed in S1 is determined, and it is determined whether the key is pressed long or clicked. In the analyzing step S3, the content displayed on the display screen of the numerical control system is determined according to an efficient logic analyzing mode. For example, clicking three times in succession on the key "X ", determining to output character" X ", and clicking key" X "twice successively ", determine the output character" >; long-pressing the "(," key directly determines character ",". In the display step S4, the character determined to be output by S3 is displayed on the display screen of the numerical control system.
Wherein, fig. 4 is a schematic flow chart of the key click logic analysis of the present invention. S31, judging whether the key is a multi-definition character key, wherein double definitions and triple definitions are collectively called multi-definition characters, the above three definition characters are not considered, if the key is a single definition, directly executing an S41 program, displaying a first definition character, and if not, executing a step S32; s32, judging whether key related operation exists in the character definition switching time, if no related operation exists, executing S41 program, and displaying a first definition character, otherwise executing S33; s33, judging whether the key pressed in the previous step is the same as the key in the S1, if not, executing an S41 program and displaying a first defined character, otherwise, executing a step S34; s34, updating and resetting the character switching time, and then executing the step S35; s35, judging whether key-press related operation exists in the character definition switching time, if no, executing S42 program and displaying a second definition character, otherwise, executing S36; step S36 is to judge whether the pressed key in step S32 is the same as the key in step S1, if not, the step S42 is executed to display the second defined character, otherwise, the step S41 is executed to display the first defined character.
FIG. 5 is a schematic flow chart of the present invention during the analysis of the long-pressed logic of the key. Wherein, S31 judges the defined number of the keystroke characters, namely, defines the number of clicks. If the number is 1, executing step S41 to display the first defined character; if the number is 2, executing step S42 to display a second definition character; if the number is 3, go to step S43 to display the third definition character.
In summary, the present invention provides an efficient character input method for a numerical control system, which achieves the purpose of switching characters by repeatedly pressing keys in a short time or by pressing keys for a long time, outputs corresponding characters in the numerical control system, can quickly output double-definition or triple-definition characters, greatly improves character output efficiency, reduces programming difficulty, improves user experience, and saves manufacturing cost.
It should be understood that although the present description has been described in terms of various embodiments, not every embodiment includes only a single embodiment, and such description is for clarity purposes only, and those skilled in the art will recognize that the embodiments described herein may be combined as suitable to form other embodiments, as will be appreciated by those skilled in the art.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only examples of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (8)

1. A character input method of a numerical control system is characterized by comprising the following steps:
the first step of judgment: when the key is pressed, judging the mode of pressing the key, and judging whether the key is clicked or pressed for a long time;
and a second step of analysis: in a certain time, analyzing the number of the defined characters of the keys and the clicking condition to determine output characters;
the third step shows that: a character and a definition corresponding to the character are displayed in an input area of a display device.
2. The character input method of a numerical control system according to claim 1, characterized in that: in the first step of judgment, corresponding analysis logic is executed according to the mode of pressing the key in the judgment step.
3. The character input method of a numerical control system according to claim 1, characterized in that: in the second step of analysis, if the key does not have a plurality of definitions, the unique character, namely the first defined character, is directly output without judging the key pressing mode.
4. The character input method of a numerical control system according to claim 1, characterized in that: in the second step of analysis, the key has a plurality of definitions, the key pressing mode is single click, and the first defined character is displayed if the key operation is not performed within the specified character switching time.
5. The character input method of a numerical control system according to claim 1, characterized in that: in the second step of analysis, the key has multiple definitions, and the pressing mode of the key is long pressing, the last defined character is directly displayed, if two definitions exist, the second defined character is displayed, and if three definitions exist, the third defined character is displayed.
6. The character input method of a numerical control system according to claim 1, characterized in that: in the second step of analysis, the key has a plurality of definitions, the key pressing mode is single click, and key operation is carried out within the specified character switching time; if the key is different from the previous key, directly outputting a first definition character; if the character switching time is the same as the first definition character, switching to a second definition character, and resetting the character switching time; if the key operation is not carried out or other keys are pressed within a certain time, displaying a second defined character; if the same key is pressed again, the first defined character is directly displayed.
7. The character input method of a numerical control system according to claim 1, characterized in that: in the second analysis step, when the display character is switched to the second defined character, the corresponding character switching time is reduced and then re-timed.
8. The character input method of a numerical control system according to claim 1, characterized in that: in the third step of display, when the current background is within the defined switching time, the corresponding character displays the background with the distinguishing characteristics from the current background.
CN202211102012.6A 2022-09-09 2022-09-09 Character input method of numerical control system Pending CN115454260A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211102012.6A CN115454260A (en) 2022-09-09 2022-09-09 Character input method of numerical control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211102012.6A CN115454260A (en) 2022-09-09 2022-09-09 Character input method of numerical control system

Publications (1)

Publication Number Publication Date
CN115454260A true CN115454260A (en) 2022-12-09

Family

ID=84303024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211102012.6A Pending CN115454260A (en) 2022-09-09 2022-09-09 Character input method of numerical control system

Country Status (1)

Country Link
CN (1) CN115454260A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1424644A (en) * 2001-12-11 2003-06-18 何娅玲 Chinese character phonetic symbols intelligent input method and small digital keyboard therewith
CN101226427A (en) * 2007-01-17 2008-07-23 黄金富 Keyboard and correspond input method for mobile communication apparatus and palm PC
CN101621556A (en) * 2009-07-23 2010-01-06 魏新成 Full alphabetical mobile phone keypad having 30 character keys in five rows and six ranks
EP2916200A2 (en) * 2012-11-05 2015-09-09 Yang, Giho Semi-compact keyboard and method therefor
KR20170075687A (en) * 2017-06-15 2017-07-03 김기주 The method of changing a part of character in the characters which is allocated on the button of keyboard
CN107704098A (en) * 2017-08-30 2018-02-16 北京酷我科技有限公司 A kind of intelligent television App keyboard layout optimization methods

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1424644A (en) * 2001-12-11 2003-06-18 何娅玲 Chinese character phonetic symbols intelligent input method and small digital keyboard therewith
CN101226427A (en) * 2007-01-17 2008-07-23 黄金富 Keyboard and correspond input method for mobile communication apparatus and palm PC
CN101621556A (en) * 2009-07-23 2010-01-06 魏新成 Full alphabetical mobile phone keypad having 30 character keys in five rows and six ranks
EP2916200A2 (en) * 2012-11-05 2015-09-09 Yang, Giho Semi-compact keyboard and method therefor
KR20170075687A (en) * 2017-06-15 2017-07-03 김기주 The method of changing a part of character in the characters which is allocated on the button of keyboard
CN107704098A (en) * 2017-08-30 2018-02-16 北京酷我科技有限公司 A kind of intelligent television App keyboard layout optimization methods

Similar Documents

Publication Publication Date Title
KR100652725B1 (en) Character input method and apparatus for a terminal
CN102053772B (en) Character inputting method and electronic device
US20030121964A1 (en) Data entry device
CN1192003A (en) Language-dependent letter input by means of number keys
EP2112586A1 (en) Operation method of user interface and computer readable medium and portable device
CN103475926A (en) Input method implementation method and control system based on set top box equipment
US8081092B2 (en) Method for entering characters on a keyboard and a keyboard
JPWO2008029492A1 (en) Input device
KR20120057735A (en) Touch Screen Type Keyboard of Smartphone and Computer Keyboard that Easy Changing among Korean, English and Other Characters
KR20040037804A (en) Alphabet input apparatus and alphabet input method
CN115454260A (en) Character input method of numerical control system
KR100274801B1 (en) Method for inputting a key in a software keyboard
US20040125152A1 (en) User customizable, locale dependent, variant character entry method and apparatus
CN110806807A (en) Computer keyboard providing symbol key layout at reference key position
WO2009053113A1 (en) Data input interface and method for inputting data
EP1701243A1 (en) Handheld electronic device having improved display and selection of disambiguation choices, and associated method
JP4685720B2 (en) Character input device and character input method
CN1418405A (en) Coding input method using numeral keys to input numbers, symbols and english letters
CN112068710A (en) Small-size keyboard for carrying out alternative layout input on numeric editing function key area
CN101388976A (en) Method for implementing text input on television
KR100678196B1 (en) Method for arraying and inputting key
KR20090047257A (en) Method of inputting characters using software keyboard
KR101257760B1 (en) Method for inputting characters by drag
US5079732A (en) Multi-functional electronic desk calculator
JP2006309578A (en) Portable communication terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination