WO2004081820A1 - Information display apparatus - Google Patents

Information display apparatus Download PDF

Info

Publication number
WO2004081820A1
WO2004081820A1 PCT/JP2003/002789 JP0302789W WO2004081820A1 WO 2004081820 A1 WO2004081820 A1 WO 2004081820A1 JP 0302789 W JP0302789 W JP 0302789W WO 2004081820 A1 WO2004081820 A1 WO 2004081820A1
Authority
WO
WIPO (PCT)
Prior art keywords
search
character string
emphasis
command
display
Prior art date
Application number
PCT/JP2003/002789
Other languages
French (fr)
Japanese (ja)
Inventor
Toshio Harada
Yutaka Shimizu
Kouzou Shima
Original Assignee
Mitsubishi Denki Kabushiki Kaisha
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 Mitsubishi Denki Kabushiki Kaisha filed Critical Mitsubishi Denki Kabushiki Kaisha
Priority to PCT/JP2003/002789 priority Critical patent/WO2004081820A1/en
Publication of WO2004081820A1 publication Critical patent/WO2004081820A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing

Definitions

  • the present invention relates to an information display device for displaying information such as characters and symbols on a display device having a display screen using a CRT (cathode ray tube), an LCD (liquid crystal), and the like.
  • the present invention relates to a technique for searching for an arbitrary character string from information and for highlighting a matched character string in an arbitrary display mode.
  • a desired keyword or character string hereinafter represented by a character string
  • the information The matching character string is displayed in bold or displayed in a predetermined display color and emphasized to make it easier to distinguish it from other information.
  • the user can freely specify only the character string portion to be searched, and cannot specify the display mode of the matched character string.
  • Japanese Patent Application Laid-Open No. H8-63464 / 1995 discloses a method for highlighting a matching part by searching a character string. There is a technique as disclosed in Japanese Patent Publication No. 6-85.
  • Japanese Unexamined Patent Publication No. Hei 8 (1994) -633464 can search for synonymous characters (3, 3, III, 3, reference etc.) for one character. There is only one fixed type and cannot be selected or specified. Also, Japanese Patent Application Laid-Open Publication No. 2002-733655 searches and displays a web page including a search keyword, and adds an emphasis parameter to a portion that matches a keyword. By You can specify highlighting methods such as coloring, bolding, enlarging, sloping, underlining, inverting light and shade, etc. You can specify them arbitrarily according to different search keywords, or use different search keywords on the same screen. There is no disclosure or suggestion of a technique for simultaneously displaying search results in different display modes.
  • the matching part can be highlighted for one keyword, but there is no disclosure or suggestion of a technique for arbitrarily specifying each corresponding to a plurality of keypads. . Furthermore, there is no suggestion to de-emphasize the highlighted string.
  • any display color can be used, so that the display color can be changed and displayed by the technique disclosed in the above-mentioned document, so that the place to be watched can be determined at a glance. Will be utilized.
  • the present invention has been made in view of such a point, and an object of the present invention is to provide an information display device capable of searching for an arbitrary character string and highlighting a matching portion in an arbitrary display mode. .
  • Still another object of the present invention is to provide an information display device capable of canceling display emphasis based on the display mode designated by the search for each display mode.
  • the present invention provides a character string for searching an arbitrary character string in a specified memory area and an optional character string for extracting the input character string and highlighting a matching part when extracting the character string.
  • a search command information input unit for inputting the display mode of the above, and a search display control unit for controlling the display mode together with the character string search based on the search command information input at the search command information input unit,
  • the search display control unit is configured to highlight and display the searched character string in the specified memory area in the specified display mode.
  • any character string can be searched, and the matching part can be highlighted in an arbitrary display mode, and the matching part can be easily recognized.
  • a plurality of sets of the character string and the display mode can be specified independently.
  • the character string and the display mode can independently designate a plurality of sets, and store the execution order of the executed character string search and highlighted display. This is a configuration having means.
  • a plurality of arbitrary character strings can be highlighted in any different display modes, and a plurality of different character strings can be easily and simultaneously recognized in different display modes. Moreover, even if the search range is changed by scrolling the screen or the like, the character string search and the highlight display can be continuously performed without newly inputting the search character string and the display mode.
  • the information display device may further include: an emphasis cancellation command input unit that specifies emphasis cancellation for returning the highlighting unit in the designated memory area to the original display state; A display mode in the specified memory area, wherein the display mode is searched for in the memory area, and the display mode for the matching portion is returned to the standard display mode.
  • the returned character string is returned to the state without emphasis before the search.
  • the emphasis cancellation can be specified individually or collectively according to a plurality of display modes.
  • the information display apparatus has a configuration in which a plurality of sets of the de-emphasis can be designated independently, and a means for storing an execution order of the executed de-emphasis is provided.
  • the information display device comprises: at least one check program for performing a predetermined condition check on an arbitrary character string in a specified memory area; Executed in response to a security program A highlight information storage unit that stores the character string range specified in the condition check and a display mode specified to highlight the character string, and a search that highlights the character string range specified in the condition check A display control unit, wherein the search display control unit is configured to highlight the character string specified by the condition check in the specified memory area in a display mode specified by the highlight information storage unit. It was done. For this reason, it is possible to concentrate on each of the program creation and the program check, and the work efficiency is improved, and the contents of the warning can be displayed in different display forms in the program check, so that the program check becomes easy. BRIEF DESCRIPTION OF THE FIGURES
  • FIG. 1 is a diagram showing an example of a search highlight display screen by an expression input method according to Embodiment 1 of the present invention. .
  • FIG. 2 is a diagram showing an example of a search highlight display screen by a batch input method according to Embodiment 2 of the present invention.
  • FIG. 3 is a diagram showing an example of an emphasis release screen according to Embodiment 2 of the present invention.
  • FIG. 4 is a block diagram of an NC device according to Embodiments 1 to 3 of the present invention.
  • FIG. 5 is a flowchart of a program check / confirmation main process according to Embodiments 1 to 3 of the present invention.
  • FIG. 6 is a diagram showing an example of a character string search control table according to Embodiments 1 and 2 of the present invention.
  • FIG. 7 is a flowchart (detailed flowchart of step O5 in FIG. 5) of a character string search / emphasis cancellation information setting process according to Embodiments 1 and 2 of the present invention.
  • FIG. 8 is a flowchart (detailed flowchart of step 06 in FIG. 5) of a character string search / de-emphasis cancellation process according to Embodiments 1 and 2 of the present invention.
  • FIG. 9 is a flowchart (detailed flowchart of step 22 in FIG. 8) of the emphasis release command information updating process according to the first and second embodiments of the present invention.
  • FIG. 10 is a flow chart (detailed flowchart of step 32 in FIG. 9) of the emphasis release information updating process according to the first and second embodiments of the present invention.
  • FIG. 11 is a flowchart of the emphasis release processing according to the first and second embodiments of the present invention.
  • FIG. 12 is a flowchart (detailed flowchart of step 25 in FIG. 8) of the search command information updating process according to the first and second embodiments of the present invention.
  • FIG. 13 is a flowchart (detailed flowchart of step 26 of FIG. 8) of the search information updating process according to the first and second embodiments of the present invention.
  • FIG. 14 is a flowchart of search / emphasis processing according to Embodiments 1 and 2 of the present invention.
  • FIG. 15 is a flowchart (detailed flowchart of step 07 in FIG. 5) of the search / emphasis release re-execution processing according to the first and second embodiments of the present invention.
  • FIG. 16 is a flowchart (detailed flowchart of step 122 of FIG. 15) of the emphasis release re-execution order determination process according to the first and second embodiments of the present invention.
  • FIG. 17 is a flowchart (detailed flowchart of step 123 of FIG. 15) of the emphasis release re-execution processing according to the first and second embodiments of the present invention.
  • FIG. 18 is a flowchart (detailed flowchart of step 124 of FIG. 15) of the search emphasis re-execution order determining process according to the first and second embodiments of the present invention.
  • FIG. 19 is a flowchart (detailed flowchart of step 125 of FIG. 15) of the search emphasis re-execution processing according to the first and second embodiments of the present invention.
  • FIG. 20 is a diagram showing a decimal point input specification, a minimum command unit and an interpretation correspondence table of input data according to Embodiment 3 of the present invention.
  • FIG. 21 is a diagram showing an example of a warning determination value according to Embodiment 3 of the present invention.
  • FIG. 22 is a flowchart of input data determination preparation processing according to Embodiment 3 of the present invention.
  • FIG. 23 is a flowchart of an input data reading process according to the third embodiment of the present invention. It is.
  • FIG. 24 is a flowchart of an input value check process according to Embodiment 3 of the present invention.
  • NC numerical Control
  • a machining program for machining a workpiece is usually input to the NC device that controls the NC machine tool, and this machining program is called and executed.
  • the workpiece is processed by controlling the relative positions of the tool and the tool. It can check whether or not an error is not in the machining program prior to this processing, sometimes force s or check the instruction situation of the instruction that you want to focus.
  • the first embodiment describes an example of a character string search control.
  • a search is performed by designating a character string and a highlight color in a created addition program, and a matching character string is input by highlighting the character string.
  • the data can be easily checked and corrected if necessary.
  • the highlighting can be arbitrarily canceled by executing a command for canceling the emphasis.
  • the format of the character string search, emphasis display and emphasis cancellation commands is, for example, as follows.
  • Str is an arbitrary character string, / MR is a matching character string in red.
  • $ S tr / MB... $ S tr is an arbitrary character string, / MB is a matching character string in blue $ S tr / MG... $ S tr is an arbitrary character string, / MG is a matching character string in green
  • FIG. 1 shows an example of a search screen display according to the first embodiment of the present invention, in which search information and designation of a display mode are input by an expression.
  • the display screen shown in Fig. 1 displays a part of the contents of the machining program with program number 3000 (03000) among the machining programs stored in the machining program storage memory, and has three types (, " M ",” X0Y0 ”) in which the character string search and highlighting are executed individually (the last is” X0YO ").
  • the search information according to the present embodiment is obtained by inputting a search character string and emphasis information in the form of an expression in an information input section as shown in the upper right of FIG. 1 and instructing to start (pressing the start button). A column search and highlighting is performed.
  • FIG. 2 shows that the character strings for the character string search and highlighting can be individually designated in a dedicated input unit instead of in an expression.
  • the search string is entered in the search string field in the search order in the dedicated input section as shown in the upper right of the figure, and the emphasis information is entered in the area corresponding to the search string in the display color field.
  • the character string search and highlighting are automatically executed in the input order.
  • the input section for the search string and the emphasis information is a dedicated input section. Therefore, there is no need to enter "$" in front of the search string such as "Z” or "X0Y0" in this part. Also, before the emphasized information such as "R” or “G”, There is no need to enter M ". In addition to being able to enter all at once, the character string search and highlight display are executed automatically at the same time.
  • FIG. 3 shows an example in which the desired highlighting of various highlighted character strings searched for in FIG. 2 is individually designated from the dedicated input unit and released.
  • Fig. 3 shows an example in which the R (red) highlight information is released by inputting R (red) in the display color field of the dedicated input section and pressing the release start button.
  • the configuration of the NC device for performing the character string search and the highlight display control as shown in FIGS. 1 to 3 will be described with reference to FIG.
  • FIG. 4 is a block diagram showing an example of the configuration of the NC unit.
  • the CPU 1 is connected to the memory 2 and executes the control programs stored in the control program area 3 of the memory 2 step by step. Reading and analyzing / executing using the parameters stored in the parameter storage area 4 and the parameters stored in the data area 5, realizes a predetermined function as an NC device.
  • the machining program is also stored in the program area 6 in the memory 2.
  • a setting display panel 7 for various data input / output is connected to the CPU 1 via a setting display panel interface (hereinafter abbreviated as I / F) 8.
  • I / F setting display panel interface
  • a drive control unit 10 is connected to the CPU 1 via a drive unit input / output I / F 9, and the drive control unit 10 supplies drive power to a motor (not shown) so that the machine is driven at the same time as the machine is driven.
  • the feedback information from the added detector is used for control inside the drive control unit 10, and is also written into the data area 5 of the memory 2 by the CPU 1.
  • a program input / output device 11 is connected to the CPU 1 via an input / output device I / F 12, and an externally created machining program or the like is read from the program input / output device 11 and stored in the memory 2. It is stored in the memory area corresponding to the input data, such as the machining program area 6 inside.
  • the parameter overnight area 4 includes, for example, a system parameter 21, an axis parameter 22, etc., and a decimal point check target word table 43 required for the present invention, a decimal point check target G Code table 44 and warning judgment value table 45 are also included.
  • the data area 5 of the memory 2 includes, for example, axis data 23, a display I / F 24, and the like, and further includes a search control table group 40 and an emphasis information area 41 required by the present invention. .
  • the control program area 3 includes a screen processing section 31 for displaying a screen on the setting display panel 7, and an operation panel processing section 3 for reading a keyboard signal of the setting display panel 7 and performing processing according to the signal.
  • 2.Analysis processing section that analyzes various NC commands specified in the machining program stored in machining program area 6.33.Predetermined based on the data of linear and arc commands specified in the machining program.
  • Interpolation processing unit 34 which generates a straight line or circular locus of NC
  • NC axis control unit 35 which converts each axis into a moving distance per unit time based on the interpolation data, and controls the program input / output device 11
  • Gram) 38 De-emphasis processing section (de-emphasis processing program) 39, Input data check control section (input data check control program) 42.
  • the CPU 1 reads the control programs stored in the control program area 3 in the memory 2 to implement various functions such as manual operation and automatic operation of the NC unit. And automatic driving. At this time, it is stored in parameter area 4 in memory 2.
  • the tool path control and other parameters are determined by referring to various parameters determined and / or set according to the specifications of the mechanical system, and various parameters indicating the machine position stored in the data area 4 in the memory 2.
  • the machining program is input by operating the keyboard of the setting display panel 7, or is recorded on a recording medium such as a floppy disk set in the program input / output device 11.
  • the externally created machining program is read out via the input / output device I / F 12 under the control of the read processing unit 36 and stored in the memory 2 via the CPU 1.
  • the machining program is read out one block at a time by the automatic operation processing of the control program, and the analysis processing unit 33 analyzes the NC command in the read out machining program and analyzes the NC device specifications and the specifications of the common parts of the machine.
  • System parameters to be determined evening 21 1.
  • Axis consisting of command position, machine position, etc. for each control axis by referring to the values set in the axis parameters 22 that determine specifications such as stroke and speed limit for each control axis. Create data 23.
  • the interpolation processing section 34 Based on the output result of the analysis processing section 33, the interpolation processing section 34 outputs the command position from the current position based on the command position and the command speed designated by the coordinate values of the X, ⁇ , and Z axes in the case of the GO 1 command.
  • I Calculate the amount of movement of each axis per unit time of control of the NC device so that the axis moves to a straight line up to the axis. If the command is GO 2 or GO 3 command, I, I, Calculate the amount of movement of each axis per control unit time of the NC unit so that it moves at the command speed, such as a circular arc of curvature centered on the point specified by the coordinate values of the J and ⁇ axes. Is stored at the corresponding address (memory address).
  • the NC axis control unit 35 performs acceleration / deceleration processing based on the interpolation data calculated by the interpolation processing unit 34, and drives the momentary movement of each axis via the drive unit input / output I / F 9.
  • the drive control unit 10 amplifies and converts the movement amounts of the respective axes to drive power for a short time, and drives the motor to a desired rotation angle to operate the machine.
  • the rotationally driven angle data is used as the detector output as described above. It is fed back to the drive control unit 10 to form a closed loop, detects the difference between the command position and the mechanical position, and converts the difference into a drive signal and power as a position error signal.
  • the feedback signal is input and updated to the axis data 23 via the drive unit input / output YZF 9.
  • the control of a general NC device is performed as described above, and the desired machining is executed by controlling the relative positions of the tool and the work along the machining trajectory specified by the machining program.
  • FIG. 5 is a flowchart showing the control of the program check / confirmation processing, which determines the flow of checking the program contents for the contents of the machining program specified from the machining programs stored in the machining program area 6. It is for.
  • step 01 various parameters relating to the position and length necessary for checking the command value, which will be described later, are read, and in step 02, it is checked whether or not the programming mode is set. If it is not in the programming creation mode, it is determined to be No, so the process proceeds to step 03, and it is checked whether or not the batch check mode in which the data check such as the input value of the target machining program is checked all at once. If the mode is not the batch check mode, it is determined as No, and the flow advances to step O4 to check whether or not the mode is the character string search mode.
  • step 04 If it is determined in step 04 that the mode is the character string search mode, the process proceeds to step 05, in which search and release information setting processing for inputting and storing information for instructing a character string search and highlighting or canceling highlighting is performed. Go to step O6.
  • step 06 based on the information obtained in the search and release information setting processing, a search and release processing for executing a character string search and highlighting or release of highlighting is performed, and the process proceeds to step 07.
  • step 07 when the display range of the program changes (for example, when the screen is scrolled), Then, a search / cancel re-execution process for executing the search / cancel process again is performed, and a series of processes is completed. If it is determined in step O4 that the mode is not the character string search mode, the processing of step 05 to step 07 is skipped and the processing ends.
  • step 03 If it is determined that the batch check mode is selected in step 03, the process proceeds to step 08, and for the machining program created by omitting the sequential check that performs an input check for each key input, the beginning of the called machining program Then, a batch check process for sequentially performing a predetermined check is performed, and a series of processes of this program is completed. If it is determined in step E02 that the program is in the program creation mode, the process branches to step E9 to check whether the mode is the batch check mode. If it is determined in step 09 that the batch check mode is set, the process branches to step 09, and a predetermined check is sequentially performed from the beginning of the machining program created by omitting a sequential check for performing an input check for each key input. A batch check process is performed to complete a series of processes of this program.
  • step 10 If it is determined that the mode is not the batch check mode in step 09, the process proceeds to step 10 to perform a sequential check process in which an input check is performed for each key input, and a series of processes of this program ends.
  • the sequential check program processing in step 10 was proposed in an application filed by the applicant of the present invention [International Application No .: PC TZJ P02 / 313625], but involved in the technology of the present invention. The explanation is omitted here.
  • FIG. 6 shows an example of a command and control table for realizing the present embodiment, and the operation will be described using these tables. '
  • the search / check processing program 37 is stored in the control program memory area 3 in FIG. 4, and the search control table 40 (FIG. 6 (a) to FIG. 6 ( g)), the search / check processing program 37 is executed, and the search or release processing result is output to the emphasis information area 41.
  • the table names, functions, and stored data constituting the search control table group 40 are listed (corresponding with alpha pets).
  • Search character string storage table stores a search character string input for each color. For example, if you want to highlight the character string "X0Y0" in red, the character string “X0Y0” is stored at the B $ S position in the search character string storage table (b), and the character string "M” Is to be highlighted in green, the character string "M” is stored at the position of D $ S in the search character string storage table (b).
  • Release command table Stores the release command (character string) for each color
  • Re-search order determination table Stores the offset value from the top address of the re-search program group (0 to 3 or / FF) (depending on color and command order).
  • Re-release order determination table Re-release program group Store the offset value (0 to 3 or / FF) from the top address of the character string (depending on the color and command order).
  • each of the tables (a) to (e) is such that A, B, C, and D are arranged so as to correspond to all colors or no color, red, blue, and green in the processing color order. .
  • the control is fixed at the top for batch or non-emphasis control, the second for red, the third for blue, and the fourth for green.
  • the values stored in the above A to D are any of 0 to 4, and the commands that have not been commanded (not executed) or have been canceled are 0, but are all executed once. If any, any of 1 to 4 is stored. Before execution, all 0s are stored. If only two commands have been executed, it will be 0, 1, or 2, and if three commands have been executed, 0, 1, 2, or 3.
  • the numerical values are 1 for the latest command (execution), 2 for the command (execution) immediately before the latest command (execution), 3 for the command (execution) two prior to the latest command (execution), and 4 for Indicates the oldest command (execution), but the numerical value is automatically updated (+1) for each command (execution).
  • the offset for extracting the search or cancellation command in the re-execution order The value is stored and the placement is independent of color.
  • the initial state is “/ FF” in the EXA code, and when any search or release command is executed, one of the offset values 0 to 3 is stored in the memory corresponding to the number of commands. This offset value is used to determine the address of the command for each color of 1 (red), 2 (blue), and 3 (green), with 0 at the beginning of each table (a), (b), or (d). is there.
  • the search or release command By reading and executing the search or release command based on the offset value obtained when the table (f) or (g) is read sequentially from the beginning, the search or release command is re-executed in the order instructed by the operating system. It can be executed, but when ZFF is read, it is determined that there is no further search or release command, and re-execution is completed.
  • the table (f) is initialized with / F, and the maximum value stored in As to Ds of the table (c) (how many types of highlight search commands Has been executed) and the contents of As, Bs, Cs, and Ds at the position corresponding to the difference between the contents of As, Bs, Cs, and Ds corresponding to each color enhancement search command Is not "0", As stores "0",: 63 stores "1", Cs stores "2”, and Ds stores "3".
  • the numerical value (offset value) rewritten from / FF indicates the re-execution command
  • the table (a) and (b) are read from (f) from the top of tables (a) and (b) until / FF is detected.
  • the search command storage table with emphasis shown in Fig. 6 (c) stores 2 in Bs, 0 in As, 1 in Cs, and 3 in Ds
  • the screen scrolls.
  • the re-search order determination template includes 3 at position 0 (the first position), 1 at position 1 (the next position from the first position), and 2 at the first position (the first position). Is set to 2).
  • highlighting is executed by sequentially reading the re-search order determination table shown in FIG. 6 (f) from the head. That is, first, the character string of / MG corresponding to the above 3 in the search command table of FIG. 6 (a) and D $ S corresponding to the above 3 of FIG.
  • De-emphasis can be repeatedly executed in the same manner.
  • FIG. 7 shows details of the character string search and emphasis cancellation information setting process (step 04) in FIG.
  • the cancellation of emphasis may be simply abbreviated as cancellation.
  • step 11 it is checked whether the first FG is on. This first flag is turned on when the character string search mode is selected on the setting display panel 7. If the first FG is on, proceed to st ep 12, turn off the first FG, clear the character string search command / de-emphasis cancellation command (may be abbreviated as search / cancel command), and proceed to st ep 13 . If first FG is off at step 11, branch to ste13. In step 13, character string search command / emphasis cancellation command information instructed by the operator is read, and the information is stored in a predetermined table in the search control table group 40 for each emphasis type and in the order of the commands. The process ends.
  • FIG. 8 is a flowchart showing the contents of the main processing of the character string search / de-emphasis (step 06) shown in FIG. 5, and the processing order is such that the de-emphasis processing is performed first, and the character string search processing is performed later. . This is to prevent the character string search / de-emphasis from being performed again when the display screen is scrolled, but if the de-emphasis is performed later, the search result will be highlighted.
  • step 21 the input command is decoded. For example, if / ⁇ ⁇ ”, the command is an emphasis cancel command, so the process proceeds to ste ⁇ 22 to update the cancel command information. Is described in FIG.
  • step 23 emphasis release processing is performed based on the updated release command information, and the process proceeds to step 24.
  • step 23 The details of step 23 will be described with reference to FIG.
  • step 24 the input command is decoded, and if "$$ ⁇ ", the command is a character string search command, so the process proceeds to step 25 to update the search command information.
  • step 25 the details of step 25 will be described with reference to FIG.
  • a search and highlight display process is performed based on the updated search command information. And terminate the process.
  • step 26 The details of step 26 will be described with reference to FIG.
  • step ep24 If it is determined in step ep24 that the search is not a character string search, the process ends.
  • FIG. 9 shows a process of updating the release command information, and shows the detailed contents of step 22 in FIG.
  • step 31 it is determined whether or not “/ MCR” (red highlight cancellation) has been set in the setting display panel 7, for example. If Ye s (red highlight release), the process proceeds to step 32, where the red highlight release information update processing is executed to update the highlight release information, and the processing ends.
  • the specific contents of the update in the case of red are described in FIG. 10, but the content of Bs in the search command storage table with emphasis (FIG. 6 (c)) in the search control table 40 is set to 0, and the emphasis cancellation command is set.
  • the content of Be in the storage table (Fig. 6 (e)) is saved in Ec (save memory) in the de-emphasis command storage table (Fig. 6 (e)).
  • Bs, C s, Ds, E s, Ac 5 B e, C c, D c, no A, B, C, D are each specifying colors E c, red, blue, Corresponds to green and E indicates save.
  • the subscript s means se t, and c means cance 1. Then, the order of the red command Be is set to 1 (latest command), and the order of other commands is changed to the value following this command. If it is not red in step31, it branches to step33.
  • step ep33 similarly, for example, it is determined whether or not “/ MCB” (blue emphasis release) has been set. If Yes (blue emphasis release), the process proceeds to step 34, where the Cs content of the blue color emphasis release information update process (the search command storage table with emphasis in the search control table 40 (Fig. 6 (c))) is deleted. Set to 0, save the contents of Cc in the emphasis cancellation command storage table (Fig. 6 (e)) in Ec (save memory) in the emphasis cancellation command storage table (Fig. 6 (e)), and execute Update de-emphasis information and take action Ends. If it is not blue at st ep 33, branch to st ep 35.
  • step 35 similarly, for example, it is determined whether or not “/ MCG” (green highlight cancellation) is set. If Yes (green emphasis cancelled), the process proceeds to step 36, where the Ds contents of the green color emphasis canceling information update processing (the search command storage table with emphasis in the search control table 40 (FIG. 6 (c))) is deleted. Set to 0 and save the contents of D c in the emphasis cancellation command storage table (FIG. 6 (e)) to E c (save memory) in the emphasis cancellation command storage table (FIG. 6 (e)). To update the de-emphasis information and finish the process. If it is not green at step 35, branch to step37.
  • step 37 this is executed when there is no color designation, it is not recognized that "/ MC" (all color highlight release) has been instructed, and all color highlight release information update processing (search with highlight in search control table 40)
  • the contents of As in the command storage table (Fig. 6 (c)) are set to 0, and the contents of Ac in the de-emphasis command storage template (Fig. 6 (e)) are stored in the de-emphasis command storage table (Fig. ))) (Save to save memory)) to update the de-emphasis information and end the process.
  • FIG. 10 shows the detailed processing of step 32 in FIG. Since similar processing is performed for other colors, the description of the processing for other colors is omitted.
  • step ep41 the content of Bs in the search command storage table with emphasis (FIG. 6 (c)) in the search control table 40 is set to 0 (when the emphasis cancellation command is issued, the emphasis character string search is terminated. ), And saves the contents of B c in the emphasis release command storage template (FIG. 6 (e)) in E c (save memory) of the same table.
  • A, B, C, and D of As, Bs, Cs, Ds, Es, Ac, Be, Cc, Dc, and Ec have no color designation, and correspond to red, blue, and green, respectively.
  • E indicates that it is for a section.
  • st ep 42 it is checked whether or not E c is 0 as an initial check.
  • step 44 it is checked whether or not the content of the above Bc (the order of the immediately preceding red color canceling command) is 1.
  • Be 1 is interpreted as the latest command (the previous command was also the red highlighting cancel command), so the same command is continued, and the process ends without changing the execution order. If B c ⁇ 1, another de-emphasis command was issued last, so 1 is written to Be at step 45 to indicate that red de-emphasis is the latest command.
  • Steps 46 and after are the processing to change the execution order of other commands by updating the red highlight release to the latest command.
  • step 46 the contents of Ec and Ac, which are the values of the old Bc, are compared, and if Ac> Ec, the process proceeds to step 47, and all-color emphasis release has not been commanded in the past ( Check whether A c2 0). If N 0 (commanded), the content of Ac is incremented by 1 in step 48, and the execution order of all color release is moved down. This is because the search using the highlighted color during the discrimination is performed only when the order in which the emphasized color used in the discrimination is used is higher (older) than the prior execution order of the cancellation command using the emphasized color executed this time.
  • step 49 the process branches to step 49, and the same processing is performed for blue.
  • step 48 is not executed and the process proceeds to step 49. That is, Ac remains at 0.
  • FIG. 11 is a flowchart of an emphasis canceling process performed based on the set emphasis canceling information.
  • step 61 the first address of the display buffer is written at the checkpoint evening, and the last address of the display buffer is written at the endtime evening.
  • step ep 62 the memory whose stored value in the emphasis cancellation command storage table (FIG. 6 (e)) is “1” is searched, and the memory location of the cancellation command table (FIG. 6 (d)) corresponding to the memory location is searched. Reads the color code (last character) of the stored release command
  • step 63 the color information of the character stored at the relevant position is read from the memory address of the display buffer indicated by the check button.
  • the color information read from the display buffer at step 64 is compared with the color information read from the release command table (FIG. 6 (d)), and if they match, the color information is deleted at step 65. If the color information does not match at step 64, the process branches to step 66. In step 66, the content of the check-in window and the content of the end-boin window are compared, and if they match, the check is completed to the end of the display buffer (the specified range ends), and the process ends. If the check pointer is less than the end pointer in step 66, the check has not been completed, so the flow advances to step 67, the content of the check pointer is incremented (+1), and the flow returns to step 63.
  • the processing content is substantially the same as the above description, the description is omitted.
  • FIG. 12 is a flowchart of the information update process of the character string search command, and shows the detailed contents of step 25 in FIG.
  • step 71 it is determined whether or not “$ ⁇ / MR” ( ⁇ is a red (R) highlight display of a part that matches an arbitrary character string) is set in the setting display panel 7 ( In the example of Fig. 1, for example, "$ X0Y0 / MB").
  • the order of the red command Bs is set to 1 (latest command), and the order of other commands is changed to the value following this command. If it is not red at st e p 71, branch to st e p 73.
  • step 73 similarly, it is determined whether, for example, ⁇ (blue emphasized search) is set. If it is Yes (blue emphasized search), the process proceeds to step ep 74, where the content of Cc in the blue emphasized search information update process (the highlight cancel command storage table (FIG. 6 (6)) in the search control table 40) is set to 0. Executes the contents of Cs in the search command storage table with emphasis (Fig. 6 (c)) in Es (save memory) of the search command storage table with emphasis (6 (c)). To update the emphasized search information and finish the process. If it is not blue at st ep 73, branch to st ep 75.
  • blue emphasized search
  • step ep75 similarly, for example, it is determined whether or not “$" / MG ”(green emphasized search) is set. If Yes (green emphasized search), then go to step ep 76 (advance, green emphasized search information update processing (memory of highlight cancellation command in search control table 40)
  • the contents of D c in the table (Fig. 6 (e)) are set to 0, and the contents of D s in the emphasis search command storage table (Fig. 6 (c)) are stored in the emphasis search command storage table (Fig. 6 (c)).
  • c) Save the highlighted search information by executing E) (save in save memory) in)) and finish the process. If it is not green at st ep 75, branch to st ep 77.
  • Step ep77 is executed when there is no color specification, executes the emphasized search information updating process as a non-emphasized search that simply moves the cursor to a matching position, updates the emphasized search information, and ends the process.
  • FIG. 13 shows the detailed processing of step 26 in FIG. Since the same processing is performed for other colors, the description of the processing for other colors is omitted.
  • step 81 the content of Be in the emphasis release command storage template (FIG. 6 (e)) in the search control template 40 is set to 0 (when the emphasis search is commanded, the deemphasis is canceled.
  • the contents of Bs in the search command storage table with emphasis (Fig. 6 (c)) are saved in Es (save memory) of the same table.
  • step 82 checks whether or not Es is 0 as an initial check, and if it is 0, proceeds to step 83 and stores “3” in Es. If it is not 0, the processing after step 84 is performed with the value initially taken.
  • B s the contents of B s (the order of red highlighting search command immediately before) Check if is equal to 1.
  • B s 1 is interpreted as the latest command (the previous command was also a red-emphasized search command), so the same command is continued, and the process ends without changing the execution order. If B s ⁇ 1, another emphasis search command was issued last, so 1 is written to B s at step 85 to indicate that the red emphasis search is the latest command.
  • Step 86 and subsequent steps are processing for changing the execution order of other commands due to updating the red highlight search to the latest command.
  • step 86 the contents of Es and As, which are the set values of the old Bs, are compared, and if As> Es, the process proceeds to step 87, and the search without all-color emphasis has not been commanded in the past.
  • Check whether (A s 0). If it is No (commanded), the content of As is incremented by 1 in step 88, and the order of execution of the search without emphasis is reduced. This means that the search using the highlighted color during the discrimination is performed only when the ranking using the highlighted color during the discrimination is higher (older) than the previous execution of the search command using the highlighted color executed this time.
  • step 91 the process of Cs (two 1) +1 is performed. That is, Cs is changed from 1 to 2, and this 2 is stored in Cs.
  • FIG. 14 shows the details of the character string search and highlighting processing using the designated color of the matching part.
  • the start address of the display buffer is written to the check pointer, and the end address of the display buffer is written to the end pointer.
  • the start address of the character string memory is set to the character string pointer, and the start flag (FG) is turned on.
  • the first FG is a signal for acquiring the address of the first character of the specified character string when the first character is found in the display buffer.
  • step 102 one character is read from the search character string storage table (FIG. 6 (b)) storing the input character string.
  • step 104 it is determined whether or not reading has been completed to the end of the search character string memory. If not, the process proceeds to step 104 to specify the address of the display buffer (the address specified in the check box). Read one character from the search character string storage table (FIG. 6 (b)) storing the input character string.
  • step 1 05 it is determined whether or not one character of the specified character string matches one character of the specified address of the display buffer, and if not, the process proceeds to ste 106 to change the read address of the display buffer. Update (increment (+1) the contents of the checkpoint evening) and return to step 104.
  • the process branches to s t e p 1 0 7 to check whether the first FG is on. If it is on, the head F G is turned off in step 108, and the address of the display buffer at this time is stored in the memory A O (the head address of the matching part). In stpe p109, the address of the current display buffer is stored in A1. This is the address of the last character when matching parts are accumulated. Further, the display buffer and the readout address of the character string are updated in preparation for the check of the next character, and the process returns to step 102.
  • the specified color information is added to a predetermined range of character data in the display buffer by the operation of the screen processing program 31. .
  • FIG. 15 shows a process for re-executing the search and the emphasis release for the latest display screen when the display range is changed due to a screen scroll or the like during the display of the machining program.
  • step 121 check whether the display area from the machining program memory to the display screen of the setting display panel 7 has changed. This is determined by whether or not the display window for reading data from the editing buffer has changed. If there is no change, the process is terminated as it is. If it is determined that the change has been made, the process proceeds to step 122 to determine the re-execution order of the emphasis cancellation command ((g) of the search control template 40, the re-cancel order). Create and update the decision table).
  • step 123 the emphasis cancellation command currently executed or already executed is re-executed in accordance with the determined order.
  • the ste 124 determines the re-execution order of the search command ((f) of the search control table 40, creates and updates the re-search order determination table), and executes the currently executed or already-executed according to the order determined in the step 125. Re-execute the search command.
  • FIG. 16 shows the details of the step 22 of FIG. 15 and the re-execution order determination processing of the emphasis cancellation command.
  • step 132 the maximum value of Ac to Dc in the emphasis cancellation command storage table (FIG. 6 (e)) is stored in Fc. Where F c is a numerical value This is a maximum value save memory for comparison.
  • the de-emphasis command is executed in the order of red and green for two types of red and green
  • the contents of the order determination table (g) are 1 (red) at the beginning and 3 at the second.
  • the third and fourth are /: FF
  • the de-emphasis command is re-executed only for red and green. Since / FF is detected at the third, control can be performed so that the processing ends.
  • FIG. 17 is a detailed flowchart of the process step 23 of FIG.
  • step 151 the start address of the order determination table (g) for re-executing the emphasis release command is set at the check point, and 4 is set to the check count counter Nc (not shown).
  • step 152 the contents of the address (incremented every cycle from the start address) specified by the check-in button of the order determination table are read.
  • step 154 ′ the value read from the order determination template in step 152 is written in Oc (offset value).
  • Nc the specified number of checks in the order determination table has been completed. If it is 0, the processing is terminated. If it is not 0, the check point is incremented and st ep l 52 Return to and check the next address.
  • the emphasis cancellation command can be executed again in the order in which the emphasis cancellation command was executed, and if the character string of the display mode already specified in the new display data is extracted, that part is replaced by the standard.
  • the display mode can be returned.
  • FIG. 18 shows details of the step 24 of FIG. 15 and the re-execution order determining process of the search command.
  • the maximum value of As to Ds of the search command storage table with emphasis (c) is stored in Fs.
  • F s is the maximum value save memory for numerical comparison.
  • step 162 If two colors, green and green, are executed in the order of red and green, in step 162, the maximum value of As, Bs, Cs, and Ds is stored in Fs.
  • step 66 the calculation of Fs—Bs, that is, the calculation of 2-2, is performed. Since the result is 0, 1 is added to the position (top position) of 0 in the order determination table (f). Write and proceed to step 167.
  • step 170 the calculation of F s — D s, that is, the calculation of 2-1 is performed, and the result is 1, so the position of 1 (the next position from the top) in the order determination table (f) is Ends the writing process.
  • the search command with emphasis is executed in the order of red and green for two types of red and green
  • the contents of the order determination table (f) are 1 (red) at the top and 2 at the second.
  • 3 (Green) 3rd and 4th are / FF
  • the search command with emphasis is re-executed only for red and green, and / FF is detected at the 3rd, so that control can be performed so that the processing ends.
  • FIG. 19 is a detailed flowchart of step 125 of FIG. 15 for re-executing the search command.
  • the order determination text for re-executing the search command with emphasis is —Set the start address of pull (f) to the check pointer, and set 4 to the check count counter Ns (not shown).
  • step 192 the contents of the address specified by the check-in evening of the order determination table (incremented every cycle from the start address) are read.
  • step 194 the value read from the order determination table in step 192 is written to O s (offset value).
  • step 195 the instruction at 0 s from the beginning of the search command template (a) is read, and the character string at ⁇ s from the beginning of the search character string storage table (b) is read. And execute the command.
  • step 196 the check frequency N s (not shown) is decremented (1-1).
  • st ep 197 it is checked whether or not Ns has become 0 (the number of checks of the order determination template has been completed). If 0, the process is terminated. If not, the check pointer is incremented and st ep 192 is set. Return to and check the next address.
  • the emphasis search search command can be executed again in the order in which the emphasis search command was executed, and if a character string that matches the already specified character string is extracted from the new display data, the The location is highlighted in the specified display mode.
  • FIG. 1 In the input section for the search character string and highlighted display color information displayed on the display screen, and the input section for the de-emphasis information, , "$" Representing a character string and "/ M" representing a display color or "/ MC" representing release of highlighting are added by predetermined control to the various information, and are realized in the first embodiment. It is internally converted into a search command with highlighting or a command to cancel highlighting of the expression. Starting from the processing shown in FIGS. 7 and 8 using the above information, the necessary processing shown in FIGS. 9 to 19 is executed, whereby the same processing as in the first embodiment is performed. The function can be performed by inputting the information shown in FIG. 2 or FIG.
  • the word list 43 for the decimal point check in the parameter memory 4 is an address word that indicates the coordinate position and length included in the commanded G command (hereinafter simply address). Or abbreviated as word) Of these, the addresses (X, Y, Z, etc.) that can use the decimal point are collected. The table is searched using the input address, and if there is a match, the address is determined to have a valid decimal point. This table is provided for each G code registered in the decimal code check target G code table 44 described below. Decimal point check target G code table 44 contains the address indicating the coordinate position and length where the decimal point can be used in its command.
  • G command (G00X "', GO1 ⁇ -, GO2I ..., etc.) This is a set of G codes (00, 01, 02, etc.) that summarizes the table. The table is searched using any input G code, and if there is a match, the G command has an address with a valid decimal point. Judge that there is a possibility of being instructed.
  • the warning judgment value 45 is the value of the input numerical value, such as the value specified for any address in any G command does not exceed the maximum command value, but is usually too small or too large to be commanded. This is a table that stores a threshold value for judging that conformity check is necessary.
  • FIG. 5 has already been described in the first embodiment, in the present embodiment, it is stored in the machining program area 6 (or may be an editing buffer (not shown) during editing of the machining program).
  • the details of the batch check process (st ep 08) that checks the program contents of the completed machining program at once and the method of displaying the results obtained in the batch check process will be described.
  • st e10 is processing not directly related to the present invention, and st ep04 to st ep07 are processing relating to the first embodiment, so description thereof will be omitted.
  • step 08 The batch check processing of step 08 and the sequential check processing of step 10 are almost the same as the application by the applicant of the present invention [International application number: PCT / JP 02/1 3625].
  • Fig. 20 shows the specifications of the NC unit in the specification where the decimal point is not included in the input data to the NC unit and the unit where the decimal point is not included.
  • the minimum command unit predetermined by the machine for example, 10 It is a table that summarizes what kind of numerical value is interpreted as numerical data with decimal point and data without decimal point in the input numerical data in the system of ju, 1 jum, or 3 ⁇ 113 111).
  • FIG. 21 is a parameter table in which the purpose for performing a warning by the collective check performed in the present embodiment and the threshold value for determination are stored for each command unit system of the NC unit.
  • This table shows the setting example of the threshold parameter (warning judgment value template) for discriminating the decimal point mistake for each minimum command unit system of 10 m, l ⁇ m, and 0.1 m.
  • the threshold parameter warning judgment value template
  • the value set here can be changed as appropriate depending on the size of the machine.
  • the command unit system (10 /, 1, 0.1 ⁇ ) determined by the machine specifications Set the boundary value at which a warning is issued based on the working range of the machine.
  • 0.5 nun is a preventive value for the under-command value.
  • the decimal point addition prevention value is set to 200 (usually a command of a length of 20 Omm is not issued unless the radius value has a large curvature. Judgment), the value 200 is set as the excessive command value prevention value for the same reason.
  • PD100SM (DT, LG) is a name given to each parameter.
  • SM SMALL
  • DT NORMAL-DATA
  • LG LARGE
  • the specific contents of the input mistake for reporting in the present embodiment are as follows.
  • Input value is too large or too small: If the input specification requires a decimal point (minimum command unit processing) and there is no decimal point in the input data, if the integer part of the input data is smaller than the preset lower limit, or If there is no decimal point in the input data because no decimal point is required (image unit processing), it is determined that the position of the decimal point is wrong when the integer part of the input data is larger than a preset upper limit.
  • Fig. 22 is a flow chart for reading out the parameters for the input value validity check of the machining program as threshold values corresponding to the command unit system of the NC unit.
  • step 201 first, the head address of the warning judgment value table is read out (adding the offset value given for each minimum command unit to this address to determine the head address of the desired parameter overnight).
  • step 202 the inch input flag of system parameter 21 is checked. If the flag is turned on, inch data processing is performed as an inch input. (This is the same processing as the metric input described below. Even so, the parameter corresponding to that is read out at the registration evening (SM, DT, LG), so it can be checked in the same way as the metric input).
  • step 203 the minimum command unit flag of the system parameter 21 is checked, and if the 0.1 / m flag is on, the process branches to step 205 to prevent an undercommand value corresponding to the minimum command unit of 0.1 lm. Read out the three parameters for preventing the addition of decimal points and preventing excessive command values, write them to the calculation memories SM, DT, and LG, respectively, and terminate the processing. If the flag is not turned on in step 203, proceed to step 204. Similarly, check the minimum command unit flag of the system parameter 21.If the 1m flag is on, branch to step 206 to minimize reading three parameters Isseki corresponding to reference unit lm, operation memory SM 3 DT, husband LG s write, the process ends.
  • step 204 If the flag is not turned on in step 204, it is regarded as a 10 ⁇ m command, and the process branches to step 207 to read three parameters corresponding to the minimum command unit of 10 ⁇ m, and to store the operation memories SM, DT, Write to LG respectively and finish the process.
  • FIG. 23 is a flowchart for checking the decimal point position or forgetting to attach the decimal point not sequentially during input of the program, but collectively after input is completed.
  • the st ep 21 1 checks whether or not the memory area displayed on the display screen of the setting display panel 7 has changed. When the search is first performed and the display screen is scrolled, the display area changes, and ste ⁇ 212 Proceed to.
  • step 2 12 the first address of the display memory is set in the check box, and the last address of the display memory is set. Set at the endboin evening. Even when the first check is activated, it is regarded as a change in the display area. If there is no change in the display screen area in step 211, there is no need to repeat the same check in the same area, so the process ends.
  • step 213 one character data is read from the address on the display memory designated by the check pointer, and the content of the check pointer is incremented by 1 (updated).
  • the read characters are stored in a predetermined area of the memory 5 to be stored in a predetermined area, and the data are collected and used as data for one block (up to the end block).
  • EOB end block
  • step 216 When it is determined that the character read in step 214 is EOB, the process proceeds to step 216 to check whether the read command program is program end (M02 or M30) or not. If the program ends, the process branches to step 218 to process the warning information. If it is determined in st ep 216 that the read command block is not the end of the program, the process proceeds to step 217, in which a decimal point check process described later is performed, and st ⁇ p 213 is used to check the next block. Return.
  • step 218 and step 219 post-processing is performed when there is a warning in the decimal point check processing.
  • step 218 a warning flag that is turned on when a warning occurs in the decimal point check processing is checked. If there is no warning, go to step 219 and write the "No warning" message to the display I / F 24. If the warning flag is on at step 218, the report location is stored in the highlight memory by the decimal check processing, and is automatically displayed based on this. Therefore, the process ends.
  • FIG. 24 shows the detailed processing of the input value check performed in step 211 of FIG.
  • the actual check contents are based on comparison with the above three parameters to prevent under command value (input value is too small or not forgetting to attach decimal point), prevent decimal point addition (addition of decimal point increases input value. Too much), Prevent excessive command value (Is the input value too large, or the wrong decimal point?).
  • step 222 it is checked whether or not the G code is subjected to the decimal point check. This is done by searching the G code table 44 for the decimal point check, which is a collection of G codes containing addresses where decimal points can be used in the G command.
  • the process proceeds to step 2 23, and the decimal point check target code table 4 3 stored corresponding to each G code in the decimal point check target G code table 4 4 4 3 Read the address of Furthermore, the address code input following the G code is read, and the head address of the pad (the storage position of the address code) is stored. (However, the storage of the head address of the word is a process required for batch check.) Is). If no G code is detected in st e p 222, the decimal point check is unnecessary and the processing is terminated.
  • the address code of the read code data (the address word of X, Y, ⁇ , etc. and the numerical data following it, which is delimited by the input of the address word or end-op block (;)) is Check whether the decimal point check starting from the read address exists in the target table 43. Here, if it is determined as Yes, the process proceeds to step 225 to read the integer part of the input data following the address, and further store the end address of the word data (where the end address is stored. This is necessary for batch check). If it is determined as No in step 2 2 4, a check is performed overnight. Since there is no need to perform this process, the process ends.
  • step 226 it is checked whether or not the mm processing flag in the system parameter 21 is on.
  • This flag is the NC data input specification shown in Fig. 20.
  • the input command value for example, 25
  • it In order to interpret the input command value (for example, 25) as 25 mm, it must be entered with a decimal point of "25.” (for example, l zm In the unit, if there is no decimal point, it will be interpreted as "2 5" / m.) You only need to enter "decimal point required" type and "25" (If there is no decimal point, it will be automatically interpreted as mm unit) " Decimal point not required ”type is selected. If the flag is ON (mm unit processing), the process proceeds to step 227. If the flag is OFF (minimum command unit process), the process branches to step 234.
  • step 227 it is checked whether or not the input data contains a decimal point. If there is a decimal point, the process proceeds to step 228, and the integer part read out in step 225 and step 205 to FIG. Compare the parameter value DT read out at st ep 207. If the integer part is> DT, the process proceeds to step 229. In order to make it easy to recognize that the decimal point has a large value, for example, the character code of “G” indicating green display is displayed in a not-shown display mode t emp (temporary memory). ) And go to step 230. If the integer part is not> D T in st e p 108, the process branches to st e p 110.
  • step 227 If it is determined in step 227 that there is no decimal point, the process branches to step 232, and similarly compares the integer part and the parameter value LG. If the integer part is> LG, proceed to step 233. To make it easy to identify that the value will be abnormal unless a decimal point is added, for example, write the character code of "R" indicating red display in the display mode temp. Proceed to st ep 230. If the integer part is not greater than L G in st e p 232, the process ends.
  • step 234 check whether the decimal point is included in the input data, and if there is a decimal point, go to st ep 235 Proceed and compare the integer part and the parameter value DT in the same way. You. If the integer part is> DT, the process proceeds to step 236. In order to make it easy to recognize that the decimal point has a large value, for example, a character code of “G” indicating green display is written in the display mode t emp, and st Proceed to ep 230. If the integer is not ⁇ > DT at st ep 235, the processing ends.
  • step 234 If it is determined in step 234 that there is no decimal point, the process branches to step 237, and similarly compares the integer part and the parameter SM. If the integer part is ⁇ SM, the process proceeds to step 238. To make it easy to identify that the value is small without a decimal point, for example, the character code of “B” indicating blue display is displayed in the display mode t emp (temporary). Memory) and proceed to st ep 230. If the integer part is not SM in st e p 237, the process ends.
  • the number of digits of the input value is correctly specified within the maximum number of digits.However, by setting a parameter for the maximum number of input digits and comparing this with the input value, The number of digits of the input value can be checked at the time, and if the number of digits is exceeded, it can be corrected by a warning. In this case as well, it is possible to find in advance the number of digits that could not be found unless the machining program was analyzed and executed after programming in advance, and the degree of completion of the machining program can be increased.
  • st ep230 and st ep231 are for performing the input value check processing in a batch check.
  • step 230 it is checked whether or not the mode is a batch check mode.
  • the start / end address of the word data (address + numerical data) and the display mode (not shown) stored in the display mode temp are set in the emphasis information 41, and the process ends.
  • the screen processing unit 31 determines a predetermined processing program displayed on the display unit of the setting display panel 7. Highlight the range.
  • the display mode is changed for each warning content.
  • the same display mode or an operator can easily select the display mode. is there.
  • the check target memory is the machining program area 6, the same effect can be obtained as the editing noise during the machining of the machining program.
  • the concrete implementation method of the present invention has been described in detail for the three embodiments, it is needless to say that a method for obtaining the same operation and effect as the above embodiment can also be implemented by a method other than the above.
  • the information display device is an information display system that displays information such as characters and symbols on a display device having a display screen using a CRT (cathode ray tube) or an LCD (liquid crystal). It is suitable for use as an information display device for searching for an arbitrary character string from 3 ⁇ 4 information to be searched and for highlighting and displaying a matched character string.
  • CTR cathode ray tube
  • LCD liquid crystal

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Numerical Control (AREA)

