APPARATUS FOR EMPHASIZING AND DISPLAYING NC COMMAND PROGRAM PORTION STORED AT SPECIFIC ADDRESS

Abstract: An apparatus which emphasizes and displays a portion of an NC command program stored at a specific address. An NC command program stored in an NC command program memory (MEN) is transferred to a display (DRY) and a specific address portion selection means (SEL). When an emphasis command is input from an emphatic display command input means (IN1), the specific address portion selection means (SEL) selects the portion of the NC com­ mand program corresponding to a specific address input thereto from a specific address input means (IN2), and transfers the selected NC command program portion to the display (DRY), which then displays the NC command prog­ ram in such a manner that the selected program portion alone is emphasized with respect to the rest of the program.

Description: SPECIFICATION UNIT FOR PROVIDING AN EMPHASIZED DISPLAY OF A SPECIFIED ADDRESS OF AN NC COMMAND PROGRAM TECHNICAL FIELD The present invention relates to a unit for providing an emphasized display of a specified address of an. NC (Numerical Control) command program, and more particularly to a technique for accentuating the display of an address portion specified from the keyboard when displaying, on a display, an NC-command program stored in a bubble memory or the like of NC equipment. BACKGROUND ART For example, in the case of checking an NC command program, the situation occasionally arises where it would be desirable to verify what command has been given to a specified address. In such a case, it is a general practice in the prior art to find out, by visual examination, the desired address in the entire program after printing'out all the contents of the NC command program or while turning over displayed pictures of the NC command program being provided on a display. As a man of experience knows, however, the work is not easy to perform accurately and the address desired to locate often escapes notice. DISCLOSURE OF THE INVENTION The present invention has been made in view of the above, and has for its object to provide a specified address accentuating display unit for an NC command program which is adapted to display a specified address portion in vivid contrast to the other portions of the NC command program when displaying the program on a display. Fig. 1 is a diagram explanatory of the arrangement of the present invention. NC command program memory means MEM has stored therein an NC command program, and a specified address portion select means SEL, when supplied with an input from emphasized display command input means IN1, se-lects from the stored NC command program an address specified by specified address input means IN2 and characters of the specified address and the immediately succeeding address. Then the NC command program stored in the NC command program memory means is displayed on a display DPY, with the selected address portion accentuated in vivid contrast to the other portions. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a diagram explanatory of the arrangement of the present invention; Fig. 2 is a block diagram illustrating the principal part of an example of the hardware structure of a unit embodying the present invention; Figs. 3 and 4 are flowcharts showing examples of the software structure of the unit embodying the present invention; and Fig. 5 is a block diagram illustrating an example of the hardware structure of a unit for providing an accentuated display of a specified address portion by changing brightness. BEST MODE FOR CARRYING OUT THE INVENTION Fig. 2 is a block diagram illustrating the principal part of an example of the hardware structure of unit embodying the present invention. Reference numeral 1 indicates a microcomputer, 2 its bus, 3 a ROM having stored therein a program or the like necessary for the microcomputer 1 to execute predetermined operations, 4 a RAM having a temporary input buffer area 4a, a running information buffer area 4b and so forth, 5 an address decoder, 6 a tape reader, 7 a command tape, 8 an external memory such as a magnetic bubble memory or the like, 9 a keyboard provided with an emphasized display command key 9a, other command keys 9b and a plurality of character input keys 9c, 10 a pulse generator, 11 a CRT controllr, 12 an address switching circuit, 13 an address decoder, 14 and 15 data drivers, 16 a normal color video RAM, 17 an emphasizing color video RAM, 18 and 19 character generator ROMs, 20 a display part such as a CRT or the like, 21 an axis control circuit, 22 a servo amplifier, and 23 a motor. An NC command program, when provided in the form of the command tape 7, is read into the microcomputer 1 via the tape reader 6, and when provided in a state in which it is stored in the external memory 8, it is read out directly therefrom. In the following description, let it be assumed, for convenience of explanation, that the NC command program is stored in the external memory 8. In ordinary numerical control, the microcomputer 1 reads out the NC command program from the external memory 8 block by block and interprets it and, in accordance with running information produced on the basis of the result of interpretation, controls the axis control circuit 21, controlling the rotation of the motor 22 via the servo amplifier 22. Fig. 3 is a flowchart showing an example of the eoftware structure of the unit embodying the present invention. A description will be given, with reference to Fig. 3, of the specified address accentuating display function of the unit embodying the present invention. At first, when an alphabetic character indicating an address desired to display in an emphasized manner is entered through using the character input keys 9c on the keyboard 9, the microcomputer 1 reads out its input key code (S1) and discriminates whether it is a character code or not (S2). In this case, since the input key code is a character code, the microcomputer 1 loads the input character in the temporary input buffer area 4a of the RAM 4 (S3) and, at the same time, writes the input character, for instance, via the data driver 14 into the normal color video RAM 16 at a predetermined position, for example, at a position which corresponds to the lower end portion of a display screen. (54). The contents of the video RAMs 16 and 17 are being cyclically applied, by scanning addresses from the CRT controller 11, to the display part 20 via the character generator ROMs 18 and 19, so that the aontents of the temporary input buffer area 4a are displayed on the display screen of the display part 20. This is intended for facilitating recognition. Incidentally, the output of the video RAM 16 is converted into a video signal of an ordianry color, for example, green, and the output of the video RAM 17 is converted into a video signal of an emphasized color, for instance, red. Accordingly, the character written into the video RAM 16 is displayed in green and the character written into the video RAM 17 in red, and a character written in the both video RAMs at the same address is displayed in yellow. Next, when the emphasized display command key 9a of the keyboard 9 is pressed, the microcomputer 1 inputs its key code (S1) and performs the discriminations of steps S2 and 55, discriminating that the input key is the emphasized display command key 9a. Incidentally, when the other kinds of command keys are input, processing corresponding to the input keys is carried out (56). When it is discriminated in step S5 that the input key is the emphasized display command key, it is then checked-whether the content of the temporary input buffer area 4a is one character or not and whether the stored content is an address character or not (S7, Sub), and when it is neither one character nor an address character, an error display is produced (S9). This takes into account that an address in the NC command program is usually one alphabetic character and that not all the characters can be addresses. When it is discriminated in step S8 that the stored content of the temporary input buffer area is an address character, an emphasized display of the specified address is produced (S10), after which the content of the temporary input buffer area 4a and the display are cleared (S11). Fig. 4 is a flowchart showing an example of soft ware for implementing the emphasized display processing function. Upon starting the emphasized display processing, the microcomputer 1 makes display color information set in the RAM 4 ordinary-color and, at the same time, sets a pointer, which indicates a display position similarly set in the RAM 4, to a value corresponding to the left upper corner of the display screen, for instance (S20). Then the microcomputer reads, for example, the first character of the NC command program stored in the external memory 8 (S21) and checks whether the character is an address character or not, and whether it is an address to be displayed or not (S22, 523). When the character thus read out is an address character and an address to be emphasized, that is, when it coincides with the address stored in the temporary input buffer area 4a, display color information is set to an emphasizing color (S24) and the input character is written into an area of the emphasizing color video RAM 17 indicated by a pointer (S25), after which the value of the pointer is incremented by one (S26). In case the character read out is not the address character, the process proceeds to step S25 (S21), and when the read out character is not the address to be emphasized, the display color information is set to an ordinary color (S27). Assuming that an NC command program such, for example, as follows: N1G91GOOX123Y456T01: N2G43Z78H01: N3G01Z91F23: N4GOOS-9lT02: N5G01Z91F32: N6GOOZ-91T03: N7G01Z91F44: N8GOOZ-91T01: is stored in the external memory 8 and that the emphasized display command key 9a is pressed following the inputting of "F" which is an address for the feed rate, F23, F32 and F44 are displayed in a color (for the sake of convenience, indicated in bold letters in this example) different from the color in which the other portions are displayed, as shown below. NlG9lGOOX123Y456TOl: N2G43Z78HO1: N3G01Z91F23: N4GOOZ-91T02: N5GOlZ9lF32: N6GOOZ-9lT03: N7G01Z91F44: N8GOOZ-91T01: Thus it clear at a glance where and what feed tate command has been issued. While the above embodiment hhs been described in connection with the case of producing a color display by the employment of the video RAMs 16 and 17 corresponding to colors, it is a matter of course that color display methods other than the above-described can be utilized since it is not related to the subject matter of the present invention what method is used for providing the color display. Further, as the means for displaying the specified address portion in vivid contrast to the other portions, it is also possible to use, other than the method of providing the displays in different colors, a method of increasing the brightness of the display of the specified address portion as compared with that of the other portions. Fig. 5 illustrates an example of the hardware structure of a unit which provides an emphasized display of the specified address portion by increasing its brightness. Reference numeral 50 indicates a video RAM, 51 a bus controller, 52 a CRT controller, 53 a latch circuit, 54 a character generator ROM, 55 a shift register, 56 a flip-flop, 57 a DA converter, 58 a brightness modulating amplifier and 59 a driver. Let it be assumed that character data is represented by, for instance, one byte, for example, seven lower-order seven bits being a code representing the kind of the character (for example, an ASCii code) and the most significant bit being data representing brightness. A microcomputer, not shown writes such a character code into the video RAM 50. The display is produced in the following manner: At first, the brightness data of the character and the character code, read out from the video RAM 50 by a character address (a scanning address) output from the CRT controller 52, are latched in the latch circuit 53. By the character code and a raster address output from the CRT controller 52, a display pattern of a raster of the latched character to be displayed is provided to the shift register 55. The shift register 55 sets this display pattern using a character clock as a word signal and performs a shift operation in synchronism with a dot clock, thereby providing data on each dot on the raster to the brightness modulating amplifier 58. Further, the output of the flip-flop 56, which is supplied with the brightness data latched in the latch circuit 53, is converted by the DA converter into an analog quantity, obtaining a voltage corresponding to the brightness of the character. The amplifier 58 has its gain controlled by the voltage, so that the dot data, the amplitude of which varies with the brightness, is provided via the driver 59 to a video signal output terminal. Accordingly, brightness modulation can be effected character by character. Then, by performing brightness change control in place of the color change control in the flowchart of Fig. 4, the brightness of only the specified address portion can be increased. Incidentally, the flip-flop 56 in Fig. 5 is provided for delaying the brightness data for one clock in accordance with a delay of one clock which occurs in the time interval between the latching of the character data and the loading of the character pattern into the shift register 55. In this example, the brightness data has only one bit, but, for instance, by forming one character by 16 bits and by assigning a plurality of bits to the brightness data, a multilevel brightness modulation is also possible. As described above, according to the present invention, only by specifying an address desired to display in an accentuated manner and by inputting an emphasized display command, only the specified address portion of an NC command program is displayed in vivid contrast to the other portions, allowing much ease in the verification of the desired address portion. Moreover, since the other NC command program portions are also displayed at the same time as the specified address portion, there is an advantage that the specified address portion can be recognized in the context of the program. For example, in numerical control of a machining center system, in the case of an NC command program including a command G90 to the effect that the succeeding move command represents the absolute position of coordinates and a command G91 to the effect that the succeeding move command represents the amount of relative movement from the current position, such, for example, as G90GOOX100: and Y200G91Z300, move commands for the X- and the Y-axis are absolute commands and a move command for the Z-axis is an incremental command, but, for example, even if the Z-axis is note, the amount of movement in the Z-axis cannot be known accurately unless it is known whether the command therefor is before or behind the command G91. With the present invention, however, such a problem will not arise, as described previously.

Claims: CLAIM A unit for providing an emphasized display of a specified address of an NC command program, characterized by the provision of: NC command program memouy means; emphasized display command input means for displaying an NC command program, with a separately spedified address portion emphasized as compared with the other portions; specified address input means for specifying an address desired to emphasize; specified address portion select means for selecting, when supplied with an input from the emphasized display command input means, from the NC command program stored in the NC command program memory means the address specified by the spedified address input means and characters of thut address and an address immediately succeeding it; and a display for displaying the NC command program stored in the NC command program memory means, with only the address portion selected by the specified address portion select means being emphasized as compared with the other portions.

Inventors: FUKUDA, MASAHIKO, MIYATA, MITSUTO
Applicants: FANUC LTD
Application year: 1984
Main classification: G05B19
IPC codes: G05B19, G05B23