LOCUS DRAWING SYSTEM

Abstract: In a locus drawing system, the designation of colors is done by a black base frame background color (a) and three-­ color bit patterns (R, G, B) to draw a static image including a region to be processed, and a locus. Colors are desig­ nated in a manner that a color (b) in which the static image is displayed and a color (e) in which the region to be processed is displayed are complementary colors to each other, to display the static image, which is superposed on the region to be processed, in black, which is the same color that is designated as a background color (a), and a locus in a color (c) which is in agreement with the color (e) of the region to be processed.

Description: This invention relates to a trajectory display system so adapted as to simultaneously display a region of a workpiece to be machined, and a trace of a tool trajectory in order to display the machined profile of a workpiece on a display unit in e.g. a numerically controlled machine tool. Machine tools are numerically controlled in order to automate machining. In order to have a numerically controlled machine tool subject a workpiece to machining as specified by a design drawing, a numerical control command having a predetermined format must be applied to a numerical control unit. Fig. 2 is a systematic view illustrating a four-axis numerically controlled lathe, which is a numerically controlled machine tool. As illustrated, the numerically controlled machine tool drives a table TBL of a machine tool SM in X and Y directions in accordance with a numerical control command from a numerical control unit NC, thereby establishing relative movement between a workpiece WK set on the table TBL and a tool CT so that the workpiece WK is machined into a desired profile by the tool CT. Since the tool is cooled by using a cutting oil or the like, the machine tool is provided with a cover so that the cutting oil and cuttings will not scatter. For this reason, the state of machining is difficult to observe from the outside. Accordingly, the numerical control unit NC displays a trajectory TRC of the tool CT on its display DP so that the operator may readily verify the state of machining. If the trajectory TRC of the tool CT is displayed on the display DP before operating the machine when a numerical control command is applied to the numerical control unt NC in accordance with a design drawing for a workpiece having a complicated machined profile, then a program can be created with ease while the input data are confirmed. A trajectory display system is available in which a still picture inclusive of machining regions and a trace of a trajectory are displayed simultaneously in color on the display DP. With a trajectory display system of this type, it is preferred that the trajectory of each cutting tool and the machining region be displayed in different colors in cases where the machining of a workpiece by a plurality of cutting tools is simulated and displayed. This is particularly true in the case of a four-axis lathe. In the conventional display system, the machining region, which is that removed from the workpiece by being machined away by the cutting tool, is displayed by removing the background color from the workpiece. To this end, the conventional display system stores machining region data in a stored picture separate from that of still picture data, which is for displaying the workpiece profile. These data are superimposed in a suitable manner to display the machined state of the workpiece. Moreover, in order to prevent a trajectory that passes through the machining region of the workpiece from disappearing together with the machining region owing to the background color, the data that constitute the trajectory trace must be stored beforehand as a stored picture separate from the still picture data for displaying the workpiece profile. With the conventional system, therefore, in order to display one trajectory together with a still picture inclusive of the machining region for the purpose of controlling the color display, data must be stored in the form of at least three stored pictures. The problem that arises is the high cost of the memory and control circuitry. Moreover, when a color display is made by designating a trajectory in the form of a bit pattern of the three colors R, G, B based on three stored pictures, a complicated display control mechanism is needed to make the color of a trajectory which passes through a machining region removed from the workpiece by cutting tool movement the same as that of a trajectory display in the background color of the workpiece. An object of the present invention is to provide a trajectory display system in which a display frame of a trajectory is constituted by two stored pictures to facilitate trajectory processing, and in which the display color of a trajectory may always be the same so that even a complicated trajectory can be displayed in an easily understandable manner. According to the present invention there is provided a trajectory display system for displaying on a display means of the system a trajectory of a tool of a machine tool against an image of a workpiece including a region of the workpiece to be removed by machining, the system being operable to superimpose first and second pictures which are held in memory means of the system, a first one of which pictures has a black background and includes the workpiece and the tool trajectory, and the second picture including said region removed by machining, the system further comprising display control means for designating to the workpiece, tool trajectory and region removed by machining a three-bit color data encoding scheme whereby the tool trajectory and the region removed by machining are designated the same color which is complementary to that designated to the workpiece, the display control means being operable to superimpose the colors of the second picture onto those of the first picture or vice versa by applying a logical AND function to their three-bit data codes. Specifically, according to the present invention, the display color of the still picture (workpiece) and the display color of the machining region are designated in a relationship where the colors are mutually complementary. Therefore, the display color of the still picture superimposed on the machining region appears in the color black, which is identical with the background color designated to be black, and the display colors of the trajectory and machining region are both designated to be the same. Consequently, the display color of the trajectory in the machining region can be displayed to be the same as that of the trajectory against the background. According to the present invention, therefore, the display color of the trajectory can be made the same at all times so that even a complicated trajectory may be displayed in an easily understandable manner. Further, according to the present invention, the display of a trajectory is provided by two stored pictures as mentioned above. This lowers the cost of such circuitry as that for the memories and facilitates trajectory processing. Brief Description of the Drawings Fig. 1 is a block diagram illustrating an embodiment of a numerically controlled lathe equipped with a trajectory display system according to the present invention, Fig. 2 is a systematic view showing a four-axis numerically controlled lathe exemplifying the application of the present invention, Fig. 3 is an explanatory view illustrating the positional relationship between a workpiece and a tool in a four-axis lathe, and Fig. 4 is a view showing a display in an embodiment of the present invention. The present invention will now be described in detail based on an embodiment illustrated in the drawings. Fig. 3 is a view showing the positional relationship between a workpiece and a tool in a four-axis lathe. As illustrated, the four-axis lathe is arranged so that a workpiece WK secured in a chuck CHK is rotated at a constant speed, while first and second tool rests TB1, TB2 are moved independently of each other along two axes, namely the X axis and Y axis, so that the inner and outer peripheries of the workpiece WK can be machined independently and simultaneously in accordance with a machining program by cutting tools TL1, TL2 respectively mounted on the tool rests. Fig. 1 is a block diagram illustrating an embodiment of a numerically controlled lathe equipped with a trajectory display system according to the present invention. In the figure, numeral 10 denotes a processor for performing numerical control processing by executing a program. Numeral 11 denotes a programmable controller (hereinafter referred to as a "controller") for implementing the function of a magnetics circuit, which performs the sequence control of the four-axis lathe, by means of a program. Numeral 12 designates a program memory storing various control programs that are to be executed by the processor 10. Numeral 13 represents a data memory for storing various data and parameters needed for program execution performed by the processor 10, namely such data as that indicative of a machining region removed from the workpiece by movement of the cutting tools TL1, TL2, data indicative of the positions of the cutting tools TL1, TL2 and workpiece WK, and data indicative of the trajectories of the cutting tools TL1, T12. Numeral 14 denotes a working memory for temporarily storing the results of processing performed by the processor 10. Numeral 15 designates a paper tape puncher for recording (punching) data in a paper tape when so required. Numeral 16 represents a paper tape reader for reading an NC tape in which numerical control commands (NC commands) have been punched. Numeral 17 denotes a pulse distributor for performing a predetermined pulse distribution calculation in accordance with a move command from the processor 10 and for outputting distributed pulses the number whereof is equivalent to a commanded quantity. Numerals 18a, 18b respectively denote X- and Y-direction present position registers of the tool rests TB1, TB2 for counting position pulses from position sensors (not shown) of the four-axis lathe to indicate present positions along the X and Y axes. Numeral 19 designates an address/data bus (hereinafter referred to as a "bus") for connecting the above components to the processor 10 so that an exchange of data can be made. Numerals 20a, 20b denote servo circuits for counting the difference between the number of distributed pulses and the number of position pulses to control the velocities of the tool rests TB1, TB2 of the four-axis lathe SM. In the figure, only the registers and servo circuits corresponding to one of the tool rests are illustrated. Numeral 21 denotes a display controller which controls the display of a color display unit and includes a manual data input unit 22 having the necessary keys. The display controller 21 is constituted by a display control circuit 23 for periodically reading out the contents of the X and Y present position registers 18a, 18b and successively storing these contents in a buffer memory, described below, a starting point register 24 for storing starting point information of each block of an NC command, a buffer memory 25 for storing position information, which is to be displayed, read out by the display control circuit 23, and a refresh memory 26 such as a graphic RAM in which a display pattern, which is for displaying a still picture inclusive of a machining region as well as a trajectory, is written by the display control circuit 23 in the form of a bit image after the pattern has its colors designated by a three-color bit pattern, described below, of the colors R, G, B. Numeral 27 represents a color display constituted by display means such as a CRT (cathode-ray tube) for periodically reading out and displaying the contents of the refresh memory 26 in display controller 21. Described next will be an example of display control performed in the apparatus embodied in Fig. 1. Trajectory processing in a two-screen arrangement shown in Fig. 4 will be taken as an example. A display pattern for displaying a still picture inclusive of a machining region as well as a trajectory is formed by superimposing a first picture including (a) - (c), and second and third pictures indicating regions machined by the two cutting tools, wherein (a) a base screen background, (b) a workpiece, (c) a tool trajectory, (d) a background within the pattern, and (e) a machining region (pattern) are color-designated by an R, G, B three-color bit pattern. A color designation for this purpose is carried out by a bit pattern (R, G, B) of the following kind comprising a combination of three colors R (red), G (green) and B (blue): a = (0, 0, 0) b = (1, 0, 0) c = (0, 1, 1) d = (1, 1, 1) e = (0, 1, 1) More specifically, by turning red, green and blue outputs on or off in dependence upon the 1, 0 logic of each bit (R, G, B), the base screen background color (a) is designated to be black, the workpiece display color (b) is designated to be red, the tool trajectory display color (c) is designated to be blue-green, which has a complementary relationship with respect to the workpiece display color (b), the background color (d) within the pattern is designated to be white, and the display color (e) of the machining region is designated to be blue-green, which is the same as the tool trajectory display color. In the picture produced by the display unit 27 by carrying out these color designations, the colors obtained when (a), (b), (c) of the first picture and (d), (e) of the second picture are superimposed are set, as shown in the Table below, as an AND pattern of the bits. The colors obtained when the first and third pictures are superimposed is set in a similar manner. Since the two cutting tools have overlapping machining regions, the second and third pictures do not overlap. (a) (b) (c) (d) a (black) b (red) c (blue-green) (e) a (black) a (black) c (blue-green) Besides the color designation method described above, it is also possible to set (b) to green and set (c) and (e) to violet, which has a complementary relationship with respect thereto. Alternatively, (b) can be set to yellow and (c) and (e) to blue, which has a complementary relationship with respect thereto. In other words, with the base screen background color (a) made black, the tool trajectory display color (c) made a color which is the complement of the workpiece display color (b), and the machining region display color (e) and tool trajectory display color (c) made the same, a display of the trajectory can be composed by superimposing two stored pictures in an AND mode. Both the display color of the trajectory in the machining region and the display color of the trajectory in the base screen background can be made to appear as (c) = (0,1,1), namely blue-green. As a result, trajectory processing is facilitated. Moreover, the display color of the trajectory is kept the same at all times so that a readily understandable display can be obtained even when the trajectory is complicated. Accordingly, when displaying the trajectories of two cutting tools in the foregoing four-axis lathe with the present system, machining programming errors can be checked for ahead of time and the cutting tools or tool rests can be prevented from sustaining damage even if an abnormality should develop in the servo system during machining. Though an embodiment of the present invention has been described above, the invention is not limited solely to the embodiment but is also useful as a trajectory display system for a movable element when creating, editing and correcting a machining tape in NC machine tools in general and not just in the four-axis lathe of the above-described embodiment. Industrial Applicability In the trajectory display system according to the present invention as set forth above, the display color of a still picture and the display color of a machining region are designated so as to be mutually complementary colors. Therefore, the display color of the still picture superimposed on the machining region is displayed as the color black, which is the same as the background color designated to be black, and the display colors of the trajectory and machining region are both designated to be the same. As a result, even a complicated trajectory can be displayed in easily understood fashion. The invention is well-suited for application to a numerically controlled machine tool for displaying the manner in which a workpiece is machined by a plurality of tools.

