(19)
(11) EP 0 289 613 A1

(12) EUROPEAN PATENT APPLICATION
published in accordance with Art. 158(3) EPC

(43) Date of publication:
09.11.1988 Bulletin 1988/45

(21) Application number: 87906768.4

(22) Date of filing: 15.10.1987
(51) International Patent Classification (IPC)4G06F 3/14, G06F 3/153, G06F 15/60, G09G 1/00
(86) International application number:
PCT/JP1987/000777
(87) International publication number:
WO 1988/003288 (05.05.1988 Gazette 1988/10)
(84) Designated Contracting States:
DE FR GB

(30) Priority: 22.10.1986 JP 25140786
22.10.1986 JP 25140886

(71) Applicant: FANUC LTD
Minamitsuru-gun, Yamanashi 401-05 (JP)

(72) Inventors:
  • TANAKA, Kunio
    Akishima-shi Tokyo 196 (JP)
  • ONISHI, Yasushi
    3-27, Tamadaira Hino-shi Tokyo 191 (JP)
  • SATO, Shuji Fanuc Utsugi-Ryo
    Tokyo 192 (JP)

(74) Representative: Billington, Lawrence Emlyn et al
Haseltine Lake LLP Lincoln House, 5th Floor 300 High Holborn
London WC1V 7JH
London WC1V 7JH (GB)

   


(54) METHOD OF CONTROLLING DISPLAY


(57) At least one window image (W2) in a multiwindow image displayed on the screen of a CRT (16) is displayed by being moved relative to another window image (W1). The coordinate of position on the display screen of window image (W2) being moved is renewed while the beam is flying back vertically. The moving window image (W2) is read from a memory (15) and is displayed on the display screen when the beam is present in a region designated by the coordinate of position.




Description

Technical Field



[0001] This invention relates to a display control method in which one window image among multiple window images displayed on a display screen is moved with respect to the other window images.

Background Art



[0002] In a multi-window image display in which one image W2 is displayed superimposed on another image Wl displayed in a first display region of a display screen, as shown in Fig. 4, a video RAM (V-RAM) 1 is provided, as shown in Fig. 5, the window images Wl, W2 are stored in respective prescribed storage regions la, lb of the V-RAM 1, and data indicating where the window images are to be displayed on the display screen and the precedence assigned in overlapping is inputted, in response to which a display controller displays the multi-window image on the display screen using the data.

[0003] More specifically, the window images Wl, W2 are stored in the V-RAM 1, and the display positions and display precedence (e.g. W2>Wl) of the window images Wl, W2 on the display screen are inputted. In response, the display controller, which is not shown, reads the window images Wl, W2 out of the V-RAM 1 in synchronization with the raster scanning of a CRT beam, and inputs the images to the CRT to display the multiple window images. It should be noted that the multi-window image display is performed by reading image Wl out of the storage area la of V-RAM 1 while the beam is present on the solid line arrows of Fig. 4, reading the image W2 out of the storage area lb of V-RAM 1 while the beam is present on the dashed line arrows, and outputting the images to the CRT.

[0004] In a multi-window image display of this kind, there are cases where at least one window image W2 among the multiple window images is moved with respect to the other window image Wl.

[0005] For example, in order to check an NC part program automatically created by an automatic programming section in an automatic programming system, a simulation is performed using the NC part program. In such a simulation, it is necessary to display on the display screen the manner in which the tool is moved relative to the workpiece to perform machining. To this end, the window image Wl in Fig. 4 is adopted as a workpiece, the window image W2 is adopted as a tool, and the window image W2 (the tool) is moved relative to the window image Wl, which is the workpiece, in conformance with actual tool movement, i.e. from the solid-line pattern to the dashed-line pattern and thence to the one-dot line pattern, and so on, as shown in Fig. 6.

[0006] In order to move the window image W2, solely the position of this window image on the display screen is updated based on tool movement.

[0007] In the prior art, the coordinates of the position of the window image are updated at an arbitrary timing, and the updating is almost always carried out while the display screen (CRT screen) is in the course of being scanned by the beam. Therefore, cases arise in which, when the window image W2 is situated at the solid-line position in Fig. 6 and an i-th scanning line H. is being scanned by the beam, the coordinates of the position of the image window W2 are updated to the coordinates of the dashed-line position in response to an input of tool movement data. When such is the case, a window image portion W2' before updating of the coordinates and a window image W2" after updating of the coordinates are displayed on the display screen in combined form, as shown in Fig. 7.

[0008] In other words, with the prior-art method, the moved window image is distorted and flickers.

[0009] Accordingly, an object of the present invention is to provide a display control method in which a window image will not become distorted and will not flicker in a multi-window image display wherein a window image is moved relative to fixed window image.

[0010] Another object of the present invention is to provide a display control method in which the motion of a moving object can be displayed in a manner faithful to actual motion.

Disclosure of the Invention