Abstract

In a display apparatus of a processing program or various information, by specifying a display mode of a character string matched with a character string to be arched, it is possible to display different character strings in different display modes. The display apparatus includes: a search instruction information input unit for inputting a character string for searching an arbitrary character string in a specified memory region and an arbitrary display mode for emphasizing a matched portion when the input character string is extracted; and a search display control unit for performing a character string search and controlling the display mode according to the search instruction information which has been input by the search instruction information input unit. The search display control unit is formed so as to emphasize, when displayed, the character string searched in the specified memory region in the specified arbitrary display mode. Moreover, there is provided an emphasis release processing unit for specifying an arbitrary display mode for a part of the emphasized information to release the emphasis.

Description

明 細 情報表示装置 技術分野  Description Information display device Technical field
本発明は C R T (陰極線管) や L C D (液晶) などを利用した表示画面を有 する表示装置に文字や記号等の情報を表示する情報表示装置に関するものであ り、 更に詳しくは検索対象となる情報から任意の文字列を検索するとともに、 —致した文字列を任意の表示態様で強調表示させる技術に関する。 背景技術  The present invention relates to an information display device for displaying information such as characters and symbols on a display device having a display screen using a CRT (cathode ray tube), an LCD (liquid crystal), and the like. The present invention relates to a technique for searching for an arbitrary character string from information and for highlighting a matched character string in an arbitrary display mode. Background art
例えばイン夕一ネットに接続されたコンピュータで情報を検索する場合、 所 望のキーワードや文字列 (以下、 文字列で代表させる) を入力して検索を行う と、 検索対象となつた情報の内、 一致した文字列を太字で表示したり、 予め決 められた表示色で表示して強調したりして、 他の情報と区別し易くしている。 こういつた情報表示システムに於ては、 利用者が自由に指定できるのは検索す る文字列部分だけであり、 一致した文字列の表示態様を指定することはできな かった。  For example, when searching for information on a computer connected to the Internet, if you enter a desired keyword or character string (hereinafter represented by a character string) and perform a search, the information The matching character string is displayed in bold or displayed in a predetermined display color and emphasized to make it easier to distinguish it from other information. In such an information display system, the user can freely specify only the character string portion to be searched, and cannot specify the display mode of the matched character string.
これらの問題点の一部を解決するために、 文字列を検索して一致箇所を 強調表示するものとしては例えば特開平 8— 6 3 4 6 4号公報ゃ特開 2 0 0 2 - 7 3 6 8 5号公報に示されるような技術がある。  In order to solve some of these problems, for example, Japanese Patent Application Laid-Open No. H8-63464 / 1995 discloses a method for highlighting a matching part by searching a character string. There is a technique as disclosed in Japanese Patent Publication No. 6-85.
特開平 8— 6 3 4 6 4号公報は一つの文字に対して同義文字 ( 3,③, III, 三, 参 etc . ) についても.検索できるものであるが、 一致部分の強調方法は予め 定められた一種類のみであり、 選択や指定はできない。 また、 特開 2 0 0 2— 7 3 6 8 5号公報は検索キーワードを含む w e bページを検索して表示するも のであって、 キ一ワードと一致する部分に強調パラメ一夕を付加することによ り着色, 太字, 拡大, 傾斜, 下線, 明暗反転等の強調方法を指定できるが、 そ れらを異なる検索キ一ワードに対応して任意に指定したり、 同一画面上で異な る検索キーワードでの検索結果を異なる表示態様で同時に表示したりする技術 については開示も示唆もない。 Japanese Unexamined Patent Publication No. Hei 8 (1994) -633464 can search for synonymous characters (3, ③, III, 3, reference etc.) for one character. There is only one fixed type and cannot be selected or specified. Also, Japanese Patent Application Laid-Open Publication No. 2002-733655 searches and displays a web page including a search keyword, and adds an emphasis parameter to a portion that matches a keyword. By You can specify highlighting methods such as coloring, bolding, enlarging, sloping, underlining, inverting light and shade, etc. You can specify them arbitrarily according to different search keywords, or use different search keywords on the same screen. There is no disclosure or suggestion of a technique for simultaneously displaying search results in different display modes.
また、 本文献 (後者) に於ては一つのキーワードについて一致部分を強 調表示させることはできるが、複数のキーヮ一ドに対応して夫々任意に指 定する技術については開示も示唆もない。 更に、 一旦強調表示された文字 列の強調を解除することについての示唆も無い。  Also, in this document (the latter), the matching part can be highlighted for one keyword, but there is no disclosure or suggestion of a technique for arbitrarily specifying each corresponding to a plurality of keypads. . Furthermore, there is no suggestion to de-emphasize the highlighted string.
検索したい文字列が一つだけであれば、従来の様に表示態様は一つでもよく、 またモノクローム表示装置であれば本質的に文字太さ、 反転、 ハイライト或い はフリッカ一程度の限られた表示態様しか採用できないという制限もあるので、 止むを得ない仕様ではある。 これがカラ一表示装置であれば任意の表示色を使 用できるので、 前記文献に示された技術で表示色を替えて表示することによつ て注視すべき場所が一瞥して判断できるという効果が活かされることになる。 然し、 O R (指定した複数の文字列の内、 何れかが存在すれば該当すると看 なす) 検索や A N D (指定した複数の文字列の全てが存在した時に該当すると 看なす) 検索、 或いは同一領域に於ける重ね検索 (異なる文字列を任意の順序 で繰返し検索する) などのために複数の異なる文字列を用 、て検索する場合で あっても、 前記技術では強調表示は一種類のみである。 従って、 一致した全て の文字列が例えば同じ色で強調表示されることになり、 どの文字列がどこにあ るかということを認識するためには一々文字列を判読しなければならない。 こ のとき、 入力した複数の文字列について夫々表示態様 (ここでは表示色) を指 定できれば文字を読まなくても色で判断できるので、 検索情報の認識が容易に できるという利点がある。  If there is only one character string to be searched, there may be only one display mode as in the past, and if it is a monochrome display device, it is essentially limited to character thickness, inversion, highlight or flicker. Because there is a restriction that only the specified display mode can be adopted, the specification is unavoidable. If this is a color display device, any display color can be used, so that the display color can be changed and displayed by the technique disclosed in the above-mentioned document, so that the place to be watched can be determined at a glance. Will be utilized. However, OR (find if any of the specified character strings exist) is searched, AND (search is performed if all of the specified character strings exist), or search in the same area In the above technique, there is only one type of highlighting, even when performing a search using multiple different character strings for overlapping search (repeated search for different character strings in an arbitrary order), etc. . Therefore, all matching character strings will be highlighted in the same color, for example, and the character strings must be read one by one in order to recognize which character string is where. At this time, if the display mode (display color in this case) can be specified for each of a plurality of input character strings, it is possible to determine the color without reading the character, so that there is an advantage that the search information can be easily recognized.
更に、 検索された情報の中で不要となった任意の強調表示を他の文字と同じ 表示態様に戻そうと思ってもそれを実現する機能は存在しないので、 当該強調 表示を別の文字列に使用することはできない 発明の開示 Furthermore, there is no function to realize any of the unnecessary highlighting in the retrieved information that is intended to return to the same display mode as other characters. Indication cannot be used for another character string DISCLOSURE OF THE INVENTION
本発明はこのような点に鑑みてなされたものであり、 任意の文字列を検索す ると共に一致部分を任意の表示態様で強調表示することができる情報表示装置 を提供することを目的とする。  The present invention has been made in view of such a point, and an object of the present invention is to provide an information display device capable of searching for an arbitrary character string and highlighting a matching portion in an arbitrary display mode. .
また本発明は、 検索された複数の任意の文字列を任意の異なる表示態様で強 調表示することができる情報表示装置を提供することを目的とする。  It is another object of the present invention to provide an information display device capable of highlighting a plurality of searched arbitrary character strings in arbitrary different display modes.
更にまた、 本発明は前記検索で指定された表示態様に基づく表示の強調を表 示態様毎に解除できる情報表示装置を提供することを目的とする。  Still another object of the present invention is to provide an information display device capable of canceling display emphasis based on the display mode designated by the search for each display mode.
本発明は前記目的を達成させるために、 指定されたメモリ領域中の任意の文 字列を検索するための文字列と前記入力された文字列を抽出した時に当該一致 部分を強調するための任意の表示態様とを入力する検索指令情報入力部と、 前 記検索指令情報入力部にて入力された検索指令情報により、 文字列検索と共に 表示態様の制御を行う検索表示制御部とを備え、 前記検索表示制御部を、 前記 指定されたメモリ領域中の検索された文字列を前記指定された任意の表示態様 で強調して表示するようにしたものである。  In order to achieve the above object, the present invention provides a character string for searching an arbitrary character string in a specified memory area and an optional character string for extracting the input character string and highlighting a matching part when extracting the character string. A search command information input unit for inputting the display mode of the above, and a search display control unit for controlling the display mode together with the character string search based on the search command information input at the search command information input unit, The search display control unit is configured to highlight and display the searched character string in the specified memory area in the specified display mode.
このため、 任意の文字列を検索すると共に一致部分を任意の表示態様で強調 表示することができ、 一致部分の認識が容易にできる。 '  For this reason, any character string can be searched, and the matching part can be highlighted in an arbitrary display mode, and the matching part can be easily recognized. '
また本発明に係る情報表示装置は、 前記文字列及び表示態様は複数組を独立 して指定できるようにしたものである。  In the information display device according to the present invention, a plurality of sets of the character string and the display mode can be specified independently.
このため、 複数の任意の文字列を任意の異なる表示態様で強調表示すること ができ、 複数の異なる文字列の認識を、 同時並行的に異なる表示態様で容易に 行えるという効果がある。  For this reason, a plurality of arbitrary character strings can be highlighted in any different display modes, and there is an effect that a plurality of different character strings can be easily and simultaneously recognized in different display modes.
また本発明に係る情報表示装置は、 前記文字列及び表示態様は複数組を独立 して指定でき、 且つ実行された文字列検索及び強調表示の実行順序を記憶する 手段を有する構成としたものである。 Further, in the information display device according to the present invention, the character string and the display mode can independently designate a plurality of sets, and store the execution order of the executed character string search and highlighted display. This is a configuration having means.
このため、 複数の任意の文字列を任意の異なる表示態様で強調表示すること ができ、 複数の異なる文字列の認識を、 同時並行的に異なる表示態様で容易に 行える。 しかも画面スクロール等で検索範囲が異なるものとなったとしても、 新たに検索文字列及び表示態様を入力しなくても、 引き続き文字列検索及び強 調表示を行うことができる。  For this reason, a plurality of arbitrary character strings can be highlighted in any different display modes, and a plurality of different character strings can be easily and simultaneously recognized in different display modes. Moreover, even if the search range is changed by scrolling the screen or the like, the character string search and the highlight display can be continuously performed without newly inputting the search character string and the display mode.
また本発明に係る情報表示装置は、 前記指定されたメモリ領域中の強調表示 部を元の表示状態に戻す強調解除を指定する強調解除指令入力部と、 前記強調 解除指令入力部にて指定されたメモリ領域中の表示態様を検索し、 当該一致部 分の表示態様を標準の表示態様に戻す強調解除処理部とを備え、 前記強調解除 処理部を、 指定されたメモリ領域中の強調表示された文字列を検索前の強調無 し状態に戻すようにしたものである。  The information display device according to the present invention may further include: an emphasis cancellation command input unit that specifies emphasis cancellation for returning the highlighting unit in the designated memory area to the original display state; A display mode in the specified memory area, wherein the display mode is searched for in the memory area, and the display mode for the matching portion is returned to the standard display mode. The returned character string is returned to the state without emphasis before the search.
このため、 不要となった強調表示を解除でき、 異なる文字列の同一表示態様 による検索を容易に繰り返して行うことができる。  For this reason, unnecessary highlighting can be canceled, and a search using different character strings in the same display mode can be easily and repeatedly performed.
また本発明に係る情報表示装置は、 前記強調解除を複数の表示態様に対応し て個別または一括して指定できるようにしたものである。'  In the information display device according to the present invention, the emphasis cancellation can be specified individually or collectively according to a plurality of display modes. '
このため、 不要となった強調表示を個別または一括して解除でき、 異なる文 字列の同一表示態様による検索を容易に繰り返して行うことができる。  For this reason, unnecessary highlighting can be canceled individually or collectively, and a search using the same display mode for different character strings can be easily and repeatedly performed.
また本発明に係る情報表示装置は、 前記強調解除は複数組を独立して指定で き、 且つ実行された強調解除の実行順序を記憶する手段を有する構成としたも のである。  Further, the information display apparatus according to the present invention has a configuration in which a plurality of sets of the de-emphasis can be designated independently, and a means for storing an execution order of the executed de-emphasis is provided.
このため、 画面スクロール等で検索範囲が異なるものとなったとしても、 新 たに強調解除の入力しなくても、 引き続き強調解除を行うことができる。  For this reason, even if the search range becomes different due to screen scrolling or the like, the emphasis cancellation can be continued without newly inputting the emphasis cancellation.
また本発明に係る情報表示装置は、 指定されたメモリ領域中の任意の文字列 に対して所定の条件チェックを行う一つ以上のチェックプログラム、 指定され たメモリ領域中の文字列中から前記チヱックプログラムに対応して実行される 条件チェックで特定された文字列範囲、 及び当該文字列を強調表示するために 指定された表示態様を記憶する強調情報記憶部と、 前記条件チェックで特定さ れた文字列範囲を強調表示する検索表示制御部とを備え、 検索表示制御部を、 前記指定されたメモリ領域中の条件チェックで特定された文字列を前記強調情 報記憶部で指定された表示態様で強調して表示するようにしたものである。 このため、 プログラム作成とプログラムチェックの夫々に注力でき、 作業効 率が上がると共にプログラムチェックに於いては警告内容を異なる表示態様で 表示できるので、 プログラムチェックが容易になる。 図面の簡単な説明 Further, the information display device according to the present invention comprises: at least one check program for performing a predetermined condition check on an arbitrary character string in a specified memory area; Executed in response to a security program A highlight information storage unit that stores the character string range specified in the condition check and a display mode specified to highlight the character string, and a search that highlights the character string range specified in the condition check A display control unit, wherein the search display control unit is configured to highlight the character string specified by the condition check in the specified memory area in a display mode specified by the highlight information storage unit. It was done. For this reason, it is possible to concentrate on each of the program creation and the program check, and the work efficiency is improved, and the contents of the warning can be displayed in different display forms in the program check, so that the program check becomes easy. BRIEF DESCRIPTION OF THE FIGURES
第 1図は本発明の実施の形態 1に係る式入力方式による検索強調表示画面例 を示す図である。 .  FIG. 1 is a diagram showing an example of a search highlight display screen by an expression input method according to Embodiment 1 of the present invention. .
第 2図は本発明の実施の形態 2に係る一括入力方式による検索強調表示画面 例を示す図である。  FIG. 2 is a diagram showing an example of a search highlight display screen by a batch input method according to Embodiment 2 of the present invention.
第 3図は本発明の実施の形態 2に係る強調解除画面例を示す図である。  FIG. 3 is a diagram showing an example of an emphasis release screen according to Embodiment 2 of the present invention.
第 4図は本発明の実施の形態 1〜 3に係る N C装置のブロック図である。 第 5図は本発明の実施の形態 1〜 3に係るプログラムチェック ·確認メィン 処理のフローチャートである。  FIG. 4 is a block diagram of an NC device according to Embodiments 1 to 3 of the present invention. FIG. 5 is a flowchart of a program check / confirmation main process according to Embodiments 1 to 3 of the present invention.
第 6図は本発明の実施の形態 1、 2に係る文字列検索制御用テ一ブル例を示 す図である。  FIG. 6 is a diagram showing an example of a character string search control table according to Embodiments 1 and 2 of the present invention.
第 7図は本発明の実施の形態 1、 2に係る文字列検索 ·強調解除情報設定処 理のフローチヤ一ト (第 5図の s t e p O 5の詳細フローチャート) である。 第 8図は本発明の実施の形態 1、 2に係る文字列検索 ·強調解除処理のフロ —チャート (第 5図の s t e p 0 6の詳細フロ一チャート) である。  FIG. 7 is a flowchart (detailed flowchart of step O5 in FIG. 5) of a character string search / emphasis cancellation information setting process according to Embodiments 1 and 2 of the present invention. FIG. 8 is a flowchart (detailed flowchart of step 06 in FIG. 5) of a character string search / de-emphasis cancellation process according to Embodiments 1 and 2 of the present invention.
第 9図は本発明の実施の形態 1、 2に係る強調解除指令情報更新処理のフロ —チヤ一ト (第 8図の s t e p 2 2詳細フローチャート) である。 第 1 0図は本発明の実施の形態 1、 2に係る強調解除情報更新処理のフロー チャート (第 9図の s t e p 3 2の詳細フローチャート) である。 FIG. 9 is a flowchart (detailed flowchart of step 22 in FIG. 8) of the emphasis release command information updating process according to the first and second embodiments of the present invention. FIG. 10 is a flow chart (detailed flowchart of step 32 in FIG. 9) of the emphasis release information updating process according to the first and second embodiments of the present invention.
第 1 1図は本発明の実施の形態 1、 2に係る強調解除処理のフローチャート める。  FIG. 11 is a flowchart of the emphasis release processing according to the first and second embodiments of the present invention.
第 1 2図は本発明の実施の形態 1、 2に係る検索指令情報更新処理のフロー チャート (第 8図の s t e p 2 5の詳細フローチャート) である。  FIG. 12 is a flowchart (detailed flowchart of step 25 in FIG. 8) of the search command information updating process according to the first and second embodiments of the present invention.
第 1 3図は本発明の実施の形態 1、 2に係る検索情報更新処理のフローチヤ —ト (第 8図の s t e p 2 6の詳細フローチャート) である。  FIG. 13 is a flowchart (detailed flowchart of step 26 of FIG. 8) of the search information updating process according to the first and second embodiments of the present invention.
第 1 4図は本発明の実施の形態 1、 2に係る検索 ·強調処理のフローチヤ一 トである。  FIG. 14 is a flowchart of search / emphasis processing according to Embodiments 1 and 2 of the present invention.
第 1 5図は本発明の実施の形態 1、 2に係る検索 ·強調解除再実行処理のフ 口—チャート (第 5図の s t e p 0 7の詳細フローチャート) である。  FIG. 15 is a flowchart (detailed flowchart of step 07 in FIG. 5) of the search / emphasis release re-execution processing according to the first and second embodiments of the present invention.
第 1 6図は本発明の実施の形態 1、 2に係る強調解除再実行順序決定処理の フローチャート (第 1 5図の s t e p 1 2 2の詳細フローチャート) である。 第 1 7図は本発明の実施の形態 1、 2に係る強調解除再実行処理のフローチ ャ一ト (第 1 5図の s t e p 1 2 3の詳細フローチャート) である。  FIG. 16 is a flowchart (detailed flowchart of step 122 of FIG. 15) of the emphasis release re-execution order determination process according to the first and second embodiments of the present invention. FIG. 17 is a flowchart (detailed flowchart of step 123 of FIG. 15) of the emphasis release re-execution processing according to the first and second embodiments of the present invention.
第 1 8図は本発明の実施の形態 1、 2に係る検索強調再実行順序決定処理の フローチャート (第 1 5図の s t e p 1 2 4の詳細フローチャート) である。 第 1 9図は本発明の実施の形態 1、 2に係る検索強調再実行処理のフローチ ャ一ト (第 1 5図の s t e p 1 2 5の詳細フローチャート) である。  FIG. 18 is a flowchart (detailed flowchart of step 124 of FIG. 15) of the search emphasis re-execution order determining process according to the first and second embodiments of the present invention. FIG. 19 is a flowchart (detailed flowchart of step 125 of FIG. 15) of the search emphasis re-execution processing according to the first and second embodiments of the present invention.
第 2 0図は本発明の実施の形態 3に係る小数点入力仕様、 最小指令単位と入 力データの解釈対応表を示す図である。  FIG. 20 is a diagram showing a decimal point input specification, a minimum command unit and an interpretation correspondence table of input data according to Embodiment 3 of the present invention.
第 2 1図は本発明の実施の形態 3に係る警告判定値例を示す図である。  FIG. 21 is a diagram showing an example of a warning determination value according to Embodiment 3 of the present invention.
第 2 2図は本発明の実施の形態 3に係る入力データ判別準備処理のフローチ ャ一トである。  FIG. 22 is a flowchart of input data determination preparation processing according to Embodiment 3 of the present invention.
第 2 3図は本発明の実施の形態 3に係る入力データ読取処理のフローチヤ一 トである。 FIG. 23 is a flowchart of an input data reading process according to the third embodiment of the present invention. It is.
第 2 4図は本発明の実施の形態 3に係る入力値チエック処理のフローチヤ一 トである。 発明を実施するための最良の形態  FIG. 24 is a flowchart of an input value check process according to Embodiment 3 of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION
実施の形態 1 . Embodiment 1
本発明を、 工作機械を制御する数値制御 (Numerical Control, 以下 N Cと略 す) 装置に適用した場合について説明する。  The case where the present invention is applied to a numerical control (Numerical Control, hereinafter abbreviated as NC) device for controlling a machine tool will be described.
N C工作機械でワークを加工する場合、 通常は N C工作機械を制御する N C 装置にワークを加工するための加工プログラムを入力しておき、 この加工プロ グラムを呼出 ·実行して N C工作機械のテーブルと工具の相対位置を制御し、 ワークに加工を施す。 この加工に先立って加工プログラムに誤りが無いか否か をチェックしたり、 着目したい命令についての指令状況を確認したりすること 力 sある。 When machining a workpiece with an NC machine tool, a machining program for machining a workpiece is usually input to the NC device that controls the NC machine tool, and this machining program is called and executed. The workpiece is processed by controlling the relative positions of the tool and the tool. It can check whether or not an error is not in the machining program prior to this processing, sometimes force s or check the instruction situation of the instruction that you want to focus.
本実施の形態 1は文字列検索制御の一例を説明したものであり、 作成した加 ェプログラム中の文字列と強調色を指定して検索し、 一致した文字列を強調表 示することにより入力データを容易に確認でき、 また必要に応じて訂正できる ようにするものである。 また、 前記強調表示は強調解除命令を指令実行するこ とにより任意に解除できる。  The first embodiment describes an example of a character string search control. A search is performed by designating a character string and a highlight color in a created addition program, and a matching character string is input by highlighting the character string. The data can be easily checked and corrected if necessary. The highlighting can be arbitrarily canceled by executing a command for canceling the emphasis.
なお、 この文字列検索、 強調表示及び強調解除指令のフォーマットとしては、 例えば次の様なものがある。  The format of the character string search, emphasis display and emphasis cancellation commands is, for example, as follows.
〔文字列検索 &強調表示指令〕  [Character string search & highlighting command]
$ S t r/MR … $ S t rは任意の文字列、 /MRは一致文字列を赤色表 示  $ Str / MR… $ Str is an arbitrary character string, / MR is a matching character string in red.
$ S t r /MB … $ S t rは任意の文字列、 / MBは一致文字列を青色表 $S t r/MG … $ S t rは任意の文字列、 /MGは一致文字列を緑色表 示 $ S tr / MB… $ S tr is an arbitrary character string, / MB is a matching character string in blue $ S tr / MG… $ S tr is an arbitrary character string, / MG is a matching character string in green
(Strは Stringの略、 MR (B, G) は Marking Red (Blue, Green) の略) (Str stands for String, MR (B, G) stands for Marking Red (Blue, Green))
〔強調解除指令〕 (Emphasis release command)
/MCR … 赤色表示部を通常色に戻す / MCR… Return the red display to the normal color
/MCB … 青色表示部を通常色に戻す / MCB… Return blue display to normal color
/MCG … 緑色表示部を通常色に戻す / MCG… Return the green display to the normal color
/MC … 赤 ·青 ·緑の全表示部を通常色に戻す / MC… Return all red, blue and green display parts to normal colors
(MCR (B5 G) は Marking Cancel Red (Blue, Green) の略) (MCR (B 5 G) stands for Marking Cancel Red (Blue, Green))
第 1図は本発明の実施の形態 1による検索画面表示例であり、 検索情報及び 表示態様の指定を式により入力するものである。  FIG. 1 shows an example of a search screen display according to the first embodiment of the present invention, in which search information and designation of a display mode are input by an expression.
第 1図に示した表示画面では加工プログラム記憶メモリに格納された加工プ ログラムの内、 プログラム番号 3000 (03000) の加工プログラムの内 容の一部を表示しており、 且つ 3種類 ( 、 "M"、 "X0Y0" ) の文 字列検索及び強調表示が個別に実行された状態 (最後が "X0YO"を実行) を示している。  The display screen shown in Fig. 1 displays a part of the contents of the machining program with program number 3000 (03000) among the machining programs stored in the machining program storage memory, and has three types (, " M "," X0Y0 ") in which the character string search and highlighting are executed individually (the last is" X0YO ").
この例では複数の強調表示された箇所を判り易くするために、 便宜上四角で 囲んでいる。 本実施の形態による検索情報は第 1図の右上に示すような情報入 力部に、 検索文字列及び強調情報を式形式で入力し、 開始を指示する (開始ボ タンを押す) ことで文字列検索及び強調表示が実行される。  In this example, a plurality of highlighted parts are boxed for convenience to make them easy to understand. The search information according to the present embodiment is obtained by inputting a search character string and emphasis information in the form of an expression in an information input section as shown in the upper right of FIG. 1 and instructing to start (pressing the start button). A column search and highlighting is performed.
また、 第 2図は前記文字列検索及び強調表示の文字列を式入力ではなく専用 入力部に個別指定できるようにしたものである。 具体的には、 図の右上に示す ような専用入力部に、 検索順に検索文字列の欄に検索文字列を入力するととも に、 表示色の欄の検索文字列に対応する個所に強調情報を入力し、 開始ボタン を押すことで、 文字列検索及び強調表示が入力順に自動的に実行される。  FIG. 2 shows that the character strings for the character string search and highlighting can be individually designated in a dedicated input unit instead of in an expression. Specifically, the search string is entered in the search string field in the search order in the dedicated input section as shown in the upper right of the figure, and the emphasis information is entered in the area corresponding to the search string in the display color field. By inputting and pressing the start button, the character string search and highlighting are automatically executed in the input order.
この例の場合、 検索文字列及び強調情報の入力部が専用の入力部となってい るので、 この部分には、 "Z"、 "X0Y0"等の検索文字列の前に 「 "$" を入力する必要がなく、 また "R"、 "G"等の強調情報の前に "M" を入力 する必要がない。 また、 一括入力できるとともに、 一括して文字列検索及び強 調表示が自動時に実行される。 In this example, the input section for the search string and the emphasis information is a dedicated input section. Therefore, there is no need to enter "$" in front of the search string such as "Z" or "X0Y0" in this part. Also, before the emphasized information such as "R" or "G", There is no need to enter M ". In addition to being able to enter all at once, the character string search and highlight display are executed automatically at the same time.
第 3図は前記第 2図のものにより検索され、各種強調表示された文字列の内、 所望の強調表示を、 専用入力部から個別指定して解除するようにしたものであ る。 なお、 第 3図は、 専用入力部の表示色の欄に: R (赤) を入力し、 解除開始 ボタンを押すことにより、 R (赤) の強調情報を解除する例を示している。 以下、 前記第 1図〜第 3図に示されるような文字列検索及び強調表示制御を 行わせるための NC装置の構成について、 第 4図を用いて説明する。  FIG. 3 shows an example in which the desired highlighting of various highlighted character strings searched for in FIG. 2 is individually designated from the dedicated input unit and released. Fig. 3 shows an example in which the R (red) highlight information is released by inputting R (red) in the display color field of the dedicated input section and pressing the release start button. Hereinafter, the configuration of the NC device for performing the character string search and the highlight display control as shown in FIGS. 1 to 3 will be described with reference to FIG.
第 4図は前記 N C装置の一構成例を示すプロック図であり、 第 4図に於て、 CPU1はメモリ 2に接続され、メモリ 2の制御プログラムエリア 3に格納され た制御プログラムを 1ステヅプずつ読出し、 パラメ一夕エリア 4に格納された パラメ一夕や、 データエリア 5に格納されたデ一夕を用いて解析 ·実行し、 N C装置としての所定の機能を実現する。 加工プログラムもこのメモリ 2中の加 ェプログラムェリア 6に格納される。 また C P U 1には各種データ入出力用の 設定表示盤 7が設定表示盤イン夕一フェース (以下 I/Fと略す) 8を介して 接続される。  FIG. 4 is a block diagram showing an example of the configuration of the NC unit. In FIG. 4, the CPU 1 is connected to the memory 2 and executes the control programs stored in the control program area 3 of the memory 2 step by step. Reading and analyzing / executing using the parameters stored in the parameter storage area 4 and the parameters stored in the data area 5, realizes a predetermined function as an NC device. The machining program is also stored in the program area 6 in the memory 2. A setting display panel 7 for various data input / output is connected to the CPU 1 via a setting display panel interface (hereinafter abbreviated as I / F) 8.
CPU 1には駆動部入出力 I/F 9を介して駆動制御部 10が接続され、 駆 動制御部 10は図示しないモー夕に駆動電力を供給し、 機械を駆動すると同時 に前記モー夕に付加されている検出器からのフィ一ドバック情報を駆動制御部 10の内部で制御に使用すると共に、 前記 CPU 1によりメモリ 2のデ一タエ リア 5にも書き込まれる。 また、 CPU 1にはプログラム入出力装置 1 1が入 出力装置 I/F 12を介して接続されており、 外部で作成された加工プログラ ム等は前記プログラム入出力装置 1 1から読み込み、 メモリ 2内の加工プログ ラムエリア 6など入力されるデ一夕に対応したメモリェリァに格納される。 前記メモリ 2の詳細は第 4図のメモリ 2の下に展開して示す様に、 制御プロ グラムエリア 3、 パラメ一夕エリア 4、 デ一夕エリア 5、 加工プログラムエリ ァ 6の各エリアに分けられる。 更に詳細にはパラメ一夕エリア 4には、 例えば システムパラメ一夕 2 1、 軸パラメ一夕 2 2などが含まれ、 本発明で必要とな る小数点チェヅク対象ワードテーブル 4 3、 小数点チェック対象 Gコードテー ブル 4 4、 警告判定値テ一ブル 4 5も含まれる。 A drive control unit 10 is connected to the CPU 1 via a drive unit input / output I / F 9, and the drive control unit 10 supplies drive power to a motor (not shown) so that the machine is driven at the same time as the machine is driven. The feedback information from the added detector is used for control inside the drive control unit 10, and is also written into the data area 5 of the memory 2 by the CPU 1. Also, a program input / output device 11 is connected to the CPU 1 via an input / output device I / F 12, and an externally created machining program or the like is read from the program input / output device 11 and stored in the memory 2. It is stored in the memory area corresponding to the input data, such as the machining program area 6 inside. The details of the memory 2 are divided into the control program area 3, the parameter overnight area 4, the data overnight area 5, and the machining program area 6 as expanded below the memory 2 in Fig. 4. Can be More specifically, the parameter overnight area 4 includes, for example, a system parameter 21, an axis parameter 22, etc., and a decimal point check target word table 43 required for the present invention, a decimal point check target G Code table 44 and warning judgment value table 45 are also included.
また、 メモリ 2のデータエリア 5には、 例えば軸データ 2 3、 表示 I /F 2 4などが含まれ、 更に本発明で必要となる検索制御テーブル群 4 0、 強調情報 エリア 4 1が含まれる。  The data area 5 of the memory 2 includes, for example, axis data 23, a display I / F 24, and the like, and further includes a search control table group 40 and an emphasis information area 41 required by the present invention. .
制御プログラムエリア 3には、 前記設定表示盤 7に画面表示を行うための画 面処理部 3 1、 同じく前記設定表示盤 7のキーボード信号を読み込み、 信号に 応じた処理をする操作盤処理部 3 2、 加工プログラムエリア 6中に格納された 加工プログラムに指令されている N C用各種指令を解析する解析処理部 3 3、 前記加工プログラムに指令されている直線指令や円弧指令のデータに基づいて 所定の直線や円弧軌跡を発生させる補間処理部 3 4、 前記補間デ一夕を基に各 軸の単位時間毎の移動距離に変換する N C軸制御部 3 5、 前記プログラム入出 力装置 1 1を制御して各種プログラムを読み込むための読込処理部 3 6などが 含まれ、 更に本発明で用いる検索/チェヅク処理部 (検索/チヱック処理プロ グラム) 3 7、 検索強調処理部 (検索強調処理プログラム) 3 8、 強調解除処 理部 (強調解除処理プログラム) 3 9、 入力データチェック制御部 (入力デー 夕チェック制御プログラム) 4 2が含まれる。  The control program area 3 includes a screen processing section 31 for displaying a screen on the setting display panel 7, and an operation panel processing section 3 for reading a keyboard signal of the setting display panel 7 and performing processing according to the signal. 2.Analysis processing section that analyzes various NC commands specified in the machining program stored in machining program area 6.33.Predetermined based on the data of linear and arc commands specified in the machining program. Interpolation processing unit 34, which generates a straight line or circular locus of NC, NC axis control unit 35, which converts each axis into a moving distance per unit time based on the interpolation data, and controls the program input / output device 11 And a read / check processing unit (search / check processing program) 37 used in the present invention, and a search emphasis processing unit (search emphasis processing program). Gram) 38, De-emphasis processing section (de-emphasis processing program) 39, Input data check control section (input data check control program) 42.
次に前記第 4図の構成による N C装置の動作について説明する。  Next, the operation of the NC device having the configuration shown in FIG. 4 will be described.
C P U 1はメモリ 2内の制御プログラムエリア 3に格納された、 N C装置の 手動運転や自動運転などの各種機能を実現するためのソフトウヱァである制御 プログラムを 1ステップずつ読み取り、 実行することにより手動運転や自動運 転などを行うことができる。 この時、 メモリ 2内のパラメ一夕エリア 4に格納 された、 機械システムの仕様によって決定及びまたは設定される各種パラメ一 夕や、 メモリ 2内のデータエリア 4に格納された、 機械位置などを示す各種デ 一夕を参照して工具通路の制御や設定表示盤 Ίの入出力を行う。 加工プログラ ムエリア 6には前記設定表示盤 7のキ一ボードを操作して加工プログラムを入 力するか、 プログラム入出力装置 1 1にセットされた、 例えばフロッピーディ スク等の記録媒体に記録されている外部で作成された加工プログラムを、 読込 処理部 3 6の制御により入出力装置 I /F 1 2を介して読出し、 C P U 1を経 由してメモリ 2に格納する。 The CPU 1 reads the control programs stored in the control program area 3 in the memory 2 to implement various functions such as manual operation and automatic operation of the NC unit. And automatic driving. At this time, it is stored in parameter area 4 in memory 2. The tool path control and other parameters are determined by referring to various parameters determined and / or set according to the specifications of the mechanical system, and various parameters indicating the machine position stored in the data area 4 in the memory 2. Performs input / output of setting display panel Ί. In the machining program area 6, the machining program is input by operating the keyboard of the setting display panel 7, or is recorded on a recording medium such as a floppy disk set in the program input / output device 11. The externally created machining program is read out via the input / output device I / F 12 under the control of the read processing unit 36 and stored in the memory 2 via the CPU 1.
加工プログラムは制御プログラムの自動運転処理により 1ブロックずつ読み 出され、 解析処理部 3 3では前記読み出された加工プログラム中の N C指令を 解析し、 N C装置の仕様及び機械の共通部分の仕様を決定するシステムパラメ —夕 2 1、 制御軸毎のストロークや制限速度等の仕様を決定する軸パラメータ 2 2などに設定された値を参照し、 制御軸毎の指令位置や機械位置等から成る 軸データ 2 3を作成する。 補間処理部 3 4は前記解析処理部 3 3の出力結果に より、 G O 1指令であれば X, Υ , Z軸の座標値で指定された指令位置と指令 速度を基に現在位置から指令位置までを直線で移動するように、 N C装置の制 御単位時間当りの各軸移動量を算出し、 G O 2または G O 3指令であれば現在 位置から X, Υ, Ζ軸の指令位置まで I, J , Κ軸の座標値で指定された点を 中心とする曲率の円弧ど指令速度で移動するように、 N C装置の制御単位時間 当りの各軸移動量を算出し、 夫々各軸データ 2 3の対応するアドレス (メモリ の番地) に格納する。  The machining program is read out one block at a time by the automatic operation processing of the control program, and the analysis processing unit 33 analyzes the NC command in the read out machining program and analyzes the NC device specifications and the specifications of the common parts of the machine. System parameters to be determined — evening 21 1. Axis consisting of command position, machine position, etc. for each control axis by referring to the values set in the axis parameters 22 that determine specifications such as stroke and speed limit for each control axis. Create data 23. Based on the output result of the analysis processing section 33, the interpolation processing section 34 outputs the command position from the current position based on the command position and the command speed designated by the coordinate values of the X, Υ, and Z axes in the case of the GO 1 command. Calculate the amount of movement of each axis per unit time of control of the NC device so that the axis moves to a straight line up to the axis. If the command is GO 2 or GO 3 command, I, I, Calculate the amount of movement of each axis per control unit time of the NC unit so that it moves at the command speed, such as a circular arc of curvature centered on the point specified by the coordinate values of the J and Κ axes. Is stored at the corresponding address (memory address).
N C軸制御部 3 5は前記補間処理部 3 4で算出された補間データに基づいて 加減速処理などを行い、 時々刻々の各軸移動量を駆動部入出力 I /F 9を経由 して駆動制御部 1 0に出力する。 駆動制御部 1 0は前記各軸移動量を図示しな ぃモ一夕の駆動電力に増幅 ·変換し、 前記モータを所望の回転角度に駆動して 機械を作動させる。 ここで回転駆動された角度データは検出器出力として前記 駆動制御部 1 0にフィードバックされて閉ループを構成し、 指令位置と機械位 置の差分を検出して位置誤差信号として駆動信号 ·電力に変換される。 また、 このフィ一ドバヅク信号は前記駆動部入出力 I ZF 9を介して軸データ 2 3に 入力 ·更新される。 The NC axis control unit 35 performs acceleration / deceleration processing based on the interpolation data calculated by the interpolation processing unit 34, and drives the momentary movement of each axis via the drive unit input / output I / F 9. Output to control unit 10. The drive control unit 10 amplifies and converts the movement amounts of the respective axes to drive power for a short time, and drives the motor to a desired rotation angle to operate the machine. Here, the rotationally driven angle data is used as the detector output as described above. It is fed back to the drive control unit 10 to form a closed loop, detects the difference between the command position and the mechanical position, and converts the difference into a drive signal and power as a position error signal. The feedback signal is input and updated to the axis data 23 via the drive unit input / output YZF 9.
一般的な N C装置は以上の様に制御が行われ、 加工プログラムで指令された 加工軌跡に沿って工具とワークの相対位置を制御することにより所望の加工を 実行する。  The control of a general NC device is performed as described above, and the desired machining is executed by controlling the relative positions of the tool and the work along the machining trajectory specified by the machining program.
次に第 1図に示す画面表示で文字列検索や強調表示を行うための、 本発明の 特徴的な制御について第 5図〜第 1 9図を用いて説明する。  Next, the characteristic control of the present invention for performing a character string search and highlight display on the screen display shown in FIG. 1 will be described with reference to FIGS. 5 to 19.
第 5図はプログラムチェック/確認処理の制御を示すフローチャートであり、 加工プログラムェリア 6に格納された加工プログラム群から指定された加工プ ログラムの内容について、 プログラム内容の確認ゃチヱヅクを行う流れを決め るためのものである。  FIG. 5 is a flowchart showing the control of the program check / confirmation processing, which determines the flow of checking the program contents for the contents of the machining program specified from the machining programs stored in the machining program area 6. It is for.
第 5図に於て、 s t e p 0 1では後述する指令値のチヱックに必要な位置や 長さに関する各種パラメ一夕を読み込み、 s t e p 0 2ではプログラミング作 成モ一ドであるか否かを調べる。 プログラミング作成モ一ドでなければ N oと 判断されるので s t e p 0 3に進み、 対象となる加工プログラムの入力値等の デ一夕チェヅクを一括してチェヅクする一括チエックモードか否かを調べる。 一括チェックモードでなければ N oと判断され、 s t e p O 4に進んで文字列 検索モードか否かを調べる。 s t e p 0 4で文字列検索モードであると判断さ れると s t e p 0 5に進み、 文字列検索及び強調表示または強調表示の解除を 指令するための情報を入力及び記憶させる検索 ·解除情報設定処理を行い、 s t e p O 6に進む。 s t e p 0 6では前記検索 ·解除情報設定処理で得られた 情報に基づいて、 文字列検索及び強調表示または強調表示の解除を実行する検 索 '解除処理を行い s t e p 0 7に進む。 s t e p 0 7ではプログラムの表示 範囲が変わった時 (例えば画面がスクロールされたとき) に新しい表示内容に ついて前記検索 ·解除処理を再度実行させるための検索 ·解除再実行処理を行 い一連の処理を終える。 s t e p O 4で文字列検索モードでないと判断される と s t e p 0 5〜s t e p 0 7の処理をスキップして終了する。 In FIG. 5, in step 01, various parameters relating to the position and length necessary for checking the command value, which will be described later, are read, and in step 02, it is checked whether or not the programming mode is set. If it is not in the programming creation mode, it is determined to be No, so the process proceeds to step 03, and it is checked whether or not the batch check mode in which the data check such as the input value of the target machining program is checked all at once. If the mode is not the batch check mode, it is determined as No, and the flow advances to step O4 to check whether or not the mode is the character string search mode. If it is determined in step 04 that the mode is the character string search mode, the process proceeds to step 05, in which search and release information setting processing for inputting and storing information for instructing a character string search and highlighting or canceling highlighting is performed. Go to step O6. In step 06, based on the information obtained in the search and release information setting processing, a search and release processing for executing a character string search and highlighting or release of highlighting is performed, and the process proceeds to step 07. In step 07, when the display range of the program changes (for example, when the screen is scrolled), Then, a search / cancel re-execution process for executing the search / cancel process again is performed, and a series of processes is completed. If it is determined in step O4 that the mode is not the character string search mode, the processing of step 05 to step 07 is skipped and the processing ends.
s t e p 0 3で一括チェックモードであると判断されれば s t e p 0 8に進 み、 キー入力毎に入力チェックを行う逐次チェックを省略して作成された加工 プログラムについて、 呼出された前記加工プログラムの先頭から順次所定のチ ェヅクを行う一括チェヅク処理を行い、 本プログラムの一連の処理を終了する。 s t e p 0 2でプログラム作成モードであると判断されれば s t e p O 9に 分岐し、 一括チェヅクモードであるか否かを調べる。 s t e p 0 9で一括チェ ックモードであると判断されれば s t e p 0 8に分岐し、 キー入力毎に入力チ エックを行う逐次チヱックを省略して作成された、 当該加工プログラムの先頭 から順次所定のチェックを行う一括チェック処理を行い、 本プログラムの一連 の処理を終了する。  If it is determined that the batch check mode is selected in step 03, the process proceeds to step 08, and for the machining program created by omitting the sequential check that performs an input check for each key input, the beginning of the called machining program Then, a batch check process for sequentially performing a predetermined check is performed, and a series of processes of this program is completed. If it is determined in step E02 that the program is in the program creation mode, the process branches to step E9 to check whether the mode is the batch check mode. If it is determined in step 09 that the batch check mode is set, the process branches to step 09, and a predetermined check is sequentially performed from the beginning of the machining program created by omitting a sequential check for performing an input check for each key input. A batch check process is performed to complete a series of processes of this program.
s t e p 0 9で一括チェックモードでないと判断されれば s t e p 1 0に進 み、 キー入力毎に入力チヱックを行う逐次チェック処理を行い、 本プログラム の一連の処理を終了する。 s t e p 1 0の逐次チェヅクプログラム処理は本発 明の出願人による出願 〔国際出願番号: P C TZJ P 0 2 / 1 3 6 2 5〕 で提 案したものであるが、 本発明の技術に関与するものではないので説明は割愛す る。  If it is determined that the mode is not the batch check mode in step 09, the process proceeds to step 10 to perform a sequential check process in which an input check is performed for each key input, and a series of processes of this program ends. The sequential check program processing in step 10 was proposed in an application filed by the applicant of the present invention [International Application No .: PC TZJ P02 / 313625], but involved in the technology of the present invention. The explanation is omitted here.
第 6図は本実施の形態を実現するための指令及び制御テーブルの一例を示し たものであり、 これらのテーブルを用いて動作の説明を行う。 '  FIG. 6 shows an example of a command and control table for realizing the present embodiment, and the operation will be described using these tables. '
検索/チェヅク処理プログラム 3 7は第 4図の制御プログラムメモリエリア 3に格納されており、デ一夕エリア 5上に作成される検索制御テーブル 4 0 (第 6図 (a ) 〜第 6図 (g ) に示す各種テーブルが含まれる) に基づいて前記検 索/チヱック処理プログラム 3 7が実行され、 検索または解除処理結果を強調 情報エリア 4 1に出力する。 ここで検索制御テーブル群 40を構成する各テーブル名、 機能と格納デ一夕 を挙げておく(アルファペットで対応付けられている)。 The search / check processing program 37 is stored in the control program memory area 3 in FIG. 4, and the search control table 40 (FIG. 6 (a) to FIG. 6 ( g)), the search / check processing program 37 is executed, and the search or release processing result is output to the emphasis information area 41. Here, the table names, functions, and stored data constituting the search control table group 40 are listed (corresponding with alpha pets).
(a)検索指令テ一ブル…文字列検索の各色毎の基本命令 (文字列)を格納する (a) Search command table: Stores basic commands (character strings) for each color in character string search
(b)検索文字列記憶テーブル…各色毎に入力された検索用文字列を格納する。 例えば "X0Y0" と言う文字列を赤色強調表示したい場合、 検索文字列記 憶テ一ブル (b) の B$Sの位置にその文字列 "X0Y0"が格納され、 また "M" と言う文字列を緑色強調表示したい場合、 検索文字列記憶テーブル (b) の D$Sの位置にその文字列 "M"が格納される。 (b) Search character string storage table: stores a search character string input for each color. For example, if you want to highlight the character string "X0Y0" in red, the character string "X0Y0" is stored at the B $ S position in the search character string storage table (b), and the character string "M" Is to be highlighted in green, the character string "M" is stored at the position of D $ S in the search character string storage table (b).
( c )強調付検索指令記憶テーブル…各検索指令の指令順序( 0〜 4 )を格納す る .  (c) Search command storage table with emphasis: The command order (0 to 4) of each search command is stored.
(d)解除指令テーブル…解除指令の各色毎の命令 (文字列)を格納する  (d) Release command table: Stores the release command (character string) for each color
( e )強調解除指令記憶テーブル…各解除指令の指令順序 ( 0〜4 )を格納する (e) Emphasis release command storage table: Stores the command sequence (0 to 4) of each release command
( f ) 再検索順序決定テーブル…再検索プログラム群のトヅプアドレスからの オフセット値(0〜3or /FF) (色及び指令順位によって変わる) を格納する (g) 再解除順序決定テーブル…再解除プログラム群のトップアドレスからの オフセヅト値(0〜3or /FF) (色及び指令順位によって変わる) を格納する 次にフローチャートを使った詳細な説明の前に、 強調付文字列検索の全体の 流れを説明しておく。 (f) Re-search order determination table: Stores the offset value from the top address of the re-search program group (0 to 3 or / FF) (depending on color and command order). (g) Re-release order determination table: Re-release program group Store the offset value (0 to 3 or / FF) from the top address of the character string (depending on the color and command order). Before the detailed explanation using the flowchart, the entire flow of the character string search with emphasis will be explained. Keep it.
前記( a )〜( e )の各テーブルの内部構成は本実施の形態では A、 B、 C、 D を全色または色無し、 赤、 青、 緑の処理色順に対応させて配置している。 つま り、 先頭が一括または強調無し制御、 二番目が赤色、 三番目が青色、 四番目が 緑色の制御用として固定している。 ここで前記 A〜Dに格納される値は 0〜4 の何れかであり、 指令されなかった (実行されなかった) またはキャンセルさ れた指令は 0であるが、 全て 1回ずつ実行されておれば 1〜4の何れかが格納 される。 なお、 実行前は全て 0が格納されている。 また、 二つの指令しか実行 されていなければ 0、 1、 2の何れかとなり、 また三つの指令が実行されたと き 0, 1, 2, 3の何れかとなる。 この数値は 1が最新の指令 (実行) 、 2が 最新の指令 (実行) より一つ前の指令 (実行) 、 3は最新の指令 (実行) より 二つ前の指令 (実行) 、 4が一番古い指令 (実行) であることを示すが、 数値 は指令 (実行) 毎に自動的に更新 (+1) される。 In the present embodiment, the internal configuration of each of the tables (a) to (e) is such that A, B, C, and D are arranged so as to correspond to all colors or no color, red, blue, and green in the processing color order. . In other words, the control is fixed at the top for batch or non-emphasis control, the second for red, the third for blue, and the fourth for green. Here, the values stored in the above A to D are any of 0 to 4, and the commands that have not been commanded (not executed) or have been canceled are 0, but are all executed once. If any, any of 1 to 4 is stored. Before execution, all 0s are stored. If only two commands have been executed, it will be 0, 1, or 2, and if three commands have been executed, 0, 1, 2, or 3. The numerical values are 1 for the latest command (execution), 2 for the command (execution) immediately before the latest command (execution), 3 for the command (execution) two prior to the latest command (execution), and 4 for Indicates the oldest command (execution), but the numerical value is automatically updated (+1) for each command (execution).
また、 画面をスクロールした時に使用される検索指令または強調解除指令の 再実行制御用テ一ブル( f )と( g )の二つについては、 再実行順に検索または解 除指令を取り出すためのオフセット値が格納され、 配置は色とは無関係である。 初期状態は Ή E X Aコードで/ F Fとなっており、 何らかの検索または解除指 令が実行されると指令の数に応じたメモリに、 オフセヅト値である 0〜3の何 れかが格納される。 このオフセット値は前記(a)と(b)、 または(d)の各テー ブルの先頭を 0とし、 1が赤色、 2が青色、 3が緑色の各色用指令のァドレス を求めるためのものである。 前記テーブル( f )または( g )を先頭から順に読み 出した時に得られるオフセット値に基づいて検索または解除指令を読み出し実 行することにより、 ォペレ一夕が指令した順序で検索または解除指令を再実行 できるが、 ZFFが読み出されるとそれ以上の検索または解除指令は無いと判 断され、 再実行は完了する。  For the re-execution control tables (f) and (g) of the search command or the de-emphasis command used when scrolling the screen, the offset for extracting the search or cancellation command in the re-execution order The value is stored and the placement is independent of color. The initial state is “/ FF” in the EXA code, and when any search or release command is executed, one of the offset values 0 to 3 is stored in the memory corresponding to the number of commands. This offset value is used to determine the address of the command for each color of 1 (red), 2 (blue), and 3 (green), with 0 at the beginning of each table (a), (b), or (d). is there. By reading and executing the search or release command based on the offset value obtained when the table (f) or (g) is read sequentially from the beginning, the search or release command is re-executed in the order instructed by the operating system. It can be executed, but when ZFF is read, it is determined that there is no further search or release command, and re-execution is completed.
例えば最初に赤色強調付文字列検索指令で "$M/i R"が実行されたとす ると、前記テーブル(b)の B$Sには "$M"が、 テーブル(c)の B sには " 1,,ヽ As、 Cs、 Dsには "0"が格納されている。 次に青色強調付文字列検索指 令で "$X0 Y0/MB"が実行されたとすると、 前記テーブル(b)の C$Sに は" $ X 0 Y 0 "が、テーブル ( c )の C sには最新の指令であることを表す " 1 " が格納され、 Bsには前回格納されていた "1"に代わって "2" (二 1 + 1) が格納される。 As、 Dsは "0"で変更は無い。 つまり、 指令 (実行) され なければ "0"が保持され、 最新の指令に該当するメモリには "1"が格納さ れ、 以前に指令された、 今回と同一強調の指令以降に実行された指令に該当す るメモリには "1"から "2"、 "2"から "3"等、 順に繰り下げた値が格 納される。 For example, if "$ M / i R" is first executed by a character string search command with red emphasis, "$ M" is stored in B $ S of the table (b) and Bs of the table (c) is displayed. Contains “1,” ヽ As, Cs, and Ds contain “0.” Next, if “$ X0 Y0 / MB” is executed by the character string search command with blue emphasis, the above table ( "$ X0Y0" is stored in C $ S of b), "1" indicating that it is the latest command is stored in Cs of table (c), and "1" is stored in Bs previously. "2" (2 1 + 1) is stored in place of "1" As and Ds are "0" and there is no change, that is, if no command (execution) is performed, "0" is held and the latest command "1" is stored in the memory corresponding to "1", and "1" to "2" and "2" are stored in the memory corresponding to the command issued before and the command executed after the command with the same emphasis as this time. From 3 to "3" Will be delivered.
次に検索中に画面スクロールが行われた場合、 前記テーブル( f )は/ Fで 初期化され、 テーブル(c)の As〜D sに格納されている最大値 (何種類の強 調検索指令が実行されたかを示す) と各色強調検索指令に対応する A s、 B s、 Cs、 D sの内容との差に相当する先頭からの位置に、 As、 B s、 Cs、 D sの内容が " 0"でないものについて、 Asは " 0"、 :63は "1"、 C sは "2"、 D sは "3" を格納する。 この結果、 /FFから書き換えられた数値 (オフセット値) が再実行の指令を指示することになり、 /FFが検出される までテーブル(a)と(b)の先頭から前記(f )から読み出された数値だけオフセ ヅトしたメモリの検索指令と文字列とを合成して順次実行すれば全ての検索指 令を再度実行できることになる。  Next, when the screen is scrolled during the search, the table (f) is initialized with / F, and the maximum value stored in As to Ds of the table (c) (how many types of highlight search commands Has been executed) and the contents of As, Bs, Cs, and Ds at the position corresponding to the difference between the contents of As, Bs, Cs, and Ds corresponding to each color enhancement search command Is not "0", As stores "0",: 63 stores "1", Cs stores "2", and Ds stores "3". As a result, the numerical value (offset value) rewritten from / FF indicates the re-execution command, and the table (a) and (b) are read from (f) from the top of tables (a) and (b) until / FF is detected. By synthesizing a memory search command and a character string offset by the given numerical value and executing them sequentially, all search commands can be executed again.
例えば、 第 6図 (c) に示す強調付検索指令記憶テーブルの B sに 2、 As に 0、 C sに 1、 D sに 3が格納されている状態のとき、 画面スクロールが行 われた場合、 第 6図 (f ) の再検索順序決定テ一プルには、 0の位置 (先頭の 位置) に 3、 1の位置 (先頭の位置から次の位置) に 1、 2の位置 (先頭の位 置から 2番目の位置) が 2設定される。 そして第 6図 (f) の再検索順序決定 テ一ブルを先頭から順次読み出すことにより強調表示を実行する。 即ち、 先ず 第 6図 (a) の検索指令テーブルの前記 3に対応する/ MG及び第 6図 (b) の前記 3に対応する D $ Sの文字列を読み出して検索及び緑色強調表示を実行 し、 次に第 6図 (a) の検索指令テーブルの前記 1に対応する/ MR及び第 6 図 (b) の前記 1に対応する B $ Sの文字列を読み出して検索及び赤色強調表 示を実行し、 最後に第 6図 (a) の検索指令テーブルの前記 2に対応する/ M B及び第 6図 (b) の前記 2に対応する C$Sの文字列を読み出して検索及び 青色強調表示を実行する。  For example, when the search command storage table with emphasis shown in Fig. 6 (c) stores 2 in Bs, 0 in As, 1 in Cs, and 3 in Ds, the screen scrolls. In the case of FIG. 6 (f), the re-search order determination template includes 3 at position 0 (the first position), 1 at position 1 (the next position from the first position), and 2 at the first position (the first position). Is set to 2). Then, highlighting is executed by sequentially reading the re-search order determination table shown in FIG. 6 (f) from the head. That is, first, the character string of / MG corresponding to the above 3 in the search command table of FIG. 6 (a) and D $ S corresponding to the above 3 of FIG. 6 (b) is read, and the search and green highlighting are executed. Then, the character string of / MR corresponding to the above 1 in the search command table of FIG. 6 (a) and B $ S corresponding to the above 1 of FIG. 6 (b) is read out, and the search and red highlighting are performed. Finally, the character strings of / MB corresponding to the above 2 in the search command table of FIG. 6 (a) and C $ S corresponding to the above 2 of FIG. 6 (b) are read out, and the search and blue emphasis are performed. Execute the display.
強調解除も同様にして繰り返し実行できる。  De-emphasis can be repeatedly executed in the same manner.
これらの作用や詳細については各機能のフローチャートともに説明する。 第 7図は第 5図における文字列検索及び強調解除情報設定処理 ( s t e p 0 4) の詳細を示したものである。 なお、 強調解除は単に解除と略すこともある。 These operations and details will be described together with a flowchart of each function. FIG. 7 shows details of the character string search and emphasis cancellation information setting process (step 04) in FIG. The cancellation of emphasis may be simply abbreviated as cancellation.
s t ep 11では初回 FGがオンか否かをチェックする。 この初回フラグは 設定表示盤 7で文字列検索モードが選択された時にオンされる。 当該初回 F G がオンであれば s t ep 12に進み、 当該初回 F Gをオフし、 文字列検索指令 /強調解除指令(検索/解除指令と略すことがある) をクリアして s t ep 1 3に進む。 s t ep 1 1で初回 FGがオフであれば s t e 13に分岐する。 s t ep 13ではオペレータにより指令された文字列検索指令/強調解除指令 情報を読み取り、 これらの情報を強調種類毎、 及び指令順に検索制御テ一ブル 群 40内の所定のテ一ブルに格納し、 処理を終了する。  In s t ep 11, it is checked whether the first FG is on. This first flag is turned on when the character string search mode is selected on the setting display panel 7. If the first FG is on, proceed to st ep 12, turn off the first FG, clear the character string search command / de-emphasis cancellation command (may be abbreviated as search / cancel command), and proceed to st ep 13 . If first FG is off at step 11, branch to ste13. In step 13, character string search command / emphasis cancellation command information instructed by the operator is read, and the information is stored in a predetermined table in the search control table group 40 for each emphasis type and in the order of the commands. The process ends.
第 8図は第 5図における文字列検索/強調解除 (s t ep 06) のメイン処 理の内容を示すフローチャートであり、 処理順序としては強調解除処理を先に、 文字列検索処理を後で行う。 これは表示画面をスクロールした場合に文字列検 索/強調解除を再度実行するが、 強調解除を後で行うと検索結果の強調表示が 解除されるのでこれを防ぐためである。  FIG. 8 is a flowchart showing the contents of the main processing of the character string search / de-emphasis (step 06) shown in FIG. 5, and the processing order is such that the de-emphasis processing is performed first, and the character string search processing is performed later. . This is to prevent the character string search / de-emphasis from being performed again when the display screen is scrolled, but if the de-emphasis is performed later, the search result will be highlighted.
s t ep 21では入力された命令を解読し、 例えば /ΜΟ··"であれば強 調解除指令であるので s t e ρ 22に進み、 解除指令情報の更新処理を行う。 なお、 s t e p 22の詳細については第 9図にて説明する。  In step 21, the input command is decoded. For example, if / ΜΟ · ”, the command is an emphasis cancel command, so the process proceeds to ste ρ 22 to update the cancel command information. Is described in FIG.
s t ep 23では前記更新された解除指令情報に基づいて強調解除処理を行 い、 s t e p 24に進む。  At step 23, emphasis release processing is performed based on the updated release command information, and the process proceeds to step 24.
なお、 s t ep 23の詳細については第 10図にて説明する。  The details of step 23 will be described with reference to FIG.
s t ep 21で強調解除でないと判定されると s t e p 24に分岐する。 s t ep 24では入力された命令を解読し、 "$〇〇〇〜"であれば文字列 検索指令であるので s t e p 25に進み、 検索指令情報の更新処理を行う。 なお、 s t ep 25の詳細については第 12図にて説明する。  If it is determined that the emphasis is not released in step 21, the process branches to step 24. In step 24, the input command is decoded, and if "$$ ~", the command is a character string search command, so the process proceeds to step 25 to update the search command information. The details of step 25 will be described with reference to FIG.
s t ep 26では前記更新された検索指令情報に基づいて検索 ·強調表示処 理を行い、 処理を終了する。 In st ep 26, a search and highlight display process is performed based on the updated search command information. And terminate the process.
なお、 s t e p 26の詳細については第 13図にて説明する。  The details of step 26 will be described with reference to FIG.
s t ep24で文字列検索でないと判定されると処理を終了する。  If it is determined in step ep24 that the search is not a character string search, the process ends.
第 9図は解除指令情報の更新処理であり、 第 8図の s t ep 22の詳細内容 を示すものである。 先ず s t ep31で、 設定表示盤 7に例えば "/ MCR" (赤色強調解除) が設定されていたか否かを判断する。 Ye s (赤色強調解除) であれば s t e p 32に進み、 赤色強調解除情報更新処理を実行して強調解除 情報を更新し、 処理を終わる。 赤色の場合の具体的な更新内容は第 10図で説 明するが、 検索制御テーブル 40中の強調付検索指令記憶テーブル (第 6図 (c) ) の Bsの内容を 0にし、 強調解除指令記憶テーブル (第 6図 (e) ) の Beの内容を強調解除指令記憶テーブル (第 6図 (e) ) の E c (セーブ用 メモリ) に保存する。  FIG. 9 shows a process of updating the release command information, and shows the detailed contents of step 22 in FIG. First, in step 31, it is determined whether or not “/ MCR” (red highlight cancellation) has been set in the setting display panel 7, for example. If Ye s (red highlight release), the process proceeds to step 32, where the red highlight release information update processing is executed to update the highlight release information, and the processing ends. The specific contents of the update in the case of red are described in FIG. 10, but the content of Bs in the search command storage table with emphasis (FIG. 6 (c)) in the search control table 40 is set to 0, and the emphasis cancellation command is set. The content of Be in the storage table (Fig. 6 (e)) is saved in Ec (save memory) in the de-emphasis command storage table (Fig. 6 (e)).
ここで関係する一連の名称 As , Bs, C s , Ds, E s, Ac 5 B e, C c, D c, E cの A, B, C, Dは夫々色指定無し, 赤色, 青色, 緑色に対応 し、 Eはセーブ用であることを示す。 A series of names As relevant here, Bs, C s, Ds, E s, Ac 5 B e, C c, D c, no A, B, C, D are each specifying colors E c, red, blue, Corresponds to green and E indicates save.
なお、 第 6図(c),(e)の F s、 Fcについては後述する。  Note that Fs and Fc in FIGS. 6 (c) and (e) will be described later.
また、 前記添え字の sは s e t、 cは c an c e 1の意味である。 続いて赤 色の指令順序 B eを 1 (最新の指令) として他の指令の順序をこれに続く値に 変更するという処理を行う。 s t e p 31で赤色でなければ s t e p 33に分 岐する。  In addition, the subscript s means se t, and c means cance 1. Then, the order of the red command Be is set to 1 (latest command), and the order of other commands is changed to the value following this command. If it is not red in step31, it branches to step33.
s t ep33では同様に例えば "/MCB" (青色強調解除) が設定された か否かを判断する。 Ye s (青色強調解除) であれば s t ep 34に進み、 青 色強調解除情報更新処理 (検索制御テーブル 40中の強調付検索指令記憶テー ブル (第 6図 (c) ) の Csの内容を 0にし、 強調解除指令記憶テーブル (第 6図 (e) ) の Ccの内容を強調解除指令記憶テーブル (第 6図 (e) ) の E c (セーブ用メモリ) に保存する) を実行して強調解除情報を更新し、 処理を 終わる。 s t ep 33で青色でなければ s t ep 35に分岐する。 In step ep33, similarly, for example, it is determined whether or not “/ MCB” (blue emphasis release) has been set. If Yes (blue emphasis release), the process proceeds to step 34, where the Cs content of the blue color emphasis release information update process (the search command storage table with emphasis in the search control table 40 (Fig. 6 (c))) is deleted. Set to 0, save the contents of Cc in the emphasis cancellation command storage table (Fig. 6 (e)) in Ec (save memory) in the emphasis cancellation command storage table (Fig. 6 (e)), and execute Update de-emphasis information and take action Ends. If it is not blue at st ep 33, branch to st ep 35.
s t ep 35では同様に例えば "/MCG" (緑色強調解除) が設定された か否かを判断する。 Ye s (緑色強調解除) であれば s t ep 36に進み、 緑 色強調解除情報更新処理 (検索制御テーブル 40中の強調付検索指令記憶テー ブル (第 6図 (c) ) の Dsの内容を 0にし、 強調解除指令記憶テーブル (第 6図 (e) ) の D cの内容を強調解除指令記憶テーブル (第 6図 (e) ) の E c (セーブ用メモリ) に保存する) を実行して強調解除情報を更新し、 処理を 終わる。 s t ep 35で緑色でなければ s t e ρ 37に分岐する。  In step 35, similarly, for example, it is determined whether or not “/ MCG” (green highlight cancellation) is set. If Yes (green emphasis cancelled), the process proceeds to step 36, where the Ds contents of the green color emphasis canceling information update processing (the search command storage table with emphasis in the search control table 40 (FIG. 6 (c))) is deleted. Set to 0 and save the contents of D c in the emphasis cancellation command storage table (FIG. 6 (e)) to E c (save memory) in the emphasis cancellation command storage table (FIG. 6 (e)). To update the de-emphasis information and finish the process. If it is not green at step 35, branch to step37.
s t ep 37では色指定が無い場合に実行され、 "/MC" (全色強調解除) が指令されたものと看なし、 全色強調解除情報更新処理 (検索制御テーブル 4 0中の強調付検索指令記憶テーブル (第 6図 (c) ) の Asの内容を 0にし、 強調解除指令記憶テ一プル (第 6図 (e) ) の Acの内容を強調解除指令記憶 テーブル (第 6図 (Θ) ) の E c (セーブ用メモリ) に保存する) を実行して 強調解除情報を更新し、 処理を終わる。  In step 37, this is executed when there is no color designation, it is not recognized that "/ MC" (all color highlight release) has been instructed, and all color highlight release information update processing (search with highlight in search control table 40) The contents of As in the command storage table (Fig. 6 (c)) are set to 0, and the contents of Ac in the de-emphasis command storage template (Fig. 6 (e)) are stored in the de-emphasis command storage table (Fig. ))) (Save to save memory)) to update the de-emphasis information and end the process.
第 1 0図は第 9図に於ける s t e p 32の詳細処理を示したものであ る。他の色についても同様な処理が行われるので、 他の色の処理について の説明は割愛する。 ここで行う処理内容は例えば入力された赤色の強調解 除指令に対応した赤色強調の文字列検索指令を解除 (削除) し、 当該赤色 強調解除指令を最新指令 (= 1) として、 直前までの各色の強調解除指令 の実行順序を並べ替える作業を行う。従って表示画面がスクロールされた 時、 ここで更新された数値を読み出すことにより今まで指令されていた全 ての強調解除を再実行する場合の順序が特定できる。  FIG. 10 shows the detailed processing of step 32 in FIG. Since similar processing is performed for other colors, the description of the processing for other colors is omitted. The processing performed here is, for example, to cancel (delete) the red emphasized character string search command corresponding to the input red emphasized cancel command, and to set the red emphasized cancel command as the latest command (= 1), Perform the work of rearranging the execution order of the emphasis cancellation command of each color. Therefore, when the display screen is scrolled, by reading out the updated numerical value here, the order of re-executing all the highlight cancellations which have been commanded so far can be specified.
s t ep41では検索制御テーブル 40中の強調付検索指令記憶テーブル (第 6図 (c) ) の B sの内容を 0 (強調解除が指令されたら強調付文字列検 索が打ち切られたことにする)にし、強調解除指令記憶テ一プル(第 6図(e) ) の B cの内容を同じテーブルの E c (セーブ用メモリ) に保存する。 ここで関 係する一連の名称 As, Bs, Cs, D s , E s, Ac, B e, Cc, D c, E cの A, B, C, Dは夫々色指定無し, 赤色, 青色, 緑色に対応し、 Eはセ ープ用であることを示す。 s t ep 42では初期チェックとして E cが 0か否 かをチェックし、 0であれば s t ep 43に進んで E cに "3" を格納する。 0でなければ最初にセーブされた値で s t ep44以降の処理を行う。 前記 "3"は正確には、 強調解除種類が増えた時(初期処理で E c = 0の時)、 "そ の時点での種類数— 1"であるが、便宜上、本実施の形態での最大値である "4 一 1" (=3) を格内している。 In step ep41, the content of Bs in the search command storage table with emphasis (FIG. 6 (c)) in the search control table 40 is set to 0 (when the emphasis cancellation command is issued, the emphasis character string search is terminated. ), And saves the contents of B c in the emphasis release command storage template (FIG. 6 (e)) in E c (save memory) of the same table. Here A, B, C, and D of As, Bs, Cs, Ds, Es, Ac, Be, Cc, Dc, and Ec have no color designation, and correspond to red, blue, and green, respectively. And E indicates that it is for a section. In st ep 42, it is checked whether or not E c is 0 as an initial check. If it is 0, the process proceeds to st ep 43 and “3” is stored in E c. If it is not 0, the processing after st ep44 is performed with the value saved first. The “3” is exactly “the number of types at that time—1” when the number of types of de-emphasis increases (when E c = 0 in the initial processing). However, for convenience, in the present embodiment, "4 1 1" (= 3), which is the maximum value of
s t ep 44では前記 B c (直前に於ける赤色強調解除の指令順序) の内容 が 1であるか否かをチェックする。 ここで Be = 1は最新の指令 (前回も赤色 強調解除指令だった) として解釈されるので、 同じ指令が連続したことになり、 実行順序は変更しないで処理を終了する。 B c≠ 1であれば他の強調解除指令 が最後に指令されていたことになるので、 赤色強調解除が最新指令であること を意味するように s t e p 45で Beに 1を書き込む。  In step 44, it is checked whether or not the content of the above Bc (the order of the immediately preceding red color canceling command) is 1. Here, Be = 1 is interpreted as the latest command (the previous command was also the red highlighting cancel command), so the same command is continued, and the process ends without changing the execution order. If B c ≠ 1, another de-emphasis command was issued last, so 1 is written to Be at step 45 to indicate that red de-emphasis is the latest command.
s t e p 4 6以降は赤色強調解除を最新指令に更新したことによる他 の指令の実行順序の変更を行う処理である。 s t e p 46では旧 B cのセ ーブ値である E cと A cの内容を比較し、 A c > E cでなければ s t e p 47に進み、 全色強調解除が過去に指令されていなかった (A c二 0 ) か 否かをチェックする。 N 0 (指令されていた) であれば、 s t e p 48で Acの内容を + 1し、 全色解除の実行順序を繰り下げる。 これは、 当該判 別中の強調色が使われた順位が、今回実行する強調色による解除指令の前 回実行時の順位より大きい (古い) 時のみ、 当該判別中の強調色による検 索の順位は変化させない (繰り下げない) という処理を行うためのもので ある (以下の判別においても同様である) 。 s t e p 46で Ac >E cで なく、 s t e p 47で Ac = 0であれば s t e p 49に分岐し、 青色につ いて同様の処理を行う。 s t e p 49では旧 B cのセーブ値である E cと C cの内容を比較し、 C c >E cでなければ s t e p 50に進み、青色強調解除が過去に指令さ れていなかった (C c = 0) か否かをチェックする。 No (指令されてい た) であれば、 s t e p 5 1で C cの内容を + 1し、 青色解除の実行順序 を繰り下げる。 s t e p 49で C c >E cでなく、 s t e p 5 0で C c = 0であれば s t e p 52に分岐し、 緑色について同様の処理を行う。 Steps 46 and after are the processing to change the execution order of other commands by updating the red highlight release to the latest command. In step 46, the contents of Ec and Ac, which are the values of the old Bc, are compared, and if Ac> Ec, the process proceeds to step 47, and all-color emphasis release has not been commanded in the past ( Check whether A c2 0). If N 0 (commanded), the content of Ac is incremented by 1 in step 48, and the execution order of all color release is moved down. This is because the search using the highlighted color during the discrimination is performed only when the order in which the emphasized color used in the discrimination is used is higher (older) than the prior execution order of the cancellation command using the emphasized color executed this time. The order is not changed (it is not moved down) (this also applies to the following determination). If Ac> E c is not satisfied in step 46, but if Ac = 0 in step 47, the process branches to step 49, and the same processing is performed for blue. In step 49, the contents of E c and C c, which are the save values of the old B c, are compared. If C c> E c, the process proceeds to step 50, and the cancellation of blue emphasis has not been commanded in the past (C c = 0). If No (instructed), the content of C c is incremented by 1 in step 51, and the execution sequence of blue release is reduced. If C c> E c is not satisfied in step 49, but C c = 0 in step 50, the process branches to step 52, and the same processing is performed for green.
s t e p 52では旧 B cのセーブ値である E cと D cの内容を比較し、 D OE cでなければ s t e p 53に進み、緑色強調解除が過去に指令さ れていなかった (D c = 0 ) か否かをチェックする。 N 0 (指令されてい た) であれば、 s t e p 54で D cの内容を + 1し、 青色解除の実行順序 を繰り下げて処理を終了する。 s t e p 5 2で D c>E cでなく、 s t e p 53で D c = 0であれば処理を終了する。  In step 52, the contents of Ec and Dc, which are the saved values of the old Bc, are compared, and if not DOEc, the process proceeds to step 53, and the green emphasis release has not been commanded in the past (Dc = 0 Check if it is. If N 0 (commanded), the content of D c is incremented by 1 in step 54, and the execution sequence of blue release is advanced, and the process ends. If D c> E c in st e p 52 and D c = 0 in st e p 53, the process ends.
なお、 前記の処理を具体例で示せば、 次のとおりである。  The above process is as follows if it is shown in a specific example.
例えば、 第 6図 (Θ) に示す強調解除指令記憶テーブルの B cに 2、 Acに 0、 Ccに 1、 D cに 3が格納されていた場合、 s t e p 41で B cの値であ る 2が E cにセーブされる。 s t ep42で E c = 0ではないので s t e p 4 4に移行する。 s t e p 44で B c = 1かどうかが判断され、 B c = 1ではな いので s t e p 45に移行し、 s t ep45で B eに 1が格納される。 次に s t e p 46で Ac (= 0) >E c (二 2) かどうかが判断され、 A cは E cよ り大きくないので s t e p 47に移行する。 s t ep 47では Ac = 0かどう かが判断され、 Ac = 0であるので、 s t e p 48を実行せず、 s t e p 49 に移行する。 即ち、 Acは 0のままの状態となる。 3七 6 49では〇0 (= 1) >E c (=2) かどうかが判断され、 Ccは E cより大きくないので s t ep 50に移行する。 s t ep 50では Cc = 0かどうかが判断され、 Cc≠ 0であるので s t e p 51に移行し、 s t e p 5 1では C c (= 1 ) + 1の 処理を行う。 即ち、 C cは 1から 2に変更され、 この 2が C cに格納される。 次に s t ep 52に移行し、 s t ep 52では: D c (= 3 ) >E c (= 2 ) か どうかが判断され、 D cは E cより大きいので、 s t ep 53、 s t e p 5 4を実行せず、 処理を終える。 即ち、 Dcは 3のままの状態となる。 For example, if 2 is stored in Bc, 0 is stored in Ac, 1 is stored in Cc, and 3 is stored in Dc in the emphasis cancellation command storage table shown in Fig. 6 (Θ), the value of Bc is stored in step 41. 2 is saved in E c. Since E c = 0 at st ep42, the process proceeds to step 44. At step 44, it is determined whether or not B c = 1, and since it is not B c = 1, the process proceeds to step 45, and 1 is stored in Be at step ep45. Next, in step 46, it is determined whether Ac (= 0)> E c (two 2). Since A c is not larger than E c, the process proceeds to step 47. At step 47, it is determined whether Ac = 0. Since Ac = 0, step 48 is not executed and the process proceeds to step 49. That is, Ac remains at 0. At 37 6 49, it is determined whether or not 〇0 (= 1)> E c (= 2). Since Cc is not larger than E c, the flow shifts to step 50. At step 50, it is determined whether or not Cc = 0. Since Cc ≠ 0, the process proceeds to step 51. At step 51, the process of C c (= 1) +1 is performed. That is, C c is changed from 1 to 2, and this 2 is stored in C c. Next, the process proceeds to st ep 52.In st ep 52, it is determined whether or not D c (= 3)> E c (= 2) .Since D c is larger than E c, st ep 53 and step 54 are executed. Do not execute and end the process. That is, Dc remains at 3.
この結果、 第 6図 (e) に示す強調解除指令記憶テーブルの Beに 2、 Ac に 0、 Ccに 1、 Dcに 3が格納されていた場合、 第 10図に示す処理を実行 することにより、 :80に1、 Acに 0、 Ccに 2、 D cに 3が格納されること になり、 赤色強調解除を最新指令に更新したことによる他の指令の実行順 序の変更が行われる。  As a result, if 2 is stored in Be, 0 is stored in Ac, 1 is stored in Cc, and 3 is stored in Dc in the emphasis cancellation command storage table shown in FIG. 6 (e), the processing shown in FIG. 10 is executed. ,: 1 is stored in 80, 0 is stored in Ac, 2 is stored in Cc, and 3 is stored in Dc, and the execution order of other commands is changed by updating the red highlight release to the latest command.
第 1 1図は前記設定された強調解除情報に基づいて行う強調解除処理のフロ 一チャートである。 s t e p 61ではチェックポィン夕に表示バッファの先頭 ァドレスを書き込み、 ェンドボイン夕に表示バッファの最終ァドレスを書き込 む。  FIG. 11 is a flowchart of an emphasis canceling process performed based on the set emphasis canceling information. In step 61, the first address of the display buffer is written at the checkpoint evening, and the last address of the display buffer is written at the endtime evening.
s t ep 62で強調解除指令記憶テーブル (第 6図 ( e ) ) の格納値が「 1」 のメモリを探し、 前記メモリ位置に対応する解除指令テーブル (第 6図 (d) ) のメモリ位置に記憶された解除指令の色情報 (最後の文字) のコードを読み取 At step ep 62, the memory whose stored value in the emphasis cancellation command storage table (FIG. 6 (e)) is “1” is searched, and the memory location of the cancellation command table (FIG. 6 (d)) corresponding to the memory location is searched. Reads the color code (last character) of the stored release command
^。 ^.
s t e p 63では前記チェックボイン夕で示される表示バッファのメモリア ドレスから当該位置に記憶している文字の色情報を読み出す。  In step 63, the color information of the character stored at the relevant position is read from the memory address of the display buffer indicated by the check button.
s t ep 64で前記表示バッファから読み出した色情報と前記解除指令テー プル (第 6図 (d) ) から読み出した色情報とを比較し、 一致すれば s t ep 65で色倩報を消去する。 s t ep 64で色情報が一致しなければ s t e p 6 6に分岐する。 s t e p 66ではチェックボイン夕の内容とェンドボイン夕の 内容とを比較し、 一致すれば表示バッファの最後までチェックが完了 (指定範 囲終了) したとして処理を終わる。 s t e p 66でチヱックポインタ <エンド ポインタであればチェックは終わっていないので s t ep 67に進み、 チエツ クポインタの内容をインクリメント (+1) し、 s t ep 63に戻る。 ここで色情報が指定されていなければ全ての強調色について解除を行うが、 処理内容については前記説明と略同一の内容であるので説明は割愛する。 The color information read from the display buffer at step 64 is compared with the color information read from the release command table (FIG. 6 (d)), and if they match, the color information is deleted at step 65. If the color information does not match at step 64, the process branches to step 66. In step 66, the content of the check-in window and the content of the end-boin window are compared, and if they match, the check is completed to the end of the display buffer (the specified range ends), and the process ends. If the check pointer is less than the end pointer in step 66, the check has not been completed, so the flow advances to step 67, the content of the check pointer is incremented (+1), and the flow returns to step 63. Here, if no color information is specified, the cancellation is performed for all the emphasized colors. However, since the processing content is substantially the same as the above description, the description is omitted.
第 12図は文字列検索指令の情報更新処理のフローチャートであり、 第 8図 の s t e p 25の詳細内容を示すものである。 先ず s t ep 71で、 設定表示 盤 7に "$〇〇〇/MR" (〇〇〇は任意の文字列と一致部分の赤色 (R) 強 調表示) が設定されたか否かを判断する (第 1図の例では例えば " $X0 Y0 /MB" ) 。  FIG. 12 is a flowchart of the information update process of the character string search command, and shows the detailed contents of step 25 in FIG. First, in step 71, it is determined whether or not “$ 〇〇〇 / MR” (〇〇〇 is a red (R) highlight display of a part that matches an arbitrary character string) is set in the setting display panel 7 ( In the example of Fig. 1, for example, "$ X0Y0 / MB").
Ye s (赤色強調検索) であれば s ΐ ep72に進み、 赤色強調検索情報更 新処理を実行して強調検索情報を更新し、 処理を終わる。 赤色の場合の具体的 な更新内容は第 13図で説明するが、 s t ep 72で検索制御テーブル 40中 の強調解除指令記憶テーブル (第 6図 (e) ) の Beの内容を 0にし、 強調付 検索指令記憶テーブル (第 6図 (c) ) の Bsの内容を強調付検索指令記憶テ —プル (第 6図 (c) ) の E s (セーブ用メモリ) に保存する。  If Yes (red emphasized search), proceed to s s ep72, execute the red emphasized search information update process to update the emphasized search information, and end the process. The specific contents of the update in the case of red color will be described with reference to FIG. 13, but at step 72, the content of Be in the emphasis cancellation command storage table (FIG. 6 (e)) in the search control table 40 is set to 0, and Append Save the contents of Bs in the search command storage table (Fig. 6 (c)) to Es (save memory) in the search command storage table with emphasis (Fig. 6 (c)).
続いて赤色の指令順序 B sを 1 (最新の指令) として他の指令の順序をこれ に続く値に変更するという処理を行う。 s t e p 71で赤色でなければ s t e p 73に分岐する。  Subsequently, the order of the red command Bs is set to 1 (latest command), and the order of other commands is changed to the value following this command. If it is not red at st e p 71, branch to st e p 73.
s t ep 73では同様に例えば ΦΟΟΟΖΜΒ (青色強調検索) が設 定されたか否かを判断する。 Ye s (青色強調検索) であれば s t ep 74に 進み、 青色強調検索情報更新処理 (検索制御テーブル 40中の強調解除指令記 憶テーブル (第 6図 (Θ) ) の Ccの内容を 0にし、 強調付検索指令記憶テー ブル(第 6図(c))の Csの内容を強調付検索指令記憶テ一ブル (第 6 (c)) の E s (セーブ用メモリ) に保存する) を実行して強調検索情報を更新し、 処 理を終わる。 s t ep 73で青色でなければ s t ep 75に分岐する。  In step 73, similarly, it is determined whether, for example, ΦΟΟΟΖΜΒ (blue emphasized search) is set. If it is Yes (blue emphasized search), the process proceeds to step ep 74, where the content of Cc in the blue emphasized search information update process (the highlight cancel command storage table (FIG. 6 (6)) in the search control table 40) is set to 0. Executes the contents of Cs in the search command storage table with emphasis (Fig. 6 (c)) in Es (save memory) of the search command storage table with emphasis (6 (c)). To update the emphasized search information and finish the process. If it is not blue at st ep 73, branch to st ep 75.
s t ep75では同様に例えば "$〇〇〇/MG" (緑色強調検索) が設定 されたか否かを判断する。 Ye s (緑色強調検索) であれば s t ep 76(こ進 み、 緑色強調検索情報更新処理 (検索制御テーブル 40中の強調解除指令記憶 テーブル (第 6図 (e) ) の D cの内容を 0にし、 強調付検索指令記憶テープ ル(第 6図( c ) )の D sの内容を強調付検索指令記憶テーブル(第 6図( c ) ) の E s (セーブ用メモリ) に保存する) を実行して強調検索情報を更新し、 処 理を終わる。 s t ep 75で緑色でなければ s t ep 77に分岐する。 In step ep75, similarly, for example, it is determined whether or not “$" / MG ”(green emphasized search) is set. If Yes (green emphasized search), then go to step ep 76 (advance, green emphasized search information update processing (memory of highlight cancellation command in search control table 40) The contents of D c in the table (Fig. 6 (e)) are set to 0, and the contents of D s in the emphasis search command storage table (Fig. 6 (c)) are stored in the emphasis search command storage table (Fig. 6 (c)). c) Save the highlighted search information by executing E) (save in save memory) in)) and finish the process. If it is not green at st ep 75, branch to st ep 77.
s t ep77は色指定が無い場合に実行され、 一致箇所に単にカーソルを移 動するだけの強調なし検索として強調検索情報更新処理を実行して強調検索情 報を更新し、 処理を終わる。  Step ep77 is executed when there is no color specification, executes the emphasized search information updating process as a non-emphasized search that simply moves the cursor to a matching position, updates the emphasized search information, and ends the process.
第 13図は第 8図に於ける s t ep 26の詳細処理を示したものである。 他 の色についても同様な処理が行われるので、 他の色の処理についての説明は割 愛する。 ここで行う処理内容は例えば入力された赤色の強調付検索指令に対応 した赤色強調解除指令を解除 (削除) し、 当該赤色強調付文字列検索指令を最 新指令 (= 1) として、 直前までの各色の強調付文字列検索指令の実行順序を 並べ替える作業を行う。 従って表示画面がスクロールされた時、 ここで更新さ れた数値を読み出すことにより今まで指令されていた全ての強調付文字列検索 を再実行する場合の順序が特定できる。  FIG. 13 shows the detailed processing of step 26 in FIG. Since the same processing is performed for other colors, the description of the processing for other colors is omitted. The processing performed here is, for example, to cancel (delete) the red highlighting cancel command corresponding to the input red emphasized search command, set the relevant red emphasized character string search command to the latest command (= 1), and immediately before Perform the work of rearranging the execution order of the highlighted character string search command for each color. Therefore, when the display screen is scrolled, by reading the updated numerical value here, the order in which all of the character strings with emphasis that have been commanded so far can be re-executed can be specified.
s t ep 81では検索制御テ一プル 40中の強調解除指令記憶テ一プル(第 6図 (e) ) の B eの内容を 0 (強調付検索が指令されたら強調解除が打ち切 られたことにする) にし、 強調付検索指令記憶テ一ブル (第 6図 (c) ) の B sの内容を同じテーブルの E s (セーブ用メモリ) に保存する。  In step 81, the content of Be in the emphasis release command storage template (FIG. 6 (e)) in the search control template 40 is set to 0 (when the emphasis search is commanded, the deemphasis is canceled. The contents of Bs in the search command storage table with emphasis (Fig. 6 (c)) are saved in Es (save memory) of the same table.
, s t e p 82では初期チェックとして E sが 0か否かをチェックし、 0であ れば s t e p 83に進んで E sに " 3 " を格納する。 0でなければ最初にセー プされた値で s t e p 84以降の処理を行う。 前記 "3" は正確には、 強調検 索種類が増えた時 (初期処理で Es = 0の時) 、 "その時点での種類数— 1" であるが、 便宜上、 本実施の形態での最大値である "4— 1" (=3) を格納 している。  , step 82 checks whether or not Es is 0 as an initial check, and if it is 0, proceeds to step 83 and stores “3” in Es. If it is not 0, the processing after step 84 is performed with the value initially taken. The above-mentioned “3” is exactly “the number of types at that time—1” when the number of emphasized search types increases (when Es = 0 in the initial processing), but for convenience, in this embodiment, Stores the maximum value "4-1" (= 3).
s t ep 84では前記 B s (直前に於ける赤色強調検索の指令順序)の内容 が 1であるか否かをチェックする。 ここで B s= 1は最新の指令 (前回も赤色 強調検索指令だった) として解釈されるので、 同じ指令が連続したことになり、 実行順序は変更しないで処理を終了する。 B s≠ 1であれば他の強調検索指令 が最後に指令されていたことになるので、 赤色強調検索が最新指令であること を意味するように s t ep 85で B sに 1を書き込む。 In st ep 84, the contents of B s (the order of red highlighting search command immediately before) Check if is equal to 1. Here, B s = 1 is interpreted as the latest command (the previous command was also a red-emphasized search command), so the same command is continued, and the process ends without changing the execution order. If B s ≠ 1, another emphasis search command was issued last, so 1 is written to B s at step 85 to indicate that the red emphasis search is the latest command.
s t e p 8 6以降は赤色強調検索を最新指令に更新したことによる他 の指令の実行順序の変更を行う処理である。 s t e p 8 6では旧 B sのセ —プ値である E sと Asの内容を比較し、 A s >E sでなければ s t e p 87に進み、全色強調無し検索が過去に指令されていなかった(A s = 0) か否かをチェックする。 N o (指令されていた) であれば、 s t e p 88 で Asの内容を + 1し、 強調無し検索の実行順序を繰り下げる。 これは、 当該判別中の強調色が使われた順位が、今回実行する強調色による検索指 令の前回実行、時の順位より大きい (古い) 時のみ、 当該判別中の強調色に よる検索の順位は変化させない (繰り下げない) という処理を行うための ものである (以下の判別においても同様である) 。 s t e p 86で As > E sでなく、 s t e p 87で As = 0であれば s t e p 89に分岐し、 青 色について同様の処理を行う。  Step 86 and subsequent steps are processing for changing the execution order of other commands due to updating the red highlight search to the latest command. In step 86, the contents of Es and As, which are the set values of the old Bs, are compared, and if As> Es, the process proceeds to step 87, and the search without all-color emphasis has not been commanded in the past. Check whether (A s = 0). If it is No (commanded), the content of As is incremented by 1 in step 88, and the order of execution of the search without emphasis is reduced. This means that the search using the highlighted color during the discrimination is performed only when the ranking using the highlighted color during the discrimination is higher (older) than the previous execution of the search command using the highlighted color executed this time. The order is not changed (it is not moved down) (the same applies to the following discrimination). If As> E s is not true in s t e p 86, but As = 0 in s t e p 87, branch to s t e p 89 and perform the same processing for blue.
s t e S 9では旧 B sのセ一プ値である E sと C sの内容を比較し、 C s >E sでなければ s t e p 90に進み、 青色強調検索が過去に指令されていな い (Cs = 0) か否かをチェックする。 No (指令されていた) であれば、 s t ep 91で Csの内容を + 1し、 青色強調検索の実行順序を繰り下げて処理 を終了する。 これは、 当該判別中の強調色が使われた順位が、 今回実行する強 調色による検索指令の前回実行時の順位より大きい (古い) 時のみ、 当該判別 中の強調色による検索の順位は変化させない (繰り下げない) という処理を行 うためのものである。 s t ep 89で Cs>E sでなく、 s t ep 90で Cs 二 0であれば s t ep 92に分岐し、 緑色について同様の処理を行う。 s t e p 92では旧 B sのセーブ値である E sと D sの内容を比較し、 D s >E sでなければ s t ep 93に進み、 緑色強調検索が過去に指令されていな かった (Ds==0) か否かをチェヅクする。 No (指令されていた) であれば、 s t e p 94で D sの内容を + 1し、 緑色強調検索の実行順序を繰り下げて処 理を終了する。 s t e ϋ 92で D s >E sでなく、 s t ep 93で D s = 0で あれば処理を終了する。 In ste S 9, the contents of E s and C s, which are the set values of the old B s, are compared. If C s> E s, the process proceeds to step 90, and the blue enhancement search has not been commanded in the past ( Check if Cs = 0). If No (commanded), the content of Cs is incremented by 1 at step 91, the execution order of the blue emphasis search is reduced, and the process ends. This is because the ranking of the search by the highlighted color in the discrimination is only when the order of using the highlighted color in the discrimination is larger (older) than the ranking of the previous execution of the search command by the toned color executed this time. This is to perform processing that does not change (do not defer). If Cs> Es is not true at st ep 89, but Cs is 20 at st ep 90, branch to st ep 92 and perform the same process for green. In step 92, the contents of E s and D s, which are the save values of the old B s, are compared. If D s> E s, the process proceeds to step ep 93, and the green highlight search has not been commanded in the past (Ds == 0). If No (commanded), the content of D s is incremented by 1 in step 94, the execution order of the green highlight search is moved down, and the processing is terminated. If ste ϋ 92 does not satisfy D s> E s, and if D s = 0 in step 93, the process ends.
なお、 前記の処理を具体例で示せば、 次のとおりである。  The above process is as follows if it is shown in a specific example.
例えば、 第 6図 (c) に示す強調付検索指令記憶テーブルの Bsに 2、 As に 0、 〇3に1、 D Sに 3が格納されていた場合、 3 6 81で 3の値で ある 2が E sにセーブされる。 s t ep82で E s = 0ではないので s t ep 84に移行する。 s t ep84で B s = lかどうかが判断され、 B sは 2であ つて B s = 1ではないので s t e p 85に移 ί亍し、 s t ep 85で B sに 1が 格納される。 次に s t ep 86で As (= 0) >E s (=2) かどうかが判断 され、 A sは E sより大きくないので s t e p 87に移行する。 s t ep 87 では As = 0かどうかが判断され、 As = 0であるので、 s t ep 88を実行 せず、 s t e p 89に移行する。 即ち、 Asは 0のままの状態となる。 s t e 89では。3 (= l) >E s (=2) かどうかが判断され、 Csは E sより 大きくないので s t e p 90に移行する。 s t e p 90では C s = 0かどうか が判断され、 C s≠ 0であるので s t e p 9 1に移行し、 s t ep 91では Cs (二 1) + 1の処理を行う。 即ち、 Csは 1から 2に変更され、 この 2が C sに格納される。次に s t e p 92に移行し、 s t e p 92では D s (=3) >E s (=2) かどうかが判断され、 D sは E sより大きいので、 s t ep 9 3、 s t ep 94を実行せず、 処理を終える。 即ち、 Dsは 3のままの状態 となる。  For example, if 2 is stored in Bs, 0 is stored in As, 1 is stored in 〇3, and 3 is stored in DS in the search command storage table with emphasis shown in FIG. Is saved in Es. Since E s = 0 at st ep82, the process proceeds to st ep 84. It is determined whether or not B s = l by st ep84, and since B s is 2 and not B s = 1, it is moved to st ep 85, and 1 is stored in B s by st ep 85. Next, it is determined whether or not As (= 0)> E s (= 2) at st ep 86, and As is not larger than E s, the process proceeds to s t e p 87. In st ep 87, it is determined whether As = 0. As = 0, st ep 88 is not executed, and the process proceeds to s t e p 89. That is, As remains at 0. In st e 89. It is determined whether 3 (= l)> E s (= 2). Since Cs is not larger than E s, the process shifts to s t e p 90. In step 90, it is determined whether or not C s = 0. Since C s 移行 0, the process proceeds to step 91, and in step 91, the process of Cs (two 1) +1 is performed. That is, Cs is changed from 1 to 2, and this 2 is stored in Cs. Next, the process proceeds to step 92.In step 92, it is determined whether D s (= 3)> E s (= 2) .Since D s is larger than E s, execute st ep 93 and st ep 94. And finish the process. That is, Ds remains at 3.
この結果、 第 6図 (e) に示す強調解除指令記憶テーブルの: Bsに 2、 As に 0、 Csに 1、 D sに 3が格納されていた場合、 第 13図に示す処理を実行 することにより、 B sに 1、 A sに 0、 C sに 2、 D sに 3が格納されること になり、 赤色強調検索を最新指令に更新したことによる他の指令の実行順 序の変更が行われる。 As a result, if 2 is stored in Bs, 0 is stored in As, 1 is stored in Cs, and 3 is stored in Ds in the emphasis cancellation command storage table shown in Fig. 6 (e), the processing shown in Fig. 13 is executed. As a result, 1 is stored in Bs, 0 is stored in As, 2 is stored in Cs, and 3 is stored in Ds, and the execution order of other commands by updating the red highlight search to the latest command is stored. Changes are made.
第 1 4図は文字列検索及び一致箇所の指定色による強調表示処理の詳細であ る。 s t e p 1 0 1ではチェックポインタに表示バッファの先頭アドレスを書 き込み、 エンドポインタに表示バッファの最終アドレスを書き込む。 続いて文 字列ポインタに文字列メモリの先頭アドレスをセットし、 先頭フラグ (F G) をオンする。 この先頭 F Gは指定された文字列の最初の文字が表示バッファ中 に見つかった場合に、 そのァドレスを獲得するための信号である。  FIG. 14 shows the details of the character string search and highlighting processing using the designated color of the matching part. In st ep 101, the start address of the display buffer is written to the check pointer, and the end address of the display buffer is written to the end pointer. Next, the start address of the character string memory is set to the character string pointer, and the start flag (FG) is turned on. The first FG is a signal for acquiring the address of the first character of the specified character string when the first character is found in the display buffer.
s t e p 1 0 2で、入力された文字列を格納した検索文字列記憶テーブル (第 6図 (b ) ) から 1文字を読み出す。 s t e p 1 0 3では前記検索文字列メモ リの最後まで読み出したか否かを判定し、 終了していなければ s t e p 1 0 4 に進んで表示バッファの指定ァドレス (チェックボイン夕で指定されたァドレ ス) から 1文字を読み出す。  In step 102, one character is read from the search character string storage table (FIG. 6 (b)) storing the input character string. In step 104, it is determined whether or not reading has been completed to the end of the search character string memory. If not, the process proceeds to step 104 to specify the address of the display buffer (the address specified in the check box). Read one character from
s t e p 1 0 5で指定文字列の 1文字と表示バッファの指定ァドレスの 1文 字が一致しているか否かを判定し、 一致していなければ s t e 1 0 6に進ん で表示バッファの読出しァドレスを更新 (チェックポィン夕の内容をィンクリ メント (+ 1 ) ) し、 s t e p 1 0 4に戻る。  In step 1 05, it is determined whether or not one character of the specified character string matches one character of the specified address of the display buffer, and if not, the process proceeds to ste 106 to change the read address of the display buffer. Update (increment (+1) the contents of the checkpoint evening) and return to step 104.
s t Θ p 1 0 5で双方の文字が一致すれば s t e p 1 0 7に分岐し、 先頭 F Gがオンか否かをチェックする。 オンであれば s t e p 1 0 8で当該先頭 F G をオフし、 この時の表示バッファのァドレスをメモリ A O (一致部分先頭ァド レス) に格納する。 s t e p 1 0 9では現在の表示バッファのァドレスを A 1 に格納する。 これは一致部分が累積して行った場合において最後の文字のァド レスとなる。 更に表示バッファと文字列の読出しァドレスを次文字のチヱック に備えて更新し、 s t e p 1 0 2に戻る。  If both characters match with s t Θ p 1 0 5, the process branches to s t e p 1 0 7 to check whether the first FG is on. If it is on, the head F G is turned off in step 108, and the address of the display buffer at this time is stored in the memory A O (the head address of the matching part). In stpe p109, the address of the current display buffer is stored in A1. This is the address of the last character when matching parts are accumulated. Further, the display buffer and the readout address of the character string are updated in preparation for the check of the next character, and the process returns to step 102.
s t e 1 0 3で指定文字列が終了したと判定されると s t e p 1 1 0に分 岐し、 アドレス AOとアドレス A 1及び強調色の情報を強調情報 41に書き込 むと、 画面処理プログラム 3 1の作用により表示バッファにおける所定の範囲 の文字データに指定された色情報が付加される。 If it is determined that the specified character string ends in ste 1 0 3, the When the address AO, the address A1, and the highlight color information are written in the highlight information 41, the specified color information is added to a predetermined range of character data in the display buffer by the operation of the screen processing program 31. .
s t ep 1 1 1で指定範囲 (表示バッファ領域) について検索 ·強調表示処 理が終了したか否か.をチェック (チェックポインタとエンドポインタを比較) し、 終了していなければ残りの範囲についてのチェックを行うために、 s t e p 1 12で文字列ボイン夕に文字列メモリの先頭ァドレスをセヅトし、 先頭 F Gをオンして s t e p 1 02に戻る。 s t e p 1 1 1で指定範囲について検 索 ·強調表示処理が終了したと判断されると本処理を終了する。  Searches for the specified range (display buffer area) in st ep 1 1 1 Checks whether the highlighting process has been completed (compares the check pointer and end pointer), and if not completed, checks the remaining range In order to perform the check, the head address of the character string memory is set in the character string memory in step 112, the head FG is turned on, and the flow returns to step 102. If it is determined that the search / highlighting process has been completed for the specified range in step 1 11 1, the process ends.
第 1 5図は加工プログラム衷示中に表示範囲が画面スク口ール等により変化 した場合に、 最新の表示画面について前記検索及び強調解除を再実行するため の処理である。 s t e p 12 1で加工プログラムメモリから設定表示盤 7の表 示画面への表示領域が変化したかどうかをチェックする。 これは編集バッファ からデ一夕を読み出すための表示ボイン夕が変化したか否かで判定される。 変 化がなければそのまま処理を終わるが、 変化したと判定されると s t ep 12 2に進み、強調解除指令の再実行順序を決定する(検索制御テ一プル 40の(g)、 再解除順序決定テーブルを作成 ·更新する) 。  FIG. 15 shows a process for re-executing the search and the emphasis release for the latest display screen when the display range is changed due to a screen scroll or the like during the display of the machining program. In step 121, check whether the display area from the machining program memory to the display screen of the setting display panel 7 has changed. This is determined by whether or not the display window for reading data from the editing buffer has changed. If there is no change, the process is terminated as it is. If it is determined that the change has been made, the process proceeds to step 122 to determine the re-execution order of the emphasis cancellation command ((g) of the search control template 40, the re-cancel order). Create and update the decision table).
続いて s t ep 123で、 前記決定された順序に従って現在実行中または既 に実行した強調解除指令を再実行する。  Subsequently, in step 123, the emphasis cancellation command currently executed or already executed is re-executed in accordance with the determined order.
s t e 124では検索指令の再実行順序を決定 (検索制御テーブル 40の (f ) 、 再検索順序決定テーブルを作成 ·更新) し、 s t e p 125で前記決 定された順序に従って現在実行中または既に実行した検索指令を再実行する。 第 1 6図は第 15図の s t ep l 22、 強調解除指令の再実行順序決定処理 の詳細である。 s t ep 13 1では強調解除の順序決定テ一ブル (g) を/ F F (=- 1)で初期化する,。 s t e p 132では強調解除指令記憶テーブル(第 6図 (e) ) の Ac〜D cの値の最大値を F cに格納する。 ここで F cは数値 比較用の最大値セ一ブメモリである。 The ste 124 determines the re-execution order of the search command ((f) of the search control table 40, creates and updates the re-search order determination table), and executes the currently executed or already-executed according to the order determined in the step 125. Re-execute the search command. FIG. 16 shows the details of the step 22 of FIG. 15 and the re-execution order determination processing of the emphasis cancellation command. In st ep 131, the order table (g) for de-emphasis is initialized with / FF (= -1). In step 132, the maximum value of Ac to Dc in the emphasis cancellation command storage table (FIG. 6 (e)) is stored in Fc. Where F c is a numerical value This is a maximum value save memory for comparison.
s t e p 133では Acが 0か否かをチェックじ、 0でなければ s t e p 1 34に進み、 順序決定テーブル (第 6図 (g) ) の先頭から F c— Acの位置 に 0を書き込む。 s t ep 133で Ac=0であれば s t ep 134をスキヅ プする。  In step 133, it is checked whether or not Ac is 0. If not 0, the process proceeds to step 134, and 0 is written into the position of F c—Ac from the top of the order determination table (FIG. 6 (g)). If Ac = 0 at st ep 133, st ep 134 is skipped.
s t e p 135では B cが 0か否かをチェックし、 0でなければ s t e p 1 36に進み、 順序決定テーブル (第 6図 (g) ) の先頭から F c— B cの位置 に 1を書き込む。 s t ep l 35で B e = 0であれば s t e p 136をスキヅ プする。  In step 135, it is checked whether or not Bc is 0. If not 0, the process proceeds to step 136, and 1 is written at the position of Fc-Bc from the top of the order determination table (FIG. 6 (g)). If Be = 0 at step 35, stpe p 136 is skipped.
s t e p 137では C cが 0か否かをチェックし、 0でなければ s t e p 1 38に進み、 順序決定テ一プル (第 6図 (g) ) の先頭から F c— Ccの位置 に 2を書き込む。 s t ep l 37で C c = 0であれば s t ep l 38をスキヅ プする。  In step 137, it is checked whether or not C c is 0. If it is not 0, the process proceeds to step 1 38, and 2 is written at the position of F c—Cc from the beginning of the order determination template (FIG. 6 (g)). . If C c = 0 in st ep l 37, st ep l 38 is skipped.
s t e p 139では D cが 0か否かをチェックし、 0でなければ s t e p 1 40に進み、 順序決定テーブル (第 6図 (g) ) の先頭から F c— D cの位置 に 3を書き込み、 処理を終了する。 s t ep l 39で D c = 0であれば s t e p 140をスキップし、 処理を終了する。  In step 139, it is checked whether or not D c is 0. If it is not 0, the process proceeds to step 1 40, and 3 is written into the position of F c—D c from the head of the order determination table (FIG. 6 (g)), The process ends. If D c = 0 in st ep l 39, st ep 140 is skipped and the processing ends.
なお、 前記の処理を具体例で示せば、 次のとおりである。  The above process is as follows if it is shown in a specific example.
例えば、 第 6図 (Θ) に示す強調解除指令記憶テーブルの A cに 0、 B cに 2、 。 0ヽ D cに 1が格納されていた場合、 即ち、 強調解除指令が赤色と 緑色の 2種類について赤色、 緑色の順に実行されていた場合、 s t e p 132 で Ac, B c, Cc, D cの最大値である 2が F cに格納される。 次に s t e p 133で Ac = 0かどうかが判断され、 Ac = 0であるので、 s t ep 13 4を実行することなく、 s t e p 135に移行する。 s t ep 135では B e =0かどうかが判断され、 B cが 2であって B c≠0であるので、 s t ep l 36に移行する。 s t ep 136では F c— B cの計算、 即ち 2— 2の計算が 行われ、 その結果が 0であるので、 順序決定テーブル (g) の 0の位置 (一番 上の位置) に 1を書き込み、 s t ep 137に移行する。 s t ep 137では Cc = 0かどうかが判断され、 Cc = 0であるので、 s t ep 138を実行す ることなく、 s t e p 139に移行する。 s t ep 139では D c = 0かどう かが判断され、 D cが 1であって B c≠0であるので、 s t ep 140に移行 する。 s t ep 140では F c— D cの計算、 即ち 2— 1の計算が行われ、 そ の結果が 1であるので、 順序決定テーブル (g) の 1の位置 (一番上から次の 位置) に 3を書き込み処理を終了する。 For example, 0 in A c, 2 in B c, and so on in the emphasis cancellation command storage table shown in FIG. 0 ヽ If 1 is stored in D c, that is, if the de-emphasis command is executed for red and green in the order of red and green, then in step 132, Ac, B c, Cc, and D c The maximum value of 2 is stored in F c. Next, in step 133, it is determined whether Ac = 0. Since Ac = 0, the process proceeds to step 135 without executing step 134. At st ep 135, it is determined whether or not Be = 0. Since B c is 2 and B c ≠ 0, the process proceeds to st ep l 36. In st ep 136, the calculation of F c — B c, that is, the calculation of 2-2 Since the result is 0, 1 is written to the 0 position (top position) of the order determination table (g), and the process proceeds to step 137. In step 137, it is determined whether or not Cc = 0. Since Cc = 0, the process proceeds to step 139 without executing step 138. In step 139, it is determined whether or not Dc = 0. Since Dc is 1 and Bc ≠ 0, the process proceeds to step 140. In st ep 140, the calculation of F c — D c, that is, the calculation of 2-1 is performed, and the result is 1, so the position of 1 in the order determination table (g) (the next position from the top) Is written in 3 to end the process.
以上の処理により、 例えば強調解除指令が赤色と緑色の 2種類について赤色、 緑色の順に実行されていたとすると、 前記順序決定テーブル (g) の内容は先 頭が 1 (赤) 、 2番目が 3 (緑) 、 3番目及び 4番目は/: FFとなり、 赤色と 緑色についてのみ強調解除指令が再実行され、 3番目で/ FFが検出されるの で処理が終了するように制御できることになる。  As a result of the above processing, for example, if the de-emphasis command is executed in the order of red and green for two types of red and green, the contents of the order determination table (g) are 1 (red) at the beginning and 3 at the second. (Green), the third and fourth are /: FF, and the de-emphasis command is re-executed only for red and green. Since / FF is detected at the third, control can be performed so that the processing ends.
第 17図は第 15図の s t ep l 23、 強調解除指令再実行処理の詳細フロ 一チヤ一トである。 s t ep 151では強調解除指令再実行のための順序決定 テーブル (g) の先頭番地をチェヅクポイン夕にセヅトし、 図示しないチェヅ ク回数カウン夕 Ncに 4をセットする。  FIG. 17 is a detailed flowchart of the process step 23 of FIG. In step 151, the start address of the order determination table (g) for re-executing the emphasis release command is set at the check point, and 4 is set to the check count counter Nc (not shown).
s t e p 152では順序決定テーブルのチェックボイン夕で指示された番地 (先頭番地から 1サイクル毎にインクリメントされる) の内容を読み出す。 s t ep 153では前記読み出した内容が ZFF (— 1=初期化した値) で あるか否かを判定する。 /F Fは処理すべきデ一夕が無い (終了) ということ を意味するので Ye sであれば処理を終わり、 Noであれば s t ep 154に 進む。  In step 152, the contents of the address (incremented every cycle from the start address) specified by the check-in button of the order determination table are read. In step 153, it is determined whether or not the read content is ZFF (−1 = initialized value). / F F means that there is no data to be processed (end), so if Yes, the process ends. If No, the process proceeds to step154.
s t ep 154'では前記 s t e p 152で順序決定テ一プルから読み出した 値を Oc (オフセット値) に書き込む。  In step 154 ′, the value read from the order determination template in step 152 is written in Oc (offset value).
s t ep 155では解除指令テーブル (d) の先頭から〇 cの位置の命令を 読み出し、 実行する。 In st ep 155, the instruction at position 〇c from the top of the release command table (d) is Read and execute.
s t e p 156で図示しない前記チェック回数カウン夕 N 0 ¾デクリメント Check count counter not shown in st ep 156 N 0 ¾ Decrement
(一 1) する。 (1-1)
s t ep 157で Ncが 0 (順序決定テーブルの指定回数チェック完了) に なったか否かをチェックし、 0であれば処理を終了し、 0でなければチェック ポィン夕をィンクリメントして s t ep l 52に戻り、 次番地についてチエツ クを行う。  At st ep 157, it is checked whether or not Nc has become 0 (the specified number of checks in the order determination table has been completed). If it is 0, the processing is terminated. If it is not 0, the check point is incremented and st ep l 52 Return to and check the next address.
以上の処理により、 強調解除指令を実行した順に再度強調解除指令を実行す ることができ、 新たな表示データ中に既に指定されていた表示態様の文字列が 抽出されればその箇所を標準の表示態様に戻すことができる。  With the above processing, the emphasis cancellation command can be executed again in the order in which the emphasis cancellation command was executed, and if the character string of the display mode already specified in the new display data is extracted, that part is replaced by the standard. The display mode can be returned.
第 18図は第 15図の s t ep l 24、 検索指令の再実行順序決定処理の詳 細である。 s t e p 1 6 1では強調付検索指令の順序決定テーブル (f ) を/ FF (=- 1) で初期化する。 s t e p 1 62では強調付検索指令記憶テープ ル (c) の As〜D sの値の最大値を F sに格納する。 ここで F sは数値比較 用の最大値セーブメモリである。  FIG. 18 shows details of the step 24 of FIG. 15 and the re-execution order determining process of the search command. In step 161, the order determination table (f) of the search command with emphasis is initialized with / FF (= -1). In step 162, the maximum value of As to Ds of the search command storage table with emphasis (c) is stored in Fs. Here, F s is the maximum value save memory for numerical comparison.
s t e 1 63では A sが 0か否かをチェックし、 0でなければ s t e p 1 64に進み、 順序決定テ一ブル (f) の先頭から F s— Asの位置に 0を書き 込む。 s t Θ p 163で As = 0であれば s t e p 164をスキップする。  At ste 163, it is checked whether or not As is 0. If it is not 0, the process proceeds to ste p 164, and 0 is written at the position of F s-As from the head of the order determination table (f). If As = 0 at st tp 163, skip st ep 164.
s t e p 1 65では B sが 0か否かをチェックし、 0でなければ s t e p 1 66に進み、 順序決定テーブル ( f ) の先頭から F s— B sの位置に 1を書き 込む。 s t ep l 65で B s = 0であれば s t e p 166をスキップする。  In step 165, it is checked whether or not B s is 0. If it is not 0, the process proceeds to step 166, and 1 is written at the position of F s — B s from the head of the order determination table (f). If B s = 0 at st ep l 65, st ep 166 is skipped.
s t e p 1 67では C sが 0か否かをチェヅクし、 0でなければ s t e p 1 In s t e p 1 67, check whether C s is 0 or not, and if not 0, s t e p 1
68に進み、 順序決定テーブル (f) の先頭から F s— Csの位置に 2を書き 込む。 s t ep l 67で Cs = 0であれば s t e p 168をスキップする。 Proceed to 68 and write 2 at the position of F s — Cs from the top of the order determination table (f). If Cs = 0 in step l 67, skip st e p 168.
s t e p 1 69では D sが 0か否かをチェックし、 0でなければ s t ep 1 In s t e p 1 69, check whether D s is 0, and if not 0, s t ep 1
70に進み、 順序決定テーブル (f) の先頭から F s— D sの位置に 3を書き 込み、 処理を終了する。 s t ep 169で Ds = 0であれば s t ep 170を スキップし、 処理を終了する。 Proceed to 70 and write 3 at the position of F s — D s from the top of the order determination table (f). And terminate the processing. If Ds = 0 at st ep 169, skip st ep 170 and end the process.
なお、 前記の処理を具体例で示せば、 次のとおりである。  The above process is as follows if it is shown in a specific example.
例えば、 第 6図 (c) に示す強調付検索指令記憶テーブルの Asに 0、 B s に 2、 C sに 0、 D sに 1が格納されていた場合、 即ち、 強調付検索指令が赤 色と緑色の 2種類について赤色、 緑色の順に実行されていた場合、 s t e p 1 62で As, B s, Cs, D sの最大値である 2が F sに格納される。 次に s t ep 163で As = 0かどうかが判断され、 As = 0であるので、 s t ep 164を実行することなく、 s t e 165に移行する。 s t ep 165では B s = 0かどうかが判断され、 B sが 2であって B s≠ 0であるので、 s t e p 166に移行する。 s t ep l 66では Fs— Bsの計算、 即ち 2— 2の計 算が行われ、 その結果が 0であるので、順序決定テーブル (f )の 0の位置 (一 番上の位置) に 1を書き込み、 s t e p 167に移行する。 st ep l 67で は C s = 0かどうかが判断され、 C s = 0であるので、 s t e 168を実行 することなく、 s t e p 169に移行する。 s t e p 169では D s = 0かど うかが判断され、 D sが 1であって D s≠ 0であるので、 s t ep 170に移 行する。 s t e p 170では F s— D sの計算、 即ち 2— 1の計算が行われ、 その結果が 1であるので、 順序決定テーブル (f ) の 1の位置 (一番上から次 の位置) に 3を書き込み処理を終了する。  For example, if 0 is stored in As, 2 is stored in B s, 0 is stored in C s, and 1 is stored in D s in the search command storage table with emphasis shown in FIG. 6 (c). If two colors, green and green, are executed in the order of red and green, in step 162, the maximum value of As, Bs, Cs, and Ds is stored in Fs. Next, it is determined whether or not As = 0 in step 163, and since As = 0, the process proceeds to stte 165 without executing step 164. In step 165, it is determined whether or not B s = 0. Since B s is 2 and B s ≠ 0, the process proceeds to step 166. In st ep l 66, the calculation of Fs—Bs, that is, the calculation of 2-2, is performed. Since the result is 0, 1 is added to the position (top position) of 0 in the order determination table (f). Write and proceed to step 167. In st ep l 67, it is determined whether or not C s = 0. Since C s = 0, the process proceeds to s t ep 169 without executing s t e 168. In step 169, it is determined whether or not D s = 0. Since D s is 1 and D s ≠ 0, the process proceeds to step 170. In step 170, the calculation of F s — D s, that is, the calculation of 2-1 is performed, and the result is 1, so the position of 1 (the next position from the top) in the order determination table (f) is Ends the writing process.
以上の処理により、 例えば強調付検索指令が赤色と緑色の 2種類について赤 色、 緑色の順に実行されていたとすると、 前記順序決定テーブル (f ) の内容 は先頭が 1 (赤)、 2番目が 3 (緑) 、 3番目及び 4番目は/ FFとなり、 赤 色と緑色についてのみ強調付検索指令が再実行され、 3番目で/ F Fが検出さ れるので処理が終了するように制御できることになる。  As a result of the above processing, for example, if the search command with emphasis is executed in the order of red and green for two types of red and green, the contents of the order determination table (f) are 1 (red) at the top and 2 at the second. 3 (Green), 3rd and 4th are / FF, and the search command with emphasis is re-executed only for red and green, and / FF is detected at the 3rd, so that control can be performed so that the processing ends. .
第 19図は第 15図の s t ep 125、 検索指令再実行処理の詳細フローチ ヤートである。 s t e p 19 1では強調付検索指令再実行のための順序決定テ —プル (f) の先頭番地をチェックポインタにセットし、 図示しないチェック 回数カウン夕 Nsに 4をセットする。 FIG. 19 is a detailed flowchart of step 125 of FIG. 15 for re-executing the search command. In step 191, the order determination text for re-executing the search command with emphasis is —Set the start address of pull (f) to the check pointer, and set 4 to the check count counter Ns (not shown).
s t ep 192では順序決定テーブルのチェックボイン夕で指示された番地 (先頭番地から 1サイクル毎にィンクリメントされる) の内容を読み出す。  In step 192, the contents of the address specified by the check-in evening of the order determination table (incremented every cycle from the start address) are read.
s t ep 193では前記読み出した内容が/ FF (— 1=初期化した値) で あるか否かを判定する。 /FFは処理すべきデ一夕が無い (終了) ということ を意味するので Ye sであれば処理を終わり、 Noであれば s t e p 194に 進む。  In step 193, it is determined whether or not the read content is / FF (—1 = initialized value). Since / FF means that there is no data to be processed (end), if Yes, the processing is ended. If No, the processing proceeds to step 194.
s t e p 194では前記 s t e p 192で順序決定テーブルから読み出した 値を O s (オフセット値) に書き込む。  In step 194, the value read from the order determination table in step 192 is written to O s (offset value).
s t ep 195で検索指令テ一プル (a) の先頭から 0 sの位置の命令を読 み出すと共に検索文字列記憶テーブル (b) の先頭から◦ sの位置の文字列を 読み出し、 前記文字列と命令を合成して実行する。  At step 195, the instruction at 0 s from the beginning of the search command template (a) is read, and the character string at ◦ s from the beginning of the search character string storage table (b) is read. And execute the command.
s t ep 196で図示しない前記チェック回数力ゥン夕 N sをデクリメント (一 1) する。  In step 196, the check frequency N s (not shown) is decremented (1-1).
st ep 197では Nsが 0 (順序決定テ一プルの指定回数チェック完了) になったか否かをチェックし、 0であれば処理を終了し、 0でなければチヱヅ クポインタをインクリメントして s t ep 192に戻り、 次番地についてチェ ックを行う。 以上の処理により、 強調付検索指令を実行した順に再度強調付検: 索指令を実行することができ、 新たな表示データ中に既に指定された文字列と 一致する文字列が抽出されればその箇所を指定された表示態様で強調表示され る。  In st ep 197, it is checked whether or not Ns has become 0 (the number of checks of the order determination template has been completed). If 0, the process is terminated. If not, the check pointer is incremented and st ep 192 is set. Return to and check the next address. With the above processing, the emphasis search: search command can be executed again in the order in which the emphasis search command was executed, and if a character string that matches the already specified character string is extracted from the new display data, the The location is highlighted in the specified display mode.
実施の形態 2. Embodiment 2.
次に第 2図及び第 3図に示した強調表示付文字列検索及び強調解除の実現方 法について説明する。 表示画面に表示された検索文字列及び強調表示色情報の 入力部、 強調解除情報の入力部に、 ォペレ一夕が所望の文字列や表示色の情報 を入力すると、 前記各種情報は文字列を表す " $ " と表示色を表す "/M" ま たは強調表示解除を表す "/M C" が所定の制御により付加され、 実施の形態 1で実現されて^る式表現の強調表示付検索指令または強調解除指令に内部で 変換される。 前記これらの情報を用いて第 7図及び第 8図に示した処理に始ま り、 第 9図〜第 1 9図に示される必要な処理を実行することにより、 実施の形 態 1と同様の機能を第 2図または第 3図の情報入力により行うことができる。 Next, a description will be given of a method of realizing the character string search with highlight and the release of highlight shown in FIGS. 2 and 3. FIG. In the input section for the search character string and highlighted display color information displayed on the display screen, and the input section for the de-emphasis information, , "$" Representing a character string and "/ M" representing a display color or "/ MC" representing release of highlighting are added by predetermined control to the various information, and are realized in the first embodiment. It is internally converted into a search command with highlighting or a command to cancel highlighting of the expression. Starting from the processing shown in FIGS. 7 and 8 using the above information, the necessary processing shown in FIGS. 9 to 19 is executed, whereby the same processing as in the first embodiment is performed. The function can be performed by inputting the information shown in FIG. 2 or FIG.
また、 本実施の形態 2によれば、 第 2図または第 3図により同時に複数の強 調付文字列検索または強調解除を実行することができるという効果もある。 実施の形態 3 . ' 次に本発明による強調表示付文字列検索及び強調解除を加工プログラム作成 が完了したものについて適用する場合について説明する。 本発明の出願人が提 案した 〔国際出願番号: P C T/J P 0 2 / 1 3 6 2 5 ) では加工プログラム 作成中に、 特に入力ミスの発生頻度が高いデータ入力時の小数点付け間違い、 小数点位置間違い、 入力値の過大/過小に的を絞ったチェックなどを加工プロ グラムのキー入力中に逐次行い、 不審点があればその旨を警告することにより ォペレ一夕は直ちに誤りを修正できるので、 プログラム入力完了'時には完成度 の高いプログラムが出来上がつていることになる。 然しながらその都度警告が あるのが煩わしいと感じるオペレータもいるので、 このような時には逐次チェ ヅクを省略し、 加工プログラム作成後に一括して前記チエックを行うこともで きるという技術を提案している。 ここでは前記後者の一括チヱヅクの場合に検 出した入力エラーの内容によって表示態様を変えて表示することにより訂正す べき個所の認識を容易にする方法について第 4図、 第 5図及び第 2 0図〜第 2 5図を用いて説明する。  Further, according to the second embodiment, there is also an effect that a plurality of emphasized character string searches or emphasis cancellation can be executed simultaneously according to FIG. 2 or FIG. Embodiment 3. 'Next, a description will be given of a case in which the character string search with highlighting and the cancellation of emphasis according to the present invention are applied to those for which the processing program has been created. According to [International application number: PCT / JP02 / 136365], which was proposed by the applicant of the present invention, during the creation of a machining program, incorrect decimal points were added, especially when inputting data with a high frequency of input errors. Checks that focus on incorrect position and excessive / undersized input values are performed sequentially during key input of the machining program, and if there is a suspicious point, the operator can correct the error immediately by alerting the user of the suspicious point. When the program input is completed, a highly-completed program is completed. However, some operators find it troublesome to be warned each time. Therefore, in such a case, a technique has been proposed in which the check can be omitted one after another and the check can be performed collectively after creating a machining program. Here, a method of facilitating recognition of a portion to be corrected by changing the display mode according to the content of the input error detected in the latter case of the collective check to facilitate the recognition of the portion to be corrected is shown in FIGS. This will be described with reference to FIGS.
第 4図 (N C装置のブロック図) のパラメ一夕メモリ 4内の小数点チェック 対象ワードテ一プル 4 3は、 指令された G指令に含まれる座標位置や長さなど を示すアドレスワード (以下単にアドレスまたはワードと略すことがある) の 内、 小数点が使用できるアドレス (X, Y, Z, etc.) を集合させたものであ る。 入力された任意のアドレスで当該テーブル内を検索し、 一致があれば当該 ァドレスは小数点が有効であると判断する。 このテーブルは次に説明する小数 点チェヅク対象 Gコードテーブル 44に登録された Gコード毎に設けられる。 小数点チヱック対象 Gコードテーブル 44は、 小数点が使用可能な座標位置 や長さを示すアドレスをその指令中に含む G指令 (G00X"', GO 1 Υ-, GO 2 I···, etc.) を纏めた Gコード (00, 01, 02, etc.) の集合であ る。 入力された任意の Gコードで当該テーブルを検索し、 一致があれば当該 G 指令には小数点が有効なァドレスが指令される可能性があると判断する。 In Fig. 4 (Block diagram of the NC unit), the word list 43 for the decimal point check in the parameter memory 4 is an address word that indicates the coordinate position and length included in the commanded G command (hereinafter simply address). Or abbreviated as word) Of these, the addresses (X, Y, Z, etc.) that can use the decimal point are collected. The table is searched using the input address, and if there is a match, the address is determined to have a valid decimal point. This table is provided for each G code registered in the decimal code check target G code table 44 described below. Decimal point check target G code table 44 contains the address indicating the coordinate position and length where the decimal point can be used in its command. G command (G00X "', GO1Υ-, GO2I ..., etc.) This is a set of G codes (00, 01, 02, etc.) that summarizes the table. The table is searched using any input G code, and if there is a match, the G command has an address with a valid decimal point. Judge that there is a possibility of being instructed.
警告判定値 45は任意の G指令中の、 任意のァドレスに指令される数値が最 大指令値を超えてはいないが、 通常指令する値としては小さ過ぎるまたは大き 過ぎるなど、 入力された数値の適否確認が必要であると判断するための閾値を 記憶したテープルである。  The warning judgment value 45 is the value of the input numerical value, such as the value specified for any address in any G command does not exceed the maximum command value, but is usually too small or too large to be commanded. This is a table that stores a threshold value for judging that conformity check is necessary.
第 5図は実施の形態 1で既に説明したものであるが、 本実施の形態ではこの 中の加工プログラムエリア 6 (または加工プログラム編集中の、 図示しない編 集バッファであってもよい) に格納された加工プログラムについてプログラム 内容の確認ゃチエックを一括して行う一括チェヅク処理 (s t ep 08) の詳 細及び一括チェック処理で得られた結果の表示方法について説明する。 s t e 10は本発明とは直接関係のない処理、 また、 st ep04〜st ep07 は実施の形態 1についての処理であるので説明は割愛する。  Although FIG. 5 has already been described in the first embodiment, in the present embodiment, it is stored in the machining program area 6 (or may be an editing buffer (not shown) during editing of the machining program). The details of the batch check process (st ep 08) that checks the program contents of the completed machining program at once and the method of displaying the results obtained in the batch check process will be described. st e10 is processing not directly related to the present invention, and st ep04 to st ep07 are processing relating to the first embodiment, so description thereof will be omitted.
尚、 s t e p 08の一括チヱック処理及び s t e p 10の逐次チェック処理 については本発明の出願人による出願 〔国際出願番号: PCT/JP 02/1 3625〕 と概同じものである。  The batch check processing of step 08 and the sequential check processing of step 10 are almost the same as the application by the applicant of the present invention [International application number: PCT / JP 02/1 3625].
第 20図は、 NC装置への入力デ一夕に小数点が含まれていない時には最小 指令単位で扱う仕様と、 同じく小数点が含まれていない時には mm単位で扱う仕 様に於て、 NC装置の機械によって予め決められた最小指令単位 (例えば 10 ju , 1 jum, 3\113 111の何れか) のシステムで、 入力される数値データに 小数点が有るデータと小数点が無いデータがどのような数値として解釈される かを纏めた表である。 Fig. 20 shows the specifications of the NC unit in the specification where the decimal point is not included in the input data to the NC unit and the unit where the decimal point is not included. The minimum command unit predetermined by the machine (for example, 10 It is a table that summarizes what kind of numerical value is interpreted as numerical data with decimal point and data without decimal point in the input numerical data in the system of ju, 1 jum, or 3 \ 113 111).
この表に示されるように例えば 1 /πι指令 ( l = l zm) 仕様の時、 小数点 入力必要タイプで小数点無しデ一夕を入力すると 1 m単位として解釈し、 小 数点付データを入力すると指令どおりとして解釈する。 一方、 小数点入力不要 タイプで小数点無しデ一夕を入力すると 1腿単位として解釈し、 小数点付デ一 夕を入力すると指令どおりとして解釈する。具体例を挙げると、小数点必要夕 ィプで 1〃m指令の場合、例えば 1 2 3 と入力すれば 1 2 3〃 m、 1 2 3. と入力すれば、 1 2 3. 0 0 0 mm と解釈され、 また小数点不 要タイプで 1 //指令の場合、例えば 1 2 3 と入力しても 1 2 3. と入 力しても 1 2 3. 0 0 0匪 と解釈される。 この場合、 1 2 3 mと 解釈させるためには 0. 1 2 3、 または. 1 2 3 と入力する必要があ r< o As shown in this table, for example, in the 1 / πι command (l = l zm) specification, if the decimal point input required type is input without decimal point, it is interpreted as 1 m unit, and if data with decimal point is input, Interpret as instructed. On the other hand, if the decimal point input is not required type and data without decimal point is input, it will be interpreted as one thigh unit, and if data with decimal point is input, it will be interpreted as instructed. To give a specific example, in the case of a 1〃m command with a decimal point required, for example, enter 1 2 3 to enter 1 2 3〃 m, and enter 1 2 3. to enter 1 23.0 000 mm In the case of 1 // directive with no decimal point, even if you enter 1 2 3 or 1 2 3, for example, it will be interpreted as 1 2 3 0 0 0 band. In this case, 1 2 3 m and interpreted to 0.1 2 3 to or. 1 2 3 needs to enter there r, <o
第 2 1図は本実施の形態で行う一括チェックにより警告を行うための目的と 判別のための閾値を、 NC装置の指令単位システム毎に記憶しているパラメ一 夕テ一プルである。 この表は 10 m、 l〃m、 0. 1 mの各最小指令単位 システム毎の小数点付け間違いを判別するための閾値パラメータ(警告判定値 テ一プル ) の設定例を示したものであり、 実際には当該機械の指令単位システ ムと同一の、 この中の 1列のパラメ一夕値を使用する。 ここに設定されている 値は機械の大きさなどによって適宜変更が可能である。 ここには機械仕様で 決まる指令単位システム ( 1 0 /、 1 、 0. 1 μ) 機械可動範囲 ワーク寸法を元に警告を発する境界値を設定する。例えば過小指令値 防止値としては 0. 5 nun (ワークにも色々あるので一概には言えない が、 一般的にはこういう小さな指令値は考えられないので、 小数点を 打ち間違ったか最小指令単位の数値で桁数を間違ったと判定する)、 小数点付加防止値としては 2 00 (通常は曲率の大きな半径値でもな い限り 2 0 Omm という長さの指令は行わないので、 2 00を超える 数値の末尾に小数点を付けるとキーの打ち間違いと判断する)、過大 指令値防止値としては同じ理由から 2 00、という値を設定している が、 これらは機械のワークを載せるテーブル寸法が大きい時には、カロ ェ図面で指示される最大寸法に合わせて設定することもできる。 "P D100SM (DT, LG) "等は各パラメ一夕に付けた名称であり、 実際に は太線枠内に示すような数値が設定され、 これらを用いて下記のようなチエツ クを行う。 末尾の SMは SMALLの略、 DTは NORMAL— DATAの略、 LGは LARGEの略で、 夫々過小、 通常値、 過大に対応させている。 ここで は閾値として例えば X, Y, Z等の座標値用に 1組だけを設けたケースを説明 しているが、 他のァドレスや個々のァドレスに対応して準備しておくことも可 能である。 FIG. 21 is a parameter table in which the purpose for performing a warning by the collective check performed in the present embodiment and the threshold value for determination are stored for each command unit system of the NC unit. This table shows the setting example of the threshold parameter (warning judgment value template) for discriminating the decimal point mistake for each minimum command unit system of 10 m, l〃m, and 0.1 m. In practice, use the one-parameter overnight values in this column, which are the same as the command unit system of the machine. The value set here can be changed as appropriate depending on the size of the machine. Here, the command unit system (10 /, 1, 0.1 μ) determined by the machine specifications Set the boundary value at which a warning is issued based on the working range of the machine. For example, 0.5 nun is a preventive value for the under-command value. (There are various types of workpieces, so it cannot be said unconditionally.However, in general, such a small command value cannot be considered. Judge that the number of digits is wrong), The decimal point addition prevention value is set to 200 (usually a command of a length of 20 Omm is not issued unless the radius value has a large curvature. Judgment), the value 200 is set as the excessive command value prevention value for the same reason. However, when the size of the table on which the machine work is placed is large, these values are set to the maximum size indicated on the Karoe diagram. Can also be set. "PD100SM (DT, LG)" is a name given to each parameter. Numerical values are set as shown in the bold frame, and the following check is performed using these values. The suffix SM stands for SMALL, DT stands for NORMAL-DATA, and LG stands for LARGE, which correspond to under, normal, and over, respectively. Here, a case is described in which only one set is provided for coordinate values such as X, Y, and Z as threshold values, but it is also possible to prepare for other addresses and individual addresses. It is.
本実施の形態で ¾告を行う入力ミスの具体的な内容は次のとおりである。 ①小数点位置不正:入力仕様が小数点必要 (最小指令単位処理) 、 または、 小 数点不要 (腿単位処理) で入力データに小数点が含まれていた場合、 前記入力 データの整数部が予め設定した値より大きい時に小数点の位置を間違ったと判 断する。  The specific contents of the input mistake for reporting in the present embodiment are as follows. (1) Incorrect decimal point position: If the input specification requires a decimal point (minimum command unit processing) or decimal point is unnecessary (thigh unit processing) and the input data contains a decimal point, the integer part of the input data is set in advance. When the value is larger than the value, the position of the decimal point is judged to be wrong.
②入力値が過大/過小:入力仕様が小数点必要 (最小指令単位処理) で入力デ 一夕に小数点が無い場合、 前記入力デ一夕の整数部が予め設定した下限値より 小さい時に、 または、 小数点不要 (画単位処理) で入力デ一夕に小数点が無い 場合、 前記入力データの整数部が予め設定した上限値より大きい時に小数点の 位置を間違ったものと判断する。  ② Input value is too large or too small: If the input specification requires a decimal point (minimum command unit processing) and there is no decimal point in the input data, if the integer part of the input data is smaller than the preset lower limit, or If there is no decimal point in the input data because no decimal point is required (image unit processing), it is determined that the position of the decimal point is wrong when the integer part of the input data is larger than a preset upper limit.
第 22図は加工プログラムの入力値妥当性チヱックのためのパラメ一夕を、 NC装置の指令単位システムに対応する閾値として読み出すためのフローチヤ Fig. 22 is a flow chart for reading out the parameters for the input value validity check of the machining program as threshold values corresponding to the command unit system of the NC unit.
—トである。 s t ep 201では先ず警告判定値テーブルの先頭アドレスを読み出す (こ のァドレスに最小指令単位毎に与えられたオフセット値を足し込んで所望のパ ラメ一夕の先頭アドレスを決定する) 。 s t e p 202ではシステムパラメ一 夕 21のインチ入力フラグをチェックし、 フラグがォンになっておればィンチ 入力としてインチデータ処理 (これは以下に説明するメ トリック入力と同様の 処理であり、 インチ入力であってもそれに対応したパラメ一夕がレジス夕 (S M, DT, LG) に読み出されているので、 メトリック入力同様にチェックを 行うことができる) を行う。 —T In step 201, first, the head address of the warning judgment value table is read out (adding the offset value given for each minimum command unit to this address to determine the head address of the desired parameter overnight). In step 202, the inch input flag of system parameter 21 is checked. If the flag is turned on, inch data processing is performed as an inch input. (This is the same processing as the metric input described below. Even so, the parameter corresponding to that is read out at the registration evening (SM, DT, LG), so it can be checked in the same way as the metric input).
s t e p 203ではシステムパラメ一夕 21の最小指令単位フラグをチェヅ クし、 0. 1 /mフラグがオンになっておれば s t e p 205に分岐して最小 指令単位 0. l mに対応する過小指令値防止、 小数点付加防止、 過大指令値 防止の三つのパラメ一夕を読出し、 演算用メモリ SM, DT, LGに夫々書き 込み、 処理を終了する。 s t e p 203でフラグがオンになっていなければ s t e p 204に進み、 同様にシステムパラメ一夕 21の最小指令単位フラグを チェックし、 1 mフラグがオンになっておれば s t e p 206に分岐して最 小指令単位 l mに対応する三つのパラメ一夕を読出し、 演算用メモリ SM3 DT, LGに夫々書き込み、 処理を終了する。 s t e p 204でフラグがオン になっていなければ 10〃m指令と看なして s t e p 207に分岐して最小指 令単位 10〃mに対応する三つのパラメ一夕を読出し、 演算用メモリ SM, D T, LGに夫々書き込み、 処理を終了する。 In step 203, the minimum command unit flag of the system parameter 21 is checked, and if the 0.1 / m flag is on, the process branches to step 205 to prevent an undercommand value corresponding to the minimum command unit of 0.1 lm. Read out the three parameters for preventing the addition of decimal points and preventing excessive command values, write them to the calculation memories SM, DT, and LG, respectively, and terminate the processing. If the flag is not turned on in step 203, proceed to step 204. Similarly, check the minimum command unit flag of the system parameter 21.If the 1m flag is on, branch to step 206 to minimize reading three parameters Isseki corresponding to reference unit lm, operation memory SM 3 DT, husband LG s write, the process ends. If the flag is not turned on in step 204, it is regarded as a 10〃m command, and the process branches to step 207 to read three parameters corresponding to the minimum command unit of 10〃m, and to store the operation memories SM, DT, Write to LG respectively and finish the process.
第 23図は小数点位置または付け忘れのチエツクをプログラム入力中に逐次 行うのではなく、 入力完了後に一括して行うためのフローチャートである。 s t ep 21 1では設定表示盤 7の表示画面上に表示するメモリの領域が変化 したか否かをチェックするもので、 検索の初回及び表示画面がスクロールされ れば表示領域変化となり、 s t e ρ 212に進む。 s t e p 2 12では表示メ モリの先頭ァドレスをチェヅクボイン夕にセヅトし、 表示メモリの最終ァドレ スをェンドボイン夕にセッ卜する。 初回チェック起動時も表示領域変化と看な される。 s t e p 21 1で表示画面領域に変化がなければ同一領域で同一チェ ックを繰り返す必要はないので処理を終わる。 FIG. 23 is a flowchart for checking the decimal point position or forgetting to attach the decimal point not sequentially during input of the program, but collectively after input is completed. The st ep 21 1 checks whether or not the memory area displayed on the display screen of the setting display panel 7 has changed. When the search is first performed and the display screen is scrolled, the display area changes, and ste ρ 212 Proceed to. In step 2 12, the first address of the display memory is set in the check box, and the last address of the display memory is set. Set at the endboin evening. Even when the first check is activated, it is regarded as a change in the display area. If there is no change in the display screen area in step 211, there is no need to repeat the same check in the same area, so the process ends.
s t ep 2 13ではチヱヅクポインタで指示された表示メモリ上のアドレス から 1キャラクタのデータを読み取り、 チェックポインタの内容を + 1 (更新) する。 読み取ったキャラクタをデ一夕メモリ 5内の所定のエリアに格納してヮ —ドデ一夕とし、 これを集めて 1プロック分 (エンドォブブロックまで) のデ 一夕とする。 s t ep 2 14では前記読み取ったキャラクタがエンドォブプロ ヅク (EOB) か、 否かを判定し、 EOBでなければ s t ep 215に進み、 表示メモリ領域を越えた (チェヅクポインタ >エンドポインタ) か否かをチェ ックする。越えていなければ s t e p 213に戻って次キャラクタを読み取る。 s t e p 215で表示メモリ領域を越えていると判定されるとチヱヅクすべき デ一夕は無いので s t e p 218に分岐して ¾告情報の処理を行う。  In step 213, one character data is read from the address on the display memory designated by the check pointer, and the content of the check pointer is incremented by 1 (updated). The read characters are stored in a predetermined area of the memory 5 to be stored in a predetermined area, and the data are collected and used as data for one block (up to the end block). At step 214, it is determined whether or not the read character is an end block (EOB). If not, the process proceeds to step 215 to determine whether the character has exceeded the display memory area (check pointer> end pointer). Check. If not, the process returns to step 213 to read the next character. If it is determined in step 215 that the data exceeds the display memory area, there is no data to be checked, so the process branches to step 218 to process the report information.
s t e p 2 14で読み取ったキャラクタが E OBであると判定されると s t ep 216に進み、 前記読み取った指令プロヅクがプログラム終了 (M02ま たは M30) か、 否かをチェックする。 プログラム終了であれば s t e p 21 8に分岐して警告情報の処理を行う。 s t ep 2 16で前記読み取った指令プ 口ックがプログラム終了でないと判定されれば s t e p 217に進み、 後に説 明する小数点チェック処理を行い、 次ブロックのチェックを行うために s t Θ p 213に戻る。  When it is determined that the character read in step 214 is EOB, the process proceeds to step 216 to check whether the read command program is program end (M02 or M30) or not. If the program ends, the process branches to step 218 to process the warning information. If it is determined in st ep 216 that the read command block is not the end of the program, the process proceeds to step 217, in which a decimal point check process described later is performed, and stΘp 213 is used to check the next block. Return.
s t ep2 18、 s t e p 219は前記小数点チェック処理で警告があった 場合の後処理を行うもので、 s t e p 218では前記小数点チェック処理で警 告が発生した時にオンされる警告有りフラグをチェックする。 警告がなければ s t ep 219に進み、 . "警告無し" メヅセージを表示 I/F 24に書き込む。 s t ep 218で警告有りフラグがオンであれば ¾告箇所は前記小数点チエツ ク処理で強調表示メモリに格納されており、 これに基づいて自動的に表示され るので処理を終わる。 In step 218 and step 219, post-processing is performed when there is a warning in the decimal point check processing. In step 218, a warning flag that is turned on when a warning occurs in the decimal point check processing is checked. If there is no warning, go to step 219 and write the "No warning" message to the display I / F 24. If the warning flag is on at step 218, the report location is stored in the highlight memory by the decimal check processing, and is automatically displayed based on this. Therefore, the process ends.
第 2 4図は前記第 2 3図の s t e p 2 1 7で行っている入力値チェックの詳 細処理を示す。 実際のチエック内容は前記三つのパラメ一夕との比較による、 過小指令値防止 (入力値が小さ過ぎる、 或いは小数点を付け忘れていないか) 、 小数点付加防止 (小数点を付けると入力値が大きくなり過ぎる) 、 過大指令値 防止 (入力値が大き過ぎる、 或いは小数点の位置を間違えたのではないか) の 3種類である。  FIG. 24 shows the detailed processing of the input value check performed in step 211 of FIG. The actual check contents are based on comparison with the above three parameters to prevent under command value (input value is too small or not forgetting to attach decimal point), prevent decimal point addition (addition of decimal point increases input value. Too much), Prevent excessive command value (Is the input value too large, or the wrong decimal point?).
s t Θ p 2 2 1で入力中の Gコードを読み取る。 s t e p 2 2 2では当該 G コードが小数点チエックの対象であるか否かをチヱヅクする。 これはその G指 令中に小数点の使えるアドレスを含んでいる Gコードを集めた小数点チェック 対象 Gコ一ドテ一ブル 4 4をサーチすることにより行う。 ここで前記テーブル 中に前記 Gコードが検出されると s t e p 2 2 3に進み、 前記小数点チェック 対象 Gコードテーブル 4 4中の各 Gコードに対応して記憶されている小数点チ エック対象ヮードテーブル 4 3のァドレスを読み出す。 更に、 Gコードに続い て入力されるアドレスコードを読み取り、 且つヮ一ドの先頭ァドレス (ァドレ スコードの記憶位置) を記憶する (但し、 ワードの先頭アドレス記憶は一括チ エックのときに必要な処理である) 。 s t e p 2 2 2で Gコードが検出されな ければ小数点チエックは不要であるので処理を終了する。  Read the G code being input with s t Θ p 2 2 1. In step 222, it is checked whether or not the G code is subjected to the decimal point check. This is done by searching the G code table 44 for the decimal point check, which is a collection of G codes containing addresses where decimal points can be used in the G command. Here, when the G code is detected in the table, the process proceeds to step 2 23, and the decimal point check target code table 4 3 stored corresponding to each G code in the decimal point check target G code table 4 4 4 3 Read the address of Furthermore, the address code input following the G code is read, and the head address of the pad (the storage position of the address code) is stored. (However, the storage of the head address of the word is a process required for batch check.) Is). If no G code is detected in st e p 222, the decimal point check is unnecessary and the processing is terminated.
s t e 2 2 4では前記読み出したヮードデータ (X , Y, Ζ等のアドレス ワードとこれに続く数値デ一夕で、 アドレスワードまたはエンドォプブロック (; ) の入力で区切られる) のアドレスコードが前記読み出したアドレスから 始まる小数点チエック対象ヮ一ドテーブル 4 3中に存在するか否かをチェック する。 ここで Y e sと判定されると s t e p 2 2 5に進み、 前記アドレスに続 いて入力されたデータの整数部を読み出し、 更に、 当該ワードデータの終点ァ ドレスを記憶する (但し、 終点アドレス記憶は一括チェックのときに必要な処 理である) 。 s t e p 2 2 4で N oと判定された場合はデ一夕のチェックを行 う必要はないので処理を終了する。 In ste 2 224, the address code of the read code data (the address word of X, Y, Ζ, etc. and the numerical data following it, which is delimited by the input of the address word or end-op block (;)) is Check whether the decimal point check starting from the read address exists in the target table 43. Here, if it is determined as Yes, the process proceeds to step 225 to read the integer part of the input data following the address, and further store the end address of the word data (where the end address is stored. This is necessary for batch check). If it is determined as No in step 2 2 4, a check is performed overnight. Since there is no need to perform this process, the process ends.
s t ep 226ではシステムパラメ一夕 2 1中の mm処理フラグがオンか否 かをチェヅクする。 このフラグは第 20図の NCデータの入力仕様である、 入 力指令値 (例えば 25) を 25 mmと解釈させるためには "25. " と小数点 を付けて入力しなければならない(例えば l zm単位の時、小数点が無いと "2 5" /mと解釈される) "小数点必要" タイプと、 "25" と入力するだけで よい (小数点が無いと自動的に mm単位と看なす) "小数点不要 "タイプを選 択するものである。 ここでフラグがオン (mm単位処理) であれば s t ep 2 27へ進み、 オフ (最小指令単位処理) であれば s t e p 234に分岐する。  In step 226, it is checked whether or not the mm processing flag in the system parameter 21 is on. This flag is the NC data input specification shown in Fig. 20. In order to interpret the input command value (for example, 25) as 25 mm, it must be entered with a decimal point of "25." (for example, l zm In the unit, if there is no decimal point, it will be interpreted as "2 5" / m.) You only need to enter "decimal point required" type and "25" (If there is no decimal point, it will be automatically interpreted as mm unit) " Decimal point not required ”type is selected. If the flag is ON (mm unit processing), the process proceeds to step 227. If the flag is OFF (minimum command unit process), the process branches to step 234.
s t ep 227では入力デ一夕に小数点が含まれているか否かをチェヅクし、 小数点が有れば s t ep 228に進み、 前記 s t e p 225で読み出した整数 部と前記第 22図の s t ep 205〜s t ep 207で読み出したパラメ一夕 値 DTを比較する。 整数部 >DTであれば s t e p 229に進み、 小数点が値 を大きくしていることを識別し易くするために、 例えば緑色表示を示す "G" の文字コードを図示しない表示態様 t emp (テンポラリメモリ) に書き込み、 s t e p 230に進む。 s t e p 108で整数部 >D Tでなければ s t e ρ 1 10に分岐する。  In step 227, it is checked whether or not the input data contains a decimal point. If there is a decimal point, the process proceeds to step 228, and the integer part read out in step 225 and step 205 to FIG. Compare the parameter value DT read out at st ep 207. If the integer part is> DT, the process proceeds to step 229. In order to make it easy to recognize that the decimal point has a large value, for example, the character code of “G” indicating green display is displayed in a not-shown display mode t emp (temporary memory). ) And go to step 230. If the integer part is not> D T in st e p 108, the process branches to st e p 110.
s t ep 227で小数点が無いと判断されると s t e p 232に分岐し、 同 様に整数部とパラメ一夕値 LGを比較する。 整数部 >LGであれば s t e p 2 33に進み、 小数点を付けないと値が異常となることを識別し易くするために、 例えば赤色表示を示す "R" の文字コードを表示態様 t empに書き込み、 s t ep 230に進む。 s t e p 232で整数部 > L Gでなければ処理を終了す る。  If it is determined in step 227 that there is no decimal point, the process branches to step 232, and similarly compares the integer part and the parameter value LG. If the integer part is> LG, proceed to step 233. To make it easy to identify that the value will be abnormal unless a decimal point is added, for example, write the character code of "R" indicating red display in the display mode temp. Proceed to st ep 230. If the integer part is not greater than L G in st e p 232, the process ends.
s t ep 226でフラグがオフ (最小指令単位処理) であれば s t e p 2 34に分岐し、 入力デ一夕に小数点が含まれているか否かをチェックし、 小数 点が有れば s t ep 235に進み、 同様に整数部とパラメ一夕値 DTを比較す る。 整数部 >DTであれば s t ep 236に進み、 小数点が値を大きくしてい ることを識別し易くするために、 例えば緑色表示を示す "G"の文字コードを 表示態様 t empに書き込み、 s t ep 230に進む。 s t ep 235で整数 ^>D Tでなければ処理を終了する。 If the flag is off at st ep 226 (minimum command unit processing), branch to step 234, check whether the decimal point is included in the input data, and if there is a decimal point, go to st ep 235 Proceed and compare the integer part and the parameter value DT in the same way. You. If the integer part is> DT, the process proceeds to step 236. In order to make it easy to recognize that the decimal point has a large value, for example, a character code of “G” indicating green display is written in the display mode t emp, and st Proceed to ep 230. If the integer is not ^> DT at st ep 235, the processing ends.
s t ep 234で小数点が無いと判断されると s t ep 237に分岐し、 同 様に整数部とパラメ一夕値 SMを比較する。 整数部 <SMであれば s t ep 2 38に進み、 小数点を付けないと値が小さいことを識別し易くするために、 例 えば青色表示を示す "B"の文字コードを表示態様 t emp (テンポラリメモ リ) に書き込み、 s t ep 230に進む。 s t e p 237で整数部く S Mでな ければ処理を終了する。  If it is determined in step 234 that there is no decimal point, the process branches to step 237, and similarly compares the integer part and the parameter SM. If the integer part is <SM, the process proceeds to step 238. To make it easy to identify that the value is small without a decimal point, for example, the character code of “B” indicating blue display is displayed in the display mode t emp (temporary). Memory) and proceed to st ep 230. If the integer part is not SM in st e p 237, the process ends.
また、 以上の説明に於いては入力値の桁数は最大桁数以内で正しく指令され ているものとしているが、 最大入力桁数のパラメータを設け、 これと入力値を 比較することにより、 入力時点で入力値の桁数チェックができ、 桁数オーバー の場合には警告により修正することができる。 この場合も従来はプログラミン グ後に加工プログラムを解析 ·実行させないと発見できなかった桁数オーバー が事前に発見でき、 加工プログラムの完成度を高くすることができる。  In the above description, it is assumed that the number of digits of the input value is correctly specified within the maximum number of digits.However, by setting a parameter for the maximum number of input digits and comparing this with the input value, The number of digits of the input value can be checked at the time, and if the number of digits is exceeded, it can be corrected by a warning. In this case as well, it is possible to find in advance the number of digits that could not be found unless the machining program was analyzed and executed after programming in advance, and the degree of completion of the machining program can be increased.
s t ep230及ぴ s t ep231は前記入力値チヱック処理を一括チェッ クで行うためのもので、 s t e p 230では一括チェヅクモードか否かをチェ ックし、 一括チェックであれば s t ep231に進んで前記警告判定を行った ワードデータ (ァドレス +数値データ) の始点/終点ァドレス及び図示しない 表示態様 t empに格納された表示態様を強調情報 41にセットし処理を終わ る。 前記強調情報 41にセッ卜された、 警告件数に対応する一連の始点/終点 ァドレス及び表示態様の情報に基づいて画面処理部 3 1は設定表示盤 7の表示 部に表示された加工プログラムの所定範囲を強調して表示する。  st ep230 and st ep231 are for performing the input value check processing in a batch check.In step 230, it is checked whether or not the mode is a batch check mode. The start / end address of the word data (address + numerical data) and the display mode (not shown) stored in the display mode temp are set in the emphasis information 41, and the process ends. On the basis of the information on the series of start / end addresses and display modes corresponding to the number of warnings set in the emphasis information 41, the screen processing unit 31 determines a predetermined processing program displayed on the display unit of the setting display panel 7. Highlight the range.
尚、 本実施の形態 3では警告内容毎に表示態様を変えているが、 同一の表示 態様にしたり、 オペレータに表示態様を選択させたりすることも容易に可能で ある。 In the third embodiment, the display mode is changed for each warning content. However, the same display mode or an operator can easily select the display mode. is there.
また、 チェヅク対象メモリを加工プログラムェリア 6としたが加工プログラ ム編集作業中の編集ノ ヅファであってもよく、 同等の効果を得ることができる。 以上、 本発明の具体的な実現方法を三つの実施の形態について詳細に説明し たが、 前記実施の形態と同様の作用効果を得る方法は前記以外の手法でも実現 できることは言うまでもない。 産業上の利用可能性  In addition, although the check target memory is the machining program area 6, the same effect can be obtained as the editing noise during the machining of the machining program. As mentioned above, although the concrete implementation method of the present invention has been described in detail for the three embodiments, it is needless to say that a method for obtaining the same operation and effect as the above embodiment can also be implemented by a method other than the above. Industrial applicability
以上のように本発明に係る情報表示装置は、 C R T (陰極線管)や L C D (液 晶) などを利用した表示画面を有する表示装置に文字や記号等の情報を表示す る情報表示システムで、 検索対象とな ¾情報から任意の文字列を検索するとと もに、 一致した文字列を強調して表示させる情報表示装置として用いられるの に適している。  As described above, the information display device according to the present invention is an information display system that displays information such as characters and symbols on a display device having a display screen using a CRT (cathode ray tube) or an LCD (liquid crystal). It is suitable for use as an information display device for searching for an arbitrary character string from ¾ information to be searched and for highlighting and displaying a matched character string.

