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 P
1S; P
1E; P2
S' P
2E 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
(X
S,Y
S) to point P
E (X
E,Y
E), as shown in Fig. 8(a), the automatic programming section applies a position command
[e.g. position coordinates P. (X
i,Y
i) 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 T
V/n (n=3 in the example of Fig. 3), where the period of the vertical synchronizing signal
VR is T
V, as shown in Fig. 3. N represents the number of partitions, inclusive of both ends
of the straight line, and X., Y
i are the position coordinates of the tool at an i-th time t
i 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 X
i, Y. at time t
i 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 T
V 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 T
V, the host collectively inputs all position data indicative of the moving window image
every T
v/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 T
V/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.