Abstract:
An operating information input method in a numerical control apparatus which executes prescribed numerical control processing based on numerical control program data and operating information includes steps of designating the start of operating information input displaying, on the screen of a display device, various operating information items (e.g. MODE, HANDLE AXIS, and HANDLE *10) e.g. and selectable items (MDI, AUTO, EDIT, HNDL, JOG, ZRN, HX, HZ) in the form of characters in response to designating the start of inputting operating information positioning a first cursor (CSR) on a line of an operating information item to be input, thereafter positioning a second cursor associated with the operating information item designated by the first cursor, on a line of a prescribed selectable item to identify the desired operating information based on the positions of the first and second cursors.

Description:
BACKGROUND OF THE INVENTION 
     This invention relates to an operating information input method in a numerical control (NC) apparatus and, more particularly, to an operating information input method wherein operating information entered from an operator&#39;s panel is input upon being displayed on the screen of a CRT. 
     A numerical control apparatus executes predetermined numerical control processing on the basis of numerical control program data and operating information set by an operator&#39;s panel. The operating information may include: 
     (1) mode information for specifying operating modes such as an editing mode, automatic operating mode, manual data input (MDI) operating mode, jog operating mode and handle feed operating mode; 
     (2) single block on/off information; 
     (3) dry run on/off information; 
     (4) block skip on/off information; 
     (5) machine lock on/off information; 
     (6) feed hold on/off information; 
     (7) reference point return on/off information; 
     (8) jog feed direction information; 
     (9) jog feed velocity and overdrive information; 
     (10) handle axis selection information; and 
     (11) handle feed multiplier information. 
     In the prior art, all of these items of operating information are fed into the numerical control apparatus by switches or dials or by pressing buttons, which are provided on the operator&#39;s panel located on the machine side. In consequence, the entry of the operating information has necessitated a large number of switches or buttons, which results in equipment that is high in cost. FIG. 1 is a plan view of such an operator&#39;s panel on the machine side. The operator&#39;s panel is provided with a changeover switch 101a for mode selection, a single block on/off changeover switch 101b, a dry run on/off changeover switch 101c a a block skip on/off changeover switch 101d, a machine lock on/off changeover switch 101e, a feed hold button 101f, a reference point return on/off changeover switch 101g, six jog feed buttons 101h for designating jog feed along the positive and negative directions of various axes, a jog feed velocity setting dial 101i, a feed velocity overdirve setting dial 101j, a handle feed axis selection switch 101k, a handle feed multiplier selection switch 101m, a rapid-traverse override quantity selection switch 101n, a cycle start button 101p, a rapid-traverse button 101q, a handle 101r, an emergency stop button 101s, and incremental feed quantity selection switch 101t. 
     Because all items of operating information must be entered from the operator&#39;s panel located on the machine side in the prior art arrangement, the operator must enter the operating information by going to the operator&#39;s panel on the machine side which is disposed remote from the NC apparatus proper, whenever the operating information is to be entered. The disadvantageous result is poor operability. 
     Furthermore, in the prior art, a jog feed is performed by pressing the jog buttons conforming to the axis along which the jog feed is desired to be made and the direction of travel along said axis. However, the coordinate system will differ from machine to machine. For example, FIG. 2(A) illustrates a coordinate system for a milling machine, an FIG. 2(B) a coordinate system for a lathe. Thus, depending upon the machine tool, the prescribed jog feed buttons must be selected after first considering the machine tool coordinate system at the time the jog feed is to be performed. Consequently, drawbacks possessed by the prior art are poor operability when performing a jog feed, as well as a tendency for the operator to commit operating errors. 
     SUMMARY OF THE INVENTION 
     Accordingly, an object of the present invention is to provide an operating information input method for a numerical control apparatus wherein operating information can be set and entered without using a number of changeover switches, buttons and dials. 
     Another object of the present invention is to provide an operating information input method, wherein operating information can be entered from a manual data input unit (MDI unit) equipped with a display device and mounted on an NC apparatus. 
     Still another object of the present invention is to provide an operating information input method which has excellent operability and which is so adapted as to permit a jog feed to be made without consideration of the coordinate system of the machine. 
     A further object of the present invention is to provide an operating information input method capable of lowering the cost of an NC apparatus. 
     The present invention relates to a method of inputting operating information in an NC apparatus wherein various operating information items and selectable items associated with respective ones of the operating information items are displayed in the form of characters on the CRT screen of a display device, a cursor is positioned using the keys of an MDI unit, at the position of a selectable item (e.g., at a positioned marked &#34;on&#34; or &#34;off&#34;) associated with a prescribed operating information item, thereby to enter on/off information, etc., relating to the operating information item, and a bar graph is displayed adjacent the various operating information items by using keys on the MDI unit, with an operating quantity relating to an operating information item being entered based on the length of the bar graph. According to this method of entering operating information, changeover switches, dials and buttons for entering operating information become unnecessary, enabling equipment cost to be reduced. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a plan view of an operator&#39;s panel on the machine side according to the prior art; 
     FIGS. 2(A) and 2(B) are views for explaining the inconvenience of a jog feed operation in the prior art; 
     FIGS. 3(A), 3(B), and 4(A) to 4(F) illustrate the present invention; 
     FIG. 5 is a block diagram of an embodiment of the present invention; 
     FIG. 6 is a block diagram of a second embodiment of the present invention; 
     FIG. 7 is a flowchart; and 
     FIG. 8 is a front view of an MDI unit equipped with a display device. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     FIGS. 3(A) and 3(B) illustrate operating information menus and selectable items which appear on the CRT screen of an MDI unit. The operating information is set by operating keys on the MDI unit while the display is observed. 
     In FIG. 3(A), items in the operating information menu are &#34;MODE&#34;, &#34;HANDLE AXIS&#34;, &#34;HANDLE *10&#34;, &#34;RAPID OVRD&#34;, &#34;JOG FEED&#34; and &#34;FEED OVRD&#34;. The item of operating information &#34;MODE&#34; is for selecting mode information. The words appearing on the &#34;MODE&#34; line, namely &#34;MDI&#34;, &#34;AUTO&#34;, &#34;EDIT&#34;, &#34;HNDL&#34;, &#34;JOG&#34; and &#34;ZRN&#34;  represent the selectable items. The arrangement is such that the MDI mode, automatic operating mode, editing mode, handle feed mode, jog feed mode and zero point return mode can be selected by positioning a cursor MSC just to the left of the selectable items &#34;MDI&#34;, &#34;AUTO&#34;, &#34;EDIT&#34;, &#34;HNDL&#34;, &#34;JOG&#34; and &#34;ZRN&#34;, respectively. For example, to select the automatic operating mode (AUTO), a vertical shift key on the MDI unit is operated to place a cursor CSR to the left of the operating information item &#34;MODE&#34;, after which a horizontal shift key on the MDI unit is operated to position the cursor MSC to the left of the selectable item &#34;AUTO&#34;. The automatic operating mode is thus selected. 
     The operating information item &#34;HANDLE AXIS&#34; is for selecting the handle feed axis, where the &#34;HX&#34;, &#34;HZ&#34; denote the selectable items. In the manner described hereinabove, the X axis or Z axis can be established as the handle feed axis by positioning the cursor CSR to the left of the operating information item &#34;HANDLE AXIS&#34; and positioning a handle feed axis selection cursor HAC to the left of the selectable item &#34;HX&#34; or &#34;HZ&#34;. 
     The operating information item &#34;HANDLE *10&#34; is for selecting the multiplier of the handle feed. Here, &#34;*1&#34; and &#34;*10&#34; represent the selectable items. As described above, by positioning the cursor CSR to the left of &#34;HANDLE *10&#34; and then positioning a handle multiplier selection cursor HMC to the left the selectable item &#34;*1&#34; or &#34;*10&#34;, a single graduation on the handle can be set to X1 (0.001 mm) or to X10 (0.01 mm), respectively. 
     The operating information item &#34;RAPID OVRD&#34; is for selecting rapid-traverse override, the operating information item &#34;JOG FEED&#34; is for setting jog feed velocity, and &#34;FEED OVRD&#34; is for setting the feed velocity override. To set the job feed velocity, the vertical shift key is used to position the cursor CSR to the left of the operating information item &#34;JOG FEED&#34;. Then, the horizontal shift key is used to lenghten a bar graph SG1 by extending it to the right, or to shorten the bar graph SG1 by retracting it to the left. The jog feed velocity is thus set by the length of the bar graph. More specifically, when the horizontal shift key is operated, the bar graph is lenthened or shortened during such operation to set a quantity, which corresponds to the length of the bar graph, as the jog feed velocity. The jog feed quantity is displayed in the form of characters. In FIG. 3(A), the jog feed velocity has been set to 20 mm/min. To set the feed velocity override, the cursor is positioned to the left of the operating information item &#34;FEED OVRD&#34;, followed by using the horizontal shift key to lengthen a bar graph SG2 by extending it to the right, or to shorten the bar graph SG1 by retracting it to the left. In FIG. 3(A), the fed velocity override quantity has been set to 100%. 
     In FIG. 3(B), &#34;BLOCK SKIP&#34;, &#34;SINGLE BLOCK&#34;, &#34;MACHINE LOCK&#34;, &#34;DRY RUN&#34;, &#34;PROTECT KEY&#34; and &#34;FEED HOLD&#34; are the operating information items. &#34;ON&#34;, &#34;OFF&#34;, &#34;PROTECT&#34; and &#34;RELEASE&#34; are the selectable items. &#34;BLOCK SKIP&#34; is for selecting block skip on/off, &#34;SINGLE BLOCK&#34; is for selecting single block on/off, &#34;MACHINE LOCK&#34; is for selecting machine lock on/off, &#34;DRY RUN&#34; is for selecting dry run on/off, &#34;PROTECT KEY&#34; is for selecting whether or not editing of data stored in memory is to be forbidden, and &#34;FEED HOLD&#34; is for selecting feed hold on/off. The selectable information (on, off, etc.) for each operating information item is set in a manner similar to the mode selection operation of FIG. 3(A). Thus, the cursor CSR is positioned on the line of the prescribed operating information item, after which cursors BSC, SBC, MLC, DRC, PKC, FHC on the operating information item lines are positioned to the left of the respective prescribed selectable items. In the example of FIG. 3(B), the settings are such that block skip is off, single block is off, machine lock is on, protect key is on protect, and feed hold is off. 
     The foregoing is for a case where all operating information is entered using a CRT screen. However, as shown in FIGS. 4(A) through 4(F), an arrangement is permissible wherein the operating information is divided into groups 1 through 7, namely a mode selection group [FIG. 4(a)], handle feed group [4(B)], feed velocity related group [4(C)], automatic operation related group [4(D)], program protect group [4(E)], feed hold group [4(F)], and a jog feed related group (not shown), with only several of these groups being entered from the CRT screen. 
     FIG. 5 is a block diagram of an NC apparatus to which the present invention is applied. In FIG. 5 numeral 101 denotes an NC tape bearing a punched NC program comprising multiple items of numerical control data (NC data). Numeral 102 denotes a tape reader, and 103 an input control circuit which controls the tape reader 102 to read the NC data sequentially from the NC tape 101 and input the data to a decoding circuit 104, which is the next stage. The decoding circuit 104 decodes the read NC data and, if an item of NC data is a position command (Xe, Ye, Ze), a G-function instruction or the like, delivers the data to a processor 105, which is the next stage. If an item of NC data is an M-, S- or T-function instruction, the decoding circuit delivers the data to the machine side (not shown) through a magnetics circuit 106. The processor 105 executes prescribed numerical control processing on the basis of numerical control program data input from the NC tape, and on the basis of operating information. The processor 105 also executes operating information input processing. Numeral 107 denotes a RAM (operating information storage memory) backed by a battery for storing operating information, specifically operating information entered using a cathode-ray tube 108a and keyboard 108b of an MDI unit 108, and operating information entered from switches on an operator&#39;s panel 109 located on the machine side. Numeral 110 denotes a data memory for storing, e.g., the results of numerical control processing. Numeral 111 designates a pulse interpolator, and 112 an image memory. 
     In entering operating information from the MDI unit 108, the first step is to manipulate an operating information setting key 108c on the MDI unit 108, following by pressing a page turning key 108d or 108e (key 108d is for incrementing the page, and key 108e for decrementing the page). If a page turning key is held depressed, images stored in the image memory 112 will be displayed on the CRT in successive fashion. Since operating information covering several pages will have been stored in the image memory 112, the page turning key 108d or 108e is released when the desired operating information image is displayed, after which cursor keys 108f through 108i are operated to position the cursors at each of the operating information item positions and selectable item positions in the manner described earlier. By doing so, items of operating information are selected or set one after another and stored in the operating information memory 107. This ends the entry of the operating information. 
     FIG. 6 is a block diagram of a second embodiment of the present invention, where the portion enclosed by the broken line in FIG. 5 comprises a computer. FIG. 7 is a flowchart of processing associated with FIG. 6. FIG. 8 is a front view of an MDI unit equipped with a display device. In FIG. 6, portions similar to those shown in FIG. 5 are designated by like reference characters. Processing for setting operating information will be described hereinafter. 
     (a) When the operating information setting key 108c on the MDI unit 108 is pressed, a processor 201, which is under the control of a control program stored in a ROM 202, reads the page number P of the operating information out of the page storage area 203a of a RAM 203 and stores P in an internal page counter 201a. Note that the information displayed on the CRT 108a is classified into, e.g., (a) the contents of an NC program, (2) the contents of an offset quantity, (3) the contents of a parameter, (4) the contents of operating information and (5) an alarm. Each display group has display items covering a plurality of pages. Accordingly, the page number P (page one at the time that power is introduced to the system) displayed on the CRT immediately before for each group is stored in the page storage area 203a of the RAM 203a. When it is requested that the images of the respective groups be displayed, the image of the page number P stored in the page storage area 203a is displayed on the CRT 108a. 
     (b) Next, the processor 201 goes to a table 205 to retrieve the head address Ah of the location storing the image data having the page number P stored in the page counter 201a, and proceeds to store the address in an internal pointer 201b. It should be noted that the table 205 stores, for each display group, the correspondence between the page number and the head address Ah of an image memory 204 at which the image data having the page number is stored. 
     (c) Thereafter, the processor 201 reads the image data sequentially from the storage area of the image memory 204 indicated by the pointer 201b and delivers the data to a display controller 108a&#39; of the MDI unit 108, whereby the operating information image is displayed on the CRT 108. At the start of operation, the cursor CSR (FIG. 3) appears at the upper left, and the cursors provided for respective ones of the operating information items appear at the selectable item positions selected thus far. 
     (d) Next, the processor 201 determines whether either of the horizontal shift keys 108f, 108g is being pressed. 
     (e) If neither of the horizontal shift keys is being depressed, the processor 201 determines whether either of the vertical shift keys 108h, 108i is being pressed. If a vertical shift key is being pressed, the display controller shifts the cursor CSR, and the processor 201 performs the operation: 
     
         ky±1→ky                                          (1) 
    
     to update the contents ky of a cursor pointer 201c in accordance with the direction of the cursor shift. In expression (1) above, the plus sign indicates a case where the cursor CSR is shifted downwardly one line at a time by pressing the vertical shift key 108h, while the minus sign indicates a case where the cursor CSR is shifted upwardly one line at a time by pressing the vertical shift key 108i. 
     (f) If the vertical shift key is released, the processor 201 determines whether the page turning key 108d for page incrementing is being pressed. If it is, then the processor performs the operation: 
     
         P+1→P                                               (2) 
    
     to update the contents (page number) of the page counter 201a, and processing from step (b) onward is repeated. 
     (g) If the page turning key 108d for page incrementing is not pressed in step (f), the processor 201 determines whether the page turning key 108e for page decrementing is being pressed. If the page turning key 108d is not being pressed, processing from step (d) onward is repeated. If the page turning key 108d is being pressed, the processor 201 performs the operation: 
     
         P-1→P                                               (3) 
    
     to update the contents (page number) of the page counter 201a, and processing from step (b) onward is repeated. 
     (h) If one of the horizontal shift keys 108f, 108g is being pressed in the discrimation process step (d), the display controller 108a&#39; shifts the cursor (MSC, HAC, HMC, BSC, SBC . . . etc.) of the operating information item indicated by the cursor CSR, and the processor 201 performs the operation: 
     
         kx±1→kx                                          (4) 
    
     to update the contents kx of a cursor pointer 201d in accordance with the direction of the cursor shift. In expression (4) above, the plus sign indicates a case where the cursor is shifted rightward one step at a time by pressing the horizontal shift key 108g, while the minus sign indicates a case where the cursor is shifted leftward one step at a time by pressing the horizontal shift key 108f. 
     (i) If the horizontal shift key is released, the processor 201 identifies the operating information by using the contents P, ky, kx of the page counter 201a and cursor pointers 201c, 201d, respectively, and then updates, using the operating information, the contents of an operating information memory 206 constituted by a RAM back up by a battery. 
     It should be noted that when the cursor CSR is positioned at the operating information item &#34;JOG FEED&#34; or &#34;FEED OVRD&#34;, the display controller 108a&#39; will alter the length of a bar graph, as shown in FIG. 3(A), if the horizontal shift keys 108f, 108g are pressed. However, the position at the tip of the bar graph will be the cursor position kx. 
     The foregoing is for a case where all operating information is entered from the MDI unit 108. However, in a case where only some of the operating information is entered from the MDI unit 108, the operating information may be formed into groups, and a group of operating information entered from the MDI unit may be preset as a parameter in a parameter memory 207. With such an arrangement, the processor 201 will first read the parameter out of the parameter memory 207 when the operating information setting key 108c is pressed, and will cause the CRT 108a to display only the operating information item stored as the parameter, as well as the selectable items. 
     Further, according to the present invention, keys 108m, 108n, 108p, 108q, which are found among numeric keys on the MDI unit 108 (FIG. 8), serve also as jog feed keys. The keys 108m, 108n, 108p, 108q set the particular direction along the particular axis in the parameter memory 207 in the form a parameter. For example, in a milling machine, the keys 108m, 108q, 108n, 108p are set in the parameter memory 207 as the -X direction, +X direction, +Y direction and -Y direction, respectively. In a lathe, the keys 108m, 108q, 108n, 108p are set in the parameter memory 207 as the -Z direction, +Z direction, +X direction and -X direction, respectively. When a movable element is desired to be jog fed to the right or left, one need only press the key 108q or 108m. When the movable element is desired to be moved up or down, it will suffice to press the key 108n or 108p. Thus, it is entirely unnecessary to consider the particular machine coordinate system, unlike the conventional apparatus. The reason is that when one of the keys 108m through 108q is pressed in the jog feed mode, the processor 201 is capable of reading the parameter out of the parameter memory 207 and of recognizing the axis direction of the key pressed. It should be noted that a jog feed is performed by selecting the jog feed mode on the display screen, followed by pressing the prescribed keys 108m through 108q. 
     According to the present invention, various items of operating information and various selectable items are displayed on the screen of a CRT, and the desired operating information is selected or set while the display is observed. Accordingly, operability is excellent and changeover switches and buttons can be eliminated or reduced to lower the cost of the numerical control apparatus. 
     Further, operating information that is more convenient to enter from the NC apparatus side can be entered from an MDI unit, and operating information that is more convenient to enter from the machine side can be entered from the operator&#39;s panel on the machine side. Thus, operability is enhanced. 
     Still further, in performing a jog feed, a movable element can be moved in a desired direction absolutely without taking the particular machine coordinate system into consideration. This also enables an improvement in operability. 
     The present invention is well suited for entering operating information in a numerical control apparatus.