Claims

請 求 の 範 囲 The scope of the claims
1 . メモリに格納された情報を表示する情報表示装置であって、 指定されたメ モリ領域中の任意の文字列を検索するための文字列と前記入力された文字列を 抽出した時に当該一致部分を強調するための任意の表示態様とを入力する検索 指令情報入力部と、 前記検索指令情報入力部にて入力された検索指令情報によ り、 文字列検索と共に表示態様の制御を行う検索表示制御部とを備え、 前記検 索表示制御部は、 前記指定されたメモリ領域中の検索された文字列を前記指定 された任意の表示態様で強調して表示することを特徴とする情報表示装置。 1. An information display device for displaying information stored in a memory, wherein a character string for searching for an arbitrary character string in a specified memory area matches the character string when the input character string is extracted. A search command information input unit for inputting an arbitrary display mode for emphasizing a part, and a search for controlling a display mode together with a character string search, based on search command information input at the search command information input unit. A display control unit, wherein the search display control unit highlights and displays the searched character string in the specified memory area in the specified display mode. apparatus.
2 . 前記文字列及び表示態様は複数組を独立して指定できることを特徴とする 請求の範囲 1に記載の情報表示装置。 2. The information display device according to claim 1, wherein a plurality of sets of the character string and the display mode can be specified independently.
3 . 前記文字列及び表示態様は複数組を独立して指定でき、 且つ実行された文 字列検索及び強調表示の実行順序を記憶する手段を有することを特徴とする請 求の範囲 1に記載の情報表示装置。  3. The range of requests according to claim 1, wherein a plurality of sets of the character string and the display mode can be specified independently, and there is means for storing an execution order of executed character string search and highlighting. Information display device.
4 . 前記指定されたメモリ領域中の強調表示部を元の表示状態に戻す強調解除 を指定する強調解除指令入力部と、 前記強調解除指令入力部にて指定されたメ モリ領域中の表示態様を検索し、 当該一致部分の表示態様を標準の表示態様に 戻す強調解除処理部とを備え、 前記強調解除処理部は、 指定されたメモリ領域 中の強調表示された文字列を検索前の強調無し状態に戻すことを特徴とする請 求の範囲 1 ~ 3の何れかに記載の情報表示装置。 4. An emphasis release command input section for specifying an emphasis release for returning the highlighted display section in the specified memory area to the original display state, and a display mode in the memory area specified by the emphasis release command input section And an emphasis canceling processing unit for restoring the display mode of the matching part to the standard display mode, wherein the emphasis canceling processing unit emphasizes the highlighted character string in the specified memory area before the search. 4. The information display device according to any one of claims 1 to 3, wherein the information display device is returned to the absence state.
5 . 前記強調解除は複数の表示態様に対応して個別または一括して指定できる ことを特徴とする請求の範囲 4に記載の情報表示装置。  5. The information display device according to claim 4, wherein the emphasis cancellation can be specified individually or collectively according to a plurality of display modes.
6 . 前記強調解除は複数組を独立して指定でき、 且つ実行された強調解除の実 行順序を記憶する手段を有することを特徴とする請求の範囲 4に記載の情報表 示装置。  6. The information display device according to claim 4, wherein a plurality of sets of the de-emphasis can be designated independently, and the information display device has means for storing an execution order of executed de-emphasis.
7 . メモリに格納された情報を表示する情報表示装置であって、 指定されたメ モリ領域中の任意の文字列に対して所定の条件チヱヅクを行う一つ以上のチェ ッグプログラム、 指定されたメモリ領域中の文字列中から前記チエツクプログ ラムに対応して実行される条件チェックで特定された文字列範囲、 及び当該文 字列を強調表示するために指定された表示態様を記憶する強調情報記憶部と、 前記条件チェックで特定された文字列範囲を強調表示する検索表示制御部とを 備え、 検索表示制御部は、 前記指定されたメモリ領域中の条件チェックで特定 された文字列を前記強調情報記憶部で指定された表示態様で強調して表示する ことを特徴とする情報表示装置。 7. An information display device that displays information stored in memory, One or more check programs that perform a predetermined condition check on an arbitrary character string in the memory area, and specified by a condition check executed in accordance with the check program from the character string in the specified memory area A highlighting information storage unit that stores the specified character string range and a display mode designated to highlight the character string; and a search display control unit that highlights the character string range specified in the condition check. An information display characterized by displaying a character string specified by a condition check in the specified memory area in a display mode specified by the highlighting information storage unit. apparatus.
PCT/JP2003/002789 2003-03-10 2003-03-10 Information display apparatus WO2004081820A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2003/002789 WO2004081820A1 (en) 2003-03-10 2003-03-10 Information display apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2003/002789 WO2004081820A1 (en) 2003-03-10 2003-03-10 Information display apparatus