Claims: A trajectory display system for displaying on a display means (27) of the system a trajectory of a tool (TL1,TL2) of a machine tool against an image of a workpiece (WK) including a region of the workpiece (WK) to be removed by machining, the system being operable to superimpose first and second pictures which are held in memory means of the system, a first one of which pictures has a black background (a) and includes the workpiece (b) and the tool trajectory (c), and the second picture including said region (e) removed by machining, the system further comprising display control means (21) for designating to the workpiece, tool trajectory and region removed by machining a three-bit color data encoding scheme whereby the tool trajectory (c) and the region (e) removed by machining are designated the same color which is complementary to that designated to the workpiece (b), the display control means (21) being operable to superimpose the colors of the second picture onto those of the first picture or vice versa by applying a logical AND function to their three-bit data codes. A display system according to claim 1, wherein said memory means stores trajectories of a plurality of cutting tools as tool trajectory data thereby to obtain a display of tool trajectories of a multiple-axis lathe. A display system according to claim 1 or 2, wherein said display control means (21) comprises a display control circuit (23) for periodically reading out contents stored in said memory means and successively storing these contents in a buffer memory (25), and a refresh memory (26) in which a display pattern, which is for displaying a workpiece picture inclusive of the region (e) removed by machining as well as the trajectory (c), is written by said display control circuit (23) in the form of a bit image after said pattern has its colors designated by a three-color bit pattern.

Inventors: IWAGAYA, TAKASHI, KAWAMURA, HIDEAKI, MATSUMURA, TERUYUKI
Applicants: FANUC LTD.
Application year: 1986
Main classification: G05B19
IPC codes: G05B19, G09G5, G06F3, G06F17