[0011] In a case where at least one window image among multiple window images displayed on a display screen is moved relative to another window image, position coordinates of the moved window image on the display screen are updated during vertical retrace of a beam, and the moved window image is read out of a memory and displayed on the display screen when the beam is present in a region designated by the position coordinates.

Brief Description of the Drawings



[0012] 

Fig. 1 is a block diagram of a display control system in which first and second display control methods according to the present invention can be applied;

Figs. 2(a), (b) are views for describing the contents stored in a window control block;

Fig. 3 is a time chart for describing a second control method according to the present invention;

Figs. 4 and 5 are views for describing a multi- window image display;

Figs. 6 and 7 are views for describing the drawbacks of the prior art, in which one window image is moved relative to another window image; and

Fig. 8 is a time chart for describing an inconvenience encountered in a first control method according to the present invention.


Best Mode for Carrying Out the Invention



[0013] Fig. 1 is a block diagram of a display control system. Numeral 10 denotes a host processor, such as the processor of an automatic programming apparatus for automatically creating an NC part program.

[0014] Numeral 11 denotes a display controller having a graphic processor lla, a display processor llb, and the like. Numeral 12 designates a window control block, 13 a write controller, 14 a read controller, 15 a V-RAM, 16 a CRT, and VR a vertical synchronizing signal.

[0015] The graphic processor lla uses image data received from the host processor 10 to generate a fixed window image (a workpiece or stationary portion of a machine) Wl and a moving window image (a tool) W2, ..., writes these window images in prescribed storage areas 15a, 15b, ... of the V-RAM 15, and stores the display position of each window image and the display precedence data, which are transferred thereto from the host processor, in the window control block 12. The window control block 12 stores display position data and precedence data P shown in Fig. 2(b), where it is assumed that the display positions of the window images Wl, W2 on the display screen are as follows:

PlS(x1s' Yls)' P1E(x1e' yle);

P2S(x2s' y2s)' P2E(x2e' y2e)


(the display positions are specified by the coordinates of the diagonal points P1S; P1E; P2S' P2E of the window images), as shown in Fig. 2(a).

[0016] When movement data for moving a window image on the multi-window image display is transferred from the host processor 10, the image processor lla executes processing for updating the display position of this window image stored in the window control block 12.

[0017] The display processor llb provides a read controller 17 with an input of window image precedence and window image display position stored in the window control block 12. The read controller 14 reads each window image out of the V-RAM 15 based on these data and the beam position, and inputs the window images to the CRT 16.

[0018] A first display control method in accordance with the present invention will now be described. It will assumed that the fixed window image Wl and moved window image W2 have already been stored in the V-RAM 15, and that predetermined data has been stored in the window control block 12.

[0019] The display processor llb of display controller 11 provides the read controller 14 with an input of the display position coordinates and precedence of the window images Wl, W2 stored in the window control block 12. In response, the read controller 14 reads the window images Wl, W2 out of the V-RAM 15 in dependence upon the display position coordinates and beam position, and inputs these window images to the CRT 16 to display a multi-window image.

[0020] When data (e.g. incremental quantities along respective axes in a predetermined period of time) for moving the window image W2 is received from the host processor 10 under these conditions, the graphic processor lla computes the next display position coordinates using the present display position coordinates and movement data stored in the window control block 12. If beam scanning is in progress at this time, the position coordinates of the window image W2 stored in the window control block 12 are not updated immediately. Instead, the generation of the vertical synchronizing signal VR from the CRT 16 is awaited and updating is performed after it is confirmed that the beam is in the course of vertical retrace.

[0021] When the display position coordinates are updated during the course of vertical retrace, the display processor llb inputs the new display position coordinates of the window images Wl, W2, which have been stored in the window control block 12, to the read controller 14. The latter reads the window images Wl, W2 out of the V-RAM 15 in dependence upon the display position coordinates and beam position, and inputs these window images to the CRT 16 to display a multi-window image, just as described above. At this time the display position of the window image Wl does not change, but the position at which the window image W2 is displayed changes by an amount conforming to the movement data.

[0022] Since the arrangement is such that the display position coordinates of the moved window image are updated during vertical retrace in the manner described above, the window image will not be distorted and it will not flicker.

[0023] It should be noted that merely updating the display position of the moved window image during vertical retrace can cause a series of movements to development jerkiness owing to a lengthening and shortening of the time needed for movement a fixed distance across the display screen.

[0024] Fig. 8 is a view (time chart) for a describing a case where the moved window image (tool) is moved in accordance with the first display control method of the invention. If the tool (moved window image) is moved linearly at a uniform speed from point P (XS,YS) to point PE (XE,YE), as shown in Fig. 8(a), the automatic programming section applies a position command [e.g. position coordinates P. (Xi,Yi) every ΔT] to the display side every ΔT [see Fig. 8(b)].

[0025] Upon receiving the position command, the display side updates the position of the moved window image by the first vertical synchronizing pulse that follows the command input, namely by vertical synchronizing pulses VR1, VR3, VR4, VR6, VR8, VR9 [see Fig. 8(c)]. As a result, the position updating time interval [see Fig. 8(d)] lengthens and shortens repeatedly, thereby causing jerking motion.

[0026] Fig. 3 is a view (time chart) for describing a second control method of the present invention, in which motion is smoothly displayed by substantially equalizing the position updating time intervals. The arrangement shown in Fig. 1 can be directly applied to this second display control method.

[0027] Display control in accordance with the second display method will now be described. It will assumed that the fixed window image Wl and moved window image W2 have already been stored in the V-RAM 15 (Fig. 1), and that predetermined data has been stored in the window control block 12.

[0028] The display processor llb of display controller 11 provides the read controller 14 with an input of the display position coordinates and precedence of the window images Wl, W2 stored in the window control block 12. In response, the read controller 14 reads the window images Wl, W2 out of the V-RAM 15 in dependence upon the display position coordinates and beam position, and inputs these window images to the CRT 16 to display a multi-window image.

[0029] Under these conditions, the following data for moving the moved window image (tool) W2 along a straight line is inputted from the host processor 10:

t, N, Xl, Y1; X2' Y2; .... Xi, Yi; .... XN' YN


It should be noted that t is equal to TV/n (n=3 in the example of Fig. 3), where the period of the vertical synchronizing signal VR is TV, as shown in Fig. 3. N represents the number of partitions, inclusive of both ends of the straight line, and X., Yi are the position coordinates of the tool at an i-th time ti in the t interval.

[0030] Upon receiving the abovementioned position data, the graphic processor lla stores the data in its internal memory and thereafter counts the number of times i the time t elapses and waits for the generation of the vertical synchronizing signal VR.

[0031] When a j-th vertical synchronizing signal VRj (j = 1, 2, ...) is generated, the aforementioned number i just prior to the generation of the vertical synchronizing signal VR (or just after the generation of this signal, or just before or just after generation, whichever is closest in time) is obtained.

[0032] Then, by using the position coordinates Xi, Y. at time ti in the i-th t interval, the position coordinates of the tool (moving window image) W2 stored in the window control block 12 are updated during vertical retrace.

[0033] When the display position coordinates are updated during vertical retrace, the display processor llb inputs the new display position coordinates of the window images Wl, W2, which have been stored in the window control block 12, to the read controller 14. The latter reads the window images Wl, W2 out of the V-RAM 15 in dependence upon the display position coordinates and beam position, and inputs these window images to the CRT 16 to display a multi-window image, just as described above. At this time the display position of the window image Wl does not change, but the position at which the window image W2 is displayed does change.

[0034] Thereafter, updating of the position coordinates stored in the window control block 12 is performed in similar fashion whenever the vertical synchronizing signal is generated, thereby moving the moved window image relative to the fixed window image. Fig. 3(c) shows the position updating timing, the time interval being substantially the same as the period TV of the vertical synchronizing signal.

[0035] Though the case described above is for linear motion at a uniform speed, the invention is also applicable to circular motion at a uniform speed and to motion where the speed is not uniform.

[0036] In accordance with the invention as described above, the arrangement is such that the display position coordinates of the moved window image are updated during vertical retrace in the manner described above. As a result, the window image will not be distorted and it will not flicker.

[0037] Further, in accordance with the invention, when the period of the synchronizing signal is assumed to be TV, the host collectively inputs all position data indicative of the moving window image every Tv/n to the display side, and the display side updates the position coordinates of the moving window image during vertical retrace using position data of the interval TV/n immediately before generation of the vertical synchronizing signal, immediately after generation of this signal or immediately before or after, whichever is closest in time. As a result, the window image will not become distorted and will not flicker, and motion of a moving body can be displayed in a manner faithful to the actual motion of the body.


Claims

1. A display control method in which at least one window image among multiple window images displayed on a display screen is moved relative to another window image, characterized by:

updating position coordinates of the moved window image on the display screen during vertical retrace of a beam, and

reading the moved window image out of a memory and displaying it on the display screen when the beam is present in a region designated by said position coordinates.


 
2. A display control method according to claim 1, characterized in that the position coordinates of said moved window image are updated based on data inputted from a host side.
 
3. A display control method according to claim 2, characterized in that the host side outputs position data indicative of the moved window image every predetermined time.
 
4. A display control method in which, among multiple window images displayed on a display screen, position coordinates of a moved window image on the display screen are updated based on data inputted from a host side, and the moved window image is read out of a memory and displayed on the display screen when a beam is present in a region designated by said position coordinates at scanning of the display screen, characterized in that:

said host collectively inputs N items of position data indicative of the moved window image every TV/n to a display side, where TV represents the period of a vertical synchronizing signal, and

the display side updates the position coordinates of the moved window image during vertical retrace of the beam using position data of an interval Tv/n immediately before generation of the vertical synchronizing signal, immediately after generation or immediately before or after generation, whichever is closest in time.


 




Drawing



















Search report