Publications (1)

Publication Number Publication Date
WO2004081820A1 true WO2004081820A1 (en) 2004-09-23

Family

ID=32983430

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2003/002789 WO2004081820A1 (en) 2003-03-10 2003-03-10 Information display apparatus

Country Status (1)

Country Link
WO (1) WO2004081820A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05274314A (en) * 1992-03-25 1993-10-22 Canon Inc Document processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05274314A (en) * 1992-03-25 1993-10-22 Canon Inc Document processor

Similar Documents

Publication Publication Date Title
US8107768B2 (en) Image processing apparatus, image processing method, program for implementing the method, and storage medium storing the program
US20100204818A1 (en) Numerical control device
EP1186976B1 (en) NC machining simulation apparatus
JP4826120B2 (en) Business specification creation support system and method
JP5339815B2 (en) Numerical control device with processing resumption function
JP6878367B2 (en) Numerical control device
WO2004081820A1 (en) Information display apparatus
JP4038216B2 (en) Sequence program editing device
KR101163330B1 (en) Operation support device, operation support method, and recording medium
US11353844B2 (en) Information processing apparatus
JPH07136897A (en) Cutting area drawing method
JPH06309133A (en) Control method for operating system
WO1991000557A1 (en) Nc data execution method
JP2001338090A (en) System and method for estimating vehicle repair and medium with estimation program stored
JP3259987B2 (en) Interactive numerical controller
JPH0728801A (en) Image data processing method and device therefor
JP3011050B2 (en) Pointing confirmation method
JPH077839U (en) Numerical control device
JPH0816518A (en) Information processor
JP3823938B2 (en) Program creation device
JP5028644B2 (en) Electronic computer and computer control program
JPH04148370A (en) Document processor
JPH05233054A (en) Tool locus plotting system for automatic programming system
JPH0736869A (en) Document editor
JPH0836569A (en) File edition processor

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): CN DE JP US

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
NENP Non-entry into the national phase

Ref country code: JP

WWW Wipo information: withdrawn in national office

Country of ref document: JP